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

Side by Side Diff: chrome/browser/ui/views/ash/panel_view_aura.h

Issue 10735061: Move ExtensionWindowController and related into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Latest master for cq Created 8 years, 5 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/ui/panels/panel_host.cc ('k') | chrome/browser/ui/views/ash/panel_view_aura.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) 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_ASH_PANEL_VIEW_AURA_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_PANEL_VIEW_AURA_H_
6 #define CHROME_BROWSER_UI_VIEWS_ASH_PANEL_VIEW_AURA_H_ 6 #define CHROME_BROWSER_UI_VIEWS_ASH_PANEL_VIEW_AURA_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "chrome/browser/sessions/session_id.h" 11 #include "chrome/browser/sessions/session_id.h"
12 #include "chrome/browser/ui/base_window.h" 12 #include "chrome/browser/ui/base_window.h"
13 #include "ui/gfx/size.h" 13 #include "ui/gfx/size.h"
14 #include "ui/views/controls/native/native_view_host.h" 14 #include "ui/views/controls/native/native_view_host.h"
15 #include "ui/views/widget/widget_delegate.h" 15 #include "ui/views/widget/widget_delegate.h"
16 16
17 class ExtensionWindowController;
18 class GURL; 17 class GURL;
19 class Profile; 18 class Profile;
20 19
21 namespace content { 20 namespace content {
22 class WebContents; 21 class WebContents;
23 } 22 }
24 23
24 namespace extensions {
25 class WindowController;
26 }
27
25 namespace views { 28 namespace views {
26 class Widget; 29 class Widget;
27 } 30 }
28 31
29 namespace internal { 32 namespace internal {
30 class PanelHost; 33 class PanelHost;
31 } 34 }
32 35
33 /////////////////////////////////////////////////////////////////////////////// 36 ///////////////////////////////////////////////////////////////////////////////
34 // PanelViewAura is used to display HTML in a Panel window. 37 // PanelViewAura is used to display HTML in a Panel window.
(...skipping 12 matching lines...) Expand all
47 // Returns the WebContents associated with this panel. 50 // Returns the WebContents associated with this panel.
48 content::WebContents* WebContents(); 51 content::WebContents* WebContents();
49 52
50 // Close the panel window. 53 // Close the panel window.
51 void CloseView(); 54 void CloseView();
52 55
53 // Set the preferred size of the contents. 56 // Set the preferred size of the contents.
54 void SetContentPreferredSize(const gfx::Size& size); 57 void SetContentPreferredSize(const gfx::Size& size);
55 58
56 const SessionID& session_id() const { return session_id_; } 59 const SessionID& session_id() const { return session_id_; }
57 ExtensionWindowController* extension_window_controller() const { 60 extensions::WindowController* extension_window_controller() const {
58 return extension_window_controller_.get(); 61 return extension_window_controller_.get();
59 } 62 }
60 63
61 // Overridden from views::View: 64 // Overridden from views::View:
62 virtual gfx::Size GetPreferredSize() OVERRIDE; 65 virtual gfx::Size GetPreferredSize() OVERRIDE;
63 66
64 // Overridden from views::WidgetDelegate: 67 // Overridden from views::WidgetDelegate:
65 virtual bool CanResize() const OVERRIDE; 68 virtual bool CanResize() const OVERRIDE;
66 virtual string16 GetWindowTitle() const OVERRIDE; 69 virtual string16 GetWindowTitle() const OVERRIDE;
67 virtual views::View* GetContentsView() OVERRIDE; 70 virtual views::View* GetContentsView() OVERRIDE;
(...skipping 26 matching lines...) Expand all
94 virtual bool IsAlwaysOnTop() const OVERRIDE; 97 virtual bool IsAlwaysOnTop() const OVERRIDE;
95 98
96 private: 99 private:
97 const SessionID session_id_; 100 const SessionID session_id_;
98 std::string title_; 101 std::string title_;
99 gfx::Size preferred_size_; 102 gfx::Size preferred_size_;
100 // Owned internal host class implementing WebContents and Extension Delegates. 103 // Owned internal host class implementing WebContents and Extension Delegates.
101 scoped_ptr<internal::PanelHost> host_; 104 scoped_ptr<internal::PanelHost> host_;
102 // Unowned pointer to the widget. 105 // Unowned pointer to the widget.
103 views::Widget* widget_; 106 views::Widget* widget_;
104 scoped_ptr<ExtensionWindowController> extension_window_controller_; 107 scoped_ptr<extensions::WindowController> extension_window_controller_;
105 108
106 DISALLOW_COPY_AND_ASSIGN(PanelViewAura); 109 DISALLOW_COPY_AND_ASSIGN(PanelViewAura);
107 }; 110 };
108 111
109 #endif // CHROME_BROWSER_UI_VIEWS_ASH_PANEL_VIEW_AURA_H_ 112 #endif // CHROME_BROWSER_UI_VIEWS_ASH_PANEL_VIEW_AURA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_host.cc ('k') | chrome/browser/ui/views/ash/panel_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698