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