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

Unified Diff: ui/base/gestures/gesture_sequence.cc

Issue 16159007: Let gesture carry microseconds timestamp (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/gestures/gesture_sequence.cc
diff --git a/ui/base/gestures/gesture_sequence.cc b/ui/base/gestures/gesture_sequence.cc
index 2423c1b855b7716292216594d95e22211c64c2c7..34e8f636adf95f84437c5ce784bd9dc4104eac57 100644
--- a/ui/base/gestures/gesture_sequence.cc
+++ b/ui/base/gestures/gesture_sequence.cc
@@ -646,9 +646,11 @@ GestureEvent* GestureSequence::CreateGestureEvent(
GestureEventDetails gesture_details(details);
gesture_details.set_touch_points(point_count_);
gesture_details.set_bounding_box(bounding_box_);
+ base::TimeDelta time_stamp =
+ base::TimeDelta::FromMicroseconds(timestamp.ToDoubleT() * 1000000);
return new GestureEvent(gesture_details.type(), location.x(), location.y(),
- flags, base::TimeDelta::FromMilliseconds(timestamp.ToDoubleT() * 1000),
- gesture_details, touch_id_bitmask);
+ flags, time_stamp, gesture_details,
+ touch_id_bitmask);
}
void GestureSequence::AppendTapDownGestureEvent(const GesturePoint& point,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698