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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 IPC::WebInputEventPointer /* event */, | 133 IPC::WebInputEventPointer /* event */, |
134 ui::LatencyInfo /* latency_info */, | 134 ui::LatencyInfo /* latency_info */, |
135 content::InputEventDispatchType) | 135 content::InputEventDispatchType) |
136 | 136 |
137 // Sends the cursor visibility state to the render widget. | 137 // Sends the cursor visibility state to the render widget. |
138 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange, | 138 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange, |
139 bool /* is_visible */) | 139 bool /* is_visible */) |
140 | 140 |
141 // Sets the text composition to be between the given start and end offsets in | 141 // Sets the text composition to be between the given start and end offsets in |
142 // the currently focused editable field. | 142 // the currently focused editable field. |
143 IPC_MESSAGE_ROUTED3(InputMsg_SetCompositionFromExistingText, | 143 IPC_MESSAGE_ROUTED3(InputMsg_ImeSetCompositionFromExistingText, |
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_ImeExtendSelectionAndDelete, |
151 int /* before */, | 151 int /* before */, |
152 int /* after */) | 152 int /* after */) |
153 | 153 |
154 // Selects between the given start and end offsets in the currently focused | 154 // Selects between the given start and end offsets in the currently focused |
155 // editable field. | 155 // editable field. |
156 IPC_MESSAGE_ROUTED2(InputMsg_SetEditableSelectionOffsets, | 156 IPC_MESSAGE_ROUTED2(InputMsg_ImeSetEditableSelectionOffsets, |
157 int /* start */, | 157 int /* start */, |
158 int /* end */) | 158 int /* end */) |
159 | 159 |
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_ROUTED3(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 | 174 |
| 175 // Sends a list of IME-related messages to be executed at once as a batch. |
| 176 IPC_MESSAGE_ROUTED1(InputMsg_ImeBatchEdit, |
| 177 std::vector<IPC::Message> /* messages */) |
| 178 |
175 // This message notifies the renderer that the next key event is bound to one | 179 // 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 | 180 // 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 | 181 // by webkit, the specified edit commands shall be executed against current |
178 // focused frame. | 182 // focused frame. |
179 // Parameters | 183 // Parameters |
180 // * edit_commands (see chrome/common/edit_command_types.h) | 184 // * edit_commands (see chrome/common/edit_command_types.h) |
181 // Contains one or more edit commands. | 185 // Contains one or more edit commands. |
182 // See third_party/WebKit/Source/WebCore/editing/EditorCommand.cpp for detailed | 186 // See third_party/WebKit/Source/WebCore/editing/EditorCommand.cpp for detailed |
183 // definition of webkit edit commands. | 187 // definition of webkit edit commands. |
184 // | 188 // |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 IPC_MESSAGE_ROUTED1(InputMsg_MoveCaret, | 256 IPC_MESSAGE_ROUTED1(InputMsg_MoveCaret, |
253 gfx::Point /* location */) | 257 gfx::Point /* location */) |
254 | 258 |
255 #if defined(OS_ANDROID) | 259 #if defined(OS_ANDROID) |
256 // Sent by the browser as ACK to ViewHostMsg_TextInputState when necessary. | 260 // Sent by the browser as ACK to ViewHostMsg_TextInputState when necessary. |
257 // NOTE: ImeEventAck and other Ime* messages should be of the same type, | 261 // NOTE: ImeEventAck and other Ime* messages should be of the same type, |
258 // otherwise a race condition can happen. | 262 // otherwise a race condition can happen. |
259 IPC_MESSAGE_ROUTED0(InputMsg_ImeEventAck) | 263 IPC_MESSAGE_ROUTED0(InputMsg_ImeEventAck) |
260 | 264 |
261 // Request from browser to update text input state. | 265 // Request from browser to update text input state. |
262 IPC_MESSAGE_ROUTED0(InputMsg_RequestTextInputStateUpdate) | 266 IPC_MESSAGE_ROUTED0(InputMsg_ImeRequestTextInputStateUpdate) |
263 #endif | 267 #endif |
264 | 268 |
265 // Request from browser to update the cursor and composition information. | 269 // Request from browser to update the cursor and composition information. |
266 IPC_MESSAGE_ROUTED2(InputMsg_RequestCompositionUpdate, | 270 IPC_MESSAGE_ROUTED2(InputMsg_ImeRequestCompositionUpdate, |
267 bool /* immediate request */, | 271 bool /* immediate request */, |
268 bool /* monitor request */) | 272 bool /* monitor request */) |
269 | 273 |
270 IPC_MESSAGE_ROUTED0(InputMsg_SyntheticGestureCompleted) | 274 IPC_MESSAGE_ROUTED0(InputMsg_SyntheticGestureCompleted) |
271 | 275 |
272 // ----------------------------------------------------------------------------- | 276 // ----------------------------------------------------------------------------- |
273 // Messages sent from the renderer to the browser. | 277 // Messages sent from the renderer to the browser. |
274 | 278 |
275 // Acknowledges receipt of a InputMsg_HandleInputEvent message. | 279 // Acknowledges receipt of a InputMsg_HandleInputEvent message. |
276 IPC_MESSAGE_ROUTED1(InputHostMsg_HandleInputEvent_ACK, | 280 IPC_MESSAGE_ROUTED1(InputHostMsg_HandleInputEvent_ACK, |
(...skipping 29 matching lines...) Expand all Loading... |
306 // This IPC message sends the character bounds after every composition change | 310 // This IPC message sends the character bounds after every composition change |
307 // to always have correct bound info. | 311 // to always have correct bound info. |
308 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 312 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |
309 gfx::Range /* composition range */, | 313 gfx::Range /* composition range */, |
310 std::vector<gfx::Rect> /* character bounds */) | 314 std::vector<gfx::Rect> /* character bounds */) |
311 | 315 |
312 // Adding a new message? Stick to the sort order above: first platform | 316 // Adding a new message? Stick to the sort order above: first platform |
313 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 317 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
314 // platform independent InputHostMsg, then ifdefs for platform specific | 318 // platform independent InputHostMsg, then ifdefs for platform specific |
315 // InputHostMsg. | 319 // InputHostMsg. |
OLD | NEW |