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

Unified Diff: ui/events/gesture_detection/gesture_configuration.h

Issue 1281553004: Disable tap suppression logic for WebView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2454
Patch Set: Created 5 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
Index: ui/events/gesture_detection/gesture_configuration.h
diff --git a/ui/events/gesture_detection/gesture_configuration.h b/ui/events/gesture_detection/gesture_configuration.h
index 78234a02dd28518b5b20717fc997c52ea7043e8b..6d100c8eeb36f0f8abc564e342971b6890a365e9 100644
--- a/ui/events/gesture_detection/gesture_configuration.h
+++ b/ui/events/gesture_detection/gesture_configuration.h
@@ -28,6 +28,18 @@ class GESTURE_DETECTION_EXPORT GestureConfiguration {
bool double_tap_enabled() const { return double_tap_enabled_; }
void set_double_tap_enabled(bool enabled) { double_tap_enabled_ = enabled; }
int double_tap_timeout_in_ms() const { return double_tap_timeout_in_ms_; }
+ bool fling_touchpad_tap_suppression_enabled() const {
+ return fling_touchpad_tap_suppression_enabled_;
+ }
+ void set_fling_touchpad_tap_suppression_enabled(bool enabled) {
+ fling_touchpad_tap_suppression_enabled_ = enabled;
+ }
+ bool fling_touchscreen_tap_suppression_enabled() const {
+ return fling_touchscreen_tap_suppression_enabled_;
+ }
+ void set_fling_touchscreen_tap_suppression_enabled(bool enabled) {
+ fling_touchscreen_tap_suppression_enabled_ = enabled;
+ }
int fling_max_cancel_to_down_time_in_ms() const {
return fling_max_cancel_to_down_time_in_ms_;
}
@@ -196,6 +208,11 @@ class GESTURE_DETECTION_EXPORT GestureConfiguration {
bool double_tap_enabled_;
int double_tap_timeout_in_ms_;
+ // Whether to suppress touchscreen/touchpad taps that occur during a fling (
+ // in particular, when such taps cancel the active fling).
+ bool fling_touchpad_tap_suppression_enabled_;
+ bool fling_touchscreen_tap_suppression_enabled_;
+
// Maximum time between a GestureFlingCancel and a mousedown such that the
// mousedown is considered associated with the cancel event.
int fling_max_cancel_to_down_time_in_ms_;

Powered by Google App Engine
This is Rietveld 408576698