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

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

Issue 2611773002: Removes code using mus client lib (Closed)
Patch Set: dont run on linux Created 3 years, 11 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
« no previous file with comments | « ui/views/mus/test_utils.h ('k') | ui/views/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
(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/ime.mojom.h"
10 #include "ui/base/ime/composition_text.h"
11
12 namespace ui {
13 class TextInputClient;
14 }
15
16 namespace views {
17
18 // TextInputClientImpl receieves updates from IME drivers over Mojo IPC, and
19 // notifies the underlying ui::TextInputClient accordingly.
20 class TextInputClientImpl : public ui::mojom::TextInputClient {
21 public:
22 explicit TextInputClientImpl(ui::TextInputClient* text_input_client);
23 ~TextInputClientImpl() override;
24
25 ui::mojom::TextInputClientPtr CreateInterfacePtrAndBind();
26
27 private:
28 // ui::mojom::TextInputClient:
29 void SetCompositionText(const ui::CompositionText& composition) override;
30 void ConfirmCompositionText() override;
31 void ClearCompositionText() override;
32 void InsertText(const std::string& text) override;
33 void InsertChar(std::unique_ptr<ui::Event> event) override;
34
35 ui::TextInputClient* text_input_client_;
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_
OLDNEW
« no previous file with comments | « ui/views/mus/test_utils.h ('k') | ui/views/mus/text_input_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698