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

Unified Diff: mojo/dart/packages/mojo/lib/src/proxy.dart

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Move and Standardize Mojom Type Functions Created 4 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/dart/packages/mojo/lib/src/proxy.dart
diff --git a/mojo/dart/packages/mojo/lib/src/proxy.dart b/mojo/dart/packages/mojo/lib/src/proxy.dart
index 2484ed4c15d756c82d0714423f8b0cb4a1e599e5..60e2396e727e973275f639d5976d671b81d8ac24 100644
--- a/mojo/dart/packages/mojo/lib/src/proxy.dart
+++ b/mojo/dart/packages/mojo/lib/src/proxy.dart
@@ -35,6 +35,13 @@ abstract class Proxy extends core.MojoEventHandler {
/// call to [queryVersion] or [requireVersion] is made.
int get version => _version;
+ /// Returns a service description, which exposes the mojom type information
+ /// of the service being proxied. This type information can be forwarded to
+ /// other Mojo applications and can be used to implement a generic client.
+ /// Note: In some implementations, the ServiceDescription returned will not
+ /// provide type information. Methods called may return null or an error.
zra 2016/01/27 18:15:12 It's unclear if you mean the `description` getter
alexfandrianto 2016/01/28 03:45:12 Done.
+ service_describer.ServiceDescription get description => null;
+
void handleRead() {
var result = endpoint.queryAndRead();
if ((result.data == null) || (result.dataLength == 0)) {

Powered by Google App Engine
This is Rietveld 408576698