| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 IPC_MESSAGE_ROUTED3(InputMsg_ActivateNearestFindResult, | 235 IPC_MESSAGE_ROUTED3(InputMsg_ActivateNearestFindResult, |
| 236 int /* request_id */, | 236 int /* request_id */, |
| 237 float /* x */, | 237 float /* x */, |
| 238 float /* y */) | 238 float /* y */) |
| 239 | 239 |
| 240 // Sent by the browser as ACK to ViewHostMsg_TextInputState when necessary. | 240 // Sent by the browser as ACK to ViewHostMsg_TextInputState when necessary. |
| 241 // NOTE: ImeEventAck and other Ime* messages should be of the same type, | 241 // NOTE: ImeEventAck and other Ime* messages should be of the same type, |
| 242 // otherwise a race condition can happen. | 242 // otherwise a race condition can happen. |
| 243 IPC_MESSAGE_ROUTED0(InputMsg_ImeEventAck) | 243 IPC_MESSAGE_ROUTED0(InputMsg_ImeEventAck) |
| 244 | 244 |
| 245 // Request from browser to update text input state. |
| 246 IPC_MESSAGE_ROUTED0(InputMsg_RequestTextInputStateUpdate) |
| 245 #endif | 247 #endif |
| 246 | 248 |
| 247 IPC_MESSAGE_ROUTED0(InputMsg_SyntheticGestureCompleted) | 249 IPC_MESSAGE_ROUTED0(InputMsg_SyntheticGestureCompleted) |
| 248 | 250 |
| 249 // ----------------------------------------------------------------------------- | 251 // ----------------------------------------------------------------------------- |
| 250 // Messages sent from the renderer to the browser. | 252 // Messages sent from the renderer to the browser. |
| 251 | 253 |
| 252 // Acknowledges receipt of a InputMsg_HandleInputEvent message. | 254 // Acknowledges receipt of a InputMsg_HandleInputEvent message. |
| 253 IPC_MESSAGE_ROUTED1(InputHostMsg_HandleInputEvent_ACK, | 255 IPC_MESSAGE_ROUTED1(InputHostMsg_HandleInputEvent_ACK, |
| 254 content::InputEventAck /* ack */) | 256 content::InputEventAck /* ack */) |
| (...skipping 28 matching lines...) Expand all Loading... |
| 283 // This IPC message sends the character bounds after every composition change | 285 // This IPC message sends the character bounds after every composition change |
| 284 // to always have correct bound info. | 286 // to always have correct bound info. |
| 285 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 287 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |
| 286 gfx::Range /* composition range */, | 288 gfx::Range /* composition range */, |
| 287 std::vector<gfx::Rect> /* character bounds */) | 289 std::vector<gfx::Rect> /* character bounds */) |
| 288 | 290 |
| 289 // Adding a new message? Stick to the sort order above: first platform | 291 // Adding a new message? Stick to the sort order above: first platform |
| 290 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 292 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
| 291 // platform independent InputHostMsg, then ifdefs for platform specific | 293 // platform independent InputHostMsg, then ifdefs for platform specific |
| 292 // InputHostMsg. | 294 // InputHostMsg. |
| OLD | NEW |