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

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

Issue 10037012: Three Finger Swipe (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove pinch/scroll start/end calls Created 8 years, 8 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/base/events.h ('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 83f953b546913fe0acf9752d7493d3bef108532a..c1aa5dc569a599813192b94f6ec17a6c5885a073 100644
--- a/ui/base/gestures/gesture_configuration.h
+++ b/ui/base/gestures/gesture_configuration.h
@@ -37,6 +37,12 @@ class UI_EXPORT GestureConfiguration {
static void set_max_separation_for_gesture_touches_in_pixels(int val) {
max_separation_for_gesture_touches_in_pixels_ = val;
}
+ static double max_swipe_deviation_ratio() {
+ return max_swipe_deviation_ratio_;
+ }
+ static void set_max_swipe_deviation_ratio(double val) {
+ max_swipe_deviation_ratio_ = val;
+ }
static double max_touch_down_duration_in_seconds_for_click() {
return max_touch_down_duration_in_seconds_for_click_;
}
@@ -79,6 +85,12 @@ class UI_EXPORT GestureConfiguration {
static void set_min_scroll_delta_squared(double val) {
min_scroll_delta_squared_ = val;
}
+ static double min_swipe_speed() {
+ return min_swipe_speed_;
+ }
+ static void set_min_swipe_speed(double val) {
+ min_swipe_speed_ = val;
+ }
static double min_touch_down_duration_in_seconds_for_click() {
return min_touch_down_duration_in_seconds_for_click_;
}
@@ -111,6 +123,7 @@ class UI_EXPORT GestureConfiguration {
static double 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_;
static double max_touch_down_duration_in_seconds_for_click_;
static double max_touch_move_in_pixels_for_click_;
static double min_distance_for_pinch_scroll_in_pixels_;
@@ -118,6 +131,7 @@ class UI_EXPORT GestureConfiguration {
static double min_pinch_update_distance_in_pixels_;
static double min_rail_break_velocity_;
static double min_scroll_delta_squared_;
+ static double min_swipe_speed_;
static double min_touch_down_duration_in_seconds_for_click_;
static int points_buffered_for_velocity_;
static double rail_break_proportion_;
« no previous file with comments | « ui/base/events.h ('k') | ui/base/gestures/gesture_configuration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698