Chromium Code Reviews| 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); } |
|
sadrul
2017/05/15 18:14:54
I think this can break after the first key event d
|
| + |
| 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); |
| + host_test_api.disable_ime(); |
| +} |
| + |
| } // namespace test |
| } // namespace aura |