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

Unified Diff: ui/base/ime/input_method_delegate.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
« ui/base/ime/input_method_delegate.h ('K') | « ui/base/ime/input_method_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_delegate.cc
diff --git a/ui/base/ime/input_method_delegate.cc b/ui/base/ime/input_method_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..42802c0015b70c45229e6dc275beb65920e41aaf
--- /dev/null
+++ b/ui/base/ime/input_method_delegate.cc
@@ -0,0 +1,23 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/base/ime/input_method_delegate.h"
+
+#include "base/callback.h"
+#include "ui/events/event.h"
+
+namespace ui {
+namespace internal {
+
+ui::EventDispatchDetails InputMethodDelegate::DispatchKeyEventPostIME(
+ ui::KeyEvent* key_event,
+ std::unique_ptr<base::Callback<void(bool)>> ack_callback) {
+ ui::EventDispatchDetails details = DispatchKeyEventPostIME(key_event);
+ if (ack_callback)
+ ack_callback->Run(key_event->stopped_propagation());
+ return details;
+}
+
+} // namespace internal
+} // namespace ui
« ui/base/ime/input_method_delegate.h ('K') | « ui/base/ime/input_method_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698