| 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 mojo; | 5 module mojo; |
| 6 | 6 |
| 7 import "geometry/public/interfaces/geometry.mojom"; | 7 import "geometry/public/interfaces/geometry.mojom"; |
| 8 import "input_events/public/interfaces/input_event_constants.mojom"; | 8 import "input_events/public/interfaces/input_event_constants.mojom"; |
| 9 import "input_events/public/interfaces/input_key_codes.mojom"; | 9 import "input_events/public/interfaces/input_key_codes.mojom"; |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 // Like |text|, but unmodified by concurrently held modifier keys (except | 50 // Like |text|, but unmodified by concurrently held modifier keys (except |
| 51 // shift). Corresponds to blink::WebKeyboardEvent::unmodifiedText. | 51 // shift). Corresponds to blink::WebKeyboardEvent::unmodifiedText. |
| 52 uint16 unmodified_text; | 52 uint16 unmodified_text; |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 struct TouchData { | 55 struct TouchData { |
| 56 int32 pointer_id; | 56 int32 pointer_id; |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 struct GestureData { |
| 60 // A bounding box for all the input events that contributed to this gesture. |
| 61 RectF? bounding_box; |
| 62 |
| 63 // GESTURE_SCROLL_UPDATE |
| 64 float scroll_x; |
| 65 float scroll_y; |
| 66 |
| 67 // SCROLL_FLING_START |
| 68 float velocity_x; |
| 69 float velocity_y; |
| 70 |
| 71 // GESTURE_PINCH_UPDATE |
| 72 float scale; |
| 73 |
| 74 // GESTURE_SWIPE |
| 75 bool swipe_left; |
| 76 bool swipe_right; |
| 77 bool swipe_up; |
| 78 bool swipe_down; |
| 79 |
| 80 // GESTURE_TAP and GESTURE_TAP_UNCONFIRMED and GESTURE_DOUBLE_TAP |
| 81 int32 tap_count; |
| 82 }; |
| 83 |
| 59 struct MouseWheelData { | 84 struct MouseWheelData { |
| 60 int32 x_offset; | 85 int32 x_offset; |
| 61 int32 y_offset; | 86 int32 y_offset; |
| 62 }; | 87 }; |
| 63 | 88 |
| 64 struct Event { | 89 struct Event { |
| 65 EventType action; | 90 EventType action; |
| 66 EventFlags flags; | 91 EventFlags flags; |
| 67 int64 time_stamp; | 92 int64 time_stamp; |
| 68 LocationData? location_data; | 93 LocationData? location_data; |
| 69 KeyData? key_data; | 94 KeyData? key_data; |
| 70 TouchData? touch_data; | 95 TouchData? touch_data; |
| 96 GestureData? gesture_data; |
| 71 MouseWheelData? wheel_data; | 97 MouseWheelData? wheel_data; |
| 72 }; | 98 }; |
| OLD | NEW |