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

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

Issue 119323007: Add timestamps to synthesized events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove target variables in pinch; fix computation of total duration. Created 6 years, 11 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 | content/browser/renderer_host/input/synthetic_gesture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/synthetic_gesture.h
diff --git a/content/browser/renderer_host/input/synthetic_gesture.h b/content/browser/renderer_host/input/synthetic_gesture.h
index c10c2fea2140dc39b9cfd23a231b7821b46e55c4..94524514c85219ce23f5308437d371c3cf92666a 100644
--- a/content/browser/renderer_host/input/synthetic_gesture.h
+++ b/content/browser/renderer_host/input/synthetic_gesture.h
@@ -46,9 +46,11 @@ class CONTENT_EXPORT SyntheticGesture {
// platform. This function is called repeatedly by the synthetic gesture
// controller until it stops returning GESTURE_RUNNING.
virtual Result ForwardInputEvents(
- const base::TimeDelta& interval, SyntheticGestureTarget* target) = 0;
+ const base::TimeTicks& timestamp, SyntheticGestureTarget* target) = 0;
+
+ protected:
+ static double ConvertTimestampToSeconds(const base::TimeTicks& timestamp);
- private:
DISALLOW_COPY_AND_ASSIGN(SyntheticGesture);
};
« no previous file with comments | « no previous file | content/browser/renderer_host/input/synthetic_gesture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698