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 #ifndef UI_BASE_GESTURES_GESTURE_CONFIGURATION_H_ | 5 #ifndef UI_BASE_GESTURES_GESTURE_CONFIGURATION_H_ |
6 #define UI_BASE_GESTURES_GESTURE_CONFIGURATION_H_ | 6 #define UI_BASE_GESTURES_GESTURE_CONFIGURATION_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "ui/base/ui_export.h" | 9 #include "ui/base/ui_export.h" |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 } | 66 } |
67 static void set_max_touch_down_duration_in_seconds_for_click(double val) { | 67 static void set_max_touch_down_duration_in_seconds_for_click(double val) { |
68 max_touch_down_duration_in_seconds_for_click_ = val; | 68 max_touch_down_duration_in_seconds_for_click_ = val; |
69 } | 69 } |
70 static double max_touch_move_in_pixels_for_click() { | 70 static double max_touch_move_in_pixels_for_click() { |
71 return max_touch_move_in_pixels_for_click_; | 71 return max_touch_move_in_pixels_for_click_; |
72 } | 72 } |
73 static void set_max_touch_move_in_pixels_for_click(double val) { | 73 static void set_max_touch_move_in_pixels_for_click(double val) { |
74 max_touch_move_in_pixels_for_click_ = val; | 74 max_touch_move_in_pixels_for_click_ = val; |
75 } | 75 } |
| 76 static double max_distance_between_taps_for_double_tap() { |
| 77 return max_distance_between_taps_for_double_tap_; |
| 78 } |
| 79 static void set_max_distance_between_taps_for_double_tap(double val) { |
| 80 max_distance_between_taps_for_double_tap_ = val; |
| 81 } |
76 static double min_distance_for_pinch_scroll_in_pixels() { | 82 static double min_distance_for_pinch_scroll_in_pixels() { |
77 return min_distance_for_pinch_scroll_in_pixels_; | 83 return min_distance_for_pinch_scroll_in_pixels_; |
78 } | 84 } |
79 static void set_min_distance_for_pinch_scroll_in_pixels(double val) { | 85 static void set_min_distance_for_pinch_scroll_in_pixels(double val) { |
80 min_distance_for_pinch_scroll_in_pixels_ = val; | 86 min_distance_for_pinch_scroll_in_pixels_ = val; |
81 } | 87 } |
82 static double min_flick_speed_squared() { | 88 static double min_flick_speed_squared() { |
83 return min_flick_speed_squared_; | 89 return min_flick_speed_squared_; |
84 } | 90 } |
85 static void set_min_flick_speed_squared(double val) { | 91 static void set_min_flick_speed_squared(double val) { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 // forming an ET_GESTURE_TAP event. | 164 // forming an ET_GESTURE_TAP event. |
159 static int max_radius_; | 165 static int max_radius_; |
160 | 166 |
161 static double long_press_time_in_seconds_; | 167 static double long_press_time_in_seconds_; |
162 static double semi_long_press_time_in_seconds_; | 168 static double semi_long_press_time_in_seconds_; |
163 static double max_seconds_between_double_click_; | 169 static double max_seconds_between_double_click_; |
164 static double max_separation_for_gesture_touches_in_pixels_; | 170 static double max_separation_for_gesture_touches_in_pixels_; |
165 static double max_swipe_deviation_ratio_; | 171 static double max_swipe_deviation_ratio_; |
166 static double max_touch_down_duration_in_seconds_for_click_; | 172 static double max_touch_down_duration_in_seconds_for_click_; |
167 static double max_touch_move_in_pixels_for_click_; | 173 static double max_touch_move_in_pixels_for_click_; |
| 174 static double max_distance_between_taps_for_double_tap_; |
168 static double min_distance_for_pinch_scroll_in_pixels_; | 175 static double min_distance_for_pinch_scroll_in_pixels_; |
169 static double min_flick_speed_squared_; | 176 static double min_flick_speed_squared_; |
170 static double min_pinch_update_distance_in_pixels_; | 177 static double min_pinch_update_distance_in_pixels_; |
171 static double min_rail_break_velocity_; | 178 static double min_rail_break_velocity_; |
172 static double min_scroll_delta_squared_; | 179 static double min_scroll_delta_squared_; |
173 static double min_swipe_speed_; | 180 static double min_swipe_speed_; |
174 static double min_touch_down_duration_in_seconds_for_click_; | 181 static double min_touch_down_duration_in_seconds_for_click_; |
175 static int points_buffered_for_velocity_; | 182 static int points_buffered_for_velocity_; |
176 static double rail_break_proportion_; | 183 static double rail_break_proportion_; |
177 static double rail_start_proportion_; | 184 static double rail_start_proportion_; |
178 static double touchscreen_fling_acceleration_adjustment_; | 185 static double touchscreen_fling_acceleration_adjustment_; |
179 | 186 |
180 DISALLOW_COPY_AND_ASSIGN(GestureConfiguration); | 187 DISALLOW_COPY_AND_ASSIGN(GestureConfiguration); |
181 }; | 188 }; |
182 | 189 |
183 } // namespace ui | 190 } // namespace ui |
184 | 191 |
185 #endif // UI_BASE_GESTURES_GESTURE_CONFIGURATION_H_ | 192 #endif // UI_BASE_GESTURES_GESTURE_CONFIGURATION_H_ |
OLD | NEW |