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

Side by Side Diff: ui/views/mus/text_input_client_impl.h

Issue 2412593002: IME for Mus: Send ack for key events after IME driver processes the event. (Closed)
Patch Set: Fixed views_mus_unittests. Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_MUS_TEXT_INPUT_CLIENT_IMPL_H_ 5 #ifndef UI_VIEWS_MUS_TEXT_INPUT_CLIENT_IMPL_H_
6 #define UI_VIEWS_MUS_TEXT_INPUT_CLIENT_IMPL_H_ 6 #define UI_VIEWS_MUS_TEXT_INPUT_CLIENT_IMPL_H_
7 7
8 #include "mojo/public/cpp/bindings/binding.h" 8 #include "mojo/public/cpp/bindings/binding.h"
9 #include "services/ui/public/interfaces/ime.mojom.h" 9 #include "services/ui/public/interfaces/ime.mojom.h"
10 10
11 namespace ui { 11 namespace ui {
12 class TextInputClient; 12 class TextInputClient;
13 } 13 }
14 14
15 namespace views { 15 namespace views {
16 16
17 class InputMethodMus; 17 class InputMethodMus;
18 18
19 // TextInputClientImpl receieves updates from IME drivers over Mojo IPC, and 19 // TextInputClientImpl receieves updates from IME drivers over Mojo IPC, and
20 // notifies the underlying ui::TextInputClient accordingly. 20 // notifies the underlying ui::TextInputClient accordingly.
21 class TextInputClientImpl : public ui::mojom::TextInputClient { 21 class TextInputClientImpl : public ui::mojom::TextInputClient {
22 public: 22 public:
23 TextInputClientImpl(ui::TextInputClient* text_input_client, 23 TextInputClientImpl(ui::TextInputClient* text_input_client);
sadrul 2016/10/13 16:36:29 explicit
24 InputMethodMus* input_method);
25 ~TextInputClientImpl() override; 24 ~TextInputClientImpl() override;
26 25
27 ui::mojom::TextInputClientPtr CreateInterfacePtrAndBind(); 26 ui::mojom::TextInputClientPtr CreateInterfacePtrAndBind();
28 27
29 private: 28 private:
30 // ui::mojom::TextInputClient: 29 // ui::mojom::TextInputClient:
31 void OnCompositionEvent(ui::mojom::CompositionEventPtr event) override; 30 void OnCompositionEvent(ui::mojom::CompositionEventPtr event) override;
32 void OnUnhandledEvent(std::unique_ptr<ui::Event> key_event) override;
33 31
34 ui::TextInputClient* text_input_client_; 32 ui::TextInputClient* text_input_client_;
35 InputMethodMus* input_method_;
36 mojo::Binding<ui::mojom::TextInputClient> binding_; 33 mojo::Binding<ui::mojom::TextInputClient> binding_;
37 34
38 DISALLOW_COPY_AND_ASSIGN(TextInputClientImpl); 35 DISALLOW_COPY_AND_ASSIGN(TextInputClientImpl);
39 }; 36 };
40 37
41 } // namespace views 38 } // namespace views
42 39
43 #endif // UI_VIEWS_MUS_TEXT_INPUT_CLIENT_IMPL_H_ 40 #endif // UI_VIEWS_MUS_TEXT_INPUT_CLIENT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698