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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 struct GestureData { | 49 struct GestureData { |
50 int32 primary_pointer; | 50 int32 primary_pointer; |
51 float x; | 51 float x; |
52 float y; | 52 float y; |
53 float dx; | 53 float dx; |
54 float dy; | 54 float dy; |
55 float velocityX; | 55 float velocityX; |
56 float velocityY; | 56 float velocityY; |
57 }; | 57 }; |
58 | 58 |
| 59 // TODO(abarth): Should we have a malloc-free way of creating an input event |
| 60 // message? What we have now could stress out the Android Java GC. |
59 struct InputEvent { | 61 struct InputEvent { |
60 EventType type; | 62 EventType type; |
61 int64 time_stamp; | 63 int64 time_stamp; |
62 PointerData? pointer_data; | 64 PointerData? pointer_data; |
63 GestureData? gesture_data; | 65 GestureData? gesture_data; |
64 }; | 66 }; |
OLD | NEW |