| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // Used for devices that support wheels. Ranges from -1 to 1. | 63 // Used for devices that support wheels. Ranges from -1 to 1. |
| 64 float horizontal_wheel; | 64 float horizontal_wheel; |
| 65 float vertical_wheel; | 65 float vertical_wheel; |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 struct Event { | 68 struct Event { |
| 69 // TODO(sky): rename to type. | 69 // TODO(sky): rename to type. |
| 70 EventType action; | 70 EventType action; |
| 71 // TODO(sky): parts of this should move to PointerData. | 71 // TODO(sky): parts of this should move to PointerData. |
| 72 EventFlags flags; | 72 EventFlags flags; |
| 73 // Time the event was delivered. The time is in milliseconds and corresponds |
| 74 // to the uptime of the machine. |
| 73 int64 time_stamp; | 75 int64 time_stamp; |
| 74 KeyData? key_data; | 76 KeyData? key_data; |
| 75 PointerData? pointer_data; | 77 PointerData? pointer_data; |
| 76 }; | 78 }; |
| OLD | NEW |