| 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 17 matching lines...) Expand all Loading... |
| 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), | 31 fling_touchpad_tap_suppression_enabled_(false), |
| 32 fling_touchscreen_tap_suppression_enabled_(false), | 32 fling_touchscreen_tap_suppression_enabled_(false), |
| 33 fling_max_cancel_to_down_time_in_ms_(400), | 33 fling_max_cancel_to_down_time_in_ms_(400), |
| 34 fling_max_tap_gap_time_in_ms_(200), | 34 fling_max_tap_gap_time_in_ms_(200), |
| 35 gesture_begin_end_types_enabled_(false), | 35 gesture_begin_end_types_enabled_(false), |
| 36 long_press_time_in_ms_(1000), | 36 long_press_time_in_ms_(1000), |
| 37 max_distance_between_taps_for_double_tap_(20), | 37 max_distance_between_taps_for_double_tap_(20), |
| 38 max_tap_count_(3), |
| 38 max_distance_for_two_finger_tap_in_pixels_(300), | 39 max_distance_for_two_finger_tap_in_pixels_(300), |
| 39 max_fling_velocity_(17000.0f), | 40 max_fling_velocity_(17000.0f), |
| 40 max_gesture_bounds_length_(0), | 41 max_gesture_bounds_length_(0), |
| 41 max_separation_for_gesture_touches_in_pixels_(150), | 42 max_separation_for_gesture_touches_in_pixels_(150), |
| 42 max_swipe_deviation_angle_(20), | 43 max_swipe_deviation_angle_(20), |
| 43 max_time_between_double_click_in_ms_(700), | 44 max_time_between_double_click_in_ms_(700), |
| 44 max_touch_down_duration_for_click_in_ms_(800), | 45 max_touch_down_duration_for_click_in_ms_(800), |
| 45 max_touch_move_in_pixels_for_click_(15), | 46 max_touch_move_in_pixels_for_click_(15), |
| 46 min_distance_for_pinch_scroll_in_pixels_(20), | 47 min_distance_for_pinch_scroll_in_pixels_(20), |
| 47 min_fling_velocity_(30.0f), | 48 min_fling_velocity_(30.0f), |
| (...skipping 20 matching lines...) Expand all Loading... |
| 68 swipe_enabled_(false), | 69 swipe_enabled_(false), |
| 69 tab_scrub_activation_delay_in_ms_(200), | 70 tab_scrub_activation_delay_in_ms_(200), |
| 70 two_finger_tap_enabled_(false), | 71 two_finger_tap_enabled_(false), |
| 71 velocity_tracker_strategy_(VelocityTracker::Strategy::STRATEGY_DEFAULT) { | 72 velocity_tracker_strategy_(VelocityTracker::Strategy::STRATEGY_DEFAULT) { |
| 72 } | 73 } |
| 73 | 74 |
| 74 GestureConfiguration::~GestureConfiguration() { | 75 GestureConfiguration::~GestureConfiguration() { |
| 75 } | 76 } |
| 76 | 77 |
| 77 } // namespace ui | 78 } // namespace ui |
| OLD | NEW |