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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 int /* start */, | 144 int /* start */, |
145 int /* end */, | 145 int /* end */, |
146 std::vector<blink::WebCompositionUnderline> /* underlines */) | 146 std::vector<blink::WebCompositionUnderline> /* underlines */) |
147 | 147 |
148 // Deletes the current selection plus the specified number of characters before | 148 // Deletes the current selection plus the specified number of characters before |
149 // and after the selection or caret. | 149 // and after the selection or caret. |
150 IPC_MESSAGE_ROUTED2(InputMsg_ExtendSelectionAndDelete, | 150 IPC_MESSAGE_ROUTED2(InputMsg_ExtendSelectionAndDelete, |
151 int /* before */, | 151 int /* before */, |
152 int /* after */) | 152 int /* after */) |
153 | 153 |
| 154 // Deletes text before and after the current cursor position, excluding the |
| 155 // selection. |
| 156 IPC_MESSAGE_ROUTED2(InputMsg_DeleteSurroundingText, |
| 157 int /* before */, |
| 158 int /* after */) |
| 159 |
154 // Selects between the given start and end offsets in the currently focused | 160 // Selects between the given start and end offsets in the currently focused |
155 // editable field. | 161 // editable field. |
156 IPC_MESSAGE_ROUTED2(InputMsg_SetEditableSelectionOffsets, | 162 IPC_MESSAGE_ROUTED2(InputMsg_SetEditableSelectionOffsets, |
157 int /* start */, | 163 int /* start */, |
158 int /* end */) | 164 int /* end */) |
159 | 165 |
160 // This message sends a string being composed with an input method. | 166 // This message sends a string being composed with an input method. |
161 IPC_MESSAGE_ROUTED5( | 167 IPC_MESSAGE_ROUTED5( |
162 InputMsg_ImeSetComposition, | 168 InputMsg_ImeSetComposition, |
163 base::string16, /* text */ | 169 base::string16, /* text */ |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 // This IPC message sends the character bounds after every composition change | 307 // This IPC message sends the character bounds after every composition change |
302 // to always have correct bound info. | 308 // to always have correct bound info. |
303 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 309 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |
304 gfx::Range /* composition range */, | 310 gfx::Range /* composition range */, |
305 std::vector<gfx::Rect> /* character bounds */) | 311 std::vector<gfx::Rect> /* character bounds */) |
306 | 312 |
307 // Adding a new message? Stick to the sort order above: first platform | 313 // Adding a new message? Stick to the sort order above: first platform |
308 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 314 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
309 // platform independent InputHostMsg, then ifdefs for platform specific | 315 // platform independent InputHostMsg, then ifdefs for platform specific |
310 // InputHostMsg. | 316 // InputHostMsg. |
OLD | NEW |