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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 11013043: beginSmoothScroll should send wheel ticks at constant velocity. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git try Created 8 years, 2 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/render_widget_host_impl.h
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index 1d6e4675392161bcacd9834c1ee0c6c7072bdc57..2c44eb3bcc181409d79097a1fe57af12bd937280 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -17,6 +17,7 @@
#include "base/memory/weak_ptr.h"
#include "base/process_util.h"
#include "base/string16.h"
+#include "base/time.h"
#include "base/timer.h"
#include "build/build_config.h"
#include "content/common/view_message_enums.h"
@@ -823,6 +824,8 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
typedef std::map<int, scoped_refptr<SmoothScrollGesture> >
SmoothScrollGestureMap;
SmoothScrollGestureMap active_smooth_scroll_gestures_;
+ base::TimeTicks last_smooth_scroll_gestures_tick_time_;
+ bool tick_active_smooth_scroll_gestures_task_posted_;
scoped_ptr<GestureEventFilter> gesture_event_filter_;

Powered by Google App Engine
This is Rietveld 408576698