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

Unified Diff: ui/aura/gestures/gesture_configuration.cc

Issue 9751011: Gesture recognition constants should all be stored in the GestureConfiguration object. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Freshen Created 8 years, 9 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/gestures/gesture_configuration.h ('k') | ui/aura/gestures/gesture_point.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/gestures/gesture_configuration.cc
diff --git a/ui/aura/gestures/gesture_configuration.cc b/ui/aura/gestures/gesture_configuration.cc
index 482ac62cbe49a924af0d5f7cd3bc2546559b1a4f..0ee11fabb5ed51e5bc160ace9786ba772743b4e6 100644
--- a/ui/aura/gestures/gesture_configuration.cc
+++ b/ui/aura/gestures/gesture_configuration.cc
@@ -6,15 +6,28 @@
namespace aura {
+// Ordered alphabetically ignoring underscores, to align with the
+// associated list of prefs in gesture_prefs_aura.cc.
+double GestureConfiguration::long_press_time_in_seconds_ = 0.5;
+double GestureConfiguration::max_seconds_between_double_click_ = 0.7;
double
- GestureConfiguration::max_touch_down_duration_in_seconds_for_click_ = 0.8;
+ GestureConfiguration::max_separation_for_gesture_touches_in_pixels_ = 150;
double
- GestureConfiguration::min_touch_down_duration_in_seconds_for_click_ = 0.01;
-double GestureConfiguration::max_seconds_between_double_click_ = 0.7;
+ GestureConfiguration::max_touch_down_duration_in_seconds_for_click_ = 0.8;
double GestureConfiguration::max_touch_move_in_pixels_for_click_ = 20;
+double GestureConfiguration::min_distance_for_pinch_scroll_in_pixels_ = 20;
double GestureConfiguration::min_flick_speed_squared_ = 550.f * 550.f;
-double GestureConfiguration::minimum_pinch_update_distance_in_pixels_ = 5;
-double GestureConfiguration::minimum_distance_for_pinch_scroll_in_pixels_ = 20;
-int GestureConfiguration::max_separation_for_gesture_touches_in_pixels_ = 150;
+double GestureConfiguration::min_pinch_update_distance_in_pixels_ = 5;
+double GestureConfiguration::min_rail_break_velocity_ = 200;
+double GestureConfiguration::min_scroll_delta_squared_ = 5 * 5;
+double
+ GestureConfiguration::min_touch_down_duration_in_seconds_for_click_ = 0.01;
+
+// The number of points used in the linear regression which determines
+// touch velocity. If fewer than this number of points have been seen,
+// velocity is reported as 0.
+int GestureConfiguration::points_buffered_for_velocity_ = 10;
+double GestureConfiguration::rail_break_proportion_ = 15;
+double GestureConfiguration::rail_start_proportion_ = 2;
} // namespace aura
« no previous file with comments | « ui/aura/gestures/gesture_configuration.h ('k') | ui/aura/gestures/gesture_point.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698