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

Unified Diff: ui/views/controls/native/native_view_host_aura.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 | « ui/aura/window.cc ('k') | ui/views/focus/focus_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/native/native_view_host_aura.cc
===================================================================
--- ui/views/controls/native/native_view_host_aura.cc (revision 169818)
+++ ui/views/controls/native/native_view_host_aura.cc (working copy)
@@ -81,8 +81,9 @@
void NativeViewHostAura::SetFocus() {
aura::Window* window = host_->native_view();
- if (window->GetFocusManager())
- window->GetFocusManager()->SetFocusedWindow(window, NULL);
+ aura::client::FocusClient* client = aura::client::GetFocusClient(window);
+ if (client)
+ client->FocusWindow(window, NULL);
}
gfx::NativeViewAccessible NativeViewHostAura::GetNativeViewAccessible() {
« no previous file with comments | « ui/aura/window.cc ('k') | ui/views/focus/focus_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698