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

Unified Diff: ui/aura/window_tree_host.cc

Issue 2872343003: Remove InputMethodEventHandler. (Closed)
Patch Set: cleanup. Created 3 years, 7 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
« ui/aura/test/aura_test_utils.cc ('K') | « ui/aura/window_event_dispatcher.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_tree_host.cc
diff --git a/ui/aura/window_tree_host.cc b/ui/aura/window_tree_host.cc
index 892635705595c75b979ef8476fdf5fe2a5959ccd..4097b1b3706f00baa4ac096d975a4adf9d21c9e6 100644
--- a/ui/aura/window_tree_host.cc
+++ b/ui/aura/window_tree_host.cc
@@ -194,7 +194,10 @@ void WindowTreeHost::SetSharedInputMethod(ui::InputMethod* input_method) {
ui::EventDispatchDetails WindowTreeHost::DispatchKeyEventPostIME(
sadrul 2017/05/15 18:14:54 Should WindowTreeHost::DispatchKeyEventPostIME() b
Hadi 2017/05/16 14:53:59 Done.
ui::KeyEvent* event) {
- return SendEventToSink(event);
+ dispatcher_->set_skip_ime(true);
+ ui::EventDispatchDetails dispatch_details = SendEventToSink(event);
+ dispatcher_->set_skip_ime(false);
sadrul 2017/05/15 18:14:54 Check |details.dispatcher_destroyed| before using
Hadi 2017/05/16 14:53:59 Done.
+ return dispatch_details;
}
void WindowTreeHost::Show() {
« ui/aura/test/aura_test_utils.cc ('K') | « ui/aura/window_event_dispatcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698