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

Unified Diff: mojo/public/dart/src/stub.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/stub.dart
diff --git a/mojo/public/dart/src/stub.dart b/mojo/public/dart/src/stub.dart
index 1ce098239cec317e1093c564d98eb7a319e1f890..e9824580ebe85facab676a1116ccc8fd9cff3eed 100644
--- a/mojo/public/dart/src/stub.dart
+++ b/mojo/public/dart/src/stub.dart
@@ -8,9 +8,13 @@ abstract class Stub extends core.MojoEventStreamListener {
int _outstandingResponseFutures = 0;
bool _isClosing = false;
- Stub(core.MojoMessagePipeEndpoint endpoint) : super(endpoint);
+ Stub.fromEndpoint(core.MojoMessagePipeEndpoint endpoint,
+ {bool doListen: true, Function onClosed}) :
+ super.fromEndpoint(endpoint, doListen: doListen, onClosed: onClosed);
- Stub.fromHandle(core.MojoHandle handle) : super.fromHandle(handle);
+ Stub.fromHandle(core.MojoHandle handle,
+ {bool doListen: true, Function onClosed}) :
+ super.fromHandle(handle, doListen: doListen, onClosed: onClosed);
Stub.unbound() : super.unbound();

Powered by Google App Engine
This is Rietveld 408576698