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

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

Issue 1414483010: Dart: Use a RawReceivePort to receive events for Mojo handles. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « mojo/dart/test/validation_test.dart ('k') | mojo/public/dart/mojo/lib/src/application_connection.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/dart/mojo/lib/src/application.dart
diff --git a/mojo/public/dart/mojo/lib/src/application.dart b/mojo/public/dart/mojo/lib/src/application.dart
index 7d6cfbb9b53a4f804f7bde0d372edf213d7fa4b2..01380a7bb5d2d79193ff663d5eedc9e427fe0996 100644
--- a/mojo/public/dart/mojo/lib/src/application.dart
+++ b/mojo/public/dart/mojo/lib/src/application.dart
@@ -13,13 +13,13 @@ class _ApplicationImpl implements application_mojom.Application {
Application application, core.MojoMessagePipeEndpoint endpoint) {
_application = application;
_stub = new application_mojom.ApplicationStub.fromEndpoint(endpoint, this);
- _stub.onError = close;
+ _stub.onError = ((_) => close());
}
_ApplicationImpl.fromHandle(Application application, core.MojoHandle handle) {
_application = application;
_stub = new application_mojom.ApplicationStub.fromHandle(handle, this);
- _stub.onError = close;
+ _stub.onError = ((_) => close());
}
set onError(core.ErrorHandler f) {
@@ -101,9 +101,9 @@ abstract class Application implements bindings.ServiceConnector {
close();
}
- void _errorHandler() {
+ void _errorHandler(Object e) {
close().then((_) {
- if (onError != null) onError();
+ if (onError != null) onError(e);
});
}
« no previous file with comments | « mojo/dart/test/validation_test.dart ('k') | mojo/public/dart/mojo/lib/src/application_connection.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698