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

Unified Diff: ui/aura/mus/text_input_client_impl.h

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: ui/aura/mus/text_input_client_impl.h
diff --git a/ui/aura/mus/text_input_client_impl.h b/ui/aura/mus/text_input_client_impl.h
index e9222ec66c39d2252fe64826a6c209c76f40952b..e4de29f08a927b37e85d93d17baa4787e769796d 100644
--- a/ui/aura/mus/text_input_client_impl.h
+++ b/ui/aura/mus/text_input_client_impl.h
@@ -8,6 +8,7 @@
#include "mojo/public/cpp/bindings/binding.h"
#include "services/ui/public/interfaces/ime/ime.mojom.h"
#include "ui/base/ime/composition_text.h"
+#include "ui/base/ime/input_method_delegate.h"
namespace ui {
class TextInputClient;
@@ -19,7 +20,8 @@ namespace aura {
// notifies the underlying ui::TextInputClient accordingly.
class TextInputClientImpl : public ui::mojom::TextInputClient {
public:
- explicit TextInputClientImpl(ui::TextInputClient* text_input_client);
+ explicit TextInputClientImpl(ui::TextInputClient* text_input_client,
+ ui::internal::InputMethodDelegate* delegate);
~TextInputClientImpl() override;
ui::mojom::TextInputClientPtr CreateInterfacePtrAndBind();
@@ -31,9 +33,13 @@ class TextInputClientImpl : public ui::mojom::TextInputClient {
void ClearCompositionText() override;
void InsertText(const std::string& text) override;
void InsertChar(std::unique_ptr<ui::Event> event) override;
+ void DispatchKeyEventPostIME(
+ std::unique_ptr<ui::Event> event,
+ const DispatchKeyEventPostIMECallback& callback) override;
ui::TextInputClient* text_input_client_;
mojo::Binding<ui::mojom::TextInputClient> binding_;
+ ui::internal::InputMethodDelegate* delegate_;
DISALLOW_COPY_AND_ASSIGN(TextInputClientImpl);
};

Powered by Google App Engine
This is Rietveld 408576698