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

Unified Diff: mojo/public/dart/src/proxy.dart

Issue 968243003: Dart: Adds optional named arguments for creating bindings. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Binding -> Stub, delegate -> impl 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: mojo/public/dart/src/proxy.dart
diff --git a/mojo/public/dart/src/proxy.dart b/mojo/public/dart/src/proxy.dart
index f7c770f661eec75e183809e3249d5f7e2b0614f2..c275b3c1067a92432dd6c8bf452ad807690a932f 100644
--- a/mojo/public/dart/src/proxy.dart
+++ b/mojo/public/dart/src/proxy.dart
@@ -8,13 +8,15 @@ abstract class Proxy extends core.MojoEventStreamListener {
Map<int, Completer> _completerMap;
int _nextId = 0;
- Proxy(core.MojoMessagePipeEndpoint endpoint) :
+ Proxy.fromEndpoint(core.MojoMessagePipeEndpoint endpoint,
+ {bool doListen: true, Function onClosed}) :
_completerMap = {},
- super(endpoint);
+ super.fromEndpoint(endpoint, doListen: doListen, onClosed: onClosed);
- Proxy.fromHandle(core.MojoHandle handle) :
+ Proxy.fromHandle(core.MojoHandle handle,
+ {bool doListen: true, Function onClosed}) :
_completerMap = {},
- super.fromHandle(handle);
+ super.fromHandle(handle, doListen: doListen, onClosed: onClosed);
Proxy.unbound() :
_completerMap = {},

Powered by Google App Engine
This is Rietveld 408576698