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

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

Issue 2390953004: WidgetDelegateView is its own contents view. (Closed)
Patch Set: another minor fix Created 4 years, 2 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
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_TOPLEVEL_WINDOW_H_ 5 #ifndef ASH_SHELL_TOPLEVEL_WINDOW_H_
6 #define ASH_SHELL_TOPLEVEL_WINDOW_H_ 6 #define ASH_SHELL_TOPLEVEL_WINDOW_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/views/widget/widget_delegate.h" 9 #include "ui/views/widget/widget_delegate.h"
10 10
(...skipping 22 matching lines...) Expand all
33 // Overridden from views::View: 33 // Overridden from views::View:
34 void OnPaint(gfx::Canvas* canvas) override; 34 void OnPaint(gfx::Canvas* canvas) override;
35 35
36 // Overridden from views::WidgetDelegate: 36 // Overridden from views::WidgetDelegate:
37 base::string16 GetWindowTitle() const override; 37 base::string16 GetWindowTitle() const override;
38 void SaveWindowPlacement(const gfx::Rect& bounds, 38 void SaveWindowPlacement(const gfx::Rect& bounds,
39 ui::WindowShowState show_state) override; 39 ui::WindowShowState show_state) override;
40 bool GetSavedWindowPlacement(const views::Widget* widget, 40 bool GetSavedWindowPlacement(const views::Widget* widget,
41 gfx::Rect* bounds, 41 gfx::Rect* bounds,
42 ui::WindowShowState* show_state) const override; 42 ui::WindowShowState* show_state) const override;
43 View* GetContentsView() override;
44 bool CanResize() const override; 43 bool CanResize() const override;
45 bool CanMaximize() const override; 44 bool CanMaximize() const override;
46 bool CanMinimize() const override; 45 bool CanMinimize() const override;
47 46
48 const CreateParams params_; 47 const CreateParams params_;
49 48
50 DISALLOW_COPY_AND_ASSIGN(ToplevelWindow); 49 DISALLOW_COPY_AND_ASSIGN(ToplevelWindow);
51 }; 50 };
52 51
53 } // namespace shell 52 } // namespace shell
54 } // namespace ash 53 } // namespace ash
55 54
56 #endif // ASH_SHELL_TOPLEVEL_WINDOW_H_ 55 #endif // ASH_SHELL_TOPLEVEL_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698