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

Unified Diff: content/port/browser/smooth_scroll_gesture.h

Issue 11415227: Telemtry: hooks "chrome.gpuBenchmarking.smoothScrollBy" with java on android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove inline virtual dtor Created 8 years 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 | « content/content_jni.gypi ('k') | content/port/browser/smooth_scroll_gesture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/port/browser/smooth_scroll_gesture.h
diff --git a/content/port/browser/smooth_scroll_gesture.h b/content/port/browser/smooth_scroll_gesture.h
index 4e2c1d908f411e0e6d63b49c6e96798d7f86b665..3b7bec7675ae971bb6fb6325d5d8878f68971331 100644
--- a/content/port/browser/smooth_scroll_gesture.h
+++ b/content/port/browser/smooth_scroll_gesture.h
@@ -14,10 +14,9 @@ class RenderWidgetHost;
// This is a base class representing a single scroll gesture. These gestures are
// paired with the rendering benchmarking system to (automatically) measure how
-// smoothnly chrome is responding to user input.
+// smoothly chrome is responding to user input.
class SmoothScrollGesture : public base::RefCounted<SmoothScrollGesture> {
public:
-
// When called, the gesture should compute its state at the provided timestamp
// and send the right input events to the provided RenderWidgetHost to
// simulate the gesture having run up to that point in time.
@@ -29,6 +28,11 @@ class SmoothScrollGesture : public base::RefCounted<SmoothScrollGesture> {
protected:
friend class base::RefCounted<SmoothScrollGesture>;
virtual ~SmoothScrollGesture() {}
+
+ double Tick(base::TimeTicks now, double desired_interval_ms);
+
+ private:
+ base::TimeTicks last_tick_time_;
};
} // namespace content
« no previous file with comments | « content/content_jni.gypi ('k') | content/port/browser/smooth_scroll_gesture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698