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

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

Issue 2539453002: IME for Mus: Add ui.mojom.CompositionText and its struct traits. (Closed)
Patch Set: Addressed feedback. Created 4 years 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/views/mus/input_method_mus.cc ('k') | ui/views/mus/text_input_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/text_input_client_impl.h
diff --git a/ui/views/mus/text_input_client_impl.h b/ui/views/mus/text_input_client_impl.h
index 529bed6959efafd6f549a8ec069a20b018245c83..2531ed6ae28d904378e8b199bc5d7903c8ce6a14 100644
--- a/ui/views/mus/text_input_client_impl.h
+++ b/ui/views/mus/text_input_client_impl.h
@@ -6,7 +6,8 @@
#define UI_VIEWS_MUS_TEXT_INPUT_CLIENT_IMPL_H_
#include "mojo/public/cpp/bindings/binding.h"
-#include "services/ui/public/interfaces/ime.mojom.h"
+#include "services/ui/public/interfaces/ime/ime.mojom.h"
+#include "ui/base/ime/composition_text.h"
namespace ui {
class TextInputClient;
@@ -25,7 +26,11 @@ class TextInputClientImpl : public ui::mojom::TextInputClient {
private:
// ui::mojom::TextInputClient:
- void OnCompositionEvent(ui::mojom::CompositionEventPtr event) override;
+ void SetCompositionText(const ui::CompositionText& composition) override;
+ void ConfirmCompositionText() override;
+ void ClearCompositionText() override;
+ void InsertText(const std::string& text) override;
+ void InsertChar(std::unique_ptr<ui::Event> event) override;
ui::TextInputClient* text_input_client_;
mojo::Binding<ui::mojom::TextInputClient> binding_;
« no previous file with comments | « ui/views/mus/input_method_mus.cc ('k') | ui/views/mus/text_input_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698