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_config_helper.h" | 5 #include "ui/events/gesture_detection/gesture_config_helper.h" |
6 | 6 |
7 #include "ui/events/gestures/gesture_configuration.h" | 7 #include "ui/events/gestures/gesture_configuration.h" |
8 #include "ui/gfx/screen.h" | 8 #include "ui/gfx/screen.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 config.device_scale_factor = display.device_scale_factor(); | 51 config.device_scale_factor = display.device_scale_factor(); |
52 | 52 |
53 return config; | 53 return config; |
54 } | 54 } |
55 | 55 |
56 GestureProvider::Config DefaultGestureProviderConfig() { | 56 GestureProvider::Config DefaultGestureProviderConfig() { |
57 GestureProvider::Config config; | 57 GestureProvider::Config config; |
58 config.gesture_detector_config = DefaultGestureDetectorConfig(); | 58 config.gesture_detector_config = DefaultGestureDetectorConfig(); |
59 config.scale_gesture_detector_config = DefaultScaleGestureDetectorConfig(); | 59 config.scale_gesture_detector_config = DefaultScaleGestureDetectorConfig(); |
60 config.snap_scroll_controller_config = DefaultSnapScrollControllerConfig(); | 60 config.snap_scroll_controller_config = DefaultSnapScrollControllerConfig(); |
| 61 config.gesture_begin_end_types_enabled = true; |
61 return config; | 62 return config; |
62 } | 63 } |
63 | 64 |
64 } // namespace ui | 65 } // namespace ui |
OLD | NEW |