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_MANAGER_H_ | 5 #ifndef ASH_WM_WORKSPACE_MANAGER_H_ |
6 #define ASH_WM_WORKSPACE_MANAGER_H_ | 6 #define ASH_WM_WORKSPACE_MANAGER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 class Rect; | 24 class Rect; |
25 } | 25 } |
26 | 26 |
27 namespace ash { | 27 namespace ash { |
28 namespace internal { | 28 namespace internal { |
29 | 29 |
30 class ShelfLayoutManager; | 30 class ShelfLayoutManager; |
31 class WorkspaceManagerTest; | 31 class WorkspaceManagerTest; |
32 | 32 |
33 // WorkspaceManager manages multiple workspaces in the desktop. | 33 // WorkspaceManager manages multiple workspaces in the desktop. |
34 class ASH_EXPORT WorkspaceManager : public aura::WindowObserver{ | 34 class ASH_EXPORT WorkspaceManager : public aura::WindowObserver { |
35 public: | 35 public: |
36 explicit WorkspaceManager(aura::Window* viewport); | 36 explicit WorkspaceManager(aura::Window* viewport); |
37 virtual ~WorkspaceManager(); | 37 virtual ~WorkspaceManager(); |
38 | 38 |
39 // Returns true if |window| should be managed by the WorkspaceManager. | 39 // Returns true if |window| should be managed by the WorkspaceManager. |
40 bool IsManagedWindow(aura::Window* window) const; | 40 bool IsManagedWindow(aura::Window* window) const; |
41 | 41 |
42 // Adds/removes a window creating/destroying workspace as necessary. | 42 // Adds/removes a window creating/destroying workspace as necessary. |
43 void AddWindow(aura::Window* window); | 43 void AddWindow(aura::Window* window); |
44 void RemoveWindow(aura::Window* window); | 44 void RemoveWindow(aura::Window* window); |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // Owned by the Shell container window LauncherContainer. May be NULL. | 171 // Owned by the Shell container window LauncherContainer. May be NULL. |
172 ShelfLayoutManager* shelf_; | 172 ShelfLayoutManager* shelf_; |
173 | 173 |
174 DISALLOW_COPY_AND_ASSIGN(WorkspaceManager); | 174 DISALLOW_COPY_AND_ASSIGN(WorkspaceManager); |
175 }; | 175 }; |
176 | 176 |
177 } // namespace internal | 177 } // namespace internal |
178 } // namespace ash | 178 } // namespace ash |
179 | 179 |
180 #endif // ASH_WM_WORKSPACE_MANAGER_H_ | 180 #endif // ASH_WM_WORKSPACE_MANAGER_H_ |
OLD | NEW |