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_ROOT_WINDOW_CONTROLLER_H_ | 5 #ifndef ASH_ROOT_WINDOW_CONTROLLER_H_ |
6 #define ASH_ROOT_WINDOW_CONTROLLER_H_ | 6 #define ASH_ROOT_WINDOW_CONTROLLER_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/wm/shelf_types.h" | 9 #include "ash/wm/shelf_types.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 // Deletes associated objects and clears the state, but doesn't delete | 102 // Deletes associated objects and clears the state, but doesn't delete |
103 // the root window yet. This is used to delete a secondary displays' | 103 // the root window yet. This is used to delete a secondary displays' |
104 // root window safely when the display disconnect signal is received, | 104 // root window safely when the display disconnect signal is received, |
105 // which may come while we're in the nested message loop. | 105 // which may come while we're in the nested message loop. |
106 void Shutdown(); | 106 void Shutdown(); |
107 | 107 |
108 // Deletes all child windows and performs necessary cleanup. | 108 // Deletes all child windows and performs necessary cleanup. |
109 void CloseChildWindows(); | 109 void CloseChildWindows(); |
110 | 110 |
111 // Returns true if the workspace has a maximized or fullscreen window. | |
112 bool IsInMaximizedMode() const; | |
113 | |
114 // Moves child windows to |dest|. | 111 // Moves child windows to |dest|. |
115 void MoveWindowsTo(aura::RootWindow* dest); | 112 void MoveWindowsTo(aura::RootWindow* dest); |
116 | 113 |
117 // Force the shelf to query for it's current visibility state. | 114 // Force the shelf to query for it's current visibility state. |
118 void UpdateShelfVisibility(); | 115 void UpdateShelfVisibility(); |
119 | 116 |
120 // Sets/gets the shelf auto-hide behavior. | 117 // Sets/gets the shelf auto-hide behavior. |
121 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior); | 118 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior); |
122 ShelfAutoHideBehavior GetShelfAutoHideBehavior() const; | 119 ShelfAutoHideBehavior GetShelfAutoHideBehavior() const; |
123 | 120 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 scoped_ptr<ToplevelWindowEventHandler> modal_container_handler_; | 158 scoped_ptr<ToplevelWindowEventHandler> modal_container_handler_; |
162 scoped_ptr<ToplevelWindowEventHandler> lock_modal_container_handler_; | 159 scoped_ptr<ToplevelWindowEventHandler> lock_modal_container_handler_; |
163 | 160 |
164 DISALLOW_COPY_AND_ASSIGN(RootWindowController); | 161 DISALLOW_COPY_AND_ASSIGN(RootWindowController); |
165 }; | 162 }; |
166 | 163 |
167 } // namespace internal | 164 } // namespace internal |
168 } // ash | 165 } // ash |
169 | 166 |
170 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ | 167 #endif // ASH_ROOT_WINDOW_CONTROLLER_H_ |
OLD | NEW |