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

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

Issue 2542453003: Suppress LongPress/Tap, and TwoFingerTap when TapDown cancels a fling. (Closed)
Patch Set: clarification comments added. 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/touchscreen_tap_suppression_controller.h
diff --git a/content/browser/renderer_host/input/touchscreen_tap_suppression_controller.h b/content/browser/renderer_host/input/touchscreen_tap_suppression_controller.h
index 3e7623ef7c78071ebe2dc05b8ef138006f51e15a..c7a3039530afdb7cebd225488f72c00e35df62c1 100644
--- a/content/browser/renderer_host/input/touchscreen_tap_suppression_controller.h
+++ b/content/browser/renderer_host/input/touchscreen_tap_suppression_controller.h
@@ -40,6 +40,7 @@ class TouchscreenTapSuppressionController
private:
// TapSuppressionControllerClient implementation.
void DropStashedTapDown() override;
+ void ForwardStashedGestureEvents() override;
void ForwardStashedTapDown() override;
GestureEventQueue* gesture_event_queue_;
@@ -47,6 +48,7 @@ class TouchscreenTapSuppressionController
typedef std::unique_ptr<GestureEventWithLatencyInfo> ScopedGestureEvent;
ScopedGestureEvent stashed_tap_down_;
ScopedGestureEvent stashed_show_press_;
+ ScopedGestureEvent stashed_long_press_;
// The core controller of tap suppression.
TapSuppressionController controller_;

Powered by Google App Engine
This is Rietveld 408576698