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_SHELL_WINDOW_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/ui/extensions/shell_window.h" | 9 #include "chrome/browser/ui/extensions/shell_window.h" |
10 #include "ui/gfx/rect.h" | 10 #include "ui/gfx/rect.h" |
11 #include "ui/gfx/scoped_sk_region.h" | 11 #include "ui/gfx/scoped_sk_region.h" |
12 #include "ui/views/controls/native/native_view_host.h" | 12 #include "ui/views/controls/native/native_view_host.h" |
13 #include "ui/views/widget/widget_delegate.h" | 13 #include "ui/views/widget/widget_delegate.h" |
14 | 14 |
15 class Profile; | 15 class Profile; |
16 | 16 |
| 17 namespace extensions { |
| 18 class Extension; |
| 19 } |
| 20 |
17 class ShellWindowViews : public ShellWindow, | 21 class ShellWindowViews : public ShellWindow, |
18 public views::NativeViewHost, | 22 public views::NativeViewHost, |
19 public views::WidgetDelegate { | 23 public views::WidgetDelegate { |
20 public: | 24 public: |
21 ShellWindowViews(Profile* profile, | 25 ShellWindowViews(Profile* profile, |
22 const Extension* extension, | 26 const extensions::Extension* extension, |
23 const GURL& url); | 27 const GURL& url); |
24 | 28 |
25 // BaseWindow implementation. | 29 // BaseWindow implementation. |
26 virtual bool IsActive() const OVERRIDE; | 30 virtual bool IsActive() const OVERRIDE; |
27 virtual bool IsMaximized() const OVERRIDE; | 31 virtual bool IsMaximized() const OVERRIDE; |
28 virtual bool IsMinimized() const OVERRIDE; | 32 virtual bool IsMinimized() const OVERRIDE; |
29 virtual bool IsFullscreen() const OVERRIDE; | 33 virtual bool IsFullscreen() const OVERRIDE; |
30 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; | 34 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; |
31 virtual gfx::Rect GetBounds() const OVERRIDE; | 35 virtual gfx::Rect GetBounds() const OVERRIDE; |
32 virtual void Show() OVERRIDE; | 36 virtual void Show() OVERRIDE; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 views::Widget* window_; | 78 views::Widget* window_; |
75 | 79 |
76 gfx::ScopedSkRegion caption_region_; | 80 gfx::ScopedSkRegion caption_region_; |
77 | 81 |
78 bool use_native_frame_; | 82 bool use_native_frame_; |
79 | 83 |
80 DISALLOW_COPY_AND_ASSIGN(ShellWindowViews); | 84 DISALLOW_COPY_AND_ASSIGN(ShellWindowViews); |
81 }; | 85 }; |
82 | 86 |
83 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ | 87 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_SHELL_WINDOW_VIEWS_H_ |
OLD | NEW |