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

Unified Diff: chrome/browser/gtk/extension_view_gtk.cc

Issue 164092: Correctly handle extensions width in the GTK extension shelf. (Closed)
Patch Set: Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/gtk/extension_view_gtk.h ('k') | chrome/browser/views/extensions/extension_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/extension_view_gtk.cc
diff --git a/chrome/browser/gtk/extension_view_gtk.cc b/chrome/browser/gtk/extension_view_gtk.cc
index 5940d0f7194758549d9b97a9937c081ca208e0bb..60d1a3f72761a28c9d88d5b23ef325a122a82e08 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());
« no previous file with comments | « chrome/browser/gtk/extension_view_gtk.h ('k') | chrome/browser/views/extensions/extension_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698