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

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: patch 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
« no previous file with comments | « ui/aura/test/aura_test_base.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 397dbc6c5c477eafb70282a58355a5d5b5f9521a..b439ef38fd7d92e23d9b87c974ea3457b5e3c3ed 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 semi_long_press_time_in_seconds() {
+ return semi_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_semi_long_press_time_in_seconds(double val) {
+ semi_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 semi_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_;
« no previous file with comments | « ui/aura/test/aura_test_base.cc ('k') | ui/base/gestures/gesture_configuration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698