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 #ifndef UI_EVENTS_GESTURE_DETECTION_GESTURE_PROVIDER_CONFIG_HELPER_H_ | 5 #ifndef UI_EVENTS_GESTURE_DETECTION_GESTURE_PROVIDER_CONFIG_HELPER_H_ |
6 #define UI_EVENTS_GESTURE_DETECTION_GESTURE_PROVIDER_CONFIG_HELPER_H_ | 6 #define UI_EVENTS_GESTURE_DETECTION_GESTURE_PROVIDER_CONFIG_HELPER_H_ |
7 | 7 |
8 #include "ui/events/gesture_detection/gesture_detection_export.h" | 8 #include "ui/events/gesture_detection/gesture_detection_export.h" |
9 #include "ui/events/gesture_detection/gesture_detector.h" | 9 #include "ui/events/gesture_detection/gesture_detector.h" |
10 #include "ui/events/gesture_detection/gesture_provider.h" | 10 #include "ui/events/gesture_detection/gesture_provider.h" |
11 #include "ui/events/gesture_detection/scale_gesture_detector.h" | 11 #include "ui/events/gesture_detection/scale_gesture_detector.h" |
12 | 12 |
13 namespace ui { | 13 namespace ui { |
14 | 14 |
15 GESTURE_DETECTION_EXPORT GestureProvider::Config DefaultGestureProviderConfig(); | 15 enum class GestureProviderConfigType { |
| 16 CURRENT_PLATFORM, // Parameters tailored for the current platform. |
| 17 GENERIC_DESKTOP, // Parameters typical for a desktop machine. |
| 18 GENERIC_MOBILE // Parameters typical for a mobile device (phone/tablet). |
| 19 }; |
| 20 |
| 21 GESTURE_DETECTION_EXPORT GestureProvider::Config GetGestureProviderConfig( |
| 22 GestureProviderConfigType); |
16 | 23 |
17 } // namespace ui | 24 } // namespace ui |
18 | 25 |
19 #endif // UI_EVENTS_GESTURE_DETECTION_GESTURE_PROVIDER_CONFIG_HELPER_H_ | 26 #endif // UI_EVENTS_GESTURE_DETECTION_GESTURE_PROVIDER_CONFIG_HELPER_H_ |
OLD | NEW |