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

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

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
« no previous file with comments | « ui/events/ozone/evdev/event_dispatch_callback.h ('k') | ui/events/ozone/evdev/event_factory_evdev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/event_dispatch_callback.cc
diff --git a/ui/events/ozone/evdev/event_dispatch_callback.cc b/ui/events/ozone/evdev/event_dispatch_callback.cc
index 8dd8f3ad70542970ad20ab9c6b1296c4a429b4b0..bd0550ffc01e8e6c620fdfa484d23065304d8657 100644
--- a/ui/events/ozone/evdev/event_dispatch_callback.cc
+++ b/ui/events/ozone/evdev/event_dispatch_callback.cc
@@ -15,6 +15,35 @@ KeyEventParams::KeyEventParams(const KeyEventParams& other) = default;
KeyEventParams::~KeyEventParams() {
}
+MouseMoveEventParams::MouseMoveEventParams(int device_id,
+ const gfx::PointF& location)
+ : device_id(device_id), location(location) {
+}
+
+MouseMoveEventParams::MouseMoveEventParams(const MouseMoveEventParams& other) =
+ default;
+
+MouseMoveEventParams::~MouseMoveEventParams() {
+}
+
+MouseButtonEventParams::MouseButtonEventParams(int device_id,
+ const gfx::PointF& location,
+ unsigned int button,
+ bool down,
+ bool allow_remap)
+ : device_id(device_id),
+ location(location),
+ button(button),
+ down(down),
+ allow_remap(allow_remap) {
+}
+
+MouseButtonEventParams::MouseButtonEventParams(
+ const MouseButtonEventParams& other) = default;
+
+MouseButtonEventParams::~MouseButtonEventParams() {
+}
+
TouchEventParams::TouchEventParams(int device_id,
int touch_id,
EventType type,
« no previous file with comments | « ui/events/ozone/evdev/event_dispatch_callback.h ('k') | ui/events/ozone/evdev/event_factory_evdev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698