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

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

Issue 171283002: Always reset touch action at the beginning of a new gesture sequence (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix case where touch handler is removed. Created 6 years, 10 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/input/touch_action_filter.h
diff --git a/content/browser/renderer_host/input/touch_action_filter.h b/content/browser/renderer_host/input/touch_action_filter.h
index 17cf59eeb2fee612a805d84232b3e9834cc0dcaf..c44d611394111a7ba83c5767aa7d9a65c903f34b 100644
--- a/content/browser/renderer_host/input/touch_action_filter.h
+++ b/content/browser/renderer_host/input/touch_action_filter.h
@@ -31,6 +31,12 @@ public:
// for a touch start event that is currently in flight.
void OnSetTouchAction(content::TouchAction touch_action);
+ // Must be called before the first touch of the touch sequence is sent to the
+ // renderer. This will be before any gestures produced by the touch sequence
+ // are sent to the renderer, because to dispatch a gesture we must know the
+ // disposition of the touch events which contributed to it.
+ void OnTouchSequenceStart();
+
// Return the intersection of two TouchAction values.
static TouchAction Intersect(TouchAction ta1, TouchAction ta2);

Powered by Google App Engine
This is Rietveld 408576698