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

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

Issue 872683006: [PATCH 3/11] ozone: evdev: Move MouseButtonMap usage during dispatch 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 ffdbbb2c0eb1f660bc228b58c7d314b0d4319fb6..f7c36e26ac04f37cfe414ee74ca1f2766a718e3d 100644
--- a/ui/events/ozone/evdev/event_dispatch_callback.h
+++ b/ui/events/ozone/evdev/event_dispatch_callback.h
@@ -40,6 +40,37 @@ struct EVENTS_OZONE_EVDEV_EXPORT KeyEventParams {
typedef base::Callback<void(const KeyEventParams& params)>
KeyEventDispatchCallback;
+struct EVENTS_OZONE_EVDEV_EXPORT MouseMoveEventParams {
+ MouseMoveEventParams(int device_id, const gfx::PointF& location);
+ MouseMoveEventParams(const MouseMoveEventParams& other);
+ ~MouseMoveEventParams();
+
+ int device_id;
+ gfx::PointF location;
+};
+
+typedef base::Callback<void(const MouseMoveEventParams& params)>
+ MouseMoveEventDispatchCallback;
+
+struct EVENTS_OZONE_EVDEV_EXPORT MouseButtonEventParams {
+ MouseButtonEventParams(int device_id,
+ const gfx::PointF& location,
+ unsigned int button,
+ bool down,
+ bool allow_remap);
+ MouseButtonEventParams(const MouseButtonEventParams& other);
+ ~MouseButtonEventParams();
+
+ int device_id;
+ gfx::PointF location;
+ unsigned int button;
+ bool down;
+ bool allow_remap;
+};
+
+typedef base::Callback<void(const MouseButtonEventParams& params)>
+ MouseButtonEventDispatchCallback;
+
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