| 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 adjust the selection start and |
| 218 // end points by the given amounts. A negative amount moves the selection |
| 219 // towards the beginning of the document, a positive amount moves the selection |
| 220 // towards the end of the document. |
| 221 IPC_MESSAGE_ROUTED2(InputMsg_AdjustSelectionByCharacterOffset, |
| 222 int /* start_adjust*/, |
| 223 int /* end_adjust */) |
| 224 |
| 217 // Requests the renderer to move the selection extent point to a new position. | 225 // Requests the renderer to move the selection extent point to a new position. |
| 218 // Expects a MoveRangeSelectionExtent_ACK message when finished. | 226 // Expects a MoveRangeSelectionExtent_ACK message when finished. |
| 219 IPC_MESSAGE_ROUTED1(InputMsg_MoveRangeSelectionExtent, | 227 IPC_MESSAGE_ROUTED1(InputMsg_MoveRangeSelectionExtent, |
| 220 gfx::Point /* extent */) | 228 gfx::Point /* extent */) |
| 221 | 229 |
| 222 // Requests the renderer to move the caret selection toward the point. | 230 // Requests the renderer to move the caret selection toward the point. |
| 223 // Expects a MoveCaret_ACK message when finished. | 231 // Expects a MoveCaret_ACK message when finished. |
| 224 IPC_MESSAGE_ROUTED1(InputMsg_MoveCaret, | 232 IPC_MESSAGE_ROUTED1(InputMsg_MoveCaret, |
| 225 gfx::Point /* location */) | 233 gfx::Point /* location */) |
| 226 | 234 |
| (...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 | 280 // This IPC message sends the character bounds after every composition change |
| 273 // to always have correct bound info. | 281 // to always have correct bound info. |
| 274 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 282 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |
| 275 gfx::Range /* composition range */, | 283 gfx::Range /* composition range */, |
| 276 std::vector<gfx::Rect> /* character bounds */) | 284 std::vector<gfx::Rect> /* character bounds */) |
| 277 | 285 |
| 278 // Adding a new message? Stick to the sort order above: first platform | 286 // Adding a new message? Stick to the sort order above: first platform |
| 279 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 287 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
| 280 // platform independent InputHostMsg, then ifdefs for platform specific | 288 // platform independent InputHostMsg, then ifdefs for platform specific |
| 281 // InputHostMsg. | 289 // InputHostMsg. |
| OLD | NEW |