| OLD | NEW |
| 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_ |
| OLD | NEW |