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

Side by Side Diff: services/ui/ime/ime_registrar_impl.h

Issue 2945283002: Unify IMEDriver and IMEServer. (Closed)
Patch Set: Addressed feedback. Created 3 years, 6 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 | « services/ui/ime/ime_driver_bridge.cc ('k') | services/ui/ime/ime_registrar_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 SERVICES_UI_IME_IME_REGISTRAR_IMPL_H_ 5 #ifndef SERVICES_UI_IME_IME_REGISTRAR_IMPL_H_
6 #define SERVICES_UI_IME_IME_REGISTRAR_IMPL_H_ 6 #define SERVICES_UI_IME_IME_REGISTRAR_IMPL_H_
7 7
8 #include "mojo/public/cpp/bindings/binding_set.h" 8 #include "mojo/public/cpp/bindings/binding_set.h"
9 #include "services/ui/ime/ime_server_impl.h" 9 #include "services/ui/ime/ime_driver_bridge.h"
10 #include "services/ui/public/interfaces/ime/ime.mojom.h" 10 #include "services/ui/public/interfaces/ime/ime.mojom.h"
11 11
12 namespace ui { 12 namespace ui {
13 13
14 class IMERegistrarImpl : public mojom::IMERegistrar { 14 class IMERegistrarImpl : public mojom::IMERegistrar {
15 public: 15 public:
16 explicit IMERegistrarImpl(IMEServerImpl* ime_server); 16 explicit IMERegistrarImpl(IMEDriverBridge* ime_driver_bridge);
17 ~IMERegistrarImpl() override; 17 ~IMERegistrarImpl() override;
18 18
19 void AddBinding(mojom::IMERegistrarRequest request); 19 void AddBinding(mojom::IMERegistrarRequest request);
20 20
21 private: 21 private:
22 // mojom::IMERegistrar: 22 // mojom::IMERegistrar:
23 void RegisterDriver(mojom::IMEDriverPtr driver) override; 23 void RegisterDriver(mojom::IMEDriverPtr driver) override;
24 24
25 mojo::BindingSet<mojom::IMERegistrar> bindings_; 25 mojo::BindingSet<mojom::IMERegistrar> bindings_;
26 IMEServerImpl* ime_server_; 26 IMEDriverBridge* ime_driver_bridge_;
27 27
28 DISALLOW_COPY_AND_ASSIGN(IMERegistrarImpl); 28 DISALLOW_COPY_AND_ASSIGN(IMERegistrarImpl);
29 }; 29 };
30 30
31 } // namespace ui 31 } // namespace ui
32 32
33 #endif // SERVICES_UI_IME_IME_REGISTRAR_IMPL_H_ 33 #endif // SERVICES_UI_IME_IME_REGISTRAR_IMPL_H_
OLDNEW
« no previous file with comments | « services/ui/ime/ime_driver_bridge.cc ('k') | services/ui/ime/ime_registrar_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698