| 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 #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 Loading... |
| 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 |
| OLD | NEW |