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 13 matching lines...) Expand all Loading... |
63 ET_GESTURE_TYPE_END = ET_SCROLL_FLING_CANCEL, | 63 ET_GESTURE_TYPE_END = ET_SCROLL_FLING_CANCEL, |
64 | 64 |
65 // Sent by the system to indicate any modal type operations, such as drag and | 65 // Sent by the system to indicate any modal type operations, such as drag and |
66 // drop or menus, should stop. | 66 // drop or menus, should stop. |
67 ET_CANCEL_MODE, | 67 ET_CANCEL_MODE, |
68 | 68 |
69 // Sent by the CrOS gesture library for interesting patterns that we want | 69 // Sent by the CrOS gesture library for interesting patterns that we want |
70 // to track with the UMA system. | 70 // to track with the UMA system. |
71 ET_UMA_DATA, | 71 ET_UMA_DATA, |
72 | 72 |
| 73 // This is an X11 event. |
| 74 ET_X_RAW_EVENT, |
| 75 |
73 // Must always be last. User namespace starts above this value. | 76 // Must always be last. User namespace starts above this value. |
74 // See ui::RegisterCustomEventType(). | 77 // See ui::RegisterCustomEventType(). |
75 ET_LAST | 78 ET_LAST |
76 }; | 79 }; |
77 | 80 |
78 // Event flags currently supported | 81 // Event flags currently supported |
79 enum EventFlags { | 82 enum EventFlags { |
80 EF_NONE = 0, // Used to denote no flags explicitly | 83 EF_NONE = 0, // Used to denote no flags explicitly |
81 EF_CAPS_LOCK_DOWN = 1 << 0, | 84 EF_CAPS_LOCK_DOWN = 1 << 0, |
82 EF_SHIFT_DOWN = 1 << 1, | 85 EF_SHIFT_DOWN = 1 << 1, |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 }; | 140 }; |
138 | 141 |
139 // Device ID for Touch and Key Events. | 142 // Device ID for Touch and Key Events. |
140 enum EventDeviceId { | 143 enum EventDeviceId { |
141 ED_UNKNOWN_DEVICE = -1 | 144 ED_UNKNOWN_DEVICE = -1 |
142 }; | 145 }; |
143 | 146 |
144 } // namespace ui | 147 } // namespace ui |
145 | 148 |
146 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ | 149 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ |
OLD | NEW |