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

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

Issue 9035001: Move some more WM functionality down into ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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
« no previous file with comments | « ash/wm/workspace/workspace_manager.h ('k') | ash/wm/workspace/workspace_manager_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "ui/aura_shell/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/wm/workspace/workspace.h"
10 #include "ash/wm/workspace/workspace_observer.h"
9 #include "base/auto_reset.h" 11 #include "base/auto_reset.h"
10 #include "base/logging.h" 12 #include "base/logging.h"
11 #include "base/stl_util.h" 13 #include "base/stl_util.h"
12 #include "ui/aura/root_window.h" 14 #include "ui/aura/root_window.h"
13 #include "ui/aura/screen_aura.h" 15 #include "ui/aura/screen_aura.h"
14 #include "ui/aura/window.h" 16 #include "ui/aura/window.h"
15 #include "ui/aura_shell/workspace/workspace.h"
16 #include "ui/aura_shell/workspace/workspace_observer.h"
17 #include "ui/gfx/compositor/layer.h" 17 #include "ui/gfx/compositor/layer.h"
18 #include "ui/gfx/compositor/layer_animator.h" 18 #include "ui/gfx/compositor/layer_animator.h"
19 #include "ui/gfx/screen.h" 19 #include "ui/gfx/screen.h"
20 #include "ui/gfx/transform.h" 20 #include "ui/gfx/transform.h"
21 21
22 namespace { 22 namespace {
23 23
24 // The horizontal margein between workspaces in pixels. 24 // The horizontal margein between workspaces in pixels.
25 const int kWorkspaceHorizontalMargin = 50; 25 const int kWorkspaceHorizontalMargin = 50;
26 26
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 ui::Transform transform; 267 ui::Transform transform;
268 transform.SetTranslateX(-active_workspace_->bounds().x()); 268 transform.SetTranslateX(-active_workspace_->bounds().x());
269 ui::LayerAnimator::ScopedSettings settings( 269 ui::LayerAnimator::ScopedSettings settings(
270 contents_view_->layer()->GetAnimator()); 270 contents_view_->layer()->GetAnimator());
271 contents_view_->SetTransform(transform); 271 contents_view_->SetTransform(transform);
272 } 272 }
273 } 273 }
274 274
275 } // namespace internal 275 } // namespace internal
276 } // namespace aura_shell 276 } // namespace aura_shell
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_manager.h ('k') | ash/wm/workspace/workspace_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698