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 #include "ash/shell/panel_window.h" | 5 #include "ash/shell/panel_window.h" |
6 | 6 |
7 #include "ash/wm/panel_frame_view.h" | 7 #include "ash/wm/panel_frame_view.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
10 #include "ui/gfx/canvas.h" | 10 #include "ui/gfx/canvas.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
69 bool PanelWindow::CanResize() const { | 69 bool PanelWindow::CanResize() const { |
70 return true; | 70 return true; |
71 } | 71 } |
72 | 72 |
73 bool PanelWindow::CanMaximize() const { | 73 bool PanelWindow::CanMaximize() const { |
74 return false; | 74 return false; |
75 } | 75 } |
76 | 76 |
77 views::NonClientFrameView* PanelWindow::CreateNonClientFrameView( | 77 views::NonClientFrameView* PanelWindow::CreateNonClientFrameView( |
78 views::Widget* widget) { | 78 views::Widget* widget) { |
79 return new PanelFrameView(widget); | 79 return new PanelFrameView(widget, true); |
jeremya
2012/11/15 01:09:25
It's not clear what this parameter means; perhaps
flackr
2012/11/15 16:04:17
Or comment it: /* show_header */ true
stevenjb
2012/11/16 23:42:40
Replaced with enum.
| |
80 } | 80 } |
81 | 81 |
82 } // namespace ash | 82 } // namespace ash |
OLD | NEW |