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/basictypes.h" |
9 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
10 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
11 #include "content/common/content_param_traits.h" | 12 #include "content/common/content_param_traits.h" |
12 #include "content/common/edit_command.h" | 13 #include "content/common/edit_command.h" |
13 #include "content/common/input/did_overscroll_params.h" | 14 #include "content/common/input/did_overscroll_params.h" |
14 #include "content/common/input/input_event.h" | 15 #include "content/common/input/input_event.h" |
15 #include "content/common/input/input_event_ack_state.h" | 16 #include "content/common/input/input_event_ack_state.h" |
16 #include "content/common/input/input_param_traits.h" | 17 #include "content/common/input/input_param_traits.h" |
17 #include "content/common/input/synthetic_gesture_packet.h" | 18 #include "content/common/input/synthetic_gesture_packet.h" |
18 #include "content/common/input/synthetic_gesture_params.h" | 19 #include "content/common/input/synthetic_gesture_params.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 IPC_STRUCT_TRAITS_MEMBER(position) | 106 IPC_STRUCT_TRAITS_MEMBER(position) |
106 IPC_STRUCT_TRAITS_MEMBER(duration_ms) | 107 IPC_STRUCT_TRAITS_MEMBER(duration_ms) |
107 IPC_STRUCT_TRAITS_END() | 108 IPC_STRUCT_TRAITS_END() |
108 | 109 |
109 IPC_STRUCT_BEGIN(InputHostMsg_HandleInputEvent_ACK_Params) | 110 IPC_STRUCT_BEGIN(InputHostMsg_HandleInputEvent_ACK_Params) |
110 IPC_STRUCT_MEMBER(blink::WebInputEvent::Type, type) | 111 IPC_STRUCT_MEMBER(blink::WebInputEvent::Type, type) |
111 IPC_STRUCT_MEMBER(content::InputEventAckState, state) | 112 IPC_STRUCT_MEMBER(content::InputEventAckState, state) |
112 IPC_STRUCT_MEMBER(ui::LatencyInfo, latency) | 113 IPC_STRUCT_MEMBER(ui::LatencyInfo, latency) |
113 // TODO(jdduke): Use Optional<T> type to avoid heap alloc, crbug.com/375002. | 114 // TODO(jdduke): Use Optional<T> type to avoid heap alloc, crbug.com/375002. |
114 IPC_STRUCT_MEMBER(scoped_ptr<content::DidOverscrollParams>, overscroll) | 115 IPC_STRUCT_MEMBER(scoped_ptr<content::DidOverscrollParams>, overscroll) |
| 116 IPC_STRUCT_MEMBER(uint32, unique_touch_event_id) |
115 IPC_STRUCT_END() | 117 IPC_STRUCT_END() |
116 | 118 |
117 // Sends an input event to the render widget. | 119 // Sends an input event to the render widget. |
118 IPC_MESSAGE_ROUTED3(InputMsg_HandleInputEvent, | 120 IPC_MESSAGE_ROUTED3(InputMsg_HandleInputEvent, |
119 IPC::WebInputEventPointer /* event */, | 121 IPC::WebInputEventPointer /* event */, |
120 ui::LatencyInfo /* latency_info */, | 122 ui::LatencyInfo /* latency_info */, |
121 bool /* is_keyboard_shortcut */) | 123 bool /* is_keyboard_shortcut */) |
122 | 124 |
123 // Sends the cursor visibility state to the render widget. | 125 // Sends the cursor visibility state to the render widget. |
124 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange, | 126 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange, |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 // This IPC message sends the character bounds after every composition change | 273 // This IPC message sends the character bounds after every composition change |
272 // to always have correct bound info. | 274 // to always have correct bound info. |
273 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, | 275 IPC_MESSAGE_ROUTED2(InputHostMsg_ImeCompositionRangeChanged, |
274 gfx::Range /* composition range */, | 276 gfx::Range /* composition range */, |
275 std::vector<gfx::Rect> /* character bounds */) | 277 std::vector<gfx::Rect> /* character bounds */) |
276 | 278 |
277 // Adding a new message? Stick to the sort order above: first platform | 279 // Adding a new message? Stick to the sort order above: first platform |
278 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 280 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
279 // platform independent InputHostMsg, then ifdefs for platform specific | 281 // platform independent InputHostMsg, then ifdefs for platform specific |
280 // InputHostMsg. | 282 // InputHostMsg. |
OLD | NEW |