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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 IPC_STRUCT_TRAITS_BEGIN(content::InputEventAck) | 108 IPC_STRUCT_TRAITS_BEGIN(content::InputEventAck) |
109 IPC_STRUCT_TRAITS_MEMBER(type) | 109 IPC_STRUCT_TRAITS_MEMBER(type) |
110 IPC_STRUCT_TRAITS_MEMBER(state) | 110 IPC_STRUCT_TRAITS_MEMBER(state) |
111 IPC_STRUCT_TRAITS_MEMBER(latency) | 111 IPC_STRUCT_TRAITS_MEMBER(latency) |
112 IPC_STRUCT_TRAITS_MEMBER(overscroll) | 112 IPC_STRUCT_TRAITS_MEMBER(overscroll) |
113 IPC_STRUCT_TRAITS_MEMBER(unique_touch_event_id) | 113 IPC_STRUCT_TRAITS_MEMBER(unique_touch_event_id) |
114 IPC_STRUCT_TRAITS_END() | 114 IPC_STRUCT_TRAITS_END() |
115 | 115 |
116 // Sends an input event to the render widget. | 116 // Sends an input event to the render widget. |
117 IPC_MESSAGE_ROUTED2(InputMsg_HandleInputEvent, | 117 IPC_MESSAGE_ROUTED3(InputMsg_HandleInputEvent, |
118 IPC::WebInputEventPointer /* event */, | 118 IPC::WebInputEventPointer /* event */, |
119 ui::LatencyInfo /* latency_info */) | 119 ui::LatencyInfo /* latency_info */, |
| 120 bool /* passive */) |
120 | 121 |
121 // Sends the cursor visibility state to the render widget. | 122 // Sends the cursor visibility state to the render widget. |
122 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange, | 123 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange, |
123 bool /* is_visible */) | 124 bool /* is_visible */) |
124 | 125 |
125 // Sets the text composition to be between the given start and end offsets in | 126 // Sets the text composition to be between the given start and end offsets in |
126 // the currently focused editable field. | 127 // the currently focused editable field. |
127 IPC_MESSAGE_ROUTED3(InputMsg_SetCompositionFromExistingText, | 128 IPC_MESSAGE_ROUTED3(InputMsg_SetCompositionFromExistingText, |
128 int /* start */, | 129 int /* start */, |
129 int /* end */, | 130 int /* end */, |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 // This IPC message sends the character bounds after every composition change | 284 // This IPC message sends the character bounds after every composition change |
284 // to always have correct bound info. | 285 // to always have correct bound info. |
285 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 286 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |
286 gfx::Range /* composition range */, | 287 gfx::Range /* composition range */, |
287 std::vector<gfx::Rect> /* character bounds */) | 288 std::vector<gfx::Rect> /* character bounds */) |
288 | 289 |
289 // Adding a new message? Stick to the sort order above: first platform | 290 // Adding a new message? Stick to the sort order above: first platform |
290 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 291 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
291 // platform independent InputHostMsg, then ifdefs for platform specific | 292 // platform independent InputHostMsg, then ifdefs for platform specific |
292 // InputHostMsg. | 293 // InputHostMsg. |
OLD | NEW |