Chromium Code Reviews| 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 21 matching lines...) Expand all Loading... | |
| 32 // PointerEvent types | 32 // PointerEvent types |
| 33 ET_POINTER_DOWN, | 33 ET_POINTER_DOWN, |
| 34 ET_POINTER_MOVED, | 34 ET_POINTER_MOVED, |
| 35 ET_POINTER_UP, | 35 ET_POINTER_UP, |
| 36 ET_POINTER_CANCELLED, | 36 ET_POINTER_CANCELLED, |
| 37 ET_POINTER_ENTERED, | 37 ET_POINTER_ENTERED, |
| 38 ET_POINTER_EXITED, | 38 ET_POINTER_EXITED, |
| 39 ET_POINTER_WHEEL_CHANGED, | 39 ET_POINTER_WHEEL_CHANGED, |
| 40 ET_POINTER_CAPTURE_CHANGED, | 40 ET_POINTER_CAPTURE_CHANGED, |
| 41 | 41 |
| 42 // GamepadEvent types | |
| 43 ET_GAMEPAD_BTN_PRESSED, | |
| 44 ET_GAMEPAD_BTN_RELEASED, | |
| 45 ET_GAMEPAD_ABS_MOVED, | |
| 46 ET_GAMEPAD_FRAME, | |
|
sadrul
2017/04/10 18:14:05
What's GAMEPAD_FRAME event?
jkwang
2017/04/10 18:19:08
It's essentially a successful sync (syn_reported i
dtapuska
2017/04/10 19:13:35
Is this mapped to a vsync signal?
jkwang
2017/04/10 20:07:47
Sorry, I am not aware of vsync signal. Could you p
sadrul
2017/04/12 18:03:58
OK. Can this be handled from the evdev-handler? Fo
jkwang
2017/04/12 20:51:55
Yeah. I took a look at how Touch EV_SYN is handled
sadrul
2017/04/12 21:26:32
The spec says "A client is expected to accumulate
jkwang
2017/04/12 21:41:19
Sorry, there is no draft CL yet. But it will be ve
| |
| 47 | |
| 42 // GestureEvent types | 48 // GestureEvent types |
| 43 ET_GESTURE_SCROLL_BEGIN, | 49 ET_GESTURE_SCROLL_BEGIN, |
| 44 ET_GESTURE_TYPE_START = ET_GESTURE_SCROLL_BEGIN, | 50 ET_GESTURE_TYPE_START = ET_GESTURE_SCROLL_BEGIN, |
| 45 ET_GESTURE_SCROLL_END, | 51 ET_GESTURE_SCROLL_END, |
| 46 ET_GESTURE_SCROLL_UPDATE, | 52 ET_GESTURE_SCROLL_UPDATE, |
| 47 ET_GESTURE_TAP, | 53 ET_GESTURE_TAP, |
| 48 ET_GESTURE_TAP_DOWN, | 54 ET_GESTURE_TAP_DOWN, |
| 49 ET_GESTURE_TAP_CANCEL, | 55 ET_GESTURE_TAP_CANCEL, |
| 50 ET_GESTURE_TAP_UNCONFIRMED, // User tapped, but the tap delay hasn't expired. | 56 ET_GESTURE_TAP_UNCONFIRMED, // User tapped, but the tap delay hasn't expired. |
| 51 ET_GESTURE_DOUBLE_TAP, | 57 ET_GESTURE_DOUBLE_TAP, |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 200 // Device type for gesture events. | 206 // Device type for gesture events. |
| 201 enum class GestureDeviceType : int { | 207 enum class GestureDeviceType : int { |
| 202 DEVICE_UNKNOWN = 0, | 208 DEVICE_UNKNOWN = 0, |
| 203 DEVICE_TOUCHPAD, | 209 DEVICE_TOUCHPAD, |
| 204 DEVICE_TOUCHSCREEN, | 210 DEVICE_TOUCHSCREEN, |
| 205 }; | 211 }; |
| 206 | 212 |
| 207 } // namespace ui | 213 } // namespace ui |
| 208 | 214 |
| 209 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ | 215 #endif // UI_EVENTS_EVENT_CONSTANTS_H_ |
| OLD | NEW |