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