summaryrefslogtreecommitdiffstats
path: root/ash/shell.cc
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-28 03:28:46 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-28 03:28:46 +0000
commit8cfb672c1560ea3354b0a51fa2efca3de8249beb (patch)
tree9e4e4dba8001b6b37a6b2b15070544c26f5008be /ash/shell.cc
parent9bf222b0ada03412fbbb61a5dcf2f6205bb1f0d8 (diff)
downloadchromium_src-8cfb672c1560ea3354b0a51fa2efca3de8249beb.zip
chromium_src-8cfb672c1560ea3354b0a51fa2efca3de8249beb.tar.gz
chromium_src-8cfb672c1560ea3354b0a51fa2efca3de8249beb.tar.bz2
Rework FocusManager as FocusClient.
This allows us to have multiple focus system implementations. http://crbug.com/162100 R=sky@chromium.org Review URL: https://codereview.chromium.org/11299219 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169824 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell.cc')
-rw-r--r--ash/shell.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/ash/shell.cc b/ash/shell.cc
index c2460e2..2a8e895 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -232,7 +232,7 @@ Shell::~Shell() {
// 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 @@ void Shell::Init() {
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 @@ SystemTray* Shell::system_tray() {
}
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 @@ void Shell::InitRootWindowController(
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());