| 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 namespace { | 8 namespace { |
| 9 | 9 |
| 10 GestureConfiguration* instance = nullptr; | 10 GestureConfiguration* instance = nullptr; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 if (instance) | 21 if (instance) |
| 22 return instance; | 22 return instance; |
| 23 | 23 |
| 24 return GestureConfiguration::GetPlatformSpecificInstance(); | 24 return GestureConfiguration::GetPlatformSpecificInstance(); |
| 25 } | 25 } |
| 26 | 26 |
| 27 GestureConfiguration::GestureConfiguration() | 27 GestureConfiguration::GestureConfiguration() |
| 28 : default_radius_(25), | 28 : default_radius_(25), |
| 29 double_tap_enabled_(false), | 29 double_tap_enabled_(false), |
| 30 double_tap_timeout_in_ms_(400), | 30 double_tap_timeout_in_ms_(400), |
| 31 fling_touchpad_tap_suppression_enabled_(false), |
| 32 fling_touchscreen_tap_suppression_enabled_(false), |
| 31 fling_max_cancel_to_down_time_in_ms_(400), | 33 fling_max_cancel_to_down_time_in_ms_(400), |
| 32 fling_max_tap_gap_time_in_ms_(200), | 34 fling_max_tap_gap_time_in_ms_(200), |
| 33 gesture_begin_end_types_enabled_(false), | 35 gesture_begin_end_types_enabled_(false), |
| 34 long_press_time_in_ms_(1000), | 36 long_press_time_in_ms_(1000), |
| 35 max_distance_between_taps_for_double_tap_(20), | 37 max_distance_between_taps_for_double_tap_(20), |
| 36 max_distance_for_two_finger_tap_in_pixels_(300), | 38 max_distance_for_two_finger_tap_in_pixels_(300), |
| 37 max_fling_velocity_(17000.0f), | 39 max_fling_velocity_(17000.0f), |
| 38 max_gesture_bounds_length_(0), | 40 max_gesture_bounds_length_(0), |
| 39 max_separation_for_gesture_touches_in_pixels_(150), | 41 max_separation_for_gesture_touches_in_pixels_(150), |
| 40 max_swipe_deviation_angle_(20), | 42 max_swipe_deviation_angle_(20), |
| (...skipping 25 matching lines...) Expand all Loading... |
| 66 swipe_enabled_(false), | 68 swipe_enabled_(false), |
| 67 tab_scrub_activation_delay_in_ms_(200), | 69 tab_scrub_activation_delay_in_ms_(200), |
| 68 two_finger_tap_enabled_(false), | 70 two_finger_tap_enabled_(false), |
| 69 velocity_tracker_strategy_(VelocityTracker::Strategy::STRATEGY_DEFAULT) { | 71 velocity_tracker_strategy_(VelocityTracker::Strategy::STRATEGY_DEFAULT) { |
| 70 } | 72 } |
| 71 | 73 |
| 72 GestureConfiguration::~GestureConfiguration() { | 74 GestureConfiguration::~GestureConfiguration() { |
| 73 } | 75 } |
| 74 | 76 |
| 75 } // namespace ui | 77 } // namespace ui |
| OLD | NEW |