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

Unified Diff: ash/host/ash_window_tree_host_unified.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_window_tree_host_unified.h ('k') | ash/host/ash_window_tree_host_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/host/ash_window_tree_host_unified.cc
diff --git a/ash/host/ash_window_tree_host_unified.cc b/ash/host/ash_window_tree_host_unified.cc
index 685e20c502bf807d6dd301e62935a8bb6b0bd772..4b98f729520bd03e4e5169d226364a55b3fd1e2d 100644
--- a/ash/host/ash_window_tree_host_unified.cc
+++ b/ash/host/ash_window_tree_host_unified.cc
@@ -4,6 +4,7 @@
#include "ash/host/ash_window_tree_host_unified.h"
#include "ash/host/root_window_transformer.h"
+#include "ash/ime/input_method_event_handler.h"
#include "base/logging.h"
#include "ui/aura/window.h"
#include "ui/aura/window_event_dispatcher.h"
@@ -181,4 +182,18 @@ void AshWindowTreeHostUnified::OnWindowDestroying(aura::Window* window) {
mirroring_hosts_.erase(iter);
}
+bool AshWindowTreeHostUnified::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 AshWindowTreeHostUnified::DeliverEventToProcessor(
+ ui::Event* event) {
+ return ui::EventSource::DeliverEventToProcessor(event);
+}
+
} // namespace ash
« no previous file with comments | « ash/host/ash_window_tree_host_unified.h ('k') | ash/host/ash_window_tree_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698