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

Unified Diff: chrome/browser/extensions/extension_host.h

Issue 159527: Create render view for extensions on Linux. (Closed)
Patch Set: Created 11 years, 5 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 | « no previous file | chrome/browser/extensions/extension_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_host.h
diff --git a/chrome/browser/extensions/extension_host.h b/chrome/browser/extensions/extension_host.h
index 66290e32f8c56b5514fc1fd987708058c027860b..8961dfe452318817c04440356db5ee3846ec9260 100644
--- a/chrome/browser/extensions/extension_host.h
+++ b/chrome/browser/extensions/extension_host.h
@@ -13,6 +13,8 @@
#include "chrome/browser/tab_contents/render_view_host_delegate_helper.h"
#if defined(TOOLKIT_VIEWS)
#include "chrome/browser/views/extensions/extension_view.h"
+#elif defined(OS_LINUX)
+#include "chrome/browser/gtk/extension_view_gtk.h"
#endif
class Browser;
@@ -42,6 +44,8 @@ class ExtensionHost : public RenderViewHostDelegate,
#if defined(TOOLKIT_VIEWS)
void set_view(ExtensionView* view) { view_.reset(view); }
ExtensionView* view() const { return view_.get(); }
+#elif defined(OS_LINUX)
+ ExtensionViewGtk* view() const { return view_.get(); }
#endif
// Create an ExtensionView and tie it to this host and |browser|.
@@ -127,9 +131,11 @@ class ExtensionHost : public RenderViewHostDelegate,
// The profile that this host is tied to.
Profile* profile_;
-#if defined(TOOLKIT_VIEWS)
// Optional view that shows the rendered content in the UI.
+#if defined(TOOLKIT_VIEWS)
scoped_ptr<ExtensionView> view_;
+#elif defined(OS_LINUX)
+ scoped_ptr<ExtensionViewGtk> view_;
#endif
// The host for our HTML content.
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698