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 #include "ash/wm/workspace/workspace_manager.h" | 5 #include "ash/wm/workspace/workspace_manager.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "ash/screen_ash.h" | 9 #include "ash/screen_ash.h" |
10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
11 #include "ash/wm/property_util.h" | 11 #include "ash/wm/property_util.h" |
12 #include "ash/wm/shelf_layout_manager.h" | 12 #include "ash/wm/shelf_layout_manager.h" |
13 #include "ash/wm/window_animations.h" | 13 #include "ash/wm/window_animations.h" |
14 #include "ash/wm/window_util.h" | 14 #include "ash/wm/window_util.h" |
15 #include "ash/wm/workspace/managed_workspace.h" | 15 #include "ash/wm/workspace/managed_workspace.h" |
16 #include "ash/wm/workspace/maximized_workspace.h" | 16 #include "ash/wm/workspace/maximized_workspace.h" |
17 #include "base/auto_reset.h" | 17 #include "base/auto_reset.h" |
18 #include "base/logging.h" | 18 #include "base/logging.h" |
19 #include "base/stl_util.h" | 19 #include "base/stl_util.h" |
| 20 #include "ui/aura/client/aura_constants.h" |
20 #include "ui/aura/env.h" | 21 #include "ui/aura/env.h" |
21 #include "ui/aura/client/aura_constants.h" | |
22 #include "ui/aura/root_window.h" | 22 #include "ui/aura/root_window.h" |
23 #include "ui/aura/window.h" | 23 #include "ui/aura/window.h" |
24 #include "ui/base/ui_base_types.h" | 24 #include "ui/base/ui_base_types.h" |
25 #include "ui/gfx/compositor/layer.h" | 25 #include "ui/compositor/layer.h" |
26 #include "ui/gfx/compositor/layer_animator.h" | 26 #include "ui/compositor/layer_animator.h" |
27 #include "ui/gfx/compositor/scoped_layer_animation_settings.h" | 27 #include "ui/compositor/scoped_layer_animation_settings.h" |
28 #include "ui/gfx/screen.h" | 28 #include "ui/gfx/screen.h" |
29 #include "ui/gfx/transform.h" | 29 #include "ui/gfx/transform.h" |
30 | 30 |
31 namespace { | 31 namespace { |
32 | 32 |
33 // Returns a list of all the windows with layers in |result|. | 33 // Returns a list of all the windows with layers in |result|. |
34 void BuildWindowList(const std::vector<aura::Window*>& windows, | 34 void BuildWindowList(const std::vector<aura::Window*>& windows, |
35 std::vector<aura::Window*>* result) { | 35 std::vector<aura::Window*>* result) { |
36 for (size_t i = 0; i < windows.size(); ++i) { | 36 for (size_t i = 0; i < windows.size(); ++i) { |
37 if (windows[i]->layer()) | 37 if (windows[i]->layer()) |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 return workspace; | 338 return workspace; |
339 } | 339 } |
340 | 340 |
341 void WorkspaceManager::CleanupWorkspace(Workspace* workspace) { | 341 void WorkspaceManager::CleanupWorkspace(Workspace* workspace) { |
342 if (workspace->type() != Workspace::TYPE_MANAGED && workspace->is_empty()) | 342 if (workspace->type() != Workspace::TYPE_MANAGED && workspace->is_empty()) |
343 delete workspace; | 343 delete workspace; |
344 } | 344 } |
345 | 345 |
346 } // namespace internal | 346 } // namespace internal |
347 } // namespace ash | 347 } // namespace ash |
OLD | NEW |