Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(797)

Unified Diff: ui/events/ozone/evdev/event_dispatch_callback.h

Issue 867803004: [PATCH 4/11] ozone: evdev: Move EventModifiersEvdev usage to EventFactoryEvdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update per comments on previous patches Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 f7c36e26ac04f37cfe414ee74ca1f2766a718e3d..77dd488068deb3f60ab98ce4c6b9d907f431437e 100644
--- a/ui/events/ozone/evdev/event_dispatch_callback.h
+++ b/ui/events/ozone/evdev/event_dispatch_callback.h
@@ -10,6 +10,7 @@
#include "ui/events/event_constants.h"
#include "ui/events/ozone/evdev/events_ozone_evdev_export.h"
#include "ui/gfx/geometry/point_f.h"
+#include "ui/gfx/geometry/vector2d.h"
#include "ui/gfx/geometry/vector2d_f.h"
namespace base {
@@ -18,6 +19,7 @@ class TimeDelta;
namespace gfx {
class PointF;
+class Vector2d;
class Vector2dF;
}
@@ -71,6 +73,44 @@ struct EVENTS_OZONE_EVDEV_EXPORT MouseButtonEventParams {
typedef base::Callback<void(const MouseButtonEventParams& params)>
MouseButtonEventDispatchCallback;
+struct EVENTS_OZONE_EVDEV_EXPORT MouseWheelEventParams {
+ MouseWheelEventParams(int device_id,
+ const gfx::PointF& location,
+ const gfx::Vector2d& delta);
+ MouseWheelEventParams(const MouseWheelEventParams& other);
+ ~MouseWheelEventParams();
+
+ int device_id;
+ gfx::PointF location;
+ gfx::Vector2d delta;
+};
+
+typedef base::Callback<void(const MouseWheelEventParams& params)>
+ MouseWheelEventDispatchCallback;
+
+struct EVENTS_OZONE_EVDEV_EXPORT ScrollEventParams {
+ ScrollEventParams(int device_id,
+ EventType type,
+ const gfx::PointF location,
+ const gfx::Vector2dF delta,
+ const gfx::Vector2dF ordinal_delta,
+ int finger_count,
+ const base::TimeDelta timestamp);
+ ScrollEventParams(const ScrollEventParams& other);
+ ~ScrollEventParams();
+
+ int device_id;
+ EventType type;
+ const gfx::PointF location;
+ const gfx::Vector2dF delta;
+ const gfx::Vector2dF ordinal_delta;
+ int finger_count;
+ const base::TimeDelta timestamp;
+};
+
+typedef base::Callback<void(const ScrollEventParams& params)>
+ ScrollEventDispatchCallback;
+
struct EVENTS_OZONE_EVDEV_EXPORT TouchEventParams {
TouchEventParams(int device_id,
int touch_id,
« no previous file with comments | « ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc ('k') | ui/events/ozone/evdev/event_dispatch_callback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698