Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 module sky; | |
| 6 | |
| 7 enum EventType { | |
| 8 UNKNOWN, | |
| 9 POINTER_DOWN, | |
| 10 POINTER_UP, | |
| 11 POINTER_MOVE, | |
| 12 POINTER_CANCEL, | |
| 13 }; | |
| 14 | |
| 15 enum PointerKind { | |
| 16 TOUCH, | |
| 17 }; | |
| 18 | |
| 19 struct PointerData { | |
| 20 int32 pointer; | |
| 21 PointerKind kind; | |
| 22 float x; | |
| 23 float y; | |
| 24 int32 buttons; | |
| 25 float pressure; | |
| 26 float pressure_min; | |
| 27 float pressure_max; | |
| 28 float distance; | |
| 29 float distance_min; | |
| 30 float distance_max; | |
| 31 float radius_major; | |
| 32 float radius_minor; | |
| 33 float radius_min; | |
| 34 float radius_max; | |
| 35 float orientation; | |
| 36 float tilt; | |
| 37 }; | |
| 38 | |
| 39 struct InputEvent { | |
| 40 EventType type; | |
| 41 int64 time_stamp; | |
| 42 PointerData? pointer_data; | |
| 43 }; | |
| OLD | NEW |