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

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

Issue 160610: Make extensions in the extension shelf render their content to a visible GTK (Closed)
Patch Set: should be initialized to true to match Windows 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_; }
22 void set_is_toolstrip(bool is_toolstrip) { is_toolstrip_ = is_toolstrip; }
23
21 private: 24 private:
22 RenderViewHost* render_view_host() const; 25 RenderViewHost* render_view_host() const;
23 26
24 void CreateWidgetHostView(); 27 void CreateWidgetHostView();
25 28
29 // True if the contents are being displayed inside the extension shelf.
30 bool is_toolstrip_;
31
26 ExtensionHost* extension_host_; 32 ExtensionHost* extension_host_;
27 33
28 RenderWidgetHostViewGtk* render_widget_host_view_; 34 RenderWidgetHostViewGtk* render_widget_host_view_;
29 35
30 DISALLOW_COPY_AND_ASSIGN(ExtensionViewGtk); 36 DISALLOW_COPY_AND_ASSIGN(ExtensionViewGtk);
31 }; 37 };
32 38
33 #endif // CHROME_BROWSER_GTK_EXTENSION_VIEW_GTK_H_ 39 #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