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

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

Issue 2542453003: Suppress LongPress/Tap, and TwoFingerTap when TapDown cancels a fling. (Closed)
Patch Set: Created 4 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
Index: content/browser/renderer_host/input/tap_suppression_controller.h
diff --git a/content/browser/renderer_host/input/tap_suppression_controller.h b/content/browser/renderer_host/input/tap_suppression_controller.h
index dc0def55e039c019ac7ba8fd42e8469a86ac4303..406d71ade520d031cc5c749ca484e3eceb5ff9bc 100644
--- a/content/browser/renderer_host/input/tap_suppression_controller.h
+++ b/content/browser/renderer_host/input/tap_suppression_controller.h
@@ -70,6 +70,12 @@ class CONTENT_EXPORT TapSuppressionController {
GFC_IN_PROGRESS,
TAP_DOWN_STASHED,
LAST_CANCEL_STOPPED_FLING,
+ // When the stashed TapDown event is dropped or forwarded due to tap down
+ // timer expiration, the contorller enters the SUPPRESSING_TAPS state.
tdresser 2016/12/07 19:53:21 controller
sahel 2016/12/09 16:49:12 Done.
+ // This state shows that the controller will suppress LongTap,
+ // TwoFingerTap, and TapCancel gesture events untill the next tapDown event
tdresser 2016/12/07 19:53:21 until
sahel 2016/12/09 16:49:12 Done.
+ // arrives.
+ SUPPRESSING_TAPS,
};
TapSuppressionControllerClient* client_;

Powered by Google App Engine
This is Rietveld 408576698