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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 IPC_MESSAGE_ROUTED5( | 170 IPC_MESSAGE_ROUTED5( |
171 InputMsg_ImeSetComposition, | 171 InputMsg_ImeSetComposition, |
172 base::string16, /* text */ | 172 base::string16, /* text */ |
173 std::vector<blink::WebCompositionUnderline>, /* underlines */ | 173 std::vector<blink::WebCompositionUnderline>, /* underlines */ |
174 gfx::Range /* replacement_range */, | 174 gfx::Range /* replacement_range */, |
175 int, /* selectiont_start */ | 175 int, /* selectiont_start */ |
176 int /* selection_end */) | 176 int /* selection_end */) |
177 | 177 |
178 // This message deletes the current composition, inserts specified text, and | 178 // This message deletes the current composition, inserts specified text, and |
179 // moves the cursor. | 179 // moves the cursor. |
180 IPC_MESSAGE_ROUTED3(InputMsg_ImeCommitText, | 180 IPC_MESSAGE_ROUTED4( |
181 base::string16 /* text */, | 181 InputMsg_ImeCommitText, |
182 gfx::Range /* replacement_range */, | 182 base::string16 /* text */, |
183 int /* relative_cursor_pos */) | 183 std::vector<blink::WebCompositionUnderline>, /* underlines */ |
| 184 gfx::Range /* replacement_range */, |
| 185 int /* relative_cursor_pos */) |
184 | 186 |
185 // This message inserts the ongoing composition. | 187 // This message inserts the ongoing composition. |
186 IPC_MESSAGE_ROUTED1(InputMsg_ImeFinishComposingText, bool /* keep_selection */) | 188 IPC_MESSAGE_ROUTED1(InputMsg_ImeFinishComposingText, bool /* keep_selection */) |
187 | 189 |
188 // This message notifies the renderer that the next key event is bound to one | 190 // This message notifies the renderer that the next key event is bound to one |
189 // or more pre-defined edit commands. If the next key event is not handled | 191 // or more pre-defined edit commands. If the next key event is not handled |
190 // by webkit, the specified edit commands shall be executed against current | 192 // by webkit, the specified edit commands shall be executed against current |
191 // focused frame. | 193 // focused frame. |
192 // Parameters | 194 // Parameters |
193 // * edit_commands (see chrome/common/edit_command_types.h) | 195 // * edit_commands (see chrome/common/edit_command_types.h) |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 // This IPC message sends the character bounds after every composition change | 316 // This IPC message sends the character bounds after every composition change |
315 // to always have correct bound info. | 317 // to always have correct bound info. |
316 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 318 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |
317 gfx::Range /* composition range */, | 319 gfx::Range /* composition range */, |
318 std::vector<gfx::Rect> /* character bounds */) | 320 std::vector<gfx::Rect> /* character bounds */) |
319 | 321 |
320 // Adding a new message? Stick to the sort order above: first platform | 322 // Adding a new message? Stick to the sort order above: first platform |
321 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 323 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
322 // platform independent InputHostMsg, then ifdefs for platform specific | 324 // platform independent InputHostMsg, then ifdefs for platform specific |
323 // InputHostMsg. | 325 // InputHostMsg. |
OLD | NEW |