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

Unified Diff: ui/aura/test/aura_test_utils.cc

Issue 2872343003: Remove InputMethodEventHandler. (Closed)
Patch Set: Fix X11 and Win 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 | « ui/aura/test/aura_test_utils.h ('k') | ui/aura/window_event_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/aura_test_utils.cc
diff --git a/ui/aura/test/aura_test_utils.cc b/ui/aura/test/aura_test_utils.cc
index e86858a8a72fc05afb9872096b2186403d957759..bc38987eb2a1c4f77cba10c29667ba93c6875cca 100644
--- a/ui/aura/test/aura_test_utils.cc
+++ b/ui/aura/test/aura_test_utils.cc
@@ -25,6 +25,8 @@ class WindowTreeHostTestApi {
host_->dispatcher_ = std::move(dispatcher);
}
+ void disable_ime() { host_->dispatcher_->set_skip_ime(true); }
+
private:
WindowTreeHost* host_;
@@ -42,5 +44,10 @@ void SetHostDispatcher(WindowTreeHost* host,
host_test_api.set_dispatcher(std::move(dispatcher));
}
+void DisableIME(WindowTreeHost* host) {
+ WindowTreeHostTestApi host_test_api(host);
sky 2017/05/18 16:55:08 optional: don't bother with the local, e.g. Window
+ host_test_api.disable_ime();
+}
+
} // namespace test
} // namespace aura
« no previous file with comments | « ui/aura/test/aura_test_utils.h ('k') | ui/aura/window_event_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698