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

Side by Side Diff: services/ui/ime/test_ime_driver/test_ime_application.cc

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 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 #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 "mojo/public/cpp/bindings/strong_binding.h" 7 #include "mojo/public/cpp/bindings/strong_binding.h"
8 #include "services/service_manager/public/cpp/connector.h" 8 #include "services/service_manager/public/cpp/connector.h"
9 #include "services/ui/ime/test_ime_driver/test_ime_driver.h" 9 #include "services/ui/ime/test_ime_driver/test_ime_driver.h"
10 #include "services/ui/public/interfaces/ime.mojom.h" 10 #include "services/ui/public/interfaces/ime.mojom.h"
11 11
12 namespace ui { 12 namespace ui {
13 namespace test { 13 namespace test {
14 14
15 TestIMEApplication::TestIMEApplication() {} 15 TestIMEApplication::TestIMEApplication() {}
16 16
17 TestIMEApplication::~TestIMEApplication() {} 17 TestIMEApplication::~TestIMEApplication() {}
18 18
19 bool TestIMEApplication::OnConnect(const shell::Identity& remote_identity, 19 bool TestIMEApplication::OnConnect(
20 shell::InterfaceRegistry* registry) { 20 const service_manager::Identity& remote_identity,
21 service_manager::InterfaceRegistry* registry) {
21 return true; 22 return true;
22 } 23 }
23 24
24 void TestIMEApplication::OnStart(const shell::Identity& identity) { 25 void TestIMEApplication::OnStart(const service_manager::Identity& identity) {
25 mojom::IMEDriverPtr ime_driver_ptr; 26 mojom::IMEDriverPtr ime_driver_ptr;
26 mojo::MakeStrongBinding(base::MakeUnique<TestIMEDriver>(), 27 mojo::MakeStrongBinding(base::MakeUnique<TestIMEDriver>(),
27 GetProxy(&ime_driver_ptr)); 28 GetProxy(&ime_driver_ptr));
28 29
29 ui::mojom::IMERegistrarPtr ime_registrar; 30 ui::mojom::IMERegistrarPtr ime_registrar;
30 connector()->ConnectToInterface("service:ui", &ime_registrar); 31 connector()->ConnectToInterface("service:ui", &ime_registrar);
31 ime_registrar->RegisterDriver(std::move(ime_driver_ptr)); 32 ime_registrar->RegisterDriver(std::move(ime_driver_ptr));
32 } 33 }
33 34
34 } // namespace test 35 } // namespace test
35 } // namespace ui 36 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ime/test_ime_driver/test_ime_application.h ('k') | services/ui/input_devices/input_device_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698