| 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 { |
| 11 Point in_view_location; | 11 Point in_view_location; |
| 12 Point screen_location; | 12 Point? screen_location; |
| 13 }; | 13 }; |
| 14 | 14 |
| 15 struct KeyData { | 15 struct KeyData { |
| 16 int32 key_code; | 16 int32 key_code; |
| 17 bool is_char; | 17 bool is_char; |
| 18 }; | 18 }; |
| 19 | 19 |
| 20 struct TouchData { | 20 struct TouchData { |
| 21 int32 pointer_id; | 21 int32 pointer_id; |
| 22 }; | 22 }; |
| 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 |