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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 // Release the old controller and close its background widget. | 443 // Release the old controller and close its background widget. |
444 SetWallpaperController(controller); | 444 SetWallpaperController(controller); |
445 } | 445 } |
446 } | 446 } |
447 | 447 |
448 void RootWindowController::CloseChildWindows() { | 448 void RootWindowController::CloseChildWindows() { |
449 mouse_event_target_.reset(); | 449 mouse_event_target_.reset(); |
450 | 450 |
451 // Deactivate keyboard container before closing child windows and shutting | 451 // Deactivate keyboard container before closing child windows and shutting |
452 // down associated layout managers. | 452 // down associated layout managers. |
453 DeactivateKeyboard(Shell::GetInstance()->keyboard_controller()); | 453 DeactivateKeyboard(keyboard::KeyboardController::GetInstance()); |
454 | 454 |
455 // panel_layout_manager_ needs to be shut down before windows are destroyed. | 455 // panel_layout_manager_ needs to be shut down before windows are destroyed. |
456 if (panel_layout_manager_) { | 456 if (panel_layout_manager_) { |
457 panel_layout_manager_->Shutdown(); | 457 panel_layout_manager_->Shutdown(); |
458 panel_layout_manager_ = NULL; | 458 panel_layout_manager_ = NULL; |
459 } | 459 } |
460 // docked_layout_manager_ needs to be shut down before windows are destroyed. | 460 // docked_layout_manager_ needs to be shut down before windows are destroyed. |
461 if (docked_layout_manager_) { | 461 if (docked_layout_manager_) { |
462 if (shelf_ && shelf_->shelf_layout_manager()) | 462 if (shelf_ && shelf_->shelf_layout_manager()) |
463 docked_layout_manager_->RemoveObserver(shelf_->shelf_layout_manager()); | 463 docked_layout_manager_->RemoveObserver(shelf_->shelf_layout_manager()); |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 else | 998 else |
999 DisableTouchHudProjection(); | 999 DisableTouchHudProjection(); |
1000 } | 1000 } |
1001 | 1001 |
1002 RootWindowController* GetRootWindowController( | 1002 RootWindowController* GetRootWindowController( |
1003 const aura::Window* root_window) { | 1003 const aura::Window* root_window) { |
1004 return root_window ? GetRootWindowSettings(root_window)->controller : NULL; | 1004 return root_window ? GetRootWindowSettings(root_window)->controller : NULL; |
1005 } | 1005 } |
1006 | 1006 |
1007 } // namespace ash | 1007 } // namespace ash |
OLD | NEW |