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, |
(...skipping 28 matching lines...) Expand all Loading... |
39 float distance_max; | 39 float distance_max; |
40 float radius_major; | 40 float radius_major; |
41 float radius_minor; | 41 float radius_minor; |
42 float radius_min; | 42 float radius_min; |
43 float radius_max; | 43 float radius_max; |
44 float orientation; | 44 float orientation; |
45 float tilt; | 45 float tilt; |
46 }; | 46 }; |
47 | 47 |
48 struct GestureData { | 48 struct GestureData { |
| 49 int32 primary_pointer; |
49 float x; | 50 float x; |
50 float y; | 51 float y; |
51 float dx; | 52 float dx; |
52 float dy; | 53 float dy; |
53 float velocityX; | 54 float velocityX; |
54 float velocityY; | 55 float velocityY; |
55 }; | 56 }; |
56 | 57 |
57 struct InputEvent { | 58 struct InputEvent { |
58 EventType type; | 59 EventType type; |
59 int64 time_stamp; | 60 int64 time_stamp; |
60 PointerData? pointer_data; | 61 PointerData? pointer_data; |
61 GestureData? gesture_data; | 62 GestureData? gesture_data; |
62 }; | 63 }; |
OLD | NEW |