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 ASH_SHELL_PANEL_WINDOW_H_ | 5 #ifndef ASH_SHELL_PANEL_WINDOW_H_ |
6 #define ASH_SHELL_PANEL_WINDOW_H_ | 6 #define ASH_SHELL_PANEL_WINDOW_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/aura/aura_export.h" | 9 #include "ui/aura/aura_export.h" |
10 #include "ui/views/widget/widget.h" | 10 #include "ui/views/widget/widget.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 views::Widget* CreateWidget(); | 24 views::Widget* CreateWidget(); |
25 | 25 |
26 const std::string& name() { return name_; } | 26 const std::string& name() { return name_; } |
27 views::Widget::InitParams& params() { return params_; } | 27 views::Widget::InitParams& params() { return params_; } |
28 | 28 |
29 // Creates a panel window and returns the associated widget. | 29 // Creates a panel window and returns the associated widget. |
30 static views::Widget* CreatePanelWindow(const gfx::Rect& rect); | 30 static views::Widget* CreatePanelWindow(const gfx::Rect& rect); |
31 | 31 |
32 private: | 32 private: |
33 // Overridden from views::View: | 33 // Overridden from views::View: |
34 gfx::Size GetPreferredSize() const override; | 34 gfx::Size CalculatePreferredSize() const override; |
35 void OnPaint(gfx::Canvas* canvas) override; | 35 void OnPaint(gfx::Canvas* canvas) override; |
36 | 36 |
37 // Overridden from views::WidgetDelegate: | 37 // Overridden from views::WidgetDelegate: |
38 base::string16 GetWindowTitle() const override; | 38 base::string16 GetWindowTitle() const override; |
39 bool CanResize() const override; | 39 bool CanResize() const override; |
40 bool CanMaximize() const override; | 40 bool CanMaximize() const override; |
41 bool CanMinimize() const override; | 41 bool CanMinimize() const override; |
42 views::NonClientFrameView* CreateNonClientFrameView( | 42 views::NonClientFrameView* CreateNonClientFrameView( |
43 views::Widget* widget) override; | 43 views::Widget* widget) override; |
44 | 44 |
45 std::string name_; | 45 std::string name_; |
46 views::Widget::InitParams params_; | 46 views::Widget::InitParams params_; |
47 | 47 |
48 DISALLOW_COPY_AND_ASSIGN(PanelWindow); | 48 DISALLOW_COPY_AND_ASSIGN(PanelWindow); |
49 }; | 49 }; |
50 | 50 |
51 } // namespace ash | 51 } // namespace ash |
52 | 52 |
53 #endif // ASH_SHELL_PANEL_WINDOW_H_ | 53 #endif // ASH_SHELL_PANEL_WINDOW_H_ |
OLD | NEW |