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

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

Issue 2230393002: IME for Mus: Make InputMethodMus use the IME Mojo API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 4 years, 4 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/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
new file mode 100644
index 0000000000000000000000000000000000000000..5d4f1f58034f8047de7d84ccc46e71ecb2a785e1
--- /dev/null
+++ b/ui/views/mus/text_input_client_impl.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
sadrul 2016/08/16 20:01:51 No (c)
Hadi 2016/08/16 20:18:25 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_VIEWS_MUS_TEXT_INPUT_CLIENT_IMPL_H_
+#define UI_VIEWS_MUS_TEXT_INPUT_CLIENT_IMPL_H_
+
+#include "mojo/public/cpp/bindings/binding.h"
+#include "services/ui/public/interfaces/ime.mojom.h"
+
+namespace ui {
+class TextInputClient;
+};
+
+namespace views {
+
+// TextInputClientImpl receieves updates from IME drivers over Mojo IPC, and
+// notifies the underlying ui::TextInputClient accordingly.
+class TextInputClientImpl : public ui::mojom::TextInputClient {
+ public:
+ explicit TextInputClientImpl(ui::mojom::TextInputClientRequest request,
sadrul 2016/08/16 20:01:51 No explicit
Hadi 2016/08/16 20:18:25 Done.
+ ui::TextInputClient* text_input_client);
+ ~TextInputClientImpl() override;
+
+ private:
+ // ui::mojom::TextInputClient:
+ void OnCompositionEvent(ui::mojom::CompositionEventPtr event) override;
+
+ ui::TextInputClient* text_input_client_;
+ mojo::Binding<ui::mojom::TextInputClient> binding_;
+
+ DISALLOW_COPY_AND_ASSIGN(TextInputClientImpl);
+};
+
+} // namespace views
+
+#endif // UI_VIEWS_MUS_TEXT_INPUT_CLIENT_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698