| 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 // If open_new_windows_maximized() is true and the size of the viewport is | 36 // If open_new_windows_maximized() is true and the size of the viewport is |
| 37 // smaller than this value, newly created windows are forced maximized. | 37 // smaller than this value, newly created windows are forced maximized. |
| 38 static const int kOpenMaximizedThreshold; | 38 static const int kOpenMaximizedThreshold; |
| 39 | 39 |
| 40 explicit WorkspaceManager(aura::Window* viewport); | 40 explicit WorkspaceManager(aura::Window* viewport); |
| 41 virtual ~WorkspaceManager(); | 41 virtual ~WorkspaceManager(); |
| 42 | 42 |
| 43 // Returns true if |window| should be managed by the WorkspaceManager. | 43 // Returns true if |window| should be managed by the WorkspaceManager. |
| 44 bool IsManagedWindow(aura::Window* window) const; | 44 bool IsManagedWindow(aura::Window* window) const; |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 // Owned by the Shell container window LauncherContainer. May be NULL. | 191 // Owned by the Shell container window LauncherContainer. May be NULL. |
| 192 ShelfLayoutManager* shelf_; | 192 ShelfLayoutManager* shelf_; |
| 193 | 193 |
| 194 DISALLOW_COPY_AND_ASSIGN(WorkspaceManager); | 194 DISALLOW_COPY_AND_ASSIGN(WorkspaceManager); |
| 195 }; | 195 }; |
| 196 | 196 |
| 197 } // namespace internal | 197 } // namespace internal |
| 198 } // namespace ash | 198 } // namespace ash |
| 199 | 199 |
| 200 #endif // ASH_WM_WORKSPACE_MANAGER_H_ | 200 #endif // ASH_WM_WORKSPACE_MANAGER_H_ |
| OLD | NEW |