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

Unified Diff: ui/views/widget/desktop_aura/desktop_activation_client.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
Index: ui/views/widget/desktop_aura/desktop_activation_client.cc
===================================================================
--- ui/views/widget/desktop_aura/desktop_activation_client.cc (revision 169818)
+++ ui/views/widget/desktop_aura/desktop_activation_client.cc (working copy)
@@ -8,7 +8,7 @@
#include "base/compiler_specific.h"
#include "ui/aura/client/activation_delegate.h"
#include "ui/aura/client/activation_change_observer.h"
-#include "ui/aura/focus_manager.h"
+#include "ui/aura/client/focus_client.h"
#include "ui/aura/root_window.h"
#include "ui/aura/window.h"
@@ -19,12 +19,12 @@
current_active_(NULL),
updating_activation_(false),
ALLOW_THIS_IN_INITIALIZER_LIST(observer_manager_(this)) {
- root_window->GetFocusManager()->AddObserver(this);
+ aura::client::GetFocusClient(root_window_)->AddObserver(this);
aura::client::SetActivationClient(root_window_, this);
}
DesktopActivationClient::~DesktopActivationClient() {
- root_window_->GetFocusManager()->RemoveObserver(this);
+ aura::client::GetFocusClient(root_window_)->RemoveObserver(this);
aura::client::SetActivationClient(root_window_, NULL);
}
@@ -54,8 +54,9 @@
// Switch internal focus before we change the activation. Will probably cause
// recursion.
if (window &&
- !window->Contains(window->GetFocusManager()->GetFocusedWindow())) {
- window->GetFocusManager()->SetFocusedWindow(window, NULL);
+ !window->Contains(aura::client::GetFocusClient(window)->
+ GetFocusedWindow())) {
+ aura::client::GetFocusClient(window)->FocusWindow(window, NULL);
}
aura::Window* old_active = current_active_;
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_activation_client.h ('k') | ui/views/widget/desktop_aura/desktop_native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698