|
|
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
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=165817
Total comments: 14
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+440 lines, -198 lines) |
Patch |
 |
M |
content/browser/browser_plugin/browser_plugin_embedder.h
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_plugin/browser_plugin_embedder.cc
|
View
|
|
2 chunks |
+5 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_plugin/browser_plugin_embedder_helper.h
|
View
|
|
2 chunks |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_plugin/browser_plugin_embedder_helper.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_plugin/browser_plugin_guest.h
|
View
|
1
|
4 chunks |
+12 lines, -7 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_plugin/browser_plugin_guest.cc
|
View
|
1
2
|
3 chunks |
+15 lines, -12 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_plugin/browser_plugin_host_browsertest.cc
|
View
|
|
2 chunks |
+8 lines, -11 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_plugin/browser_plugin_host_factory.h
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_plugin/test_browser_plugin_guest.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/browser_plugin/test_browser_plugin_guest.cc
|
View
|
|
1 chunk |
+2 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_impl.h
|
View
|
|
3 chunks |
+9 lines, -10 lines |
0 comments
|
Download
|
 |
M |
content/browser/web_contents/web_contents_impl.cc
|
View
|
|
4 chunks |
+8 lines, -15 lines |
0 comments
|
Download
|
 |
M |
content/common/browser_plugin_messages.h
|
View
|
1
2
3
|
4 chunks |
+99 lines, -79 lines |
0 comments
|
Download
|
 |
M |
content/renderer/browser_plugin/browser_plugin.h
|
View
|
1
|
4 chunks |
+37 lines, -5 lines |
0 comments
|
Download
|
 |
M |
content/renderer/browser_plugin/browser_plugin.cc
|
View
|
1
|
6 chunks |
+77 lines, -13 lines |
0 comments
|
Download
|
 |
M |
content/renderer/browser_plugin/browser_plugin_bindings.cc
|
View
|
1
|
7 chunks |
+92 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/browser_plugin/browser_plugin_browsertest.cc
|
View
|
1
|
2 chunks |
+66 lines, -10 lines |
0 comments
|
Download
|
Total messages: 9 (0 generated)
|