| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/extensions/extension_view.h" |
| 10 #include "third_party/skia/include/core/SkBitmap.h" | 11 #include "third_party/skia/include/core/SkBitmap.h" |
| 11 #include "ui/views/controls/native/native_view_host.h" | 12 #include "ui/views/controls/native/native_view_host.h" |
| 12 | 13 |
| 13 class Browser; | 14 class Browser; |
| 14 | 15 |
| 15 namespace content { | 16 namespace content { |
| 16 class RenderViewHost; | 17 class RenderViewHost; |
| 17 } | 18 } |
| 18 | 19 |
| 19 namespace extensions { | 20 namespace extensions { |
| 20 class Extension; | 21 class Extension; |
| 21 class ExtensionHost; | 22 class ExtensionHost; |
| 22 } | 23 } |
| 23 | 24 |
| 24 // This handles the display portion of an ExtensionHost. | 25 // This handles the display portion of an ExtensionHost. |
| 25 class ExtensionViewViews : public views::NativeViewHost { | 26 class ExtensionViewViews : public ExtensionView, |
| 27 public views::NativeViewHost { |
| 26 public: | 28 public: |
| 27 ExtensionViewViews(extensions::ExtensionHost* host, Browser* browser); | 29 ExtensionViewViews(extensions::ExtensionHost* host, Browser* browser); |
| 28 virtual ~ExtensionViewViews(); | 30 virtual ~ExtensionViewViews(); |
| 29 | 31 |
| 30 // A class that represents the container that this view is in. | 32 // A class that represents the container that this view is in. |
| 31 // (bottom shelf, side bar, etc.) | 33 // (bottom shelf, side bar, etc.) |
| 32 class Container { | 34 class Container { |
| 33 public: | 35 public: |
| 34 virtual ~Container() {} | 36 virtual ~Container() {} |
| 35 virtual void OnExtensionSizeChanged(ExtensionViewViews* view) {} | 37 virtual void OnExtensionSizeChanged(ExtensionViewViews* view) {} |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // Note: the view does not own its container. | 106 // Note: the view does not own its container. |
| 105 Container* container_; | 107 Container* container_; |
| 106 | 108 |
| 107 // Whether this extension view is clipped. | 109 // Whether this extension view is clipped. |
| 108 bool is_clipped_; | 110 bool is_clipped_; |
| 109 | 111 |
| 110 DISALLOW_COPY_AND_ASSIGN(ExtensionViewViews); | 112 DISALLOW_COPY_AND_ASSIGN(ExtensionViewViews); |
| 111 }; | 113 }; |
| 112 | 114 |
| 113 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_ | 115 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_VIEW_VIEWS_H_ |
| OLD | NEW |