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 |