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 #include "services/ui/ime/test_ime_driver/test_ime_application.h" | 5 #include "services/ui/ime/test_ime_driver/test_ime_application.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "mojo/public/cpp/bindings/strong_binding.h" | 8 #include "mojo/public/cpp/bindings/strong_binding.h" |
9 #include "services/service_manager/public/cpp/connector.h" | 9 #include "services/service_manager/public/cpp/connector.h" |
10 #include "services/service_manager/public/cpp/service_context.h" | 10 #include "services/service_manager/public/cpp/service_context.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 mojom::IMEDriverPtr ime_driver_ptr; | 23 mojom::IMEDriverPtr ime_driver_ptr; |
24 mojo::MakeStrongBinding(base::MakeUnique<TestIMEDriver>(), | 24 mojo::MakeStrongBinding(base::MakeUnique<TestIMEDriver>(), |
25 MakeRequest(&ime_driver_ptr)); | 25 MakeRequest(&ime_driver_ptr)); |
26 | 26 |
27 ui::mojom::IMERegistrarPtr ime_registrar; | 27 ui::mojom::IMERegistrarPtr ime_registrar; |
28 context()->connector()->BindInterface(ui::mojom::kServiceName, | 28 context()->connector()->BindInterface(ui::mojom::kServiceName, |
29 &ime_registrar); | 29 &ime_registrar); |
30 ime_registrar->RegisterDriver(std::move(ime_driver_ptr)); | 30 ime_registrar->RegisterDriver(std::move(ime_driver_ptr)); |
31 } | 31 } |
32 | 32 |
33 bool TestIMEApplication::OnConnect( | |
34 const service_manager::ServiceInfo& remote_info, | |
35 service_manager::InterfaceRegistry* registry) { | |
36 return true; | |
37 } | |
38 | |
39 } // namespace test | 33 } // namespace test |
40 } // namespace ui | 34 } // namespace ui |
OLD | NEW |