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 // This message sends a string being composed with an input method. | 160 // This message sends a string being composed with an input method. |
155 IPC_MESSAGE_ROUTED5( | 161 IPC_MESSAGE_ROUTED5( |
156 InputMsg_ImeSetComposition, | 162 InputMsg_ImeSetComposition, |
157 base::string16, /* text */ | 163 base::string16, /* text */ |
158 std::vector<blink::WebCompositionUnderline>, /* underlines */ | 164 std::vector<blink::WebCompositionUnderline>, /* underlines */ |
159 gfx::Range /* replacement_range */, | 165 gfx::Range /* replacement_range */, |
160 int, /* selectiont_start */ | 166 int, /* selectiont_start */ |
161 int /* selection_end */) | 167 int /* selection_end */) |
162 | 168 |
163 // This message confirms an ongoing composition. | 169 // This message confirms an ongoing composition. |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 // This IPC message sends the character bounds after every composition change | 308 // This IPC message sends the character bounds after every composition change |
303 // to always have correct bound info. | 309 // to always have correct bound info. |
304 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 310 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |
305 gfx::Range /* composition range */, | 311 gfx::Range /* composition range */, |
306 std::vector<gfx::Rect> /* character bounds */) | 312 std::vector<gfx::Rect> /* character bounds */) |
307 | 313 |
308 // Adding a new message? Stick to the sort order above: first platform | 314 // Adding a new message? Stick to the sort order above: first platform |
309 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 315 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
310 // platform independent InputHostMsg, then ifdefs for platform specific | 316 // platform independent InputHostMsg, then ifdefs for platform specific |
311 // InputHostMsg. | 317 // InputHostMsg. |
OLD | NEW |