OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EVENT_CONSTANTS_H_ | 5 #ifndef UI_EVENTS_EVENT_CONSTANTS_H_ |
6 #define UI_EVENTS_EVENT_CONSTANTS_H_ | 6 #define UI_EVENTS_EVENT_CONSTANTS_H_ |
7 | 7 |
8 namespace ui { | 8 namespace ui { |
9 | 9 |
10 // Event types. (prefixed because of a conflict with windows headers) | 10 // Event types. (prefixed because of a conflict with windows headers) |
(...skipping 18 matching lines...) Expand all Loading... |
29 ET_TRANSLATED_KEY_RELEASE, | 29 ET_TRANSLATED_KEY_RELEASE, |
30 | 30 |
31 // GestureEvent types | 31 // GestureEvent types |
32 ET_GESTURE_SCROLL_BEGIN, | 32 ET_GESTURE_SCROLL_BEGIN, |
33 ET_GESTURE_TYPE_START = ET_GESTURE_SCROLL_BEGIN, | 33 ET_GESTURE_TYPE_START = ET_GESTURE_SCROLL_BEGIN, |
34 ET_GESTURE_SCROLL_END, | 34 ET_GESTURE_SCROLL_END, |
35 ET_GESTURE_SCROLL_UPDATE, | 35 ET_GESTURE_SCROLL_UPDATE, |
36 ET_GESTURE_TAP, | 36 ET_GESTURE_TAP, |
37 ET_GESTURE_TAP_DOWN, | 37 ET_GESTURE_TAP_DOWN, |
38 ET_GESTURE_TAP_CANCEL, | 38 ET_GESTURE_TAP_CANCEL, |
39 ET_GESTURE_TAP_UNCONFIRMED, // User tapped, but the tap delay hasn't expired. | 39 ET_GESTURE_TAP_UNCONFIRMED, // User tapped, but the tap delay hasn't expired. |
40 ET_GESTURE_DOUBLE_TAP, | 40 ET_GESTURE_DOUBLE_TAP, |
41 ET_GESTURE_BEGIN, // The first event sent when each finger is pressed. | 41 ET_GESTURE_BEGIN, // The first event sent when each finger is pressed. |
42 ET_GESTURE_END, // Sent for each released finger. | 42 ET_GESTURE_END, // Sent for each released finger. |
43 ET_GESTURE_TWO_FINGER_TAP, | 43 ET_GESTURE_TWO_FINGER_TAP, |
44 ET_GESTURE_PINCH_BEGIN, | 44 ET_GESTURE_PINCH_BEGIN, |
45 ET_GESTURE_PINCH_END, | 45 ET_GESTURE_PINCH_END, |
46 ET_GESTURE_PINCH_UPDATE, | 46 ET_GESTURE_PINCH_UPDATE, |
47 ET_GESTURE_LONG_PRESS, | 47 ET_GESTURE_LONG_PRESS, |
48 ET_GESTURE_LONG_TAP, | 48 ET_GESTURE_LONG_TAP, |
49 // A SWIPE gesture can happen at the end of a touch sequence involving one or | 49 // A SWIPE gesture can happen at the end of a touch sequence involving one or |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 }; | 142 }; |
143 | 143 |
144 // Device ID for Touch and Key Events. | 144 // Device ID for Touch and Key Events. |
145 enum EventDeviceId { | 145 enum EventDeviceId { |
146 ED_UNKNOWN_DEVICE = -1 | 146 ED_UNKNOWN_DEVICE = -1 |
147 }; | 147 }; |
148 | 148 |
149 } // namespace ui | 149 } // namespace ui |
150 | 150 |
151 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ | 151 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ |
OLD | NEW |