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

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

Issue 55303006: Make sure the non browser/non app widget is fully visible when created on ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/shell/toplevel_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_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 "ui/views/widget/widget_delegate.h" 8 #include "ui/views/widget/widget_delegate.h"
9 9
10 namespace ash { 10 namespace ash {
(...skipping 20 matching lines...) Expand all
31 31
32 // Overridden from views::View: 32 // Overridden from views::View:
33 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 33 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
34 34
35 // Overridden from views::WidgetDelegate: 35 // Overridden from views::WidgetDelegate:
36 virtual base::string16 GetWindowTitle() const OVERRIDE; 36 virtual base::string16 GetWindowTitle() const OVERRIDE;
37 virtual void SaveWindowPlacement( 37 virtual void SaveWindowPlacement(
38 const gfx::Rect& bounds, 38 const gfx::Rect& bounds,
39 ui::WindowShowState show_state) OVERRIDE; 39 ui::WindowShowState show_state) OVERRIDE;
40 virtual bool GetSavedWindowPlacement( 40 virtual bool GetSavedWindowPlacement(
41 const views::Widget* widget,
41 gfx::Rect* bounds, 42 gfx::Rect* bounds,
42 ui::WindowShowState* show_state) const OVERRIDE; 43 ui::WindowShowState* show_state) const OVERRIDE;
43 virtual View* GetContentsView() OVERRIDE; 44 virtual View* GetContentsView() OVERRIDE;
44 virtual bool CanResize() const OVERRIDE; 45 virtual bool CanResize() const OVERRIDE;
45 virtual bool CanMaximize() const OVERRIDE; 46 virtual bool CanMaximize() const OVERRIDE;
46 47
47 const CreateParams params_; 48 const CreateParams params_;
48 49
49 DISALLOW_COPY_AND_ASSIGN(ToplevelWindow); 50 DISALLOW_COPY_AND_ASSIGN(ToplevelWindow);
50 }; 51 };
51 52
52 } // namespace shell 53 } // namespace shell
53 } // namespace ash 54 } // namespace ash
54 55
55 #endif // ASH_SHELL_TOPLEVEL_WINDOW_H_ 56 #endif // ASH_SHELL_TOPLEVEL_WINDOW_H_
OLDNEW
« no previous file with comments | « no previous file | ash/shell/toplevel_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698