summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host
diff options
context:
space:
mode:
authorjcivelli@google.com <jcivelli@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-05 19:58:07 +0000
committerjcivelli@google.com <jcivelli@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-05 19:58:07 +0000
commit705243f33047d66a6e0c674041af5dc59073871d (patch)
treec7d01e2a6b6281455643895369fe3c93032e6cf4 /chrome/browser/renderer_host
parent377ddd48b5aff4fb231d78fa197f07c933424110 (diff)
downloadchromium_src-705243f33047d66a6e0c674041af5dc59073871d.zip
chromium_src-705243f33047d66a6e0c674041af5dc59073871d.tar.gz
chromium_src-705243f33047d66a6e0c674041af5dc59073871d.tar.bz2
Make the app launcher bubble fit its contents.
It remains at least as wide as the browser location bar (that way it can always point at the + button). InfoBubble was modified so it can be resized. BUG=42260 TEST=Open the app launcher multiple-times. The app launcher should fit its contents nicely. Review URL: http://codereview.chromium.org/1739020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46482 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host')
-rw-r--r--chrome/browser/renderer_host/render_view_host.cc4
-rw-r--r--chrome/browser/renderer_host/render_view_host.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/render_view_host.cc b/chrome/browser/renderer_host/render_view_host.cc
index 88729ea..c592b81 100644
--- a/chrome/browser/renderer_host/render_view_host.cc
+++ b/chrome/browser/renderer_host/render_view_host.cc
@@ -1813,6 +1813,10 @@ void RenderViewHost::SendContentSettings(const GURL& url,
Send(new ViewMsg_SetContentSettingsForCurrentURL(url, settings));
}
+void RenderViewHost::EnablePreferredSizeChangedMode() {
+ Send(new ViewMsg_EnablePreferredSizeChangedMode(routing_id()));
+}
+
void RenderViewHost::OnExtensionPostMessage(
int port_id, const std::string& message) {
if (process()->profile()->GetExtensionMessageService()) {
diff --git a/chrome/browser/renderer_host/render_view_host.h b/chrome/browser/renderer_host/render_view_host.h
index b384d6d..84dec34 100644
--- a/chrome/browser/renderer_host/render_view_host.h
+++ b/chrome/browser/renderer_host/render_view_host.h
@@ -460,6 +460,10 @@ class RenderViewHost : public RenderWidgetHost {
void SendContentSettings(const GURL& url,
const ContentSettings& settings);
+ // Tells the renderer to notify us when the page contents preferred size
+ // changed.
+ void EnablePreferredSizeChangedMode();
+
protected:
// RenderWidgetHost protected overrides.
virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,