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" |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 IPC_STRUCT_TRAITS_MEMBER(latency) | 111 IPC_STRUCT_TRAITS_MEMBER(latency) |
112 IPC_STRUCT_TRAITS_MEMBER(overscroll) | 112 IPC_STRUCT_TRAITS_MEMBER(overscroll) |
113 IPC_STRUCT_TRAITS_MEMBER(unique_touch_event_id) | 113 IPC_STRUCT_TRAITS_MEMBER(unique_touch_event_id) |
114 IPC_STRUCT_TRAITS_END() | 114 IPC_STRUCT_TRAITS_END() |
115 | 115 |
116 // Sends an input event to the render widget. | 116 // Sends an input event to the render widget. |
117 IPC_MESSAGE_ROUTED2(InputMsg_HandleInputEvent, | 117 IPC_MESSAGE_ROUTED2(InputMsg_HandleInputEvent, |
118 IPC::WebInputEventPointer /* event */, | 118 IPC::WebInputEventPointer /* event */, |
119 ui::LatencyInfo /* latency_info */) | 119 ui::LatencyInfo /* latency_info */) |
120 | 120 |
| 121 // Sends coordinates in the web content to the render view. |
| 122 IPC_MESSAGE_ROUTED1(InputMsg_SelectWordIfAnyAt, blink::WebPoint /* position */) |
| 123 |
121 // Sends the cursor visibility state to the render widget. | 124 // Sends the cursor visibility state to the render widget. |
122 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange, | 125 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange, |
123 bool /* is_visible */) | 126 bool /* is_visible */) |
124 | 127 |
125 // Sets the text composition to be between the given start and end offsets in | 128 // Sets the text composition to be between the given start and end offsets in |
126 // the currently focused editable field. | 129 // the currently focused editable field. |
127 IPC_MESSAGE_ROUTED3(InputMsg_SetCompositionFromExistingText, | 130 IPC_MESSAGE_ROUTED3(InputMsg_SetCompositionFromExistingText, |
128 int /* start */, | 131 int /* start */, |
129 int /* end */, | 132 int /* end */, |
130 std::vector<blink::WebCompositionUnderline> /* underlines */) | 133 std::vector<blink::WebCompositionUnderline> /* underlines */) |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 // restrictions on the root scroll offset. | 267 // restrictions on the root scroll offset. |
265 IPC_MESSAGE_ROUTED1(InputHostMsg_DidOverscroll, | 268 IPC_MESSAGE_ROUTED1(InputHostMsg_DidOverscroll, |
266 content::DidOverscrollParams /* params */) | 269 content::DidOverscrollParams /* params */) |
267 | 270 |
268 // Sent by the compositor when a fling animation is stopped. | 271 // Sent by the compositor when a fling animation is stopped. |
269 IPC_MESSAGE_ROUTED0(InputHostMsg_DidStopFlinging) | 272 IPC_MESSAGE_ROUTED0(InputHostMsg_DidStopFlinging) |
270 | 273 |
271 // Acknowledges receipt of a InputMsg_MoveCaret message. | 274 // Acknowledges receipt of a InputMsg_MoveCaret message. |
272 IPC_MESSAGE_ROUTED0(InputHostMsg_MoveCaret_ACK) | 275 IPC_MESSAGE_ROUTED0(InputHostMsg_MoveCaret_ACK) |
273 | 276 |
| 277 // Sent as a response InputMsg_SelectWordIfAnyAt message. |
| 278 // This message is only sent if a word has been selected. |
| 279 IPC_MESSAGE_ROUTED0(InputHostMsg_DidSelectWordAt) |
| 280 |
274 // Acknowledges receipt of a InputMsg_MoveRangeSelectionExtent message. | 281 // Acknowledges receipt of a InputMsg_MoveRangeSelectionExtent message. |
275 IPC_MESSAGE_ROUTED0(InputHostMsg_MoveRangeSelectionExtent_ACK) | 282 IPC_MESSAGE_ROUTED0(InputHostMsg_MoveRangeSelectionExtent_ACK) |
276 | 283 |
277 // Acknowledges receipt of a InputMsg_SelectRange message. | 284 // Acknowledges receipt of a InputMsg_SelectRange message. |
278 IPC_MESSAGE_ROUTED0(InputHostMsg_SelectRange_ACK) | 285 IPC_MESSAGE_ROUTED0(InputHostMsg_SelectRange_ACK) |
279 | 286 |
280 // Required for cancelling an ongoing input method composition. | 287 // Required for cancelling an ongoing input method composition. |
281 IPC_MESSAGE_ROUTED0(InputHostMsg_ImeCancelComposition) | 288 IPC_MESSAGE_ROUTED0(InputHostMsg_ImeCancelComposition) |
282 | 289 |
283 // This IPC message sends the character bounds after every composition change | 290 // This IPC message sends the character bounds after every composition change |
284 // to always have correct bound info. | 291 // to always have correct bound info. |
285 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 292 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |
286 gfx::Range /* composition range */, | 293 gfx::Range /* composition range */, |
287 std::vector<gfx::Rect> /* character bounds */) | 294 std::vector<gfx::Rect> /* character bounds */) |
288 | 295 |
289 // Adding a new message? Stick to the sort order above: first platform | 296 // Adding a new message? Stick to the sort order above: first platform |
290 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 297 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
291 // platform independent InputHostMsg, then ifdefs for platform specific | 298 // platform independent InputHostMsg, then ifdefs for platform specific |
292 // InputHostMsg. | 299 // InputHostMsg. |
OLD | NEW |