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

Unified Diff: ui/base/gestures/gesture_configuration.h

Issue 11745006: Added TapSuppressionController params to gesture configurations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed TSC command line parameters Created 7 years, 12 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
« no previous file with comments | « content/public/common/content_switches.cc ('k') | ui/base/gestures/gesture_configuration.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/gestures/gesture_configuration.h
diff --git a/ui/base/gestures/gesture_configuration.h b/ui/base/gestures/gesture_configuration.h
index db46d95571656cd5d11c4b533b98f535a3309d88..525ee3b12dc7ea08834daafd3944ef021174a56a 100644
--- a/ui/base/gestures/gesture_configuration.h
+++ b/ui/base/gestures/gesture_configuration.h
@@ -26,6 +26,18 @@ class UI_EXPORT GestureConfiguration {
return default_radius_;
}
static void set_default_radius(int radius) { default_radius_ = radius; }
+ static int fling_max_cancel_to_down_time_in_ms() {
+ return fling_max_cancel_to_down_time_in_ms_;
+ }
+ static void set_fling_max_cancel_to_down_time_in_ms(int val) {
+ fling_max_cancel_to_down_time_in_ms_ = val;
+ }
+ static int fling_max_tap_gap_time_in_ms() {
+ return fling_max_tap_gap_time_in_ms_;
+ }
+ static void set_fling_max_tap_gap_time_in_ms(int val) {
+ fling_max_tap_gap_time_in_ms_ = val;
+ }
static double long_press_time_in_seconds() {
return long_press_time_in_seconds_;
}
@@ -186,6 +198,14 @@ class UI_EXPORT GestureConfiguration {
// forming an ET_GESTURE_TAP event.
static int max_radius_;
+ // Maximum time between a GestureFlingCancel and a mousedown such that the
+ // mousedown is considered associated with the cancel event.
+ static int fling_max_cancel_to_down_time_in_ms_;
+
+ // Maxium time between a mousedown/mouseup pair that is considered to be a
+ // suppressable tap.
+ static int fling_max_tap_gap_time_in_ms_;
+
static double long_press_time_in_seconds_;
static double semi_long_press_time_in_seconds_;
static double max_seconds_between_double_click_;
« no previous file with comments | « content/public/common/content_switches.cc ('k') | ui/base/gestures/gesture_configuration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698