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

Unified Diff: ash/host/ash_remote_window_tree_host_win.cc

Issue 1209663002: Use EventHandler for IME (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « ash/host/ash_remote_window_tree_host_win.h ('k') | ash/host/ash_window_tree_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/host/ash_remote_window_tree_host_win.cc
diff --git a/ash/host/ash_remote_window_tree_host_win.cc b/ash/host/ash_remote_window_tree_host_win.cc
index e6576e5f15a85b7cf5fe22ec7726f4888f28efc1..7ce8718646c1da5d228394436221ee80c2a60e1c 100644
--- a/ash/host/ash_remote_window_tree_host_win.cc
+++ b/ash/host/ash_remote_window_tree_host_win.cc
@@ -5,6 +5,7 @@
#include "ash/host/ash_remote_window_tree_host_win.h"
#include "ash/host/root_window_transformer.h"
+#include "ash/ime/input_method_event_handler.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/transform.h"
@@ -56,4 +57,18 @@ void AshRemoteWindowTreeHostWin::UpdateRootWindowSize(
transformer_helper_.UpdateWindowSize(host_size);
}
+bool AshRemoteWindowTreeHostWin::DispatchKeyEventPostIME(
+ const ui::KeyEvent& event) {
+ ui::KeyEvent event_copy(event);
+ input_method_handler()->SetPostIME(true);
+ ui::EventSource::DeliverEventToProcessor(&event_copy);
+ input_method_handler()->SetPostIME(false);
+ return event_copy.handled();
+}
+
+ui::EventDispatchDetails AshRemoteWindowTreeHostWin::DeliverEventToProcessor(
+ ui::Event* event) {
+ return ui::EventSource::DeliverEventToProcessor(event);
+}
+
} // namespace ash
« no previous file with comments | « ash/host/ash_remote_window_tree_host_win.h ('k') | ash/host/ash_window_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698