| 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/ash_constants.h" | 10 #include "ash/ash_constants.h" |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 // Release the old controller and close its background widget. | 447 // Release the old controller and close its background widget. |
| 448 SetWallpaperController(controller); | 448 SetWallpaperController(controller); |
| 449 } | 449 } |
| 450 } | 450 } |
| 451 | 451 |
| 452 void RootWindowController::CloseChildWindows() { | 452 void RootWindowController::CloseChildWindows() { |
| 453 mouse_event_target_.reset(); | 453 mouse_event_target_.reset(); |
| 454 | 454 |
| 455 // Deactivate keyboard container before closing child windows and shutting | 455 // Deactivate keyboard container before closing child windows and shutting |
| 456 // down associated layout managers. | 456 // down associated layout managers. |
| 457 DeactivateKeyboard(Shell::GetInstance()->keyboard_controller()); | 457 DeactivateKeyboard(keyboard::KeyboardController::GetInstance()); |
| 458 | 458 |
| 459 // panel_layout_manager_ needs to be shut down before windows are destroyed. | 459 // panel_layout_manager_ needs to be shut down before windows are destroyed. |
| 460 if (panel_layout_manager_) { | 460 if (panel_layout_manager_) { |
| 461 panel_layout_manager_->Shutdown(); | 461 panel_layout_manager_->Shutdown(); |
| 462 panel_layout_manager_ = NULL; | 462 panel_layout_manager_ = NULL; |
| 463 } | 463 } |
| 464 // docked_layout_manager_ needs to be shut down before windows are destroyed. | 464 // docked_layout_manager_ needs to be shut down before windows are destroyed. |
| 465 if (docked_layout_manager_) { | 465 if (docked_layout_manager_) { |
| 466 if (shelf_ && shelf_->shelf_layout_manager()) | 466 if (shelf_ && shelf_->shelf_layout_manager()) |
| 467 docked_layout_manager_->RemoveObserver(shelf_->shelf_layout_manager()); | 467 docked_layout_manager_->RemoveObserver(shelf_->shelf_layout_manager()); |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1009 DisableTouchHudProjection(); | 1009 DisableTouchHudProjection(); |
| 1010 } | 1010 } |
| 1011 | 1011 |
| 1012 RootWindowController* GetRootWindowController( | 1012 RootWindowController* GetRootWindowController( |
| 1013 const aura::Window* root_window) { | 1013 const aura::Window* root_window) { |
| 1014 return root_window ? GetRootWindowSettings(root_window)->controller : NULL; | 1014 return root_window ? GetRootWindowSettings(root_window)->controller : NULL; |
| 1015 } | 1015 } |
| 1016 | 1016 |
| 1017 } // namespace internal | 1017 } // namespace internal |
| 1018 } // namespace ash | 1018 } // namespace ash |
| OLD | NEW |