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

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

Issue 889673004: ozone: evdev: Use kernel timestamps for mouse events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on MouseEvent timestamp changes & fix stime feedback Created 5 years, 10 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/device_event_dispatcher_evdev.h
diff --git a/ui/events/ozone/evdev/device_event_dispatcher_evdev.h b/ui/events/ozone/evdev/device_event_dispatcher_evdev.h
index fe2bee19f72a56b0b4a37069da9663742f7689e0..a7dddce1d8ee494e129e477cd8183ddba88d9b9a 100644
--- a/ui/events/ozone/evdev/device_event_dispatcher_evdev.h
+++ b/ui/events/ozone/evdev/device_event_dispatcher_evdev.h
@@ -34,12 +34,15 @@ struct EVENTS_OZONE_EVDEV_EXPORT KeyEventParams {
};
struct EVENTS_OZONE_EVDEV_EXPORT MouseMoveEventParams {
- MouseMoveEventParams(int device_id, const gfx::PointF& location);
+ MouseMoveEventParams(int device_id,
+ const gfx::PointF& location,
+ base::TimeDelta timestamp);
MouseMoveEventParams(const MouseMoveEventParams& other);
~MouseMoveEventParams();
int device_id;
gfx::PointF location;
+ base::TimeDelta timestamp;
};
struct EVENTS_OZONE_EVDEV_EXPORT MouseButtonEventParams {
@@ -47,7 +50,8 @@ struct EVENTS_OZONE_EVDEV_EXPORT MouseButtonEventParams {
const gfx::PointF& location,
unsigned int button,
bool down,
- bool allow_remap);
+ bool allow_remap,
+ base::TimeDelta timestamp);
MouseButtonEventParams(const MouseButtonEventParams& other);
~MouseButtonEventParams();
@@ -56,18 +60,21 @@ struct EVENTS_OZONE_EVDEV_EXPORT MouseButtonEventParams {
unsigned int button;
bool down;
bool allow_remap;
+ base::TimeDelta timestamp;
};
struct EVENTS_OZONE_EVDEV_EXPORT MouseWheelEventParams {
MouseWheelEventParams(int device_id,
const gfx::PointF& location,
- const gfx::Vector2d& delta);
+ const gfx::Vector2d& delta,
+ base::TimeDelta timestamp);
MouseWheelEventParams(const MouseWheelEventParams& other);
~MouseWheelEventParams();
int device_id;
gfx::PointF location;
gfx::Vector2d delta;
+ base::TimeDelta timestamp;
};
struct EVENTS_OZONE_EVDEV_EXPORT ScrollEventParams {

Powered by Google App Engine
This is Rietveld 408576698