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

Unified Diff: ui/events/event.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
« no previous file with comments | « ui/events/event.h ('k') | ui/events/ozone/evdev/device_event_dispatcher_evdev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event.cc
diff --git a/ui/events/event.cc b/ui/events/event.cc
index 166a8bd1d18d486fb19df5709620f811739b189e..f46ce3f3150d19292a3df2da04844145947c92a2 100644
--- a/ui/events/event.cc
+++ b/ui/events/event.cc
@@ -484,15 +484,17 @@ MouseWheelEvent::MouseWheelEvent(const MouseWheelEvent& mouse_wheel_event)
MouseWheelEvent::MouseWheelEvent(const gfx::Vector2d& offset,
const gfx::PointF& location,
const gfx::PointF& root_location,
+ base::TimeDelta time_stamp,
int flags,
int changed_button_flags)
: MouseEvent(ui::ET_MOUSEWHEEL,
location,
root_location,
- EventTimeForNow(),
+ time_stamp,
flags,
changed_button_flags),
offset_(offset) {
+ set_time_stamp(time_stamp);
sadrul 2015/02/19 17:23:20 Is this necessary?
robert.bradford 2015/02/19 17:30:44 Whoops, this was necessary in the old version (bef
}
#if defined(OS_WIN)
« no previous file with comments | « ui/events/event.h ('k') | ui/events/ozone/evdev/device_event_dispatcher_evdev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698