| 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_controller.h" | 5 #include "ash/wm/workspace_controller.h" |
| 6 | 6 |
| 7 #include "ash/wm/default_container_layout_manager.h" |
| 8 #include "ash/wm/window_util.h" |
| 9 #include "ash/wm/workspace/workspace.h" |
| 10 #include "ash/wm/workspace/workspace_manager.h" |
| 7 #include "ui/aura/client/activation_client.h" | 11 #include "ui/aura/client/activation_client.h" |
| 8 #include "ui/aura/client/aura_constants.h" | 12 #include "ui/aura/client/aura_constants.h" |
| 9 #include "ui/aura/root_window.h" | 13 #include "ui/aura/root_window.h" |
| 10 #include "ui/aura/window.h" | 14 #include "ui/aura/window.h" |
| 11 #include "ui/aura_shell/default_container_layout_manager.h" | |
| 12 #include "ui/aura_shell/launcher/launcher.h" | 15 #include "ui/aura_shell/launcher/launcher.h" |
| 13 #include "ui/aura_shell/launcher/launcher_model.h" | 16 #include "ui/aura_shell/launcher/launcher_model.h" |
| 14 #include "ui/aura_shell/shell.h" | 17 #include "ui/aura_shell/shell.h" |
| 15 #include "ui/aura_shell/window_util.h" | |
| 16 #include "ui/aura_shell/workspace/workspace.h" | |
| 17 #include "ui/aura_shell/workspace/workspace_manager.h" | |
| 18 | 18 |
| 19 namespace aura_shell { | 19 namespace aura_shell { |
| 20 namespace internal { | 20 namespace internal { |
| 21 | 21 |
| 22 WorkspaceController::WorkspaceController(aura::Window* viewport) | 22 WorkspaceController::WorkspaceController(aura::Window* viewport) |
| 23 : workspace_manager_(new WorkspaceManager(viewport)), | 23 : workspace_manager_(new WorkspaceManager(viewport)), |
| 24 launcher_model_(NULL), | 24 launcher_model_(NULL), |
| 25 ignore_move_event_(false) { | 25 ignore_move_event_(false) { |
| 26 workspace_manager_->AddObserver(this); | 26 workspace_manager_->AddObserver(this); |
| 27 aura::RootWindow::GetInstance()->AddRootWindowObserver(this); | 27 aura::RootWindow::GetInstance()->AddRootWindowObserver(this); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 ignore_move_event_ = true; | 118 ignore_move_event_ = true; |
| 119 workspace_manager_->RotateWindows(start, target); | 119 workspace_manager_->RotateWindows(start, target); |
| 120 ignore_move_event_ = false; | 120 ignore_move_event_ = false; |
| 121 } | 121 } |
| 122 | 122 |
| 123 void WorkspaceController::LauncherItemImagesChanged(int index) { | 123 void WorkspaceController::LauncherItemImagesChanged(int index) { |
| 124 } | 124 } |
| 125 | 125 |
| 126 } // namespace internal | 126 } // namespace internal |
| 127 } // namespace aura_shell | 127 } // namespace aura_shell |
| OLD | NEW |