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 "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/wm/workspace/workspace.h" | 9 #include "ash/wm/workspace/workspace.h" |
10 #include "ash/wm/workspace/workspace_observer.h" | 10 #include "ash/wm/workspace/workspace_observer.h" |
(...skipping 12 matching lines...) Expand all Loading... |
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 |
27 // Minimum/maximum scale for overview mode. | 27 // Minimum/maximum scale for overview mode. |
28 const float kMaxOverviewScale = 0.9f; | 28 const float kMaxOverviewScale = 0.9f; |
29 const float kMinOverviewScale = 0.3f; | 29 const float kMinOverviewScale = 0.3f; |
30 | 30 |
31 } | 31 } |
32 | 32 |
33 namespace aura_shell { | 33 namespace ash { |
34 namespace internal { | 34 namespace internal { |
35 | 35 |
36 //////////////////////////////////////////////////////////////////////////////// | 36 //////////////////////////////////////////////////////////////////////////////// |
37 // WindowManager, public: | 37 // WindowManager, public: |
38 | 38 |
39 WorkspaceManager::WorkspaceManager(aura::Window* contents_view) | 39 WorkspaceManager::WorkspaceManager(aura::Window* contents_view) |
40 : contents_view_(contents_view), | 40 : contents_view_(contents_view), |
41 active_workspace_(NULL), | 41 active_workspace_(NULL), |
42 workspace_size_( | 42 workspace_size_( |
43 gfx::Screen::GetMonitorAreaNearestWindow(contents_view_).size()), | 43 gfx::Screen::GetMonitorAreaNearestWindow(contents_view_).size()), |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 if (active_workspace_) { | 266 if (active_workspace_) { |
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 ash |
OLD | NEW |