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_ = 15; | 9 int GestureConfiguration::default_radius_ = 15; |
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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 // These are empirically determined defaults. Do not adjust without | 46 // These are empirically determined defaults. Do not adjust without |
47 // additional empirical validation. | 47 // additional empirical validation. |
48 float GestureConfiguration::fling_acceleration_curve_coefficients_[ | 48 float GestureConfiguration::fling_acceleration_curve_coefficients_[ |
49 NumAccelParams] = { | 49 NumAccelParams] = { |
50 0.0166667f, | 50 0.0166667f, |
51 -0.0238095f, | 51 -0.0238095f, |
52 0.0452381f, | 52 0.0452381f, |
53 0.8f | 53 0.8f |
54 }; | 54 }; |
55 | 55 |
| 56 // The touchpad / touchscreen fling profiles are a matched set |
| 57 // determined via UX experimentation. Do not modify without |
| 58 // first discussing with rjkroege@chromium.org or |
| 59 // wjmaclean@chromium.org. |
| 60 const float kDefaultAlpha = -5.70762e+03f; |
| 61 const float kDefaultBeta = 1.72e+02f; |
| 62 const float kDefaultGamma = 3.7e+00f; |
| 63 double GestureConfiguration::touchpad_fling_curve_alpha_ = kDefaultAlpha; |
| 64 double GestureConfiguration::touchpad_fling_curve_beta_ = kDefaultBeta; |
| 65 double GestureConfiguration::touchpad_fling_curve_gamma_ = kDefaultGamma; |
| 66 double GestureConfiguration::touchscreen_fling_curve_alpha_ = kDefaultAlpha; |
| 67 double GestureConfiguration::touchscreen_fling_curve_beta_ = kDefaultBeta; |
| 68 double GestureConfiguration::touchscreen_fling_curve_gamma_ = kDefaultGamma; |
56 } // namespace ui | 69 } // namespace ui |
OLD | NEW |