Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: ash/wm/workspace/workspace_manager.cc

Issue 10365007: ui: Move compositor/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix DEPS Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_event_filter.cc ('k') | ash/wm/workspace/workspace_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698