Index: trunk/src/content/common/browser_plugin/browser_plugin_messages.h |
=================================================================== |
--- trunk/src/content/common/browser_plugin/browser_plugin_messages.h (revision 287745) |
+++ trunk/src/content/common/browser_plugin/browser_plugin_messages.h (working copy) |
@@ -37,6 +37,12 @@ |
IPC_ENUM_TRAITS_MAX_VALUE(blink::WebDragStatus, blink::WebDragStatusLast) |
+IPC_STRUCT_BEGIN(BrowserPluginHostMsg_AutoSize_Params) |
+ IPC_STRUCT_MEMBER(bool, enable) |
+ IPC_STRUCT_MEMBER(gfx::Size, max_size) |
+ IPC_STRUCT_MEMBER(gfx::Size, min_size) |
+IPC_STRUCT_END() |
+ |
IPC_STRUCT_BEGIN(BrowserPluginHostMsg_ResizeGuest_Params) |
// Indicates whether the parameters have been populated or not. |
IPC_STRUCT_MEMBER(bool, size_changed) |
@@ -54,6 +60,7 @@ |
IPC_STRUCT_MEMBER(bool, focused) |
IPC_STRUCT_MEMBER(bool, visible) |
IPC_STRUCT_MEMBER(bool, opaque) |
+ IPC_STRUCT_MEMBER(BrowserPluginHostMsg_AutoSize_Params, auto_size_params) |
IPC_STRUCT_MEMBER(BrowserPluginHostMsg_ResizeGuest_Params, |
resize_guest_params) |
IPC_STRUCT_MEMBER(gfx::Point, origin) |
@@ -115,6 +122,14 @@ |
int /* before */, |
int /* after */) |
+// This message is sent to the browser process to enable or disable autosize |
+// mode. |
+IPC_MESSAGE_ROUTED3( |
+ BrowserPluginHostMsg_SetAutoSize, |
+ int /* instance_id */, |
+ BrowserPluginHostMsg_AutoSize_Params /* auto_size_params */, |
+ BrowserPluginHostMsg_ResizeGuest_Params /* resize_guest_params */) |
+ |
// This message is sent to the browser process to indicate that a BrowserPlugin |
// has taken ownership of the lifetime of the guest of the given |instance_id|. |
// |params| is the state of the BrowserPlugin taking ownership of |