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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/macros.h" | 6 #include "base/macros.h" |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "mojo/public/c/system/main.h" | 9 #include "mojo/public/c/system/main.h" |
10 #include "mojo/public/cpp/bindings/binding_set.h" | 10 #include "mojo/public/cpp/bindings/binding_set.h" |
11 #include "mojo/shell/public/cpp/application_runner.h" | 11 #include "services/shell/public/cpp/application_runner.h" |
12 #include "mojo/shell/public/cpp/connector.h" | 12 #include "services/shell/public/cpp/connector.h" |
13 #include "mojo/shell/public/cpp/interface_factory.h" | 13 #include "services/shell/public/cpp/interface_factory.h" |
14 #include "mojo/shell/public/cpp/shell_client.h" | 14 #include "services/shell/public/cpp/shell_client.h" |
15 #include "mojo/shell/public/interfaces/connector.mojom.h" | 15 #include "services/shell/public/interfaces/connector.mojom.h" |
16 #include "mojo/shell/tests/connect/connect_test.mojom.h" | 16 #include "services/shell/tests/connect/connect_test.mojom.h" |
17 | 17 |
18 namespace mojo { | 18 namespace mojo { |
19 namespace shell { | 19 namespace shell { |
20 | 20 |
21 using GetTitleCallback = test::mojom::ConnectTestService::GetTitleCallback; | 21 using GetTitleCallback = test::mojom::ConnectTestService::GetTitleCallback; |
22 | 22 |
23 class ConnectTestClassApp | 23 class ConnectTestClassApp |
24 : public ShellClient, | 24 : public ShellClient, |
25 public InterfaceFactory<test::mojom::ConnectTestService>, | 25 public InterfaceFactory<test::mojom::ConnectTestService>, |
26 public InterfaceFactory<test::mojom::ClassInterface>, | 26 public InterfaceFactory<test::mojom::ClassInterface>, |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 92 |
93 } // namespace shell | 93 } // namespace shell |
94 } // namespace mojo | 94 } // namespace mojo |
95 | 95 |
96 | 96 |
97 MojoResult MojoMain(MojoHandle shell_handle) { | 97 MojoResult MojoMain(MojoHandle shell_handle) { |
98 MojoResult rv = mojo::ApplicationRunner( | 98 MojoResult rv = mojo::ApplicationRunner( |
99 new mojo::shell::ConnectTestClassApp).Run(shell_handle); | 99 new mojo::shell::ConnectTestClassApp).Run(shell_handle); |
100 return rv; | 100 return rv; |
101 } | 101 } |
OLD | NEW |