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

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

Issue 16114003: Don't send touch move to renderer while scrolling (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 7 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 5da93328871cfcf7d7d054241a232e204e83c67e..3a21e055cf22b58411046917445e9b64eba07be9 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -332,6 +332,9 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
bool ShouldForwardTouchEvent() const;
+ bool& scroll_update_in_progress() { return scroll_update_in_progress_; }
+ bool& skip_next_acked_touch_cancel(){ return skip_next_acked_touch_cancel_; }
+
bool has_touch_handler() const { return has_touch_handler_; }
// Notification that the user has made some kind of input that could
@@ -887,6 +890,9 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
bool pending_mouse_lock_request_;
bool allow_privileged_mouse_lock_;
+ bool scroll_update_in_progress_;
+ bool skip_next_acked_touch_cancel_;
+
// Keeps track of whether the webpage has any touch event handler. If it does,
// then touch events are sent to the renderer. Otherwise, the touch events are
// not sent to the renderer.

Powered by Google App Engine
This is Rietveld 408576698