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

Unified Diff: services/ui/ime/ime_unittest.cc

Issue 2957173004: Make DispatchKeyEventPostIME() asynchronous.
Patch Set: cleanup. Created 3 years, 5 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: services/ui/ime/ime_unittest.cc
diff --git a/services/ui/ime/ime_unittest.cc b/services/ui/ime/ime_unittest.cc
index 8471c680096e4253924cd2ff0ee7af4875165c2d..b2f93286a3372e7e2aa6ee5cd2e8b364561b74a3 100644
--- a/services/ui/ime/ime_unittest.cc
+++ b/services/ui/ime/ime_unittest.cc
@@ -39,6 +39,11 @@ class TestTextInputClient : public ui::mojom::TextInputClient {
if (run_loop_)
run_loop_->Quit();
}
+ void DispatchKeyEventPostIME(
+ std::unique_ptr<ui::Event> event,
+ const DispatchKeyEventPostIMECallback& callback) override {
+ callback.Run(false);
+ }
mojo::Binding<ui::mojom::TextInputClient> binding_;
std::unique_ptr<base::RunLoop> run_loop_;

Powered by Google App Engine
This is Rietveld 408576698