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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // This message sends a string being composed with an input method. | 160 // This message sends a string being composed with an input method. |
161 IPC_MESSAGE_ROUTED5( | 161 IPC_MESSAGE_ROUTED5( |
162 InputMsg_ImeSetComposition, | 162 InputMsg_ImeSetComposition, |
163 base::string16, /* text */ | 163 base::string16, /* text */ |
164 std::vector<blink::WebCompositionUnderline>, /* underlines */ | 164 std::vector<blink::WebCompositionUnderline>, /* underlines */ |
165 gfx::Range /* replacement_range */, | 165 gfx::Range /* replacement_range */, |
166 int, /* selectiont_start */ | 166 int, /* selectiont_start */ |
167 int /* selection_end */) | 167 int /* selection_end */) |
168 | 168 |
169 // This message confirms an ongoing composition. | 169 // This message confirms an ongoing composition. |
170 IPC_MESSAGE_ROUTED3(InputMsg_ImeConfirmComposition, | 170 IPC_MESSAGE_ROUTED4(InputMsg_ImeConfirmComposition, |
171 base::string16 /* text */, | 171 base::string16 /* text */, |
172 gfx::Range /* replacement_range */, | 172 gfx::Range /* replacement_range */, |
173 bool /* keep_selection */) | 173 bool /* keep_selection */, |
| 174 int /* new_cursor_pos */) |
174 | 175 |
175 // This message notifies the renderer that the next key event is bound to one | 176 // This message notifies the renderer that the next key event is bound to one |
176 // or more pre-defined edit commands. If the next key event is not handled | 177 // or more pre-defined edit commands. If the next key event is not handled |
177 // by webkit, the specified edit commands shall be executed against current | 178 // by webkit, the specified edit commands shall be executed against current |
178 // focused frame. | 179 // focused frame. |
179 // Parameters | 180 // Parameters |
180 // * edit_commands (see chrome/common/edit_command_types.h) | 181 // * edit_commands (see chrome/common/edit_command_types.h) |
181 // Contains one or more edit commands. | 182 // Contains one or more edit commands. |
182 // See third_party/WebKit/Source/WebCore/editing/EditorCommand.cpp for detailed | 183 // See third_party/WebKit/Source/WebCore/editing/EditorCommand.cpp for detailed |
183 // definition of webkit edit commands. | 184 // definition of webkit edit commands. |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 // This IPC message sends the character bounds after every composition change | 307 // This IPC message sends the character bounds after every composition change |
307 // to always have correct bound info. | 308 // to always have correct bound info. |
308 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 309 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |
309 gfx::Range /* composition range */, | 310 gfx::Range /* composition range */, |
310 std::vector<gfx::Rect> /* character bounds */) | 311 std::vector<gfx::Rect> /* character bounds */) |
311 | 312 |
312 // 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 |
313 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 314 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
314 // platform independent InputHostMsg, then ifdefs for platform specific | 315 // platform independent InputHostMsg, then ifdefs for platform specific |
315 // InputHostMsg. | 316 // InputHostMsg. |
OLD | NEW |