| OLD | NEW |
| 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/root_window_controller.h" | 5 #include "ash/root_window_controller.h" |
| 6 | 6 |
| 7 #include <queue> | 7 #include <queue> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ash/aura/aura_layout_manager_adapter.h" | 10 #include "ash/aura/aura_layout_manager_adapter.h" |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 } | 332 } |
| 333 | 333 |
| 334 WorkspaceController* RootWindowController::workspace_controller() { | 334 WorkspaceController* RootWindowController::workspace_controller() { |
| 335 return wm_root_window_controller_->workspace_controller(); | 335 return wm_root_window_controller_->workspace_controller(); |
| 336 } | 336 } |
| 337 | 337 |
| 338 void RootWindowController::Shutdown() { | 338 void RootWindowController::Shutdown() { |
| 339 WmShell::Get()->RemoveShellObserver(this); | 339 WmShell::Get()->RemoveShellObserver(this); |
| 340 | 340 |
| 341 #if defined(OS_CHROMEOS) | 341 #if defined(OS_CHROMEOS) |
| 342 if (touch_exploration_manager_) { | 342 touch_exploration_manager_.reset(); |
| 343 touch_exploration_manager_.reset(); | |
| 344 } | |
| 345 #endif | 343 #endif |
| 346 | 344 |
| 347 aura::Window* root_window = GetRootWindow(); | 345 aura::Window* root_window = GetRootWindow(); |
| 348 WmWindow* root_shutting_down = WmWindowAura::Get(root_window); | 346 WmWindow* root_shutting_down = WmWindowAura::Get(root_window); |
| 349 WmShell* shell = WmShell::Get(); | 347 WmShell* shell = WmShell::Get(); |
| 350 // Change the target root window before closing child windows. If any child | 348 // Change the target root window before closing child windows. If any child |
| 351 // being removed triggers a relayout of the shelf it will try to build a | 349 // being removed triggers a relayout of the shelf it will try to build a |
| 352 // window list adding windows from the target root window's containers which | 350 // window list adding windows from the target root window's containers which |
| 353 // may have already gone away. | 351 // may have already gone away. |
| 354 if (shell->GetRootWindowForNewWindows() == root_shutting_down) { | 352 if (shell->GetRootWindowForNewWindows() == root_shutting_down) { |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 888 aura::Window* primary_root_window = Shell::GetInstance() | 886 aura::Window* primary_root_window = Shell::GetInstance() |
| 889 ->window_tree_host_manager() | 887 ->window_tree_host_manager() |
| 890 ->GetPrimaryRootWindow(); | 888 ->GetPrimaryRootWindow(); |
| 891 return GetRootWindowSettings(primary_root_window)->controller; | 889 return GetRootWindowSettings(primary_root_window)->controller; |
| 892 } | 890 } |
| 893 | 891 |
| 894 return GetRootWindowSettings(root_window)->controller; | 892 return GetRootWindowSettings(root_window)->controller; |
| 895 } | 893 } |
| 896 | 894 |
| 897 } // namespace ash | 895 } // namespace ash |
| OLD | NEW |