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

Side by Side Diff: ash/shell.h

Issue 9320076: Aura: Switch window mode when screen resolution changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: works even if --aura-window-mode on cmd line Created 8 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/shell.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_H_ 5 #ifndef ASH_SHELL_H_
6 #define ASH_SHELL_H_ 6 #define ASH_SHELL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 void ShowBackgroundMenu(views::Widget* widget, const gfx::Point& location); 94 void ShowBackgroundMenu(views::Widget* widget, const gfx::Point& location);
95 95
96 // Toggles app list. 96 // Toggles app list.
97 void ToggleAppList(); 97 void ToggleAppList();
98 98
99 // Changes the current window mode, which will cause all the open windows 99 // Changes the current window mode, which will cause all the open windows
100 // to be laid out in the new mode and layout managers and event filters to be 100 // to be laid out in the new mode and layout managers and event filters to be
101 // installed or removed. 101 // installed or removed.
102 void ChangeWindowMode(WindowMode mode); 102 void ChangeWindowMode(WindowMode mode);
103 103
104 // Sets an appropriate window mode for the given screen resolution.
105 void SetWindowModeForMonitorSize(const gfx::Size& monitor_size);
106
104 // Returns true if the screen is locked. 107 // Returns true if the screen is locked.
105 bool IsScreenLocked() const; 108 bool IsScreenLocked() const;
106 109
107 // Returns true if a modal dialog window is currently open. 110 // Returns true if a modal dialog window is currently open.
108 bool IsModalWindowOpen() const; 111 bool IsModalWindowOpen() const;
109 112
110 // See enum WindowMode for details. 113 // See enum WindowMode for details.
111 bool IsWindowModeCompact() const { return window_mode_ == MODE_COMPACT; } 114 bool IsWindowModeCompact() const { return window_mode_ == MODE_COMPACT; }
112 115
113 // Creates a default views::NonClientFrameView for use by windows in the 116 // Creates a default views::NonClientFrameView for use by windows in the
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 207
205 // Status area with clock, Wi-Fi signal, etc. 208 // Status area with clock, Wi-Fi signal, etc.
206 views::Widget* status_widget_; 209 views::Widget* status_widget_;
207 210
208 DISALLOW_COPY_AND_ASSIGN(Shell); 211 DISALLOW_COPY_AND_ASSIGN(Shell);
209 }; 212 };
210 213
211 } // namespace ash 214 } // namespace ash
212 215
213 #endif // ASH_SHELL_H_ 216 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « no previous file | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698