| 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 mus.mojom; | 5 module ui.mojom; |
| 6 | 6 |
| 7 import "components/mus/public/interfaces/input_event_constants.mojom"; | 7 import "ui/events/mojo/event_constants.mojom"; |
| 8 import "components/mus/public/interfaces/input_key_codes.mojom"; | 8 import "ui/events/mojo/keyboard_codes.mojom"; |
| 9 | 9 |
| 10 struct KeyData { | 10 struct KeyData { |
| 11 // The chromium event key code; these values are from the ui/ KeyCode enum, | 11 // The chromium event key code; these values are from the ui/ KeyCode enum, |
| 12 // which has the fun property of being neither consistently the Windows key | 12 // which has the fun property of being neither consistently the Windows key |
| 13 // code, nor the X11 keycodes. (This value is consistent across platforms | 13 // code, nor the X11 keycodes. (This value is consistent across platforms |
| 14 // for basic ASCII characters; it will differ for modifiers. We don't define | 14 // for basic ASCII characters; it will differ for modifiers. We don't define |
| 15 // this as a mojo enum because mojom doesn't appear to have a platform | 15 // this as a mojo enum because mojom doesn't appear to have a platform |
| 16 // dependent preprocessor yet.) | 16 // dependent preprocessor yet.) |
| 17 // | 17 // |
| 18 // TODO(erg): Remove this, and declare Win32 keycodes correct by fiat. We can | 18 // TODO(erg): Remove this, and declare Win32 keycodes correct by fiat. We can |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // | 110 // |
| 111 // TODO(sky): parts of this should move to PointerData. | 111 // TODO(sky): parts of this should move to PointerData. |
| 112 int32 flags; | 112 int32 flags; |
| 113 // Time in microseconds from when the platform was started. | 113 // Time in microseconds from when the platform was started. |
| 114 // This value accurately orders events w.r.t. to each other but | 114 // This value accurately orders events w.r.t. to each other but |
| 115 // does not position them at an absolute time. | 115 // does not position them at an absolute time. |
| 116 int64 time_stamp; | 116 int64 time_stamp; |
| 117 KeyData? key_data; | 117 KeyData? key_data; |
| 118 PointerData? pointer_data; | 118 PointerData? pointer_data; |
| 119 }; | 119 }; |
| OLD | NEW |