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

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

Issue 10532212: Gesture Recognizer: Make short long press time configurable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/base/gestures/gesture_configuration.h
diff --git a/ui/base/gestures/gesture_configuration.h b/ui/base/gestures/gesture_configuration.h
index 397dbc6c5c477eafb70282a58355a5d5b5f9521a..c6c632d042f746273b084c63b98cb75ab5103eef 100644
--- a/ui/base/gestures/gesture_configuration.h
+++ b/ui/base/gestures/gesture_configuration.h
@@ -25,6 +25,9 @@ class UI_EXPORT GestureConfiguration {
static double long_press_time_in_seconds() {
return long_press_time_in_seconds_;
}
+ static double short_long_press_time_in_seconds() {
+ return short_long_press_time_in_seconds_;
+ }
static double max_distance_for_two_finger_tap_in_pixels() {
return max_distance_for_two_finger_tap_in_pixels_;
}
@@ -37,6 +40,9 @@ class UI_EXPORT GestureConfiguration {
static void set_long_press_time_in_seconds(double val) {
long_press_time_in_seconds_ = val;
}
+ static void set_short_long_press_time_in_seconds(double val) {
+ short_long_press_time_in_seconds_ = val;
+ }
static double max_seconds_between_double_click() {
return max_seconds_between_double_click_;
}
@@ -147,6 +153,7 @@ class UI_EXPORT GestureConfiguration {
static int max_radius_;
static double long_press_time_in_seconds_;
+ static double short_long_press_time_in_seconds_;
static double max_seconds_between_double_click_;
static double max_separation_for_gesture_touches_in_pixels_;
static double max_swipe_deviation_ratio_;

Powered by Google App Engine
This is Rietveld 408576698