| 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 int GestureConfiguration::default_radius_ = 15; | 9 int GestureConfiguration::default_radius_ = 15; |
| 10 int GestureConfiguration::fling_max_cancel_to_down_time_in_ms_ = 400; |
| 11 int GestureConfiguration::fling_max_tap_gap_time_in_ms_ = 200; |
| 10 float GestureConfiguration::fling_velocity_cap_ = 17000.0f; | 12 float GestureConfiguration::fling_velocity_cap_ = 17000.0f; |
| 11 double GestureConfiguration::long_press_time_in_seconds_ = 1.0; | 13 double GestureConfiguration::long_press_time_in_seconds_ = 1.0; |
| 12 double GestureConfiguration::semi_long_press_time_in_seconds_ = 0.4; | 14 double GestureConfiguration::semi_long_press_time_in_seconds_ = 0.4; |
| 13 double GestureConfiguration::max_distance_for_two_finger_tap_in_pixels_ = 300; | 15 double GestureConfiguration::max_distance_for_two_finger_tap_in_pixels_ = 300; |
| 14 int GestureConfiguration::max_radius_ = 100; | 16 int GestureConfiguration::max_radius_ = 100; |
| 15 double GestureConfiguration::max_seconds_between_double_click_ = 0.7; | 17 double GestureConfiguration::max_seconds_between_double_click_ = 0.7; |
| 16 double | 18 double |
| 17 GestureConfiguration::max_separation_for_gesture_touches_in_pixels_ = 150; | 19 GestureConfiguration::max_separation_for_gesture_touches_in_pixels_ = 150; |
| 18 double GestureConfiguration::max_swipe_deviation_ratio_ = 3; | 20 double GestureConfiguration::max_swipe_deviation_ratio_ = 3; |
| 19 double | 21 double |
| (...skipping 22 matching lines...) Expand all Loading... |
| 42 // additional empirical validation. | 44 // additional empirical validation. |
| 43 float GestureConfiguration::fling_acceleration_curve_coefficients_[ | 45 float GestureConfiguration::fling_acceleration_curve_coefficients_[ |
| 44 NumAccelParams] = { | 46 NumAccelParams] = { |
| 45 0.0166667f, | 47 0.0166667f, |
| 46 -0.0238095f, | 48 -0.0238095f, |
| 47 0.0452381f, | 49 0.0452381f, |
| 48 0.8f | 50 0.8f |
| 49 }; | 51 }; |
| 50 | 52 |
| 51 } // namespace ui | 53 } // namespace ui |
| OLD | NEW |