summaryrefslogtreecommitdiffstats
path: root/ash/shell
diff options
context:
space:
mode:
Diffstat (limited to 'ash/shell')
-rw-r--r--ash/shell/panel_window.cc5
-rw-r--r--ash/shell/panel_window.h5
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_;