summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/extension_view_gtk.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-06 21:34:11 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-06 21:34:11 +0000
commit1f74cfc185bb4d47532994a206a901bc708d3ff6 (patch)
tree93d7602cc3b4420c66d08fc5ece46618bff24dc7 /chrome/browser/gtk/extension_view_gtk.cc
parentf0a5d7cd1a65d7ff71299f95ee78929729694f25 (diff)
downloadchromium_src-1f74cfc185bb4d47532994a206a901bc708d3ff6.zip
chromium_src-1f74cfc185bb4d47532994a206a901bc708d3ff6.tar.gz
chromium_src-1f74cfc185bb4d47532994a206a901bc708d3ff6.tar.bz2
Correctly handle extensions width in the GTK extension shelf.
Also make the method name used on Windows shorter and more obvious. TEST=none http://crbug.com/16759 Review URL: http://codereview.chromium.org/164092 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22672 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/extension_view_gtk.cc')
-rw-r--r--chrome/browser/gtk/extension_view_gtk.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/gtk/extension_view_gtk.cc b/chrome/browser/gtk/extension_view_gtk.cc
index 5940d0f..60d1a3f 100644
--- a/chrome/browser/gtk/extension_view_gtk.cc
+++ b/chrome/browser/gtk/extension_view_gtk.cc
@@ -23,6 +23,10 @@ RenderViewHost* ExtensionViewGtk::render_view_host() const {
return extension_host_->render_view_host();
}
+void ExtensionViewGtk::UpdatePreferredWidth(int pref_width) {
+ gtk_widget_set_size_request(native_view(), pref_width, -1);
+}
+
void ExtensionViewGtk::CreateWidgetHostView() {
DCHECK(!render_widget_host_view_);
render_widget_host_view_ = new RenderWidgetHostViewGtk(render_view_host());