diff options
author | dslomov@chromium.org <dslomov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-17 06:56:16 +0000 |
---|---|---|
committer | dslomov@chromium.org <dslomov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-17 06:56:16 +0000 |
commit | eb642f3f766d0cfc60877a625023b6b2dfeb114f (patch) | |
tree | fb92520c3891685e3feee1313f22fdbd3e2c0a3a /ash/shell | |
parent | d4421f54c53212824d59d2763b8d4e3f231e3434 (diff) | |
download | chromium_src-eb642f3f766d0cfc60877a625023b6b2dfeb114f.zip chromium_src-eb642f3f766d0cfc60877a625023b6b2dfeb114f.tar.gz chromium_src-eb642f3f766d0cfc60877a625023b6b2dfeb114f.tar.bz2 |
Use FramePainter for painting PanelViewFrame
BUG=
TEST=
Review URL: http://codereview.chromium.org/9700044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127350 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell')
-rw-r--r-- | ash/shell/panel_window.cc | 5 | ||||
-rw-r--r-- | ash/shell/panel_window.h | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/ash/shell/panel_window.cc b/ash/shell/panel_window.cc index 8606a19..e5d68ac 100644 --- a/ash/shell/panel_window.cc +++ b/ash/shell/panel_window.cc @@ -74,8 +74,9 @@ bool PanelWindow::CanMaximize() const { return false; } -views::NonClientFrameView* PanelWindow::CreateNonClientFrameView() { - return new PanelFrameView(); +views::NonClientFrameView* PanelWindow::CreateNonClientFrameView( + views::Widget* widget) { + return new PanelFrameView(widget); } } // namespace ash diff --git a/ash/shell/panel_window.h b/ash/shell/panel_window.h index cc1afbd..a27df35 100644 --- a/ash/shell/panel_window.h +++ b/ash/shell/panel_window.h @@ -13,6 +13,8 @@ namespace ash { +class PanelFrameView; + // Example Class for panel windows (Widget::InitParams::TYPE_PANEL). // Instances of PanelWindow will get added to the PanelContainer top level // window which manages the panel layout through PanelLayoutManager. @@ -40,7 +42,8 @@ class PanelWindow : public views::WidgetDelegateView { virtual View* GetContentsView() OVERRIDE; virtual bool CanResize() const OVERRIDE; virtual bool CanMaximize() const OVERRIDE; - virtual views::NonClientFrameView* CreateNonClientFrameView() OVERRIDE; + virtual views::NonClientFrameView* CreateNonClientFrameView( + views::Widget* widget) OVERRIDE; std::string name_; views::Widget::InitParams params_; |