Browser Plugin: Implement autosize (Embedder-side code)
Snippet from bug:
"When using <webview> to embed widgets that change in size (e.g. the +1 button has various hover bubbles that can appear), it can be tedious (and inefficient) to make the contents monitor their size and inform the embedder that the <webview> needs to be resize."
This patch doesn't fully implement this feature, but in the interest of smaller, easier to review patches, this can stand alone.
This patch implements autoSize, minWidth, minHeight, maxWidth, maxHeight attributes on BrowserPlugin.
If these attributes are set before first navigation, they are propagated to the browser process on
BrowserPluginHostMsg_CreateGuest.
If these attributes or updated after navigation, they are propagated via BrowserPluginHostMsg_SetAutoSize.
BUG=157620
Review URL: https://chromiumcodereview.appspot.com/11361052
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165817 0039d316-1c4b-4281-b951-d872f2087c98
17 files changed