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

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

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.cc
diff --git a/ui/events/ozone/evdev/device_event_dispatcher_evdev.cc b/ui/events/ozone/evdev/device_event_dispatcher_evdev.cc
index d8be2c42a8689d059c01c29c73aae2c52aa817c2..2743846ef351ed4814ef95a7a2f2453127bed870 100644
--- a/ui/events/ozone/evdev/device_event_dispatcher_evdev.cc
+++ b/ui/events/ozone/evdev/device_event_dispatcher_evdev.cc
@@ -19,8 +19,9 @@ KeyEventParams::~KeyEventParams() {
}
MouseMoveEventParams::MouseMoveEventParams(int device_id,
- const gfx::PointF& location)
- : device_id(device_id), location(location) {
+ const gfx::PointF& location,
+ base::TimeDelta timestamp)
+ : device_id(device_id), location(location), timestamp(timestamp) {
}
MouseMoveEventParams::MouseMoveEventParams(const MouseMoveEventParams& other) =
@@ -33,12 +34,14 @@ MouseButtonEventParams::MouseButtonEventParams(int device_id,
const gfx::PointF& location,
unsigned int button,
bool down,
- bool allow_remap)
+ bool allow_remap,
+ base::TimeDelta timestamp)
: device_id(device_id),
location(location),
button(button),
down(down),
- allow_remap(allow_remap) {
+ allow_remap(allow_remap),
+ timestamp(timestamp) {
}
MouseButtonEventParams::MouseButtonEventParams(
@@ -49,8 +52,12 @@ MouseButtonEventParams::~MouseButtonEventParams() {
MouseWheelEventParams::MouseWheelEventParams(int device_id,
const gfx::PointF& location,
- const gfx::Vector2d& delta)
- : device_id(device_id), location(location), delta(delta) {
+ const gfx::Vector2d& delta,
+ base::TimeDelta timestamp)
+ : device_id(device_id),
+ location(location),
+ delta(delta),
+ timestamp(timestamp) {
}
MouseWheelEventParams::MouseWheelEventParams(

Powered by Google App Engine
This is Rietveld 408576698