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

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

Issue 10855027: Filter unnecessary GestureFlingCancel events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 8 years, 4 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/render_widget_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b7a528e2104f2a476d8331b6cda2eaa63825b938..2e907b054950f856767cde2f657c523bc9cf27a4 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -600,6 +600,11 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
// initiated by OnMsgBeginSmoothScroll.
void TickActiveSmoothScrollGesture();
+ // Returns |true| if the given GestureFlingCancel should be discarded
+ // as unnecessary.
+ bool ShouldDiscardFlingCancelEvent(
+ const WebKit::WebGestureEvent& gesture_event);
+
// Our delegate, which wants to know mainly about keyboard events.
RenderWidgetHostDelegate* delegate_;
@@ -777,6 +782,8 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
scoped_ptr<TapSuppressionController> tap_suppression_controller_;
+ bool fling_in_progress_;
+
scoped_ptr<SmoothScrollGesture> active_smooth_scroll_gesture_;
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698