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

Unified Diff: ui/views/widget/native_widget_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/views/widget/desktop_aura/desktop_stacking_client.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_aura.cc
===================================================================
--- ui/views/widget/native_widget_aura.cc (revision 169818)
+++ ui/views/widget/native_widget_aura.cc (working copy)
@@ -581,9 +581,9 @@
}
void NativeWidgetAura::ClearNativeFocus() {
- if (window_ && window_->GetFocusManager() &&
- window_->Contains(window_->GetFocusManager()->GetFocusedWindow()))
- window_->GetFocusManager()->SetFocusedWindow(window_, NULL);
+ aura::client::FocusClient* client = aura::client::GetFocusClient(window_);
+ if (window_ && client && window_->Contains(client->GetFocusedWindow()))
+ client->FocusWindow(window_, NULL);
}
gfx::Rect NativeWidgetAura::GetWorkAreaBoundsInScreen() const {
@@ -680,7 +680,8 @@
else
DCHECK_EQ(ownership_, Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET);
- delegate_->OnNativeBlur(window_->GetFocusManager()->GetFocusedWindow());
+ delegate_->OnNativeBlur(
+ aura::client::GetFocusClient(window_)->GetFocusedWindow());
}
gfx::NativeCursor NativeWidgetAura::GetCursor(const gfx::Point& point) {
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_stacking_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698