| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 virtual void OnAppTerminating() OVERRIDE; | 103 virtual void OnAppTerminating() OVERRIDE; |
| 104 | 104 |
| 105 private: | 105 private: |
| 106 friend class WorkspaceLayoutManager; | 106 friend class WorkspaceLayoutManager; |
| 107 friend class WorkspaceManagerTest; | 107 friend class WorkspaceManagerTest; |
| 108 | 108 |
| 109 class LayoutManagerImpl; | 109 class LayoutManagerImpl; |
| 110 | 110 |
| 111 typedef std::vector<Workspace*> Workspaces; | 111 typedef std::vector<Workspace*> Workspaces; |
| 112 | 112 |
| 113 // Reason for the workspace switch. Used to determine the characterstics of | 113 // Reason for the workspace switch. Used to determine the characteristics of |
| 114 // the animation. | 114 // the animation. |
| 115 enum SwitchReason { | 115 enum SwitchReason { |
| 116 SWITCH_WINDOW_MADE_ACTIVE, | 116 SWITCH_WINDOW_MADE_ACTIVE, |
| 117 SWITCH_WINDOW_REMOVED, | 117 SWITCH_WINDOW_REMOVED, |
| 118 SWITCH_VISIBILITY_CHANGED, | 118 SWITCH_VISIBILITY_CHANGED, |
| 119 SWITCH_MINIMIZED, | 119 SWITCH_MINIMIZED, |
| 120 SWITCH_MAXIMIZED_OR_RESTORED, | 120 SWITCH_MAXIMIZED_OR_RESTORED, |
| 121 // Switch a normal window in a maximized workspace to maximized. | 121 // Switch a normal window in a maximized workspace to maximized. |
| 122 SWITCH_MAXIMIZED_FROM_MAXIMIZED_WORKSPACE, | 122 SWITCH_MAXIMIZED_FROM_MAXIMIZED_WORKSPACE, |
| 123 SWITCH_TRACKED_BY_WORKSPACE_CHANGED, | 123 SWITCH_TRACKED_BY_WORKSPACE_CHANGED, |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 // finger vertical scroll. | 278 // finger vertical scroll. |
| 279 scoped_ptr<WorkspaceCycler> workspace_cycler_; | 279 scoped_ptr<WorkspaceCycler> workspace_cycler_; |
| 280 | 280 |
| 281 DISALLOW_COPY_AND_ASSIGN(WorkspaceManager); | 281 DISALLOW_COPY_AND_ASSIGN(WorkspaceManager); |
| 282 }; | 282 }; |
| 283 | 283 |
| 284 } // namespace internal | 284 } // namespace internal |
| 285 } // namespace ash | 285 } // namespace ash |
| 286 | 286 |
| 287 #endif // ASH_WM_WORKSPACE_WORKSPACE_MANAGER_H_ | 287 #endif // ASH_WM_WORKSPACE_WORKSPACE_MANAGER_H_ |
| OLD | NEW |