OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // IPC messages for input events and other messages that require processing in | 5 // IPC messages for input events and other messages that require processing in |
6 // order relative to input events. | 6 // order relative to input events. |
7 // Multiply-included message file, hence no include guard. | 7 // Multiply-included message file, hence no include guard. |
8 | 8 |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
12 #include "content/common/content_param_traits.h" | 12 #include "content/common/content_param_traits.h" |
13 #include "content/common/edit_command.h" | 13 #include "content/common/edit_command.h" |
14 #include "content/common/input/input_event.h" | 14 #include "content/common/input/input_event.h" |
15 #include "content/common/input/input_event_ack.h" | 15 #include "content/common/input/input_event_ack.h" |
16 #include "content/common/input/input_event_ack_state.h" | 16 #include "content/common/input/input_event_ack_state.h" |
17 #include "content/common/input/input_event_dispatch_type.h" | 17 #include "content/common/input/input_event_dispatch_type.h" |
18 #include "content/common/input/input_param_traits.h" | 18 #include "content/common/input/input_param_traits.h" |
19 #include "content/common/input/synthetic_gesture_packet.h" | 19 #include "content/common/input/synthetic_gesture_packet.h" |
20 #include "content/common/input/synthetic_gesture_params.h" | 20 #include "content/common/input/synthetic_gesture_params.h" |
21 #include "content/common/input/synthetic_pinch_gesture_params.h" | 21 #include "content/common/input/synthetic_pinch_gesture_params.h" |
| 22 #include "content/common/input/synthetic_pointer_action_list_params.h" |
22 #include "content/common/input/synthetic_pointer_action_params.h" | 23 #include "content/common/input/synthetic_pointer_action_params.h" |
23 #include "content/common/input/synthetic_smooth_drag_gesture_params.h" | 24 #include "content/common/input/synthetic_smooth_drag_gesture_params.h" |
24 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" | 25 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" |
25 #include "content/common/input/synthetic_tap_gesture_params.h" | 26 #include "content/common/input/synthetic_tap_gesture_params.h" |
26 #include "content/common/input/touch_action.h" | 27 #include "content/common/input/touch_action.h" |
27 #include "ipc/ipc_message_macros.h" | 28 #include "ipc/ipc_message_macros.h" |
28 #include "third_party/WebKit/public/web/WebInputEvent.h" | 29 #include "third_party/WebKit/public/web/WebInputEvent.h" |
29 #include "ui/events/blink/did_overscroll_params.h" | 30 #include "ui/events/blink/did_overscroll_params.h" |
30 #include "ui/events/ipc/latency_info_param_traits.h" | 31 #include "ui/events/ipc/latency_info_param_traits.h" |
31 #include "ui/gfx/geometry/point.h" | 32 #include "ui/gfx/geometry/point.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 IPC_STRUCT_TRAITS_MEMBER(duration_ms) | 114 IPC_STRUCT_TRAITS_MEMBER(duration_ms) |
114 IPC_STRUCT_TRAITS_END() | 115 IPC_STRUCT_TRAITS_END() |
115 | 116 |
116 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticPointerActionParams) | 117 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticPointerActionParams) |
117 IPC_STRUCT_TRAITS_PARENT(content::SyntheticGestureParams) | 118 IPC_STRUCT_TRAITS_PARENT(content::SyntheticGestureParams) |
118 IPC_STRUCT_TRAITS_MEMBER(pointer_action_type_) | 119 IPC_STRUCT_TRAITS_MEMBER(pointer_action_type_) |
119 IPC_STRUCT_TRAITS_MEMBER(index_) | 120 IPC_STRUCT_TRAITS_MEMBER(index_) |
120 IPC_STRUCT_TRAITS_MEMBER(position_) | 121 IPC_STRUCT_TRAITS_MEMBER(position_) |
121 IPC_STRUCT_TRAITS_END() | 122 IPC_STRUCT_TRAITS_END() |
122 | 123 |
| 124 IPC_STRUCT_TRAITS_BEGIN(content::SyntheticPointerActionListParams) |
| 125 IPC_STRUCT_TRAITS_PARENT(content::SyntheticGestureParams) |
| 126 IPC_STRUCT_TRAITS_MEMBER(param_list) |
| 127 IPC_STRUCT_TRAITS_END() |
| 128 |
123 IPC_STRUCT_TRAITS_BEGIN(content::InputEventAck) | 129 IPC_STRUCT_TRAITS_BEGIN(content::InputEventAck) |
124 IPC_STRUCT_TRAITS_MEMBER(type) | 130 IPC_STRUCT_TRAITS_MEMBER(type) |
125 IPC_STRUCT_TRAITS_MEMBER(state) | 131 IPC_STRUCT_TRAITS_MEMBER(state) |
126 IPC_STRUCT_TRAITS_MEMBER(latency) | 132 IPC_STRUCT_TRAITS_MEMBER(latency) |
127 IPC_STRUCT_TRAITS_MEMBER(overscroll) | 133 IPC_STRUCT_TRAITS_MEMBER(overscroll) |
128 IPC_STRUCT_TRAITS_MEMBER(unique_touch_event_id) | 134 IPC_STRUCT_TRAITS_MEMBER(unique_touch_event_id) |
129 IPC_STRUCT_TRAITS_END() | 135 IPC_STRUCT_TRAITS_END() |
130 | 136 |
131 // Sends an input event to the render widget. | 137 // Sends an input event to the render widget. |
132 IPC_MESSAGE_ROUTED3(InputMsg_HandleInputEvent, | 138 IPC_MESSAGE_ROUTED3(InputMsg_HandleInputEvent, |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 // This IPC message sends the character bounds after every composition change | 312 // This IPC message sends the character bounds after every composition change |
307 // to always have correct bound info. | 313 // to always have correct bound info. |
308 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 314 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |
309 gfx::Range /* composition range */, | 315 gfx::Range /* composition range */, |
310 std::vector<gfx::Rect> /* character bounds */) | 316 std::vector<gfx::Rect> /* character bounds */) |
311 | 317 |
312 // Adding a new message? Stick to the sort order above: first platform | 318 // Adding a new message? Stick to the sort order above: first platform |
313 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 319 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
314 // platform independent InputHostMsg, then ifdefs for platform specific | 320 // platform independent InputHostMsg, then ifdefs for platform specific |
315 // InputHostMsg. | 321 // InputHostMsg. |
OLD | NEW |