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 "mojo/public/c/system/main.h" | 5 #include "services/shell/public/c/main.h" |
6 #include "services/shell/public/cpp/connector.h" | 6 #include "services/shell/public/cpp/connector.h" |
7 #include "services/shell/public/cpp/service.h" | 7 #include "services/shell/public/cpp/service.h" |
8 #include "services/shell/public/cpp/service_runner.h" | 8 #include "services/shell/public/cpp/service_runner.h" |
9 #include "services/ui/test_ime/test_ime_driver.h" | 9 #include "services/ui/test_ime/test_ime_driver.h" |
10 | 10 |
11 namespace ui { | 11 namespace ui { |
12 namespace test { | 12 namespace test { |
13 | 13 |
14 class TestIME : public shell::Service, | 14 class TestIME : public shell::Service, |
15 public shell::InterfaceFactory<mojom::IMEDriver> { | 15 public shell::InterfaceFactory<mojom::IMEDriver> { |
(...skipping 16 matching lines...) Expand all Loading... |
32 } | 32 } |
33 | 33 |
34 std::unique_ptr<TestIMEDriver> ime_driver_; | 34 std::unique_ptr<TestIMEDriver> ime_driver_; |
35 | 35 |
36 DISALLOW_COPY_AND_ASSIGN(TestIME); | 36 DISALLOW_COPY_AND_ASSIGN(TestIME); |
37 }; | 37 }; |
38 | 38 |
39 } // namespace test | 39 } // namespace test |
40 } // namespace ui | 40 } // namespace ui |
41 | 41 |
42 MojoResult MojoMain(MojoHandle shell_handle) { | 42 MojoResult ServiceMain(MojoHandle service_request_handle) { |
43 shell::ServiceRunner runner(new ui::test::TestIME); | 43 shell::ServiceRunner runner(new ui::test::TestIME); |
44 return runner.Run(shell_handle); | 44 return runner.Run(service_request_handle); |
45 } | 45 } |
OLD | NEW |