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

Unified Diff: ui/events/gestures/gesture_provider_aura.cc

Issue 1975533002: Change ui::Event::time_stamp from TimeDelta to TimeTicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix gesture recognizer tests Created 4 years, 7 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/gestures/gesture_provider_aura.cc
diff --git a/ui/events/gestures/gesture_provider_aura.cc b/ui/events/gestures/gesture_provider_aura.cc
index 739d1df0677e3ad58028ba59254a036f60b115e6..57530fd611c1804ff846fdd5bde18b8a32899c48 100644
--- a/ui/events/gestures/gesture_provider_aura.cc
+++ b/ui/events/gestures/gesture_provider_aura.cc
@@ -52,9 +52,8 @@ void GestureProviderAura::OnTouchEventAck(uint32_t unique_event_id,
void GestureProviderAura::OnGestureEvent(
const GestureEventData& gesture) {
- std::unique_ptr<ui::GestureEvent> event(
- new ui::GestureEvent(gesture.x, gesture.y, gesture.flags,
- gesture.time - base::TimeTicks(), gesture.details));
+ std::unique_ptr<ui::GestureEvent> event(new ui::GestureEvent(
+ gesture.x, gesture.y, gesture.flags, gesture.time, gesture.details));
if (!handling_event_) {
// Dispatching event caused by timer.

Powered by Google App Engine
This is Rietveld 408576698