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" |
11 #include "content/common/content_param_traits.h" | 11 #include "content/common/content_param_traits.h" |
12 #include "content/common/edit_command.h" | 12 #include "content/common/edit_command.h" |
| 13 #include "content/common/input/input_param_traits.h" |
| 14 #include "content/common/input/event_packet.h" |
| 15 #include "content/common/input/event_packet_ack.h" |
13 #include "content/port/common/input_event_ack_state.h" | 16 #include "content/port/common/input_event_ack_state.h" |
14 #include "content/public/common/common_param_traits.h" | 17 #include "content/public/common/common_param_traits.h" |
15 #include "ipc/ipc_message_macros.h" | 18 #include "ipc/ipc_message_macros.h" |
16 #include "third_party/WebKit/public/web/WebInputEvent.h" | 19 #include "third_party/WebKit/public/web/WebInputEvent.h" |
17 #include "ui/base/latency_info.h" | 20 #include "ui/base/latency_info.h" |
18 #include "ui/gfx/point.h" | 21 #include "ui/gfx/point.h" |
19 #include "ui/gfx/rect.h" | 22 #include "ui/gfx/rect.h" |
20 | 23 |
21 #undef IPC_MESSAGE_EXPORT | 24 #undef IPC_MESSAGE_EXPORT |
22 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 25 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
(...skipping 10 matching lines...) Expand all Loading... |
33 IPC_STRUCT_TRAITS_MEMBER(name) | 36 IPC_STRUCT_TRAITS_MEMBER(name) |
34 IPC_STRUCT_TRAITS_MEMBER(value) | 37 IPC_STRUCT_TRAITS_MEMBER(value) |
35 IPC_STRUCT_TRAITS_END() | 38 IPC_STRUCT_TRAITS_END() |
36 | 39 |
37 // Sends an input event to the render widget. | 40 // Sends an input event to the render widget. |
38 IPC_MESSAGE_ROUTED3(InputMsg_HandleInputEvent, | 41 IPC_MESSAGE_ROUTED3(InputMsg_HandleInputEvent, |
39 IPC::WebInputEventPointer /* event */, | 42 IPC::WebInputEventPointer /* event */, |
40 ui::LatencyInfo /* latency_info */, | 43 ui::LatencyInfo /* latency_info */, |
41 bool /* is_keyboard_shortcut */) | 44 bool /* is_keyboard_shortcut */) |
42 | 45 |
| 46 // Sends an event packet to the render widget. |
| 47 IPC_MESSAGE_ROUTED1(InputMsg_HandleEventPacket, |
| 48 content::EventPacket /* event_packet */) |
| 49 |
43 // Sends the cursor visibility state to the render widget. | 50 // Sends the cursor visibility state to the render widget. |
44 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange, | 51 IPC_MESSAGE_ROUTED1(InputMsg_CursorVisibilityChange, |
45 bool /* is_visible */) | 52 bool /* is_visible */) |
46 | 53 |
47 // This message notifies the renderer that the next key event is bound to one | 54 // This message notifies the renderer that the next key event is bound to one |
48 // or more pre-defined edit commands. If the next key event is not handled | 55 // or more pre-defined edit commands. If the next key event is not handled |
49 // by webkit, the specified edit commands shall be executed against current | 56 // by webkit, the specified edit commands shall be executed against current |
50 // focused frame. | 57 // focused frame. |
51 // Parameters | 58 // Parameters |
52 // * edit_commands (see chrome/common/edit_command_types.h) | 59 // * edit_commands (see chrome/common/edit_command_types.h) |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 131 |
125 // ----------------------------------------------------------------------------- | 132 // ----------------------------------------------------------------------------- |
126 // Messages sent from the renderer to the browser. | 133 // Messages sent from the renderer to the browser. |
127 | 134 |
128 // Acknowledges receipt of a InputMsg_HandleInputEvent message. | 135 // Acknowledges receipt of a InputMsg_HandleInputEvent message. |
129 IPC_MESSAGE_ROUTED3(InputHostMsg_HandleInputEvent_ACK, | 136 IPC_MESSAGE_ROUTED3(InputHostMsg_HandleInputEvent_ACK, |
130 WebKit::WebInputEvent::Type, | 137 WebKit::WebInputEvent::Type, |
131 content::InputEventAckState /* ack_result */, | 138 content::InputEventAckState /* ack_result */, |
132 ui::LatencyInfo /* latency_info */) | 139 ui::LatencyInfo /* latency_info */) |
133 | 140 |
| 141 IPC_MESSAGE_ROUTED1(InputHostMsg_HandleEventPacket_ACK, |
| 142 content::EventPacketAck /* event_packet_ack */) |
| 143 |
134 | 144 |
135 // Adding a new message? Stick to the sort order above: first platform | 145 // Adding a new message? Stick to the sort order above: first platform |
136 // independent InputMsg, then ifdefs for platform specific InputMsg, then | 146 // independent InputMsg, then ifdefs for platform specific InputMsg, then |
137 // platform independent InputHostMsg, then ifdefs for platform specific | 147 // platform independent InputHostMsg, then ifdefs for platform specific |
138 // InputHostMsg. | 148 // InputHostMsg. |
OLD | NEW |