Chromium Code Reviews| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 107 IPC_STRUCT_TRAITS_END() | 107 IPC_STRUCT_TRAITS_END() |
| 108 | 108 |
| 109 IPC_STRUCT_BEGIN(InputHostMsg_HandleInputEvent_ACK_Params) | 109 IPC_STRUCT_BEGIN(InputHostMsg_HandleInputEvent_ACK_Params) |
| 110 IPC_STRUCT_MEMBER(blink::WebInputEvent::Type, type) | 110 IPC_STRUCT_MEMBER(blink::WebInputEvent::Type, type) |
| 111 IPC_STRUCT_MEMBER(content::InputEventAckState, state) | 111 IPC_STRUCT_MEMBER(content::InputEventAckState, state) |
| 112 IPC_STRUCT_MEMBER(ui::LatencyInfo, latency) | 112 IPC_STRUCT_MEMBER(ui::LatencyInfo, latency) |
| 113 // TODO(jdduke): Use Optional<T> type to avoid heap alloc, crbug.com/375002. | 113 // TODO(jdduke): Use Optional<T> type to avoid heap alloc, crbug.com/375002. |
| 114 IPC_STRUCT_MEMBER(scoped_ptr<content::DidOverscrollParams>, overscroll) | 114 IPC_STRUCT_MEMBER(scoped_ptr<content::DidOverscrollParams>, overscroll) |
| 115 IPC_STRUCT_END() | 115 IPC_STRUCT_END() |
| 116 | 116 |
| 117 IPC_STRUCT_BEGIN(InputHostMsg_HandleUncancelableTouchMoveEvent_ACK_Params) | |
| 118 IPC_STRUCT_END() | |
| 119 | |
| 117 // Sends an input event to the render widget. | 120 // Sends an input event to the render widget. |
| 118 IPC_MESSAGE_ROUTED3(InputMsg_HandleInputEvent, | 121 IPC_MESSAGE_ROUTED3(InputMsg_HandleInputEvent, |
| 119 IPC::WebInputEventPointer /* event */, | 122 IPC::WebInputEventPointer /* event */, |
| 120 ui::LatencyInfo /* latency_info */, | 123 ui::LatencyInfo /* latency_info */, |
| 121 bool /* is_keyboard_shortcut */) | 124 bool /* is_keyboard_shortcut */) |
| 122 | 125 |
| 123 // Sends the cursor visibility state to the render widget. | 126 // Sends the cursor visibility state to the render widget. |
| 124 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange, | 127 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange, |
| 125 bool /* is_visible */) | 128 bool /* is_visible */) |
| 126 | 129 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 234 | 237 |
| 235 IPC_MESSAGE_ROUTED0(InputMsg_SyntheticGestureCompleted) | 238 IPC_MESSAGE_ROUTED0(InputMsg_SyntheticGestureCompleted) |
| 236 | 239 |
| 237 // ----------------------------------------------------------------------------- | 240 // ----------------------------------------------------------------------------- |
| 238 // Messages sent from the renderer to the browser. | 241 // Messages sent from the renderer to the browser. |
| 239 | 242 |
| 240 // Acknowledges receipt of a InputMsg_HandleInputEvent message. | 243 // Acknowledges receipt of a InputMsg_HandleInputEvent message. |
| 241 IPC_MESSAGE_ROUTED1(InputHostMsg_HandleInputEvent_ACK, | 244 IPC_MESSAGE_ROUTED1(InputHostMsg_HandleInputEvent_ACK, |
| 242 InputHostMsg_HandleInputEvent_ACK_Params) | 245 InputHostMsg_HandleInputEvent_ACK_Params) |
| 243 | 246 |
| 247 IPC_MESSAGE_ROUTED1(InputHostMsg_HandleUncancelableTouchMoveEvent_ACK, | |
|
jdduke (slow)
2015/03/30 18:04:15
Can we just make this
IPC_MESSAGE_ROUTED0(InputH
lanwei
2015/03/31 13:07:49
Done.
| |
| 248 InputHostMsg_HandleUncancelableTouchMoveEvent_ACK_Params) | |
| 249 | |
| 244 IPC_MESSAGE_ROUTED1(InputHostMsg_QueueSyntheticGesture, | 250 IPC_MESSAGE_ROUTED1(InputHostMsg_QueueSyntheticGesture, |
| 245 content::SyntheticGesturePacket) | 251 content::SyntheticGesturePacket) |
| 246 | 252 |
| 247 // Notifies the allowed touch actions for a new touch point. | 253 // Notifies the allowed touch actions for a new touch point. |
| 248 IPC_MESSAGE_ROUTED1(InputHostMsg_SetTouchAction, | 254 IPC_MESSAGE_ROUTED1(InputHostMsg_SetTouchAction, |
| 249 content::TouchAction /* touch_action */) | 255 content::TouchAction /* touch_action */) |
| 250 | 256 |
| 251 // Sent by the compositor when input scroll events are dropped due to bounds | 257 // Sent by the compositor when input scroll events are dropped due to bounds |
| 252 // restrictions on the root scroll offset. | 258 // restrictions on the root scroll offset. |
| 253 IPC_MESSAGE_ROUTED1(InputHostMsg_DidOverscroll, | 259 IPC_MESSAGE_ROUTED1(InputHostMsg_DidOverscroll, |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 268 // This IPC message sends the character bounds after every composition change | 274 // This IPC message sends the character bounds after every composition change |
| 269 // to always have correct bound info. | 275 // to always have correct bound info. |
| 270 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 276 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |
| 271 gfx::Range /* composition range */, | 277 gfx::Range /* composition range */, |
| 272 std::vector<gfx::Rect> /* character bounds */) | 278 std::vector<gfx::Rect> /* character bounds */) |
| 273 | 279 |
| 274 // Adding a new message? Stick to the sort order above: first platform | 280 // Adding a new message? Stick to the sort order above: first platform |
| 275 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 281 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
| 276 // platform independent InputHostMsg, then ifdefs for platform specific | 282 // platform independent InputHostMsg, then ifdefs for platform specific |
| 277 // InputHostMsg. | 283 // InputHostMsg. |
| OLD | NEW |