| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 // Returns the current window state. | 73 // Returns the current window state. |
| 74 WorkspaceWindowState GetWindowState() const; | 74 WorkspaceWindowState GetWindowState() const; |
| 75 | 75 |
| 76 void SetShelf(ShelfLayoutManager* shelf); | 76 void SetShelf(ShelfLayoutManager* shelf); |
| 77 | 77 |
| 78 // Activates the workspace containing |window|. Does nothing if |window| is | 78 // Activates the workspace containing |window|. Does nothing if |window| is |
| 79 // NULL or not contained in a workspace. | 79 // NULL or not contained in a workspace. |
| 80 void SetActiveWorkspaceByWindow(aura::Window* window); | 80 void SetActiveWorkspaceByWindow(aura::Window* window); |
| 81 | 81 |
| 82 // Returns the container window for the active workspace, never NULL. |
| 83 aura::Window* GetActiveWorkspaceWindow(); |
| 84 |
| 82 // Returns the parent for |window|. This is invoked from StackingController | 85 // Returns the parent for |window|. This is invoked from StackingController |
| 83 // when a new Window is being added. | 86 // when a new Window is being added. |
| 84 aura::Window* GetParentForNewWindow(aura::Window* window); | 87 aura::Window* GetParentForNewWindow(aura::Window* window); |
| 85 | 88 |
| 86 // Called by the workspace cycler to activate the next workspace in | 89 // Called by the workspace cycler to activate the next workspace in |
| 87 // |direction|. Returns false if there are no more workspaces to cycle | 90 // |direction|. Returns false if there are no more workspaces to cycle |
| 88 // to in |direction|. | 91 // to in |direction|. |
| 89 bool CycleToWorkspace(CycleDirection direction); | 92 bool CycleToWorkspace(CycleDirection direction); |
| 90 | 93 |
| 91 // Starts the animation that occurs on first login. | 94 // Starts the animation that occurs on first login. |
| (...skipping 168 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 |