Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / ui / events / test / events_test_utils_x11.h
index 5f59dd5..737cf88 100644 (file)
@@ -24,6 +24,10 @@ struct Valuator {
   double value;
 };
 
+struct XEventDeleter {
+  void operator()(XEvent* event);
+};
+
 class ScopedXI2Event {
  public:
   ScopedXI2Event();
@@ -41,6 +45,10 @@ class ScopedXI2Event {
   void InitButtonEvent(EventType type,
                        int flags);
 
+  void InitGenericButtonEvent(int deviceid,
+                              EventType type,
+                              int flags);
+
   void InitMouseWheelEvent(int wheel_delta,
                            int flags);
 
@@ -69,7 +77,7 @@ class ScopedXI2Event {
 
   void SetUpValuators(const std::vector<Valuator>& valuators);
 
-  scoped_ptr<XEvent> event_;
+  scoped_ptr<XEvent, XEventDeleter> event_;
 
   DISALLOW_COPY_AND_ASSIGN(ScopedXI2Event);
 };