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

Unified Diff: ui/views/mus/window_tree_host_mus.cc

Issue 2412593002: IME for Mus: Send ack for key events after IME driver processes the event. (Closed)
Patch Set: Addressed feedback. Created 4 years, 2 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 | « ui/views/mus/window_tree_host_mus.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/window_tree_host_mus.cc
diff --git a/ui/views/mus/window_tree_host_mus.cc b/ui/views/mus/window_tree_host_mus.cc
index 4af43f29ea113d625e0f118c2ef79200084fd778..0d08e1b3f41fc1ad4ee81980577e1e255d440d8c 100644
--- a/ui/views/mus/window_tree_host_mus.cc
+++ b/ui/views/mus/window_tree_host_mus.cc
@@ -59,9 +59,6 @@ WindowTreeHostMus::WindowTreeHostMus(NativeWidgetMus* native_widget,
platform_window()->SetBounds(window->bounds());
compositor()->SetHostHasTransparentBackground(true);
-
- input_method_ = base::MakeUnique<InputMethodMus>(this, window);
- SetSharedInputMethod(input_method_.get());
}
WindowTreeHostMus::~WindowTreeHostMus() {
@@ -69,15 +66,9 @@ WindowTreeHostMus::~WindowTreeHostMus() {
DestroyDispatcher();
}
-void WindowTreeHostMus::InitInputMethod(service_manager::Connector* connector) {
- input_method_->Init(connector);
-}
-
void WindowTreeHostMus::DispatchEvent(ui::Event* event) {
- if (event->IsKeyEvent() && GetInputMethod()) {
- GetInputMethod()->DispatchKeyEvent(event->AsKeyEvent());
- return;
- }
+ // Key events are sent to InputMethodMus directly from NativeWidgetMus.
+ DCHECK(!event->IsKeyEvent());
WindowTreeHostPlatform::DispatchEvent(event);
}
« no previous file with comments | « ui/views/mus/window_tree_host_mus.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698