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

Unified Diff: mojo/dart/packages/mojo/lib/src/application.dart

Issue 1998433002: Dart: Adds Interface and InterfaceRequest interfaces. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Merge Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: mojo/dart/packages/mojo/lib/src/application.dart
diff --git a/mojo/dart/packages/mojo/lib/src/application.dart b/mojo/dart/packages/mojo/lib/src/application.dart
index 4cc7d87ec76c4cb58caa8c64112c0d3db867b36e..6072ddaa089e904bb9f7ac70675c7ce009ec27bf 100644
--- a/mojo/dart/packages/mojo/lib/src/application.dart
+++ b/mojo/dart/packages/mojo/lib/src/application.dart
@@ -6,7 +6,7 @@ part of application;
class _ApplicationImpl implements application_mojom.Application {
application_mojom.ApplicationStub _stub;
- shell_mojom.ShellProxy shell;
+ shell_mojom.ShellInterface shell;
Application _application;
_ApplicationImpl(
@@ -34,16 +34,19 @@ class _ApplicationImpl implements application_mojom.Application {
_stub.ctrl.onError = f;
}
- void initialize(
- bindings.Proxy shellProxy, List<String> args, String url) {
+ void initialize(shell_mojom.ShellInterface shellInterface,
+ List<String> args,
+ String url) {
assert(shell == null);
- shell = shellProxy;
+ shell = shellInterface;
_application.initialize(args, url);
}
@override
- void acceptConnection(String requestorUrl, ServiceProviderStub services,
- bindings.Proxy exposedServices, String resolvedUrl) =>
+ void acceptConnection(String requestorUrl,
+ ServiceProviderInterfaceRequest services,
+ ServiceProviderInterface exposedServices,
+ String resolvedUrl) =>
_application._acceptConnection(
requestorUrl, services, exposedServices, resolvedUrl);
@@ -103,9 +106,9 @@ abstract class Application implements bindings.ServiceConnector {
return connection;
}
- void connectToService(String url, bindings.Proxy proxy,
+ void connectToService(String url, bindings.MojoInterface iface,
[String serviceName]) {
- connectToApplication(url).requestService(proxy, serviceName);
+ connectToApplication(url).requestService(iface, serviceName);
}
void requestQuit() {}
« no previous file with comments | « mojo/dart/packages/mojo/lib/mojo/shell.mojom.dart ('k') | mojo/dart/packages/mojo/lib/src/application_connection.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698