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

Unified Diff: ash/shell.cc

Issue 11299219: Rework FocusManager as FocusClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/shell.h ('k') | ash/wm/activation_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.cc
===================================================================
--- ash/shell.cc (revision 169818)
+++ ash/shell.cc (working copy)
@@ -232,7 +232,7 @@
// effects (e.g. crashes) from changing focus during shutdown.
// See bug crbug.com/134502.
if (active_root_window_)
- active_root_window_->GetFocusManager()->SetFocusedWindow(NULL, NULL);
+ aura::client::GetFocusClient(active_root_window_)->FocusWindow(NULL, NULL);
// Please keep in same order as in Init() because it's easy to miss one.
RemovePreTargetHandler(user_activity_detector_.get());
@@ -409,10 +409,10 @@
env_filter_.reset(new views::corewm::CompoundEventFilter);
AddPreTargetHandler(env_filter_.get());
- focus_manager_.reset(new aura::FocusManager);
+ focus_client_.reset(new aura::FocusManager);
activation_controller_.reset(
new internal::ActivationController(
- focus_manager_.get(),
+ focus_client_.get(),
new internal::AshActivationController));
AddPreTargetHandler(activation_controller_.get());
@@ -771,7 +771,7 @@
}
void Shell::InitRootWindowForSecondaryDisplay(aura::RootWindow* root) {
- root->set_focus_manager(focus_manager_.get());
+ aura::client::SetFocusClient(root, focus_client_.get());
internal::RootWindowController* controller =
new internal::RootWindowController(root);
controller->CreateContainers();
@@ -808,7 +808,7 @@
DCHECK(capture_controller_.get());
DCHECK(window_cycle_controller_.get());
- root_window->set_focus_manager(focus_manager_.get());
+ aura::client::SetFocusClient(root_window, focus_client_.get());
input_method_filter_->SetInputMethodPropertyInRootWindow(root_window);
aura::client::SetActivationClient(root_window, activation_controller_.get());
aura::client::SetVisibilityClient(root_window, visibility_controller_.get());
« no previous file with comments | « ash/shell.h ('k') | ash/wm/activation_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698