OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 // This file intentionally does not have header guards because this file | |
6 // is meant to be included inside a macro to generate enum values. | |
7 | |
8 // This file contains a list of GestureEventType's usable by ContentViewCore, | |
9 // providing a direct mapping to and from their corresponding | |
10 // blink::WebGestureEvent types. | |
11 | |
12 #ifndef DEFINE_GESTURE_EVENT_TYPE | |
13 #error "Please define DEFINE_GESTURE_EVENT_TYPE before including this file." | |
14 #endif | |
15 | |
16 DEFINE_GESTURE_EVENT_TYPE(SHOW_PRESS, 0) | |
17 DEFINE_GESTURE_EVENT_TYPE(DOUBLE_TAP, 1) | |
18 DEFINE_GESTURE_EVENT_TYPE(SINGLE_TAP_UP, 2) | |
19 DEFINE_GESTURE_EVENT_TYPE(SINGLE_TAP_CONFIRMED, 3) | |
20 DEFINE_GESTURE_EVENT_TYPE(SINGLE_TAP_UNCONFIRMED, 4) | |
21 DEFINE_GESTURE_EVENT_TYPE(LONG_PRESS, 5) | |
22 DEFINE_GESTURE_EVENT_TYPE(SCROLL_START, 6) | |
23 DEFINE_GESTURE_EVENT_TYPE(SCROLL_BY, 7) | |
24 DEFINE_GESTURE_EVENT_TYPE(SCROLL_END, 8) | |
25 DEFINE_GESTURE_EVENT_TYPE(FLING_START, 9) | |
26 DEFINE_GESTURE_EVENT_TYPE(FLING_CANCEL, 10) | |
27 DEFINE_GESTURE_EVENT_TYPE(FLING_END, 11) | |
28 DEFINE_GESTURE_EVENT_TYPE(PINCH_BEGIN, 12) | |
29 DEFINE_GESTURE_EVENT_TYPE(PINCH_BY, 13) | |
30 DEFINE_GESTURE_EVENT_TYPE(PINCH_END, 14) | |
31 DEFINE_GESTURE_EVENT_TYPE(TAP_CANCEL, 15) | |
32 DEFINE_GESTURE_EVENT_TYPE(LONG_TAP, 16) | |
33 DEFINE_GESTURE_EVENT_TYPE(TAP_DOWN, 17) | |
OLD | NEW |