Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: ash/root_window_controller.cc

Issue 219503003: Make keyboard controller a singleton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 // Release the old controller and close its background widget. 449 // Release the old controller and close its background widget.
450 SetWallpaperController(controller); 450 SetWallpaperController(controller);
451 } 451 }
452 } 452 }
453 453
454 void RootWindowController::CloseChildWindows() { 454 void RootWindowController::CloseChildWindows() {
455 mouse_event_target_.reset(); 455 mouse_event_target_.reset();
456 456
457 // Deactivate keyboard container before closing child windows and shutting 457 // Deactivate keyboard container before closing child windows and shutting
458 // down associated layout managers. 458 // down associated layout managers.
459 DeactivateKeyboard(Shell::GetInstance()->keyboard_controller()); 459 DeactivateKeyboard(keyboard::KeyboardController::GetInstance());
460 460
461 // panel_layout_manager_ needs to be shut down before windows are destroyed. 461 // panel_layout_manager_ needs to be shut down before windows are destroyed.
462 if (panel_layout_manager_) { 462 if (panel_layout_manager_) {
463 panel_layout_manager_->Shutdown(); 463 panel_layout_manager_->Shutdown();
464 panel_layout_manager_ = NULL; 464 panel_layout_manager_ = NULL;
465 } 465 }
466 // docked_layout_manager_ needs to be shut down before windows are destroyed. 466 // docked_layout_manager_ needs to be shut down before windows are destroyed.
467 if (docked_layout_manager_) { 467 if (docked_layout_manager_) {
468 if (shelf_ && shelf_->shelf_layout_manager()) 468 if (shelf_ && shelf_->shelf_layout_manager())
469 docked_layout_manager_->RemoveObserver(shelf_->shelf_layout_manager()); 469 docked_layout_manager_->RemoveObserver(shelf_->shelf_layout_manager());
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 DisableTouchHudProjection(); 1005 DisableTouchHudProjection();
1006 } 1006 }
1007 1007
1008 RootWindowController* GetRootWindowController( 1008 RootWindowController* GetRootWindowController(
1009 const aura::Window* root_window) { 1009 const aura::Window* root_window) {
1010 return root_window ? GetRootWindowSettings(root_window)->controller : NULL; 1010 return root_window ? GetRootWindowSettings(root_window)->controller : NULL;
1011 } 1011 }
1012 1012
1013 } // namespace internal 1013 } // namespace internal
1014 } // namespace ash 1014 } // namespace ash
OLDNEW
« no previous file with comments | « ash/display/virtual_keyboard_window_controller.cc ('k') | ash/shell.h » ('j') | ash/shell.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698