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

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

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
« 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 bd0550ffc01e8e6c620fdfa484d23065304d8657..ff8dd175f53331512183b06c739122d8552e47f2 100644
--- a/ui/events/ozone/evdev/event_dispatch_callback.cc
+++ b/ui/events/ozone/evdev/event_dispatch_callback.cc
@@ -44,6 +44,39 @@ MouseButtonEventParams::MouseButtonEventParams(
MouseButtonEventParams::~MouseButtonEventParams() {
}
+MouseWheelEventParams::MouseWheelEventParams(int device_id,
+ const gfx::PointF& location,
+ const gfx::Vector2d& delta)
+ : device_id(device_id), location(location), delta(delta) {
+}
+
+MouseWheelEventParams::MouseWheelEventParams(
+ const MouseWheelEventParams& other) = default;
+
+MouseWheelEventParams::~MouseWheelEventParams() {
+}
+
+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)
+ : device_id(device_id),
+ type(type),
+ location(location),
+ delta(delta),
+ ordinal_delta(ordinal_delta),
+ finger_count(finger_count),
+ timestamp(timestamp) {
+}
+
+ScrollEventParams::ScrollEventParams(const ScrollEventParams& other) = default;
+
+ScrollEventParams::~ScrollEventParams() {
+}
+
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