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 import "mojo/services/public/interfaces/geometry/geometry.mojom" | 5 import "mojo/services/public/interfaces/geometry/geometry.mojom" |
6 import "mojo/services/public/interfaces/input_events/input_event_constants.mojom
" | 6 import "mojo/services/public/interfaces/input_events/input_event_constants.mojom
" |
7 import "mojo/services/public/interfaces/input_events/input_key_codes.mojom" | 7 import "mojo/services/public/interfaces/input_events/input_key_codes.mojom" |
8 | 8 |
9 module mojo { | 9 module mojo { |
10 | 10 |
11 struct LocationData { | 11 struct LocationData { |
12 Point in_view_location; | 12 Point? in_view_location; |
13 Point? screen_location; | 13 Point? screen_location; |
14 }; | 14 }; |
15 | 15 |
16 struct KeyData { | 16 struct KeyData { |
17 // The chromium event key code; these values are from the ui/ KeyCode enum, | 17 // The chromium event key code; these values are from the ui/ KeyCode enum, |
18 // which has the fun property of being neither consistently the Windows key | 18 // which has the fun property of being neither consistently the Windows key |
19 // code, nor the X11 keycodes. (This value is consistent across platforms | 19 // code, nor the X11 keycodes. (This value is consistent across platforms |
20 // for basic ASCII characters; it will differ for modifiers. We don't define | 20 // for basic ASCII characters; it will differ for modifiers. We don't define |
21 // this as a mojo enum because mojom doesn't appear to have a platform | 21 // this as a mojo enum because mojom doesn't appear to have a platform |
22 // dependent preprocessor yet.) | 22 // dependent preprocessor yet.) |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 EventType action; | 60 EventType action; |
61 EventFlags flags; | 61 EventFlags flags; |
62 int64 time_stamp; | 62 int64 time_stamp; |
63 LocationData? location_data; | 63 LocationData? location_data; |
64 KeyData? key_data; | 64 KeyData? key_data; |
65 TouchData? touch_data; | 65 TouchData? touch_data; |
66 MouseWheelData? wheel_data; | 66 MouseWheelData? wheel_data; |
67 }; | 67 }; |
68 | 68 |
69 } | 69 } |
OLD | NEW |