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

Unified Diff: mojo/dart/packages/mojo/lib/mojo/service_provider.mojom.dart

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Merge with master 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/mojo/service_provider.mojom.dart
diff --git a/mojo/dart/packages/mojo/lib/mojo/service_provider.mojom.dart b/mojo/dart/packages/mojo/lib/mojo/service_provider.mojom.dart
index c39eba11d9c5257feb7cb95768647c625a2da1ca..ca13c162cbac1fe202b981f2b53f31bae768a27f 100644
--- a/mojo/dart/packages/mojo/lib/mojo/service_provider.mojom.dart
+++ b/mojo/dart/packages/mojo/lib/mojo/service_provider.mojom.dart
@@ -8,6 +8,8 @@ import 'dart:async';
import 'package:mojo/bindings.dart' as bindings;
import 'package:mojo/core.dart' as core;
+import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types;
+import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as service_describer;
@@ -84,8 +86,21 @@ class _ServiceProviderConnectToServiceParams extends bindings.Struct {
}
}
+
+
+
const int _ServiceProvider_connectToServiceName = 0;
+
+
+class _ServiceProviderServiceDescription implements service_describer.ServiceDescription {
+ dynamic getTopLevelInterface([Function responseFactory]) => null;
+
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
+
+ dynamic getAllTypeDefinitions([Function responseFactory]) => null;
+}
+
abstract class ServiceProvider {
static const String serviceName = null;
void connectToService(String interfaceName, core.MojoMessagePipeEndpoint pipe);
@@ -107,6 +122,9 @@ class _ServiceProviderProxyImpl extends bindings.Proxy {
return new _ServiceProviderProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _ServiceProviderServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
default:
@@ -251,6 +269,10 @@ class ServiceProviderStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _ServiceProviderServiceDescription();
}
+
« no previous file with comments | « mojo/dart/packages/mojo/lib/mojo/network_error.mojom.dart ('k') | mojo/dart/packages/mojo/lib/mojo/shell.mojom.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698