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

Side by Side Diff: chrome/browser/gtk/extension_view_gtk.h

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 unified diff | Download patch
« no previous file with comments | « chrome/browser/gtk/extension_shelf_gtk.cc ('k') | chrome/browser/gtk/extension_view_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_GTK_EXTENSION_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_EXTENSION_VIEW_GTK_H_
6 #define CHROME_BROWSER_GTK_EXTENSION_VIEW_GTK_H_ 6 #define CHROME_BROWSER_GTK_EXTENSION_VIEW_GTK_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/gfx/native_widget_types.h" 9 #include "base/gfx/native_widget_types.h"
10 10
11 class ExtensionHost; 11 class ExtensionHost;
12 class RenderViewHost; 12 class RenderViewHost;
13 class RenderWidgetHostViewGtk; 13 class RenderWidgetHostViewGtk;
14 14
15 class ExtensionViewGtk { 15 class ExtensionViewGtk {
16 public: 16 public:
17 explicit ExtensionViewGtk(ExtensionHost* extension_host); 17 explicit ExtensionViewGtk(ExtensionHost* extension_host);
18 18
19 gfx::NativeView native_view(); 19 gfx::NativeView native_view();
20 20
21 bool is_toolstrip() const { return is_toolstrip_; } 21 bool is_toolstrip() const { return is_toolstrip_; }
22 void set_is_toolstrip(bool is_toolstrip) { is_toolstrip_ = is_toolstrip; } 22 void set_is_toolstrip(bool is_toolstrip) { is_toolstrip_ = is_toolstrip; }
23 23
24 // Method for the ExtensionHost to notify us about the correct width for
25 // extension contents.
26 void UpdatePreferredWidth(int pref_width);
27
24 private: 28 private:
25 RenderViewHost* render_view_host() const; 29 RenderViewHost* render_view_host() const;
26 30
27 void CreateWidgetHostView(); 31 void CreateWidgetHostView();
28 32
29 // True if the contents are being displayed inside the extension shelf. 33 // True if the contents are being displayed inside the extension shelf.
30 bool is_toolstrip_; 34 bool is_toolstrip_;
31 35
32 ExtensionHost* extension_host_; 36 ExtensionHost* extension_host_;
33 37
34 RenderWidgetHostViewGtk* render_widget_host_view_; 38 RenderWidgetHostViewGtk* render_widget_host_view_;
35 39
36 DISALLOW_COPY_AND_ASSIGN(ExtensionViewGtk); 40 DISALLOW_COPY_AND_ASSIGN(ExtensionViewGtk);
37 }; 41 };
38 42
39 #endif // CHROME_BROWSER_GTK_EXTENSION_VIEW_GTK_H_ 43 #endif // CHROME_BROWSER_GTK_EXTENSION_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/extension_shelf_gtk.cc ('k') | chrome/browser/gtk/extension_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698