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

Unified Diff: content/common/input/synthetic_web_input_event_builders.cc

Issue 306483003: Prepare for Unified Gesture Recognizer landing in Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix non-monotonic timestamps Created 6 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: content/common/input/synthetic_web_input_event_builders.cc
diff --git a/content/common/input/synthetic_web_input_event_builders.cc b/content/common/input/synthetic_web_input_event_builders.cc
index 2fcca34afb73bc9878c14511225ca545da3b58ef..4582e28c3fa0ef6d9c07ff20300cb47582377bba 100644
--- a/content/common/input/synthetic_web_input_event_builders.cc
+++ b/content/common/input/synthetic_web_input_event_builders.cc
@@ -147,7 +147,9 @@ WebGestureEvent SyntheticWebGestureEventBuilder::BuildFling(
return result;
}
-SyntheticWebTouchEvent::SyntheticWebTouchEvent() : WebTouchEvent() {}
+SyntheticWebTouchEvent::SyntheticWebTouchEvent() : WebTouchEvent() {
+ SetTimestamp(base::TimeTicks::Now() - base::TimeTicks());
+}
void SyntheticWebTouchEvent::ResetPoints() {
int point = 0;

Powered by Google App Engine
This is Rietveld 408576698