OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
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 }; | |
sky
2016/08/18 23:43:08
no ';'
Hadi
2016/08/25 18:06:06
Done.
| |
14 | |
15 namespace views { | |
16 | |
17 class InputMethodMus; | |
18 | |
19 // TextInputClientImpl receieves updates from IME drivers over Mojo IPC, and | |
20 // notifies the underlying ui::TextInputClient accordingly. | |
21 class TextInputClientImpl : public ui::mojom::TextInputClient { | |
22 public: | |
23 TextInputClientImpl(ui::TextInputClient* text_input_client, | |
24 InputMethodMus* input_method); | |
25 ~TextInputClientImpl() override; | |
26 | |
27 ui::mojom::TextInputClientPtr CreateInterfacePtrAndBind(); | |
28 | |
29 private: | |
30 // ui::mojom::TextInputClient: | |
31 void OnCompositionEvent(ui::mojom::CompositionEventPtr event) override; | |
32 void OnUnhandledEvent(std::unique_ptr<ui::Event> key_event) override; | |
33 | |
34 ui::TextInputClient* text_input_client_; | |
35 InputMethodMus* input_method_; | |
36 mojo::Binding<ui::mojom::TextInputClient> binding_; | |
37 | |
38 DISALLOW_COPY_AND_ASSIGN(TextInputClientImpl); | |
39 }; | |
40 | |
41 } // namespace views | |
42 | |
43 #endif // UI_VIEWS_MUS_TEXT_INPUT_CLIENT_IMPL_H_ | |
OLD | NEW |