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

Issue 11361052: Browser Plugin: Implement autosize (Embedder-side code) (Closed)

Created:
8 years, 1 month ago by Fady Samuel
Modified:
8 years, 1 month ago
Reviewers:
jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, Charlie Reis, Mihai Parparita -not on Chrome
Visibility:
Public.

Description

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

Patch Set 1 #

Total comments: 14

Patch Set 2 : Fixed nits #

Patch Set 3 : Merged with ToT #

Patch Set 4 : BrowserPluginHostMsg_AutoSize_Params had an int instead of bool for enable: fixed #

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

Messages

Total messages: 9 (0 generated)
Fady Samuel
Hi John (Charlie in CC), This is the beginnings of my implementation of autosize. This ...
8 years, 1 month ago (2012-11-02 00:22:39 UTC) #1
jam
lgtm with nits https://codereview.chromium.org/11361052/diff/1/content/browser/browser_plugin/browser_plugin_guest.h File content/browser/browser_plugin/browser_plugin_guest.h (right): https://codereview.chromium.org/11361052/diff/1/content/browser/browser_plugin/browser_plugin_guest.h#newcode266 content/browser/browser_plugin/browser_plugin_guest.h:266: int minwidth_; ditto https://codereview.chromium.org/11361052/diff/1/content/common/browser_plugin_messages.h File content/common/browser_plugin_messages.h ...
8 years, 1 month ago (2012-11-02 19:11:10 UTC) #2
Fady Samuel
Fixed nits. CQ'ing now. http://codereview.chromium.org/11361052/diff/1/content/browser/browser_plugin/browser_plugin_guest.h File content/browser/browser_plugin/browser_plugin_guest.h (right): http://codereview.chromium.org/11361052/diff/1/content/browser/browser_plugin/browser_plugin_guest.h#newcode266 content/browser/browser_plugin/browser_plugin_guest.h:266: int minwidth_; On 2012/11/02 19:11:10, ...
8 years, 1 month ago (2012-11-02 20:32:23 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/11361052/5002
8 years, 1 month ago (2012-11-02 20:34:48 UTC) #4
commit-bot: I haz the power
Failed to apply patch for content/common/browser_plugin_messages.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 1 month ago (2012-11-02 20:34:56 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/11361052/4002
8 years, 1 month ago (2012-11-02 21:41:41 UTC) #6
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years, 1 month ago (2012-11-02 22:40:30 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/11361052/10021
8 years, 1 month ago (2012-11-02 22:58:32 UTC) #8
commit-bot: I haz the power
8 years, 1 month ago (2012-11-03 00:49:41 UTC) #9
Change committed as 165817

Powered by Google App Engine
This is Rietveld 408576698