| 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 int /* end */, | 148 int /* end */, |
| 149 std::vector<blink::WebCompositionUnderline> /* underlines */) | 149 std::vector<blink::WebCompositionUnderline> /* underlines */) |
| 150 | 150 |
| 151 // Deletes the current selection plus the specified number of characters before | 151 // Deletes the current selection plus the specified number of characters before |
| 152 // and after the selection or caret. | 152 // and after the selection or caret. |
| 153 IPC_MESSAGE_ROUTED2(InputMsg_ExtendSelectionAndDelete, | 153 IPC_MESSAGE_ROUTED2(InputMsg_ExtendSelectionAndDelete, |
| 154 int /* before */, | 154 int /* before */, |
| 155 int /* after */) | 155 int /* after */) |
| 156 | 156 |
| 157 // Deletes text before and after the current cursor position, excluding the | 157 // Deletes text before and after the current cursor position, excluding the |
| 158 // selection. | 158 // selection. The lengths are supplied in Java chars, not in code points or in |
| 159 // glyphs. |
| 159 IPC_MESSAGE_ROUTED2(InputMsg_DeleteSurroundingText, | 160 IPC_MESSAGE_ROUTED2(InputMsg_DeleteSurroundingText, |
| 160 int /* before */, | 161 int /* before */, |
| 161 int /* after */) | 162 int /* after */) |
| 162 | 163 |
| 164 // Deletes text before and after the current cursor position, excluding the |
| 165 // selection. The lengths are supplied in code points, not in Java chars or in |
| 166 // glyphs. Do nothing if there are one or more invalid surrogate pairs in the |
| 167 // requested range |
| 168 IPC_MESSAGE_ROUTED2(InputMsg_DeleteSurroundingTextInCodePoints, |
| 169 int /* before */, |
| 170 int /* after */) |
| 171 |
| 163 // Selects between the given start and end offsets in the currently focused | 172 // Selects between the given start and end offsets in the currently focused |
| 164 // editable field. | 173 // editable field. |
| 165 IPC_MESSAGE_ROUTED2(InputMsg_SetEditableSelectionOffsets, | 174 IPC_MESSAGE_ROUTED2(InputMsg_SetEditableSelectionOffsets, |
| 166 int /* start */, | 175 int /* start */, |
| 167 int /* end */) | 176 int /* end */) |
| 168 | 177 |
| 169 // This message sends a string being composed with an input method. | 178 // This message sends a string being composed with an input method. |
| 170 IPC_MESSAGE_ROUTED5( | 179 IPC_MESSAGE_ROUTED5( |
| 171 InputMsg_ImeSetComposition, | 180 InputMsg_ImeSetComposition, |
| 172 base::string16, /* text */ | 181 base::string16, /* text */ |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 // This IPC message sends the character bounds after every composition change | 323 // This IPC message sends the character bounds after every composition change |
| 315 // to always have correct bound info. | 324 // to always have correct bound info. |
| 316 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 325 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |
| 317 gfx::Range /* composition range */, | 326 gfx::Range /* composition range */, |
| 318 std::vector<gfx::Rect> /* character bounds */) | 327 std::vector<gfx::Rect> /* character bounds */) |
| 319 | 328 |
| 320 // Adding a new message? Stick to the sort order above: first platform | 329 // Adding a new message? Stick to the sort order above: first platform |
| 321 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 330 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
| 322 // platform independent InputHostMsg, then ifdefs for platform specific | 331 // platform independent InputHostMsg, then ifdefs for platform specific |
| 323 // InputHostMsg. | 332 // InputHostMsg. |
| OLD | NEW |