| OLD | NEW |
| 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_server_impl.h" |
| 10 #include "services/ui/public/interfaces/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(IMEServerImpl* ime_server); |
| 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 IMEServerImpl* ime_server_; |
| 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_ |
| OLD | NEW |