OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 module sky; | 5 module sky; |
6 | 6 |
7 enum EventType { | 7 enum EventType { |
8 UNKNOWN, | 8 UNKNOWN, |
9 POINTER_CANCEL, | 9 POINTER_CANCEL, |
10 POINTER_DOWN, | 10 POINTER_DOWN, |
11 POINTER_MOVE, | 11 POINTER_MOVE, |
12 POINTER_UP, | 12 POINTER_UP, |
13 GESTURE_FLING_CANCEL, | 13 GESTURE_FLING_CANCEL, |
14 GESTURE_FLING_START, | 14 GESTURE_FLING_START, |
15 GESTURE_LONG_PRESS, | 15 GESTURE_LONG_PRESS, |
16 GESTURE_SCROLL_BEGIN, | 16 GESTURE_SCROLL_BEGIN, |
17 GESTURE_SCROLL_END, | 17 GESTURE_SCROLL_END, |
18 GESTURE_SCROLL_UPDATE, | 18 GESTURE_SCROLL_UPDATE, |
19 GESTURE_SHOW_PRESS, | 19 GESTURE_SHOW_PRESS, |
20 GESTURE_TAP, | 20 GESTURE_TAP, |
21 GESTURE_TAP_DOWN, | 21 GESTURE_TAP_DOWN, |
| 22 BACK, |
22 }; | 23 }; |
23 | 24 |
24 enum PointerKind { | 25 enum PointerKind { |
25 TOUCH, | 26 TOUCH, |
26 }; | 27 }; |
27 | 28 |
28 struct PointerData { | 29 struct PointerData { |
29 int32 pointer; | 30 int32 pointer; |
30 PointerKind kind; | 31 PointerKind kind; |
31 float x; | 32 float x; |
(...skipping 22 matching lines...) Expand all Loading... |
54 float velocityX; | 55 float velocityX; |
55 float velocityY; | 56 float velocityY; |
56 }; | 57 }; |
57 | 58 |
58 struct InputEvent { | 59 struct InputEvent { |
59 EventType type; | 60 EventType type; |
60 int64 time_stamp; | 61 int64 time_stamp; |
61 PointerData? pointer_data; | 62 PointerData? pointer_data; |
62 GestureData? gesture_data; | 63 GestureData? gesture_data; |
63 }; | 64 }; |
OLD | NEW |