| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 mojo; | 5 module mojo; |
| 6 | 6 |
| 7 import "geometry/public/interfaces/geometry.mojom"; | 7 import "geometry/public/interfaces/geometry.mojom"; |
| 8 import "input_events/public/interfaces/input_event_constants.mojom"; | 8 import "input_events/public/interfaces/input_event_constants.mojom"; |
| 9 import "input_events/public/interfaces/input_key_codes.mojom"; | 9 import "input_events/public/interfaces/input_key_codes.mojom"; |
| 10 | 10 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 struct PointerData { | 50 struct PointerData { |
| 51 int32 pointer_id; | 51 int32 pointer_id; |
| 52 PointerKind kind; | 52 PointerKind kind; |
| 53 float x; | 53 float x; |
| 54 float y; | 54 float y; |
| 55 float pressure; | 55 float pressure; |
| 56 float radius_major; | 56 float radius_major; |
| 57 float radius_minor; | 57 float radius_minor; |
| 58 float orientation; |
| 58 // Used for devices that support wheels. Ranges from -1 to 1. | 59 // Used for devices that support wheels. Ranges from -1 to 1. |
| 59 float horizontal_wheel; | 60 float horizontal_wheel; |
| 60 float vertical_wheel; | 61 float vertical_wheel; |
| 61 }; | 62 }; |
| 62 | 63 |
| 63 struct Event { | 64 struct Event { |
| 64 // TODO(sky): rename to type. | 65 // TODO(sky): rename to type. |
| 65 EventType action; | 66 EventType action; |
| 66 // TODO(sky): parts of this should move to PointerData. | 67 // TODO(sky): parts of this should move to PointerData. |
| 67 EventFlags flags; | 68 EventFlags flags; |
| 68 int64 time_stamp; | 69 int64 time_stamp; |
| 69 KeyData? key_data; | 70 KeyData? key_data; |
| 70 PointerData? pointer_data; | 71 PointerData? pointer_data; |
| 71 }; | 72 }; |
| OLD | NEW |