| 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 // Expects a MoveRangeSelectionExtent_ACK message when finished. | 254 // Expects a MoveRangeSelectionExtent_ACK message when finished. |
| 255 IPC_MESSAGE_ROUTED1(InputMsg_MoveRangeSelectionExtent, | 255 IPC_MESSAGE_ROUTED1(InputMsg_MoveRangeSelectionExtent, |
| 256 gfx::Point /* extent */) | 256 gfx::Point /* extent */) |
| 257 | 257 |
| 258 // Requests the renderer to move the caret selection toward the point. | 258 // Requests the renderer to move the caret selection toward the point. |
| 259 // Expects a MoveCaret_ACK message when finished. | 259 // Expects a MoveCaret_ACK message when finished. |
| 260 IPC_MESSAGE_ROUTED1(InputMsg_MoveCaret, | 260 IPC_MESSAGE_ROUTED1(InputMsg_MoveCaret, |
| 261 gfx::Point /* location */) | 261 gfx::Point /* location */) |
| 262 | 262 |
| 263 #if defined(OS_ANDROID) | 263 #if defined(OS_ANDROID) |
| 264 // Sent by the browser as ACK to ViewHostMsg_TextInputState when necessary. | |
| 265 // NOTE: ImeEventAck and other Ime* messages should be of the same type, | |
| 266 // otherwise a race condition can happen. | |
| 267 IPC_MESSAGE_ROUTED0(InputMsg_ImeEventAck) | |
| 268 | |
| 269 // Request from browser to update text input state. | 264 // Request from browser to update text input state. |
| 270 IPC_MESSAGE_ROUTED0(InputMsg_RequestTextInputStateUpdate) | 265 IPC_MESSAGE_ROUTED0(InputMsg_RequestTextInputStateUpdate) |
| 271 #endif | 266 #endif |
| 272 | 267 |
| 273 // Request from browser to update the cursor and composition information. | 268 // Request from browser to update the cursor and composition information. |
| 274 IPC_MESSAGE_ROUTED2(InputMsg_RequestCompositionUpdate, | 269 IPC_MESSAGE_ROUTED2(InputMsg_RequestCompositionUpdate, |
| 275 bool /* immediate request */, | 270 bool /* immediate request */, |
| 276 bool /* monitor request */) | 271 bool /* monitor request */) |
| 277 | 272 |
| 278 IPC_MESSAGE_ROUTED0(InputMsg_SyntheticGestureCompleted) | 273 IPC_MESSAGE_ROUTED0(InputMsg_SyntheticGestureCompleted) |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 // This IPC message sends the character bounds after every composition change | 309 // This IPC message sends the character bounds after every composition change |
| 315 // to always have correct bound info. | 310 // to always have correct bound info. |
| 316 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 311 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |
| 317 gfx::Range /* composition range */, | 312 gfx::Range /* composition range */, |
| 318 std::vector<gfx::Rect> /* character bounds */) | 313 std::vector<gfx::Rect> /* character bounds */) |
| 319 | 314 |
| 320 // Adding a new message? Stick to the sort order above: first platform | 315 // Adding a new message? Stick to the sort order above: first platform |
| 321 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 316 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
| 322 // platform independent InputHostMsg, then ifdefs for platform specific | 317 // platform independent InputHostMsg, then ifdefs for platform specific |
| 323 // InputHostMsg. | 318 // InputHostMsg. |
| OLD | NEW |