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

Unified Diff: trunk/src/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc

Issue 23710009: Revert 219673 "Fix Views Combobox and Tree View text input." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 months 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: trunk/src/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
===================================================================
--- trunk/src/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc (revision 220120)
+++ trunk/src/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc (working copy)
@@ -866,8 +866,17 @@
void DesktopNativeWidgetAura::OnWindowFocused(aura::Window* gained_focus,
aura::Window* lost_focus) {
if (window_ == gained_focus) {
+ desktop_root_window_host_->OnNativeWidgetFocus();
native_widget_delegate_->OnNativeFocus(lost_focus);
+
+ // If focus is moving from a descendant Window to |window_| then native
+ // activation hasn't changed. We still need to inform the InputMethod we've
+ // been focused though.
+ InputMethod* input_method = GetWidget()->GetInputMethod();
+ if (input_method)
+ input_method->OnFocus();
} else if (window_ == lost_focus) {
+ desktop_root_window_host_->OnNativeWidgetBlur();
native_widget_delegate_->OnNativeBlur(
aura::client::GetFocusClient(window_)->GetFocusedWindow());
}
« no previous file with comments | « trunk/src/ui/views/ime/mock_input_method.cc ('k') | trunk/src/ui/views/widget/desktop_aura/desktop_root_window_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698