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

Unified Diff: ash/mus/ash_window_tree_host_mus.cc

Issue 2872343003: Remove InputMethodEventHandler. (Closed)
Patch Set: Add a unittest. 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
Index: ash/mus/ash_window_tree_host_mus.cc
diff --git a/ash/mus/ash_window_tree_host_mus.cc b/ash/mus/ash_window_tree_host_mus.cc
index 7c10818a2cb53502302e5b63d78e7964aa72d2ac..18d9edafc5f1f71f5babbb22aeede09b6e66b174 100644
--- a/ash/mus/ash_window_tree_host_mus.cc
+++ b/ash/mus/ash_window_tree_host_mus.cc
@@ -6,7 +6,6 @@
#include "ash/host/root_window_transformer.h"
#include "ash/host/transformer_helper.h"
-#include "ash/ime/input_method_event_handler.h"
#include "base/memory/ptr_util.h"
#include "ui/aura/mus/window_tree_host_mus_init_params.h"
#include "ui/aura/window.h"
@@ -88,13 +87,7 @@ void AshWindowTreeHostMus::UpdateRootWindowSizeInPixels(
ui::EventDispatchDetails AshWindowTreeHostMus::DispatchKeyEventPostIME(
ui::KeyEvent* event) {
- // input_method_handler() can be null when using IME service with --mus.
- if (input_method_handler())
- input_method_handler()->SetPostIME(true);
- ui::EventDispatchDetails details = SendEventToSink(event);
- if (input_method_handler() && !details.dispatcher_destroyed)
- input_method_handler()->SetPostIME(false);
- return details;
+ return SendEventToSink(event);
sadrul 2017/05/15 14:44:24 ditto
Hadi 2017/05/15 17:22:13 Done.
}
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698