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 | |
10 // associated list of prefs in gesture_prefs_aura.cc. | |
11 // NOTE: When updating values here, also update | |
12 // browser/resources/gesture_config.js for chrome://gesture config UI. | |
13 // TODO(rbyers) unify these - crbug.com/156392 | |
rjkroege
2012/11/30 16:03:16
note that 156392 is fixed.
| |
14 int GestureConfiguration::default_radius_ = 15; | 9 int GestureConfiguration::default_radius_ = 15; |
10 float GestureConfiguration::fling_velocity_cap_ = 17000.0f; | |
15 double GestureConfiguration::long_press_time_in_seconds_ = 1.0; | 11 double GestureConfiguration::long_press_time_in_seconds_ = 1.0; |
16 double GestureConfiguration::semi_long_press_time_in_seconds_ = 0.4; | 12 double GestureConfiguration::semi_long_press_time_in_seconds_ = 0.4; |
17 double GestureConfiguration::max_distance_for_two_finger_tap_in_pixels_ = 300; | 13 double GestureConfiguration::max_distance_for_two_finger_tap_in_pixels_ = 300; |
18 int GestureConfiguration::max_radius_ = 100; | 14 int GestureConfiguration::max_radius_ = 100; |
19 double GestureConfiguration::max_seconds_between_double_click_ = 0.7; | 15 double GestureConfiguration::max_seconds_between_double_click_ = 0.7; |
20 double | 16 double |
21 GestureConfiguration::max_separation_for_gesture_touches_in_pixels_ = 150; | 17 GestureConfiguration::max_separation_for_gesture_touches_in_pixels_ = 150; |
22 double GestureConfiguration::max_swipe_deviation_ratio_ = 3; | 18 double GestureConfiguration::max_swipe_deviation_ratio_ = 3; |
23 double | 19 double |
24 GestureConfiguration::max_touch_down_duration_in_seconds_for_click_ = 0.8; | 20 GestureConfiguration::max_touch_down_duration_in_seconds_for_click_ = 0.8; |
(...skipping 20 matching lines...) Expand all Loading... | |
45 // additional empirical validation. | 41 // additional empirical validation. |
46 float GestureConfiguration::fling_acceleration_curve_coefficients_[ | 42 float GestureConfiguration::fling_acceleration_curve_coefficients_[ |
47 NumAccelParams] = { | 43 NumAccelParams] = { |
48 0.0166667f, | 44 0.0166667f, |
49 -0.0238095f, | 45 -0.0238095f, |
50 0.0452381f, | 46 0.0452381f, |
51 0.8f | 47 0.8f |
52 }; | 48 }; |
53 | 49 |
54 } // namespace ui | 50 } // namespace ui |
OLD | NEW |