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 #ifndef UI_EVENTS_GESTURES_GESTURE_CONFIGURATION_H_ | 5 #ifndef UI_EVENTS_GESTURES_GESTURE_CONFIGURATION_H_ |
6 #define UI_EVENTS_GESTURES_GESTURE_CONFIGURATION_H_ | 6 #define UI_EVENTS_GESTURES_GESTURE_CONFIGURATION_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "ui/events/events_base_export.h" | 9 #include "ui/events/events_base_export.h" |
10 | 10 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 } | 175 } |
176 static void set_scroll_prediction_seconds(double val) { | 176 static void set_scroll_prediction_seconds(double val) { |
177 scroll_prediction_seconds_ = val; | 177 scroll_prediction_seconds_ = val; |
178 } | 178 } |
179 static int show_press_delay_in_ms() { | 179 static int show_press_delay_in_ms() { |
180 return show_press_delay_in_ms_; | 180 return show_press_delay_in_ms_; |
181 } | 181 } |
182 static int set_show_press_delay_in_ms(int val) { | 182 static int set_show_press_delay_in_ms(int val) { |
183 return show_press_delay_in_ms_ = val; | 183 return show_press_delay_in_ms_ = val; |
184 } | 184 } |
| 185 static int scroll_debounce_interval_in_ms() { |
| 186 return scroll_debounce_interval_in_ms_; |
| 187 } |
| 188 static int set_scroll_debounce_interval_in_ms(int val) { |
| 189 return scroll_debounce_interval_in_ms_ = val; |
| 190 } |
185 static void set_fling_acceleration_curve_coefficients(int i, float val) { | 191 static void set_fling_acceleration_curve_coefficients(int i, float val) { |
186 fling_acceleration_curve_coefficients_[i] = val; | 192 fling_acceleration_curve_coefficients_[i] = val; |
187 } | 193 } |
188 static float fling_acceleration_curve_coefficients(int i) { | 194 static float fling_acceleration_curve_coefficients(int i) { |
189 return fling_acceleration_curve_coefficients_[i]; | 195 return fling_acceleration_curve_coefficients_[i]; |
190 } | 196 } |
191 static float fling_velocity_cap() { | 197 static float fling_velocity_cap() { |
192 return fling_velocity_cap_; | 198 return fling_velocity_cap_; |
193 } | 199 } |
194 static void set_fling_velocity_cap(float val) { | 200 static void set_fling_velocity_cap(float val) { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 static double min_scroll_delta_squared_; | 249 static double min_scroll_delta_squared_; |
244 static float min_scroll_velocity_; | 250 static float min_scroll_velocity_; |
245 static double min_swipe_speed_; | 251 static double min_swipe_speed_; |
246 static double min_touch_down_duration_in_seconds_for_click_; | 252 static double min_touch_down_duration_in_seconds_for_click_; |
247 static int min_scaling_span_in_pixels_; | 253 static int min_scaling_span_in_pixels_; |
248 static int points_buffered_for_velocity_; | 254 static int points_buffered_for_velocity_; |
249 static double rail_break_proportion_; | 255 static double rail_break_proportion_; |
250 static double rail_start_proportion_; | 256 static double rail_start_proportion_; |
251 static double scroll_prediction_seconds_; | 257 static double scroll_prediction_seconds_; |
252 static int show_press_delay_in_ms_; | 258 static int show_press_delay_in_ms_; |
| 259 static int scroll_debounce_interval_in_ms_; |
| 260 |
253 static float fling_acceleration_curve_coefficients_[NumAccelParams]; | 261 static float fling_acceleration_curve_coefficients_[NumAccelParams]; |
254 static float fling_velocity_cap_; | 262 static float fling_velocity_cap_; |
255 // TODO(davemoore): Move into chrome/browser/ui. | 263 // TODO(davemoore): Move into chrome/browser/ui. |
256 static int tab_scrub_activation_delay_in_ms_; | 264 static int tab_scrub_activation_delay_in_ms_; |
257 | 265 |
258 DISALLOW_COPY_AND_ASSIGN(GestureConfiguration); | 266 DISALLOW_COPY_AND_ASSIGN(GestureConfiguration); |
259 }; | 267 }; |
260 | 268 |
261 } // namespace ui | 269 } // namespace ui |
262 | 270 |
263 #endif // UI_EVENTS_GESTURES_GESTURE_CONFIGURATION_H_ | 271 #endif // UI_EVENTS_GESTURES_GESTURE_CONFIGURATION_H_ |
OLD | NEW |