| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 virtual void OnAppTerminating() OVERRIDE; | 98 virtual void OnAppTerminating() OVERRIDE; |
| 99 | 99 |
| 100 private: | 100 private: |
| 101 friend class WorkspaceLayoutManager; | 101 friend class WorkspaceLayoutManager; |
| 102 friend class WorkspaceManagerTest; | 102 friend class WorkspaceManagerTest; |
| 103 | 103 |
| 104 class LayoutManagerImpl; | 104 class LayoutManagerImpl; |
| 105 | 105 |
| 106 typedef std::vector<Workspace*> Workspaces; | 106 typedef std::vector<Workspace*> Workspaces; |
| 107 | 107 |
| 108 // Reason for the workspace switch. Used to determine the characterstics of | 108 // Reason for the workspace switch. Used to determine the characteristics of |
| 109 // the animation. | 109 // the animation. |
| 110 enum SwitchReason { | 110 enum SwitchReason { |
| 111 SWITCH_WINDOW_MADE_ACTIVE, | 111 SWITCH_WINDOW_MADE_ACTIVE, |
| 112 SWITCH_WINDOW_REMOVED, | 112 SWITCH_WINDOW_REMOVED, |
| 113 SWITCH_VISIBILITY_CHANGED, | 113 SWITCH_VISIBILITY_CHANGED, |
| 114 SWITCH_BACKGROUND_ONLY_WITHIN_DESKTOP, | 114 SWITCH_BACKGROUND_ONLY_WITHIN_DESKTOP, |
| 115 SWITCH_MINIMIZED, | 115 SWITCH_MINIMIZED, |
| 116 SWITCH_MAXIMIZED_OR_RESTORED, | 116 SWITCH_MAXIMIZED_OR_RESTORED, |
| 117 // Switch a normal window in a fullscreen workspace to get fullscreen. | 117 // Switch a normal window in a fullscreen workspace to get fullscreen. |
| 118 // TODO(mukai): this should be removed in the future. Normal windows should | 118 // TODO(mukai): this should be removed in the future. Normal windows should |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 // finger vertical scroll. | 276 // finger vertical scroll. |
| 277 scoped_ptr<WorkspaceCycler> workspace_cycler_; | 277 scoped_ptr<WorkspaceCycler> workspace_cycler_; |
| 278 | 278 |
| 279 DISALLOW_COPY_AND_ASSIGN(WorkspaceManager); | 279 DISALLOW_COPY_AND_ASSIGN(WorkspaceManager); |
| 280 }; | 280 }; |
| 281 | 281 |
| 282 } // namespace internal | 282 } // namespace internal |
| 283 } // namespace ash | 283 } // namespace ash |
| 284 | 284 |
| 285 #endif // ASH_WM_WORKSPACE_WORKSPACE_MANAGER_H_ | 285 #endif // ASH_WM_WORKSPACE_WORKSPACE_MANAGER_H_ |
| OLD | NEW |