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

Unified Diff: content/browser/renderer_host/input/synthetic_gesture.cc

Issue 119323007: Add timestamps to synthesized events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup. Created 6 years, 12 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/browser/renderer_host/input/synthetic_gesture.cc
diff --git a/content/browser/renderer_host/input/synthetic_gesture.cc b/content/browser/renderer_host/input/synthetic_gesture.cc
index 8b2b3bedbe63ca9166056987e68b7a47e6e70646..190ff4a5e0b143dc7ae6799304b0e6624d375eae 100644
--- a/content/browser/renderer_host/input/synthetic_gesture.cc
+++ b/content/browser/renderer_host/input/synthetic_gesture.cc
@@ -43,4 +43,10 @@ scoped_ptr<SyntheticGesture> SyntheticGesture::Create(
return scoped_ptr<SyntheticGesture>();
}
+// static
+double SyntheticGesture::ConvertTimestampToSeconds(
+ const base::TimeTicks& timestamp) {
+ return (timestamp - base::TimeTicks::UnixEpoch()).InSecondsF();
jdduke (slow) 2014/01/03 18:24:30 The documentation for WebInputEvent is somewhat mi
Dominik Grewe 2014/01/06 11:46:07 Done.
+}
+
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698