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 "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 content::TouchAction /* touch_action */) | 233 content::TouchAction /* touch_action */) |
234 | 234 |
235 // Sent by the compositor when input scroll events are dropped due to bounds | 235 // Sent by the compositor when input scroll events are dropped due to bounds |
236 // restrictions on the root scroll offset. | 236 // restrictions on the root scroll offset. |
237 IPC_MESSAGE_ROUTED1(InputHostMsg_DidOverscroll, | 237 IPC_MESSAGE_ROUTED1(InputHostMsg_DidOverscroll, |
238 content::DidOverscrollParams /* params */) | 238 content::DidOverscrollParams /* params */) |
239 | 239 |
240 // Required for cancelling an ongoing input method composition. | 240 // Required for cancelling an ongoing input method composition. |
241 IPC_MESSAGE_ROUTED0(InputHostMsg_ImeCancelComposition) | 241 IPC_MESSAGE_ROUTED0(InputHostMsg_ImeCancelComposition) |
242 | 242 |
243 #if defined(OS_MACOSX) || defined(USE_AURA) | 243 #if defined(OS_MACOSX) || defined(USE_AURA) || defined(OS_ANDROID) |
244 // On Mac and Aura IME can request composition character bounds | 244 // On Mac and Aura IME can request composition character bounds |
245 // synchronously (see crbug.com/120597). This IPC message sends the character | 245 // synchronously (see crbug.com/120597). This IPC message sends the character |
246 // bounds after every composition change to always have correct bound info. | 246 // bounds after every composition change to always have correct bound info. |
| 247 // This IPC message is also used on Android 5.0 and above. |
247 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 248 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |
248 gfx::Range /* composition range */, | 249 gfx::Range /* composition range */, |
249 std::vector<gfx::Rect> /* character bounds */) | 250 std::vector<gfx::Rect> /* character bounds */) |
250 #endif | 251 #endif |
251 | 252 |
252 // Adding a new message? Stick to the sort order above: first platform | 253 // Adding a new message? Stick to the sort order above: first platform |
253 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 254 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
254 // platform independent InputHostMsg, then ifdefs for platform specific | 255 // platform independent InputHostMsg, then ifdefs for platform specific |
255 // InputHostMsg. | 256 // InputHostMsg. |
OLD | NEW |