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

Side by Side Diff: components/arc/ime/arc_ime_bridge_impl.h

Issue 1885683005: Add module suffix in .mojom files for components/arc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase only Created 4 years, 8 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 COMPONENTS_ARC_IME_ARC_IME_BRIDGE_IMPL_H_ 5 #ifndef COMPONENTS_ARC_IME_ARC_IME_BRIDGE_IMPL_H_
6 #define COMPONENTS_ARC_IME_ARC_IME_BRIDGE_IMPL_H_ 6 #define COMPONENTS_ARC_IME_ARC_IME_BRIDGE_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "components/arc/arc_bridge_service.h" 10 #include "components/arc/arc_bridge_service.h"
11 #include "components/arc/common/ime.mojom.h" 11 #include "components/arc/common/ime.mojom.h"
12 #include "components/arc/ime/arc_ime_bridge.h" 12 #include "components/arc/ime/arc_ime_bridge.h"
13 #include "mojo/public/cpp/bindings/binding.h" 13 #include "mojo/public/cpp/bindings/binding.h"
14 #include "ui/base/ime/text_input_type.h" 14 #include "ui/base/ime/text_input_type.h"
15 #include "ui/gfx/geometry/rect.h" 15 #include "ui/gfx/geometry/rect.h"
16 16
17 namespace ui { 17 namespace ui {
18 struct CompositionText; 18 struct CompositionText;
19 } // namespace ui 19 } // namespace ui
20 20
21 namespace arc { 21 namespace arc {
22 22
23 // This class encapsulates the detail of IME related IPC between 23 // This class encapsulates the detail of IME related IPC between
24 // Chromium and the ARC container. 24 // Chromium and the ARC container.
25 class ArcImeBridgeImpl : public ArcImeBridge, 25 class ArcImeBridgeImpl : public ArcImeBridge,
26 public ImeHost, 26 public mojom::ImeHost,
27 public ArcBridgeService::Observer { 27 public ArcBridgeService::Observer {
28 public: 28 public:
29 ArcImeBridgeImpl(Delegate* delegate, ArcBridgeService* bridge_service); 29 ArcImeBridgeImpl(Delegate* delegate, ArcBridgeService* bridge_service);
30 ~ArcImeBridgeImpl() override; 30 ~ArcImeBridgeImpl() override;
31 31
32 // arc::ArcBridgeService::Observer overrides: 32 // arc::ArcBridgeService::Observer overrides:
33 void OnImeInstanceReady() override; 33 void OnImeInstanceReady() override;
34 34
35 // ArcImeHost overrides: 35 // ArcImeHost overrides:
36 void SendSetCompositionText(const ui::CompositionText& composition) override; 36 void SendSetCompositionText(const ui::CompositionText& composition) override;
37 void SendConfirmCompositionText() override; 37 void SendConfirmCompositionText() override;
38 void SendInsertText(const base::string16& text) override; 38 void SendInsertText(const base::string16& text) override;
39 39
40 // arc::ImeHost overrides: 40 // arc::mojom::ImeHost overrides:
41 void OnTextInputTypeChanged(arc::TextInputType type) override; 41 void OnTextInputTypeChanged(arc::mojom::TextInputType type) override;
42 void OnCursorRectChanged(arc::CursorRectPtr rect) override; 42 void OnCursorRectChanged(arc::mojom::CursorRectPtr rect) override;
43 void OnCancelComposition() override; 43 void OnCancelComposition() override;
44 44
45 private: 45 private:
46 mojo::Binding<ImeHost> binding_; 46 mojo::Binding<mojom::ImeHost> binding_;
47 Delegate* const delegate_; 47 Delegate* const delegate_;
48 ArcBridgeService* const bridge_service_; 48 ArcBridgeService* const bridge_service_;
49 49
50 DISALLOW_COPY_AND_ASSIGN(ArcImeBridgeImpl); 50 DISALLOW_COPY_AND_ASSIGN(ArcImeBridgeImpl);
51 }; 51 };
52 52
53 } // namespace arc 53 } // namespace arc
54 54
55 #endif // COMPONENTS_ARC_IME_ARC_IME_BRIDGE_IMPL_H_ 55 #endif // COMPONENTS_ARC_IME_ARC_IME_BRIDGE_IMPL_H_
OLDNEW
« no previous file with comments | « components/arc/crash_collector/arc_crash_collector_bridge.cc ('k') | components/arc/ime/arc_ime_bridge_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698