OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/base/gestures/gesture_configuration.h" | 5 #include "ui/base/gestures/gesture_configuration.h" |
6 | 6 |
7 namespace ui { | 7 namespace ui { |
8 | 8 |
9 // Ordered alphabetically ignoring underscores, to align with the | 9 // Ordered alphabetically ignoring underscores, to align with the |
10 // associated list of prefs in gesture_prefs_aura.cc. | 10 // associated list of prefs in gesture_prefs_aura.cc. |
11 int GestureConfiguration::default_radius_ = 15; | 11 int GestureConfiguration::default_radius_ = 15; |
12 double GestureConfiguration::long_press_time_in_seconds_ = 1.0; | 12 double GestureConfiguration::long_press_time_in_seconds_ = 1.0; |
| 13 double GestureConfiguration::semi_long_press_time_in_seconds_ = 0.5; |
13 double GestureConfiguration::max_distance_for_two_finger_tap_in_pixels_ = 300; | 14 double GestureConfiguration::max_distance_for_two_finger_tap_in_pixels_ = 300; |
14 int GestureConfiguration::max_radius_ = 100; | 15 int GestureConfiguration::max_radius_ = 100; |
15 double GestureConfiguration::max_seconds_between_double_click_ = 0.7; | 16 double GestureConfiguration::max_seconds_between_double_click_ = 0.7; |
16 double | 17 double |
17 GestureConfiguration::max_separation_for_gesture_touches_in_pixels_ = 150; | 18 GestureConfiguration::max_separation_for_gesture_touches_in_pixels_ = 150; |
18 double GestureConfiguration::max_swipe_deviation_ratio_ = 3; | 19 double GestureConfiguration::max_swipe_deviation_ratio_ = 3; |
19 double | 20 double |
20 GestureConfiguration::max_touch_down_duration_in_seconds_for_click_ = 0.8; | 21 GestureConfiguration::max_touch_down_duration_in_seconds_for_click_ = 0.8; |
21 double GestureConfiguration::max_touch_move_in_pixels_for_click_ = 20; | 22 double GestureConfiguration::max_touch_move_in_pixels_for_click_ = 20; |
22 double GestureConfiguration::min_distance_for_pinch_scroll_in_pixels_ = 20; | 23 double GestureConfiguration::min_distance_for_pinch_scroll_in_pixels_ = 20; |
23 double GestureConfiguration::min_flick_speed_squared_ = 550.f * 550.f; | 24 double GestureConfiguration::min_flick_speed_squared_ = 550.f * 550.f; |
24 double GestureConfiguration::min_pinch_update_distance_in_pixels_ = 5; | 25 double GestureConfiguration::min_pinch_update_distance_in_pixels_ = 5; |
25 double GestureConfiguration::min_rail_break_velocity_ = 200; | 26 double GestureConfiguration::min_rail_break_velocity_ = 200; |
26 double GestureConfiguration::min_scroll_delta_squared_ = 5 * 5; | 27 double GestureConfiguration::min_scroll_delta_squared_ = 5 * 5; |
27 double GestureConfiguration::min_swipe_speed_ = 20; | 28 double GestureConfiguration::min_swipe_speed_ = 20; |
28 double | 29 double |
29 GestureConfiguration::min_touch_down_duration_in_seconds_for_click_ = 0.01; | 30 GestureConfiguration::min_touch_down_duration_in_seconds_for_click_ = 0.01; |
30 | 31 |
31 // The number of points used in the linear regression which determines | 32 // The number of points used in the linear regression which determines |
32 // touch velocity. If fewer than this number of points have been seen, | 33 // touch velocity. If fewer than this number of points have been seen, |
33 // velocity is reported as 0. | 34 // velocity is reported as 0. |
34 int GestureConfiguration::points_buffered_for_velocity_ = 3; | 35 int GestureConfiguration::points_buffered_for_velocity_ = 3; |
35 double GestureConfiguration::rail_break_proportion_ = 15; | 36 double GestureConfiguration::rail_break_proportion_ = 15; |
36 double GestureConfiguration::rail_start_proportion_ = 2; | 37 double GestureConfiguration::rail_start_proportion_ = 2; |
37 | 38 |
38 } // namespace ui | 39 } // namespace ui |
OLD | NEW |