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_; |
tdresser
2015/08/04 12:20:50
I have a mild preference for the name:
touch.*_fli
jdduke (slow)
2015/08/04 17:19:25
Yeah, I actually had that originally, and went bac
tdresser
2015/08/04 21:00:15
LGTM.
|
+ |
// 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_; |