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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 IPC_MESSAGE_ROUTED0(InputMsg_SelectAll) | 207 IPC_MESSAGE_ROUTED0(InputMsg_SelectAll) |
208 | 208 |
209 IPC_MESSAGE_ROUTED0(InputMsg_Unselect) | 209 IPC_MESSAGE_ROUTED0(InputMsg_Unselect) |
210 | 210 |
211 // Requests the renderer to select the region between two points. | 211 // Requests the renderer to select the region between two points. |
212 // Expects a SelectRange_ACK message when finished. | 212 // Expects a SelectRange_ACK message when finished. |
213 IPC_MESSAGE_ROUTED2(InputMsg_SelectRange, | 213 IPC_MESSAGE_ROUTED2(InputMsg_SelectRange, |
214 gfx::Point /* base */, | 214 gfx::Point /* base */, |
215 gfx::Point /* extent */) | 215 gfx::Point /* extent */) |
216 | 216 |
| 217 // Sent by the browser to ask the renderer to expand the selection |
| 218 // by the given amounts. |
| 219 IPC_MESSAGE_ROUTED2(InputMsg_ExpandSelectionByCharacterOffset, |
| 220 int /* start_adjust*/, |
| 221 int /* end_adjust */) |
| 222 |
217 // Requests the renderer to move the selection extent point to a new position. | 223 // Requests the renderer to move the selection extent point to a new position. |
218 // Expects a MoveRangeSelectionExtent_ACK message when finished. | 224 // Expects a MoveRangeSelectionExtent_ACK message when finished. |
219 IPC_MESSAGE_ROUTED1(InputMsg_MoveRangeSelectionExtent, | 225 IPC_MESSAGE_ROUTED1(InputMsg_MoveRangeSelectionExtent, |
220 gfx::Point /* extent */) | 226 gfx::Point /* extent */) |
221 | 227 |
222 // Requests the renderer to move the caret selection toward the point. | 228 // Requests the renderer to move the caret selection toward the point. |
223 // Expects a MoveCaret_ACK message when finished. | 229 // Expects a MoveCaret_ACK message when finished. |
224 IPC_MESSAGE_ROUTED1(InputMsg_MoveCaret, | 230 IPC_MESSAGE_ROUTED1(InputMsg_MoveCaret, |
225 gfx::Point /* location */) | 231 gfx::Point /* location */) |
226 | 232 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 // This IPC message sends the character bounds after every composition change | 278 // This IPC message sends the character bounds after every composition change |
273 // to always have correct bound info. | 279 // to always have correct bound info. |
274 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 280 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |
275 gfx::Range /* composition range */, | 281 gfx::Range /* composition range */, |
276 std::vector<gfx::Rect> /* character bounds */) | 282 std::vector<gfx::Rect> /* character bounds */) |
277 | 283 |
278 // Adding a new message? Stick to the sort order above: first platform | 284 // Adding a new message? Stick to the sort order above: first platform |
279 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 285 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
280 // platform independent InputHostMsg, then ifdefs for platform specific | 286 // platform independent InputHostMsg, then ifdefs for platform specific |
281 // InputHostMsg. | 287 // InputHostMsg. |
OLD | NEW |