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

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

Issue 2445163002: Make aura work with mus (Closed)
Patch Set: NON_EXPORTED_BASE_CLASS Created 4 years, 1 month 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
« no previous file with comments | « ui/aura/mus/surface_id_handler.h ('k') | ui/aura/mus/text_input_client_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_AURA_MUS_TEXT_INPUT_CLIENT_IMPL_H_
6 #define UI_VIEWS_MUS_TEXT_INPUT_CLIENT_IMPL_H_ 6 #define UI_AURA_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 aura {
16
17 class InputMethodMus;
18 16
19 // TextInputClientImpl receieves updates from IME drivers over Mojo IPC, and 17 // TextInputClientImpl receieves updates from IME drivers over Mojo IPC, and
20 // notifies the underlying ui::TextInputClient accordingly. 18 // notifies the underlying ui::TextInputClient accordingly.
21 class TextInputClientImpl : public ui::mojom::TextInputClient { 19 class TextInputClientImpl : public ui::mojom::TextInputClient {
22 public: 20 public:
23 explicit TextInputClientImpl(ui::TextInputClient* text_input_client); 21 explicit TextInputClientImpl(ui::TextInputClient* text_input_client);
24 ~TextInputClientImpl() override; 22 ~TextInputClientImpl() override;
25 23
26 ui::mojom::TextInputClientPtr CreateInterfacePtrAndBind(); 24 ui::mojom::TextInputClientPtr CreateInterfacePtrAndBind();
27 25
28 private: 26 private:
29 // ui::mojom::TextInputClient: 27 // ui::mojom::TextInputClient:
30 void OnCompositionEvent(ui::mojom::CompositionEventPtr event) override; 28 void OnCompositionEvent(ui::mojom::CompositionEventPtr event) override;
31 29
32 ui::TextInputClient* text_input_client_; 30 ui::TextInputClient* text_input_client_;
33 mojo::Binding<ui::mojom::TextInputClient> binding_; 31 mojo::Binding<ui::mojom::TextInputClient> binding_;
34 32
35 DISALLOW_COPY_AND_ASSIGN(TextInputClientImpl); 33 DISALLOW_COPY_AND_ASSIGN(TextInputClientImpl);
36 }; 34 };
37 35
38 } // namespace views 36 } // namespace aura
39 37
40 #endif // UI_VIEWS_MUS_TEXT_INPUT_CLIENT_IMPL_H_ 38 #endif // UI_AURA_MUS_TEXT_INPUT_CLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « ui/aura/mus/surface_id_handler.h ('k') | ui/aura/mus/text_input_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698