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

Unified Diff: trunk/src/ui/views/widget/desktop_aura/desktop_root_window_host_x11.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_root_window_host_x11.cc
===================================================================
--- trunk/src/ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc (revision 220120)
+++ trunk/src/ui/views/widget/desktop_aura/desktop_root_window_host_x11.cc (working copy)
@@ -31,6 +31,7 @@
#include "ui/views/corewm/corewm_switches.h"
#include "ui/views/corewm/cursor_manager.h"
#include "ui/views/corewm/focus_controller.h"
+#include "ui/views/ime/input_method.h"
#include "ui/views/widget/desktop_aura/desktop_activation_client.h"
#include "ui/views/widget/desktop_aura/desktop_cursor_loader_updater_aurax11.h"
#include "ui/views/widget/desktop_aura/desktop_dispatcher_client.h"
@@ -535,6 +536,15 @@
NOTIMPLEMENTED();
}
+void DesktopRootWindowHostX11::OnNativeWidgetFocus() {
+ native_widget_delegate_->AsWidget()->GetInputMethod()->OnFocus();
+}
+
+void DesktopRootWindowHostX11::OnNativeWidgetBlur() {
+ if (xwindow_)
+ native_widget_delegate_->AsWidget()->GetInputMethod()->OnBlur();
+}
+
////////////////////////////////////////////////////////////////////////////////
// DesktopRootWindowHostX11, aura::RootWindowHost implementation:
« no previous file with comments | « trunk/src/ui/views/widget/desktop_aura/desktop_root_window_host_x11.h ('k') | trunk/src/ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698