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

Side by Side Diff: ash/shell/panel_window.h

Issue 2901503003: Rename GetPreferredSize to CalculatePreferredSize in ash/ (Closed)
Patch Set: improvements Created 3 years, 7 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 | « ash/shell/lock_view.cc ('k') | ash/shell/panel_window.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 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
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_
OLDNEW
« no previous file with comments | « ash/shell/lock_view.cc ('k') | ash/shell/panel_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698