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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_views.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/wm/window_manager_unittest.cc ('k') | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/omnibox/omnibox_view_views.cc
===================================================================
--- chrome/browser/ui/views/omnibox/omnibox_view_views.cc (revision 169818)
+++ chrome/browser/ui/views/omnibox/omnibox_view_views.cc (working copy)
@@ -396,9 +396,10 @@
#if defined(USE_AURA)
views::Widget* widget = GetWidget();
if (widget) {
- aura::RootWindow* root = widget->GetNativeView()->GetRootWindow();
- if (root)
- native_view = root->GetFocusManager()->GetFocusedWindow();
+ aura::client::FocusClient* client =
+ aura::client::GetFocusClient(widget->GetNativeView());
+ if (client)
+ native_view = client->GetFocusedWindow();
}
#endif
model()->OnWillKillFocus(native_view);
« no previous file with comments | « ash/wm/window_manager_unittest.cc ('k') | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698