Index: ui/events/ozone/evdev/event_dispatch_callback.h |
diff --git a/ui/events/ozone/evdev/event_dispatch_callback.h b/ui/events/ozone/evdev/event_dispatch_callback.h |
index ae0781788766ad983bb92b130af5bf28a33b4a00..efbb8b4ef613b5c3e7c2462723077131e81d989c 100644 |
--- a/ui/events/ozone/evdev/event_dispatch_callback.h |
+++ b/ui/events/ozone/evdev/event_dispatch_callback.h |
@@ -6,6 +6,19 @@ |
#define UI_EVENTS_OZONE_EVDEV_EVENT_DISPATCH_CALLBACK_H_ |
#include "base/callback.h" |
+#include "base/time/time.h" |
+#include "ui/events/event_constants.h" |
+#include "ui/gfx/geometry/point_f.h" |
+#include "ui/gfx/geometry/vector2d_f.h" |
+ |
+namespace base { |
+class TimeDelta; |
+} |
+ |
+namespace gfx { |
+class PointF; |
+class Vector2dF; |
+} |
namespace ui { |
@@ -13,6 +26,29 @@ class Event; |
typedef base::Callback<void(scoped_ptr<Event>)> EventDispatchCallback; |
+struct TouchEventParams { |
+ TouchEventParams(int device_id, |
+ int touch_id, |
+ EventType type, |
+ const gfx::PointF& location, |
+ const gfx::Vector2dF& radii, |
+ float pressure, |
+ const base::TimeDelta& timestamp); |
+ TouchEventParams(const TouchEventParams& other); |
+ ~TouchEventParams(); |
+ |
+ int device_id; |
+ int touch_id; |
+ EventType type; |
+ gfx::PointF location; |
+ gfx::Vector2dF radii; |
+ float pressure; |
+ base::TimeDelta timestamp; |
+}; |
+ |
+typedef base::Callback<void(const TouchEventParams& params)> |
+ TouchEventDispatchCallback; |
+ |
} // namspace ui |
#endif // UI_EVENTS_OZONE_EVDEV_EVENT_DISPATCH_CALLBACK_H_ |