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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 // rendering path. | 54 // rendering path. |
55 IPC_STRUCT_MEMBER(bool, repaint) | 55 IPC_STRUCT_MEMBER(bool, repaint) |
56 IPC_STRUCT_END() | 56 IPC_STRUCT_END() |
57 | 57 |
58 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_Attach_Params) | 58 IPC_STRUCT_BEGIN(BrowserPluginHostMsg_Attach_Params) |
59 IPC_STRUCT_MEMBER(std::string, storage_partition_id) | 59 IPC_STRUCT_MEMBER(std::string, storage_partition_id) |
60 IPC_STRUCT_MEMBER(bool, persist_storage) | 60 IPC_STRUCT_MEMBER(bool, persist_storage) |
61 IPC_STRUCT_MEMBER(bool, focused) | 61 IPC_STRUCT_MEMBER(bool, focused) |
62 IPC_STRUCT_MEMBER(bool, visible) | 62 IPC_STRUCT_MEMBER(bool, visible) |
63 IPC_STRUCT_MEMBER(bool, opaque) | 63 IPC_STRUCT_MEMBER(bool, opaque) |
64 IPC_STRUCT_MEMBER(std::string, name) | |
65 IPC_STRUCT_MEMBER(std::string, src) | 64 IPC_STRUCT_MEMBER(std::string, src) |
66 IPC_STRUCT_MEMBER(GURL, embedder_frame_url) | 65 IPC_STRUCT_MEMBER(GURL, embedder_frame_url) |
67 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_AutoSize_Params, auto_size_params) | 66 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_AutoSize_Params, auto_size_params) |
68 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_ResizeGuest_Params, | 67 IPC_STRUCT_MEMBER(BrowserPluginHostMsg_ResizeGuest_Params, |
69 resize_guest_params) | 68 resize_guest_params) |
70 IPC_STRUCT_END() | 69 IPC_STRUCT_END() |
71 | 70 |
72 IPC_STRUCT_BEGIN(BrowserPluginMsg_Attach_ACK_Params) | 71 IPC_STRUCT_BEGIN(BrowserPluginMsg_Attach_ACK_Params) |
73 IPC_STRUCT_MEMBER(std::string, storage_partition_id) | 72 IPC_STRUCT_MEMBER(std::string, storage_partition_id) |
74 IPC_STRUCT_MEMBER(bool, persist_storage) | 73 IPC_STRUCT_MEMBER(bool, persist_storage) |
75 IPC_STRUCT_MEMBER(std::string, name) | |
76 IPC_STRUCT_END() | 74 IPC_STRUCT_END() |
77 | 75 |
78 IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params) | 76 IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params) |
79 // The size of the RenderView when this message was generated. This is | 77 // The size of the RenderView when this message was generated. This is |
80 // included so the host knows how large the view is from the perspective of | 78 // included so the host knows how large the view is from the perspective of |
81 // the renderer process. This is necessary in case a resize operation is in | 79 // the renderer process. This is necessary in case a resize operation is in |
82 // progress. If auto-resize is enabled, this should update the corresponding | 80 // progress. If auto-resize is enabled, this should update the corresponding |
83 // view size. | 81 // view size. |
84 IPC_STRUCT_MEMBER(gfx::Size, view_size) | 82 IPC_STRUCT_MEMBER(gfx::Size, view_size) |
85 | 83 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 bool /* opaque */) | 200 bool /* opaque */) |
203 | 201 |
204 // Tells the guest that a drag event happened on the plugin. | 202 // Tells the guest that a drag event happened on the plugin. |
205 IPC_MESSAGE_ROUTED5(BrowserPluginHostMsg_DragStatusUpdate, | 203 IPC_MESSAGE_ROUTED5(BrowserPluginHostMsg_DragStatusUpdate, |
206 int /* instance_id */, | 204 int /* instance_id */, |
207 blink::WebDragStatus /* drag_status */, | 205 blink::WebDragStatus /* drag_status */, |
208 content::DropData /* drop_data */, | 206 content::DropData /* drop_data */, |
209 blink::WebDragOperationsMask /* operation_mask */, | 207 blink::WebDragOperationsMask /* operation_mask */, |
210 gfx::Point /* plugin_location */) | 208 gfx::Point /* plugin_location */) |
211 | 209 |
212 // Sets the name of the guest window to the provided |name|. | |
213 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetName, | |
214 int /* instance_id */, | |
215 std::string /* name */) | |
216 | |
217 // Sends a PointerLock Lock ACK to the BrowserPluginGuest. | 210 // Sends a PointerLock Lock ACK to the BrowserPluginGuest. |
218 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_LockMouse_ACK, | 211 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_LockMouse_ACK, |
219 int /* instance_id */, | 212 int /* instance_id */, |
220 bool /* succeeded */) | 213 bool /* succeeded */) |
221 | 214 |
222 // Sends a PointerLock Unlock ACK to the BrowserPluginGuest. | 215 // Sends a PointerLock Unlock ACK to the BrowserPluginGuest. |
223 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_UnlockMouse_ACK, int /* instance_id */) | 216 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_UnlockMouse_ACK, int /* instance_id */) |
224 | 217 |
225 // Sent when plugin's position has changed without UpdateRect. | 218 // Sent when plugin's position has changed without UpdateRect. |
226 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_UpdateGeometry, | 219 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_UpdateGeometry, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_UpdateRect, | 280 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_UpdateRect, |
288 int /* instance_id */, | 281 int /* instance_id */, |
289 BrowserPluginMsg_UpdateRect_Params) | 282 BrowserPluginMsg_UpdateRect_Params) |
290 | 283 |
291 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_CopyFromCompositingSurface, | 284 IPC_MESSAGE_CONTROL4(BrowserPluginMsg_CopyFromCompositingSurface, |
292 int /* instance_id */, | 285 int /* instance_id */, |
293 int /* request_id */, | 286 int /* request_id */, |
294 gfx::Rect /* source_rect */, | 287 gfx::Rect /* source_rect */, |
295 gfx::Size /* dest_size */) | 288 gfx::Size /* dest_size */) |
296 | 289 |
297 // Informs BrowserPlugin of a new name set for the top-level guest frame. | |
298 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_UpdatedName, | |
299 int /* instance_id */, | |
300 std::string /* name */) | |
301 | |
302 // Guest renders into an FBO with textures provided by the embedder. | 290 // Guest renders into an FBO with textures provided by the embedder. |
303 // BrowserPlugin shares mostly the same logic as out-of-process RenderFrames but | 291 // BrowserPlugin shares mostly the same logic as out-of-process RenderFrames but |
304 // because BrowserPlugins implement custom a second level of routing logic, | 292 // because BrowserPlugins implement custom a second level of routing logic, |
305 // the IPCs need to be annotated with an extra instance_id. These messages | 293 // the IPCs need to be annotated with an extra instance_id. These messages |
306 // provide that extra id. | 294 // provide that extra id. |
307 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_BuffersSwapped, | 295 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_BuffersSwapped, |
308 int /* instance_id */, | 296 int /* instance_id */, |
309 FrameMsg_BuffersSwapped_Params /* params */) | 297 FrameMsg_BuffersSwapped_Params /* params */) |
310 | 298 |
311 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_CompositorFrameSwapped, | 299 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_CompositorFrameSwapped, |
312 int /* instance_id */, | 300 int /* instance_id */, |
313 FrameMsg_CompositorFrameSwapped_Params /* params */) | 301 FrameMsg_CompositorFrameSwapped_Params /* params */) |
314 | 302 |
315 // Forwards a PointerLock Unlock request to the BrowserPlugin. | 303 // Forwards a PointerLock Unlock request to the BrowserPlugin. |
316 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetMouseLock, | 304 IPC_MESSAGE_CONTROL2(BrowserPluginMsg_SetMouseLock, |
317 int /* instance_id */, | 305 int /* instance_id */, |
318 bool /* enable */) | 306 bool /* enable */) |
319 | 307 |
320 // See comment about BrowserPluginMsg_BuffersSwapped and | 308 // See comment about BrowserPluginMsg_BuffersSwapped and |
321 // BrowserPluginMsg_CompositorFrameSwapped for how these related | 309 // BrowserPluginMsg_CompositorFrameSwapped for how these related |
322 // to the FrameHostMsg variants. | 310 // to the FrameHostMsg variants. |
323 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_BuffersSwappedACK, | 311 IPC_MESSAGE_ROUTED1(BrowserPluginHostMsg_BuffersSwappedACK, |
324 FrameHostMsg_BuffersSwappedACK_Params /* params */) | 312 FrameHostMsg_BuffersSwappedACK_Params /* params */) |
325 | 313 |
326 // Acknowledge that we presented an ubercomp frame. | 314 // Acknowledge that we presented an ubercomp frame. |
327 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CompositorFrameSwappedACK, | 315 IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_CompositorFrameSwappedACK, |
328 int /* instance_id */, | 316 int /* instance_id */, |
329 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) | 317 FrameHostMsg_CompositorFrameSwappedACK_Params /* params */) |
OLD | NEW |