OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 module mojo; | 5 module mojo; |
6 | 6 |
7 import "mojo/public/interfaces/application/application.mojom"; | 7 import "mojo/public/interfaces/application/application.mojom"; |
8 import "mojo/public/interfaces/application/service_provider.mojom"; | 8 import "mojo/public/interfaces/application/service_provider.mojom"; |
9 | 9 |
10 // The Shell is the finder and launcher of Applications. An Application uses | 10 // The Shell is the finder and launcher of Applications. An Application uses |
11 // it's Shell interface to connect to other Applications. | 11 // it's Shell interface to connect to other Applications. |
12 [Client=Application] | 12 [Client=Application] |
13 interface Shell { | 13 interface Shell { |
14 // Loads url. mojo:{service} will result in the user of the value of the | 14 // Loads |application_url|. mojo:{service} will result in the user of the valu
e of the |
15 // --origin flag to the shell being used. | 15 // --origin flag to the shell being used. |
16 ConnectToApplication(string? application_url, ServiceProvider&? provider); | 16 // |services| can be used to look up services provided by the application at |
application_url|. |
| 17 // |exposed_services| can be used to expose services to the application at |ap
plication_url|. |
| 18 ConnectToApplication(string application_url, |
| 19 ServiceProvider&? services, |
| 20 ServiceProvider? exposed_services); |
17 }; | 21 }; |
OLD | NEW |