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 | 7 |
8 module mojo { | 8 module mojo { |
9 | 9 |
10 struct LocationData { | 10 struct LocationData { |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 struct MouseWheelData { | 24 struct MouseWheelData { |
25 int32 x_offset; | 25 int32 x_offset; |
26 int32 y_offset; | 26 int32 y_offset; |
27 }; | 27 }; |
28 | 28 |
29 struct Event { | 29 struct Event { |
30 EventType action; | 30 EventType action; |
31 EventFlags flags; | 31 EventFlags flags; |
32 int64 time_stamp; | 32 int64 time_stamp; |
33 LocationData location_data; | 33 LocationData? location_data; |
34 KeyData key_data; | 34 KeyData? key_data; |
35 TouchData touch_data; | 35 TouchData? touch_data; |
36 MouseWheelData wheel_data; | 36 MouseWheelData? wheel_data; |
37 }; | 37 }; |
38 | 38 |
39 } | 39 } |
OLD | NEW |