| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_AURA_SHELL_WORKSPACE_WORKSPACE_H_ | 5 #ifndef UI_AURA_SHELL_WORKSPACE_WORKSPACE_H_ |
| 6 #define UI_AURA_SHELL_WORKSPACE_WORKSPACE_H_ | 6 #define UI_AURA_SHELL_WORKSPACE_WORKSPACE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 // Activates this workspace. | 85 // Activates this workspace. |
| 86 void Activate(); | 86 void Activate(); |
| 87 | 87 |
| 88 // Layout windows. The workspace doesn't set bounds on |ignore| if it's | 88 // Layout windows. The workspace doesn't set bounds on |ignore| if it's |
| 89 // given. It still uses |ignore| window's bounds to calculate | 89 // given. It still uses |ignore| window's bounds to calculate |
| 90 // bounds for other windows. Moving animation is applied to all | 90 // bounds for other windows. Moving animation is applied to all |
| 91 // windows except for the window specified by |no_animation| and |ignore|. | 91 // windows except for the window specified by |no_animation| and |ignore|. |
| 92 void Layout(aura::Window* ignore, aura::Window* no_animation); | 92 void Layout(aura::Window* ignore, aura::Window* no_animation); |
| 93 | 93 |
| 94 // Returns true if the workspace contains a fullscreen window. |
| 95 bool ContainsFullscreenWindow() const; |
| 96 |
| 94 private: | 97 private: |
| 95 FRIEND_TEST_ALL_PREFIXES(WorkspaceTest, WorkspaceBasic); | 98 FRIEND_TEST_ALL_PREFIXES(WorkspaceTest, WorkspaceBasic); |
| 96 FRIEND_TEST_ALL_PREFIXES(WorkspaceTest, RotateWindows); | 99 FRIEND_TEST_ALL_PREFIXES(WorkspaceTest, RotateWindows); |
| 97 FRIEND_TEST_ALL_PREFIXES(WorkspaceTest, ShiftWindowsSingle); | 100 FRIEND_TEST_ALL_PREFIXES(WorkspaceTest, ShiftWindowsSingle); |
| 98 FRIEND_TEST_ALL_PREFIXES(WorkspaceTest, ShiftWindowsMultiple); | 101 FRIEND_TEST_ALL_PREFIXES(WorkspaceTest, ShiftWindowsMultiple); |
| 99 FRIEND_TEST_ALL_PREFIXES(WorkspaceManagerTest, RotateWindows); | 102 FRIEND_TEST_ALL_PREFIXES(WorkspaceManagerTest, RotateWindows); |
| 100 | 103 |
| 101 // Returns the index in layout order of |window| in this workspace. | 104 // Returns the index in layout order of |window| in this workspace. |
| 102 int GetIndexOf(aura::Window* window) const; | 105 int GetIndexOf(aura::Window* window) const; |
| 103 | 106 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 127 | 130 |
| 128 DISALLOW_COPY_AND_ASSIGN(Workspace); | 131 DISALLOW_COPY_AND_ASSIGN(Workspace); |
| 129 }; | 132 }; |
| 130 | 133 |
| 131 typedef std::vector<Workspace*> Workspaces; | 134 typedef std::vector<Workspace*> Workspaces; |
| 132 | 135 |
| 133 } // namespace internal | 136 } // namespace internal |
| 134 } // namespace aura_shell | 137 } // namespace aura_shell |
| 135 | 138 |
| 136 #endif // UI_AURA_SHELL_WORKSPACE_WORKSPACE_H_ | 139 #endif // UI_AURA_SHELL_WORKSPACE_WORKSPACE_H_ |
| OLD | NEW |