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_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 Loading... |
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 Loading... |
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_ |
OLD | NEW |