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

Unified Diff: ui/views/widget/desktop_aura/desktop_root_window_host_linux.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_root_window_host_linux.cc
===================================================================
--- ui/views/widget/desktop_aura/desktop_root_window_host_linux.cc (revision 169818)
+++ ui/views/widget/desktop_aura/desktop_root_window_host_linux.cc (working copy)
@@ -214,8 +214,8 @@
// messages to us.
X11DesktopHandler::get();
- focus_manager_.reset(new aura::FocusManager);
- root_window_->set_focus_manager(focus_manager_.get());
+ focus_client_.reset(new aura::FocusManager);
+ aura::client::SetFocusClient(root_window_.get(), focus_client_.get());
activation_client_.reset(new DesktopActivationClient(root_window_));
@@ -250,7 +250,7 @@
aura::client::SetWindowMoveClient(root_window_,
x11_window_move_client_.get());
- focus_manager_->SetFocusedWindow(content_window_, NULL);
+ focus_client_->FocusWindow(content_window_, NULL);
return root_window_;
}
@@ -532,8 +532,9 @@
// of focus changes into views.
if (content_window_ && content_window_->GetFocusManager() &&
content_window_->Contains(
- content_window_->GetFocusManager()->GetFocusedWindow())) {
- content_window_->GetFocusManager()->SetFocusedWindow(content_window_, NULL);
+ aura::client::GetFocusClient(content_window_)->GetFocusedWindow())) {
+ aura::client::GetFocusClient(content_window_)->FocusWindow(
+ content_window_, NULL);
}
}

Powered by Google App Engine
This is Rietveld 408576698