Chromium Code Reviews| 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_WM_WORKSPACE_WORKSPACE_MANAGER_H_ | 5 #ifndef ASH_WM_WORKSPACE_WORKSPACE_MANAGER_H_ |
| 6 #define ASH_WM_WORKSPACE_WORKSPACE_MANAGER_H_ | 6 #define ASH_WM_WORKSPACE_WORKSPACE_MANAGER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 63 | 63 |
| 64 // Returns true if |window| is considered maximized and should exist in its | 64 // Returns true if |window| is considered maximized and should exist in its |
| 65 // own workspace. | 65 // own workspace. |
| 66 static bool IsMaximized(aura::Window* window); | 66 static bool IsMaximized(aura::Window* window); |
| 67 static bool IsMaximizedState(ui::WindowShowState state); | 67 static bool IsMaximizedState(ui::WindowShowState state); |
| 68 | 68 |
| 69 // Returns true if |window| is minimized and will restore to a maximized | 69 // Returns true if |window| is minimized and will restore to a maximized |
| 70 // window. | 70 // window. |
| 71 static bool WillRestoreMaximized(aura::Window* window); | 71 static bool WillRestoreMaximized(aura::Window* window); |
| 72 | 72 |
| 73 // Returns the active workspace, never NULL. | |
| 74 Workspace* active_workspace() { return active_workspace_; } | |
|
sky
2013/01/10 19:02:05
I've tried to not expose Workspace at all, why do
| |
| 75 | |
| 73 // Returns the current window state. | 76 // Returns the current window state. |
| 74 WorkspaceWindowState GetWindowState() const; | 77 WorkspaceWindowState GetWindowState() const; |
| 75 | 78 |
| 76 void SetShelf(ShelfLayoutManager* shelf); | 79 void SetShelf(ShelfLayoutManager* shelf); |
| 77 | 80 |
| 78 // Activates the workspace containing |window|. Does nothing if |window| is | 81 // Activates the workspace containing |window|. Does nothing if |window| is |
| 79 // NULL or not contained in a workspace. | 82 // NULL or not contained in a workspace. |
| 80 void SetActiveWorkspaceByWindow(aura::Window* window); | 83 void SetActiveWorkspaceByWindow(aura::Window* window); |
| 81 | 84 |
| 82 // Returns the parent for |window|. This is invoked from StackingController | 85 // Returns the parent for |window|. This is invoked from StackingController |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 260 // DesktopBackgroundFadeController. | 263 // DesktopBackgroundFadeController. |
| 261 bool creating_fade_; | 264 bool creating_fade_; |
| 262 | 265 |
| 263 DISALLOW_COPY_AND_ASSIGN(WorkspaceManager); | 266 DISALLOW_COPY_AND_ASSIGN(WorkspaceManager); |
| 264 }; | 267 }; |
| 265 | 268 |
| 266 } // namespace internal | 269 } // namespace internal |
| 267 } // namespace ash | 270 } // namespace ash |
| 268 | 271 |
| 269 #endif // ASH_WM_WORKSPACE_WORKSPACE_MANAGER_H_ | 272 #endif // ASH_WM_WORKSPACE_WORKSPACE_MANAGER_H_ |
| OLD | NEW |