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 CONTENT_BROWSER_ANDROID_GESTURE_EVENT_TYPE_ | 5 #ifndef CONTENT_BROWSER_ANDROID_GESTURE_EVENT_TYPE_ |
6 #define CONTENT_BROWSER_ANDROID_GESTURE_EVENT_TYPE_ | 6 #define CONTENT_BROWSER_ANDROID_GESTURE_EVENT_TYPE_ |
7 | 7 |
8 namespace content { | 8 namespace content { |
9 | 9 |
| 10 // This file contains a list of GestureEventType's usable by ContentViewCore, |
| 11 // providing a direct mapping to and from their corresponding |
| 12 // blink::WebGestureEvent types. |
| 13 // |
| 14 // A Java counterpart will be generated for this enum. |
| 15 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.content.browser |
10 enum GestureEventType { | 16 enum GestureEventType { |
11 #define DEFINE_GESTURE_EVENT_TYPE(name, value) name = value, | 17 GESTURE_EVENT_TYPE_SHOW_PRESS, |
12 #include "content/browser/android/gesture_event_type_list.h" | 18 GESTURE_EVENT_TYPE_DOUBLE_TAP, |
13 #undef DEFINE_GESTURE_EVENT_TYPE | 19 GESTURE_EVENT_TYPE_SINGLE_TAP_UP, |
| 20 GESTURE_EVENT_TYPE_SINGLE_TAP_CONFIRMED, |
| 21 GESTURE_EVENT_TYPE_SINGLE_TAP_UNCONFIRMED, |
| 22 GESTURE_EVENT_TYPE_LONG_PRESS, |
| 23 GESTURE_EVENT_TYPE_SCROLL_START, |
| 24 GESTURE_EVENT_TYPE_SCROLL_BY, |
| 25 GESTURE_EVENT_TYPE_SCROLL_END, |
| 26 GESTURE_EVENT_TYPE_FLING_START, |
| 27 GESTURE_EVENT_TYPE_FLING_CANCEL, |
| 28 GESTURE_EVENT_TYPE_FLING_END, |
| 29 GESTURE_EVENT_TYPE_PINCH_BEGIN, |
| 30 GESTURE_EVENT_TYPE_PINCH_BY, |
| 31 GESTURE_EVENT_TYPE_PINCH_END, |
| 32 GESTURE_EVENT_TYPE_TAP_CANCEL, |
| 33 GESTURE_EVENT_TYPE_LONG_TAP, |
| 34 GESTURE_EVENT_TYPE_TAP_DOWN, |
14 }; | 35 }; |
15 | 36 |
16 } // namespace content | 37 } // namespace content |
17 | 38 |
18 #endif // CONTENT_BROWSER_ANDROID_GESTURE_EVENT_TYPE_ | 39 #endif // CONTENT_BROWSER_ANDROID_GESTURE_EVENT_TYPE_ |
19 | 40 |
OLD | NEW |