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

Unified Diff: sky/framework/embedder.dart

Issue 959993002: Dart: Removes name conflicts from generated bindings. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Removes unused constructors Created 5 years, 10 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: sky/framework/embedder.dart
diff --git a/sky/framework/embedder.dart b/sky/framework/embedder.dart
index dd1eaf0aa86b4ebbadd525168bf8249e31c4a998..484e340855e747e2752ce9d54c89c0778963eddd 100644
--- a/sky/framework/embedder.dart
+++ b/sky/framework/embedder.dart
@@ -36,16 +36,16 @@ class _EmbedderImpl {
ApplicationConnection connectToApplication(String url) {
var proxy = new ServiceProviderProxy.unbound();
var stub = new ServiceProviderStub.unbound();
- shell.connectToApplication(url, proxy, stub);
+ shell.ptr.connectToApplication(url, proxy, stub);
return new ApplicationConnection(stub, proxy);
}
- void connectToService(String url, bindings.Proxy proxy) {
+ void connectToService(String url, bindings.ProxyBase proxy) {
var appSp = new ServiceProviderProxy.unbound();
- shell.connectToApplication(url, appSp, null);
+ shell.ptr.connectToApplication(url, appSp, null);
var pipe = new core.MojoMessagePipe();
- proxy.bind(pipe.endpoints[0]);
- appSp.connectToService(proxy.name, pipe.endpoints[1]);
+ proxy.impl.bind(pipe.endpoints[0]);
+ appSp.ptr.connectToService(proxy.name, pipe.endpoints[1]);
appSp.close();
}
}

Powered by Google App Engine
This is Rietveld 408576698