OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/gesture_detection/gesture_configuration.h" | 5 #include "ui/events/gesture_detection/gesture_configuration.h" |
6 | 6 |
7 namespace ui { | 7 namespace ui { |
8 | 8 |
9 GestureConfiguration::GestureConfiguration() | 9 GestureConfiguration::GestureConfiguration() |
10 : default_radius_(25), | 10 : default_radius_(25), |
| 11 double_tap_enabled_(false), |
11 double_tap_timeout_in_ms_(400), | 12 double_tap_timeout_in_ms_(400), |
12 fling_max_cancel_to_down_time_in_ms_(400), | 13 fling_max_cancel_to_down_time_in_ms_(400), |
13 fling_max_tap_gap_time_in_ms_(200), | 14 fling_max_tap_gap_time_in_ms_(200), |
14 gesture_begin_end_types_enabled_(false), | 15 gesture_begin_end_types_enabled_(false), |
15 long_press_time_in_ms_(1000), | 16 long_press_time_in_ms_(1000), |
16 max_distance_between_taps_for_double_tap_(20), | 17 max_distance_between_taps_for_double_tap_(20), |
17 max_distance_for_two_finger_tap_in_pixels_(300), | 18 max_distance_for_two_finger_tap_in_pixels_(300), |
18 max_fling_velocity_(17000.0f), | 19 max_fling_velocity_(17000.0f), |
19 max_gesture_bounds_length_(0), | 20 max_gesture_bounds_length_(0), |
20 max_separation_for_gesture_touches_in_pixels_(150), | 21 max_separation_for_gesture_touches_in_pixels_(150), |
(...skipping 26 matching lines...) Expand all Loading... |
47 swipe_enabled_(false), | 48 swipe_enabled_(false), |
48 tab_scrub_activation_delay_in_ms_(200), | 49 tab_scrub_activation_delay_in_ms_(200), |
49 two_finger_tap_enabled_(false), | 50 two_finger_tap_enabled_(false), |
50 velocity_tracker_strategy_(VelocityTracker::Strategy::STRATEGY_DEFAULT) { | 51 velocity_tracker_strategy_(VelocityTracker::Strategy::STRATEGY_DEFAULT) { |
51 } | 52 } |
52 | 53 |
53 GestureConfiguration::~GestureConfiguration() { | 54 GestureConfiguration::~GestureConfiguration() { |
54 } | 55 } |
55 | 56 |
56 } // namespace ui | 57 } // namespace ui |
OLD | NEW |