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

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

Issue 851173002: Dart: Encode/Decode handle and interface types. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fix Interface encode parameters Created 5 years, 11 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/interface.dart
diff --git a/mojo/public/dart/src/interface.dart b/mojo/public/dart/src/interface.dart
index eab591ee8e3cc1770c8efd164d08deb439ddbddc..0e73214505018c03387ec75de810063470aff139 100644
--- a/mojo/public/dart/src/interface.dart
+++ b/mojo/public/dart/src/interface.dart
@@ -10,7 +10,9 @@ abstract class Interface extends core.MojoEventStreamListener {
Interface(core.MojoMessagePipeEndpoint endpoint) : super(endpoint);
- Interface.fromHandle(int handle) : super.fromHandle(handle);
+ Interface.fromHandle(core.MojoHandle handle) : super.fromHandle(handle);
+
+ Interface.unbound() : super.unbound();
Future<Message> handleMessage(ServiceMessage message);
@@ -91,7 +93,7 @@ abstract class Interface extends core.MojoEventStreamListener {
serviceMessage.buffer.lengthInBytes,
serviceMessage.handles);
if (!endpoint.status.isOk) {
- throw "message pipe write failed";
+ throw "message pipe write failed: ${endpoint.status}";
}
}
« no previous file with comments | « mojo/public/dart/src/event_stream.dart ('k') | mojo/public/tools/bindings/generators/dart_templates/interface_definition.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698