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

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

Issue 173506: Fix crash in Linux 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
Index: chrome/browser/gtk/extension_view_gtk.h
diff --git a/chrome/browser/gtk/extension_view_gtk.h b/chrome/browser/gtk/extension_view_gtk.h
index 1220873289265ff1401af1689a58cad8ea6d50f2..495039d2d00395f6794f1f15b2606467403aef69 100644
--- a/chrome/browser/gtk/extension_view_gtk.h
+++ b/chrome/browser/gtk/extension_view_gtk.h
@@ -8,15 +8,19 @@
#include "base/basictypes.h"
#include "base/gfx/native_widget_types.h"
+class Browser;
class ExtensionHost;
class RenderViewHost;
class RenderWidgetHostViewGtk;
class ExtensionViewGtk {
public:
- explicit ExtensionViewGtk(ExtensionHost* extension_host);
+ ExtensionViewGtk(ExtensionHost* extension_host, Browser* browser);
+
+ void Init();
gfx::NativeView native_view();
+ Browser* browser() const { return browser_; }
bool is_toolstrip() const { return is_toolstrip_; }
void set_is_toolstrip(bool is_toolstrip) { is_toolstrip_ = is_toolstrip; }
@@ -33,6 +37,8 @@ class ExtensionViewGtk {
// True if the contents are being displayed inside the extension shelf.
bool is_toolstrip_;
+ Browser* browser_;
+
ExtensionHost* extension_host_;
RenderWidgetHostViewGtk* render_widget_host_view_;

Powered by Google App Engine
This is Rietveld 408576698