| 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 [DartUriBase="mojo/services/input_events/public/interfaces"] |
| 5 module mojo; | 6 module mojo; |
| 6 | 7 |
| 7 import "geometry/public/interfaces/geometry.mojom"; | 8 import "geometry/public/interfaces/geometry.mojom"; |
| 8 import "input_events/public/interfaces/input_event_constants.mojom"; | 9 import "input_events/public/interfaces/input_event_constants.mojom"; |
| 9 import "input_events/public/interfaces/input_key_codes.mojom"; | 10 import "input_events/public/interfaces/input_key_codes.mojom"; |
| 10 | 11 |
| 11 struct KeyData { | 12 struct KeyData { |
| 12 // The chromium event key code; these values are from the ui/ KeyCode enum, | 13 // The chromium event key code; these values are from the ui/ KeyCode enum, |
| 13 // which has the fun property of being neither consistently the Windows key | 14 // which has the fun property of being neither consistently the Windows key |
| 14 // code, nor the X11 keycodes. (This value is consistent across platforms | 15 // code, nor the X11 keycodes. (This value is consistent across platforms |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // TODO(sky): rename to type. | 70 // TODO(sky): rename to type. |
| 70 EventType action; | 71 EventType action; |
| 71 // TODO(sky): parts of this should move to PointerData. | 72 // TODO(sky): parts of this should move to PointerData. |
| 72 EventFlags flags; | 73 EventFlags flags; |
| 73 // Time the event was delivered. The time is in milliseconds and corresponds | 74 // Time the event was delivered. The time is in milliseconds and corresponds |
| 74 // to the uptime of the machine. | 75 // to the uptime of the machine. |
| 75 int64 time_stamp; | 76 int64 time_stamp; |
| 76 KeyData? key_data; | 77 KeyData? key_data; |
| 77 PointerData? pointer_data; | 78 PointerData? pointer_data; |
| 78 }; | 79 }; |
| OLD | NEW |