Chromium Code Reviews| Index: chrome/browser/ui/views/extensions/shell_window_views.h |
| diff --git a/chrome/browser/ui/views/extensions/shell_window_views.h b/chrome/browser/ui/views/extensions/shell_window_views.h |
| index ba4b776784179a5ca6595c05ced8100751684f0f..81e4fb17b37965a646ef5fe38ae8a2660ffe156a 100644 |
| --- a/chrome/browser/ui/views/extensions/shell_window_views.h |
| +++ b/chrome/browser/ui/views/extensions/shell_window_views.h |
| @@ -10,15 +10,18 @@ |
| #include "chrome/browser/ui/views/extensions/extension_view.h" |
|
jeremya
2012/05/07 00:54:38
I don't think we need this any more.
benwells
2012/05/07 08:46:15
Done.
|
| #include "ui/gfx/rect.h" |
| #include "ui/gfx/scoped_sk_region.h" |
| +#include "ui/views/controls/native/native_view_host.h" |
| #include "ui/views/widget/widget_delegate.h" |
| -class ExtensionHost; |
| +class Profile; |
| class ShellWindowViews : public ShellWindow, |
| - public ExtensionView::Container, |
| - public views::WidgetDelegateView { |
| + public views::NativeViewHost, |
| + public views::WidgetDelegate { |
| public: |
| - explicit ShellWindowViews(ExtensionHost* host); |
| + explicit ShellWindowViews(Profile* profile, |
| + const Extension* extension, |
| + const GURL& url); |
| // BaseWindow implementation. |
| virtual bool IsActive() const OVERRIDE; |
| @@ -51,12 +54,24 @@ class ShellWindowViews : public ShellWindow, |
| virtual string16 GetWindowTitle() const OVERRIDE; |
| virtual void DeleteDelegate() OVERRIDE; |
| - // ExtensionView::Container implementation. |
| - virtual void OnViewWasResized() OVERRIDE; |
| + // Overridden from views::NativeViewHost: |
| + virtual gfx::NativeCursor GetCursor(const views::MouseEvent& event) OVERRIDE; |
| + virtual void SetVisible(bool is_visible) OVERRIDE; |
| + virtual void ViewHierarchyChanged( |
| + bool is_add, views::View *parent, views::View *child) OVERRIDE; |
| + |
| + protected: |
| + // Overridden from views::View. |
| + virtual void PreferredSizeChanged() OVERRIDE; |
| + virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& e) OVERRIDE; |
| + virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; |
| private: |
| virtual ~ShellWindowViews(); |
| + void OnViewWasResized(); |
| + |
| + bool initialized_; |
| views::Widget* window_; |
| gfx::ScopedSkRegion caption_region_; |