Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Unified Diff: trunk/src/content/common/browser_plugin/browser_plugin_messages.h

Issue 446823002: Revert 287732 "<webview>: Move autosize from content to chrome." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698