Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // 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.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_VIEWS_MUS_TEXT_INPUT_CLIENT_IMPL_H_ | |
| 6 #define UI_VIEWS_MUS_TEXT_INPUT_CLIENT_IMPL_H_ | |
| 7 | |
| 8 #include "mojo/public/cpp/bindings/binding.h" | |
| 9 #include "services/ui/public/interfaces/ime.mojom.h" | |
| 10 | |
| 11 namespace ui { | |
| 12 class TextInputClient; | |
| 13 }; | |
| 14 | |
| 15 namespace views { | |
| 16 | |
| 17 // TextInputClientImpl receieves updates from IME drivers over Mojo IPC, and | |
| 18 // notifies the underlying ui::TextInputClient accordingly. | |
| 19 class TextInputClientImpl : public ui::mojom::TextInputClient { | |
| 20 public: | |
| 21 explicit TextInputClientImpl(ui::mojom::TextInputClientRequest request, | |
|
sadrul
2016/08/16 20:01:51
No explicit
Hadi
2016/08/16 20:18:25
Done.
| |
| 22 ui::TextInputClient* text_input_client); | |
| 23 ~TextInputClientImpl() override; | |
| 24 | |
| 25 private: | |
| 26 // ui::mojom::TextInputClient: | |
| 27 void OnCompositionEvent(ui::mojom::CompositionEventPtr event) override; | |
| 28 | |
| 29 ui::TextInputClient* text_input_client_; | |
| 30 mojo::Binding<ui::mojom::TextInputClient> binding_; | |
| 31 | |
| 32 DISALLOW_COPY_AND_ASSIGN(TextInputClientImpl); | |
| 33 }; | |
| 34 | |
| 35 } // namespace views | |
| 36 | |
| 37 #endif // UI_VIEWS_MUS_TEXT_INPUT_CLIENT_IMPL_H_ | |
| OLD | NEW |