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

Unified Diff: ash/mus/ash_window_tree_host_mus.cc

Issue 2831583005: Enable Config::MUS to use classic IME instead of servicified IME. (Closed)
Patch Set: Addressed feedback. 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
« no previous file with comments | « ash/mus/ash_window_tree_host_mus.h ('k') | ash/mus/bridge/shell_port_mash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 52cb894ff83f132650fd420151375c2b34959af9..371285523a74bad2c571043e618e09f36739f9ae 100644
--- a/ash/mus/ash_window_tree_host_mus.cc
+++ b/ash/mus/ash_window_tree_host_mus.cc
@@ -6,9 +6,11 @@
#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"
+#include "ui/events/event_sink.h"
#include "ui/events/null_event_targeter.h"
namespace ash {
@@ -84,4 +86,13 @@ void AshWindowTreeHostMus::UpdateRootWindowSizeInPixels(
transformer_helper_->UpdateWindowSize(host_size_in_pixels);
}
+ui::EventDispatchDetails AshWindowTreeHostMus::DispatchKeyEventPostIME(
+ ui::KeyEvent* event) {
+ input_method_handler()->SetPostIME(true);
+ ui::EventDispatchDetails details = SendEventToSink(event);
+ if (!details.dispatcher_destroyed)
+ input_method_handler()->SetPostIME(false);
+ return details;
+}
+
} // namespace ash
« no previous file with comments | « ash/mus/ash_window_tree_host_mus.h ('k') | ash/mus/bridge/shell_port_mash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698