OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Multiply-included message header, no traditional include guard. | 5 // Multiply-included message header, no traditional include guard. |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/process/process.h" | 10 #include "base/process/process.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 IPC_STRUCT_MEMBER(float, scale_factor) | 43 IPC_STRUCT_MEMBER(float, scale_factor) |
44 // Indicates a request for a full repaint of the page. | 44 // Indicates a request for a full repaint of the page. |
45 // This is required for switching from compositing to the software | 45 // This is required for switching from compositing to the software |
46 // rendering path. | 46 // rendering path. |
47 IPC_STRUCT_MEMBER(bool, repaint) | 47 IPC_STRUCT_MEMBER(bool, repaint) |
48 IPC_STRUCT_END() | 48 IPC_STRUCT_END() |
49 | 49 |
50 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_Attach_Params) | 50 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_Attach_Params) |
51 IPC_STRUCT_MEMBER(bool, focused) | 51 IPC_STRUCT_MEMBER(bool, focused) |
52 IPC_STRUCT_MEMBER(bool, visible) | 52 IPC_STRUCT_MEMBER(bool, visible) |
53 IPC_STRUCT_MEMBER(bool, opaque) | |
54 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_ResizeGuest_Params, | 53 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_ResizeGuest_Params, |
55 resize_guest_params) | 54 resize_guest_params) |
56 IPC_STRUCT_MEMBER(gfx::Point, origin) | 55 IPC_STRUCT_MEMBER(gfx::Point, origin) |
57 IPC_STRUCT_END() | 56 IPC_STRUCT_END() |
58 | 57 |
59 // Browser plugin messages | 58 // Browser plugin messages |
60 | 59 |
61 // ----------------------------------------------------------------------------- | 60 // ----------------------------------------------------------------------------- |
62 // These messages are from the embedder to the browser process. | 61 // These messages are from the embedder to the browser process. |
63 | 62 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // When a BrowserPlugin has been removed from the embedder's DOM, it informs | 128 // When a BrowserPlugin has been removed from the embedder's DOM, it informs |
130 // the browser process to cleanup the guest. | 129 // the browser process to cleanup the guest. |
131 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed, | 130 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_PluginDestroyed, |
132 int /* browser_plugin_instance_id */) | 131 int /* browser_plugin_instance_id */) |
133 | 132 |
134 // Tells the guest it has been shown or hidden. | 133 // Tells the guest it has been shown or hidden. |
135 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetVisibility, | 134 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetVisibility, |
136 int /* browser_plugin_instance_id */, | 135 int /* browser_plugin_instance_id */, |
137 bool /* visible */) | 136 bool /* visible */) |
138 | 137 |
139 // Tells the guest to change its background opacity. | |
140 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetContentsOpaque, | |
141 int /* browser_plugin_instance_id */, | |
142 bool /* opaque */) | |
143 | |
144 // Tells the guest that a drag event happened on the plugin. | 138 // Tells the guest that a drag event happened on the plugin. |
145 IPC_MESSAGE_ROUTED5(BrowserPluginHostMsg_DragStatusUpdate, | 139 IPC_MESSAGE_ROUTED5(BrowserPluginHostMsg_DragStatusUpdate, |
146 int /* browser_plugin_instance_id */, | 140 int /* browser_plugin_instance_id */, |
147 blink::WebDragStatus /* drag_status */, | 141 blink::WebDragStatus /* drag_status */, |
148 content::DropData /* drop_data */, | 142 content::DropData /* drop_data */, |
149 blink::WebDragOperationsMask /* operation_mask */, | 143 blink::WebDragOperationsMask /* operation_mask */, |
150 gfx::Point /* plugin_location */) | 144 gfx::Point /* plugin_location */) |
151 | 145 |
152 // Sends a PointerLock Lock ACK to the BrowserPluginGuest. | 146 // Sends a PointerLock Lock ACK to the BrowserPluginGuest. |
153 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_LockMouse_ACK, | 147 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_LockMouse_ACK, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_AdvanceFocus, | 185 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_AdvanceFocus, |
192 int /* browser_plugin_instance_id */, | 186 int /* browser_plugin_instance_id */, |
193 bool /* reverse */) | 187 bool /* reverse */) |
194 | 188 |
195 // When the guest starts/stops listening to touch events, it needs to notify the | 189 // When the guest starts/stops listening to touch events, it needs to notify the |
196 // plugin in the embedder about it. | 190 // plugin in the embedder about it. |
197 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, | 191 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_ShouldAcceptTouchEvents, |
198 int /* browser_plugin_instance_id */, | 192 int /* browser_plugin_instance_id */, |
199 bool /* accept */) | 193 bool /* accept */) |
200 | 194 |
| 195 // Tells the guest to change its background opacity. |
| 196 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetContentsOpaque, |
| 197 int /* browser_plugin_instance_id */, |
| 198 bool /* opaque */) |
| 199 |
201 // Inform the embedder of the cursor the guest wishes to display. | 200 // Inform the embedder of the cursor the guest wishes to display. |
202 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetCursor, | 201 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetCursor, |
203 int /* browser_plugin_instance_id */, | 202 int /* browser_plugin_instance_id */, |
204 content::WebCursor /* cursor */) | 203 content::WebCursor /* cursor */) |
205 | 204 |
206 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_CopyFromCompositingSurface, | 205 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_CopyFromCompositingSurface, |
207 int /* browser_plugin_instance_id */, | 206 int /* browser_plugin_instance_id */, |
208 int /* request_id */, | 207 int /* request_id */, |
209 gfx::Rect /* source_rect */, | 208 gfx::Rect /* source_rect */, |
210 gfx::Size /* dest_size */) | 209 gfx::Size /* dest_size */) |
211 | 210 |
212 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_CompositorFrameSwapped, | 211 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_CompositorFrameSwapped, |
213 int /* browser_plugin_instance_id */, | 212 int /* browser_plugin_instance_id */, |
214 FrameMsg_CompositorFrameSwapped_Params /* params */) | 213 FrameMsg_CompositorFrameSwapped_Params /* params */) |
215 | 214 |
216 // Forwards a PointerLock Unlock request to the BrowserPlugin. | 215 // Forwards a PointerLock Unlock request to the BrowserPlugin. |
217 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetMouseLock, | 216 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetMouseLock, |
218 int /* browser_plugin_instance_id */, | 217 int /* browser_plugin_instance_id */, |
219 bool /* enable */) | 218 bool /* enable */) |
220 | 219 |
221 // Acknowledge that we presented an ubercomp frame. | 220 // Acknowledge that we presented an ubercomp frame. |
222 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CompositorFrameSwappedACK, | 221 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CompositorFrameSwappedACK, |
223 int /* browser_plugin_instance_id */, | 222 int /* browser_plugin_instance_id */, |
224 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) | 223 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) |
OLD | NEW |