OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/events/gestures/gesture_configuration.h" | 5 #include "ui/events/gestures/gesture_configuration.h" |
6 | 6 |
7 namespace ui { | 7 namespace ui { |
8 | 8 |
9 int GestureConfiguration::default_radius_ = 25; | 9 int GestureConfiguration::default_radius_ = 25; |
10 int GestureConfiguration::fling_max_cancel_to_down_time_in_ms_ = 400; | 10 int GestureConfiguration::fling_max_cancel_to_down_time_in_ms_ = 400; |
(...skipping 22 matching lines...) Expand all Loading... |
33 int GestureConfiguration::show_press_delay_in_ms_ = 150; | 33 int GestureConfiguration::show_press_delay_in_ms_ = 150; |
34 | 34 |
35 // TODO(jdduke): Disable and remove entirely when issues with intermittent | 35 // TODO(jdduke): Disable and remove entirely when issues with intermittent |
36 // scroll end detection on the Pixel are resolved, crbug.com/353702. | 36 // scroll end detection on the Pixel are resolved, crbug.com/353702. |
37 #if defined(OS_CHROMEOS) | 37 #if defined(OS_CHROMEOS) |
38 int GestureConfiguration::scroll_debounce_interval_in_ms_ = 30; | 38 int GestureConfiguration::scroll_debounce_interval_in_ms_ = 30; |
39 #else | 39 #else |
40 int GestureConfiguration::scroll_debounce_interval_in_ms_ = 0; | 40 int GestureConfiguration::scroll_debounce_interval_in_ms_ = 0; |
41 #endif | 41 #endif |
42 | 42 |
43 // Coefficients for a function that computes fling acceleration. | |
44 // These are empirically determined defaults. Do not adjust without | |
45 // additional empirical validation. | |
46 float GestureConfiguration::fling_acceleration_curve_coefficients_[ | |
47 NumAccelParams] = { | |
48 0.0166667f, | |
49 -0.0238095f, | |
50 0.0452381f, | |
51 0.8f | |
52 }; | |
53 | |
54 } // namespace ui | 43 } // namespace ui |
OLD | NEW |