Index: mojo/dart/packages/mojo_services/lib/mojo/sharing.mojom.dart |
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/sharing.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/sharing.mojom.dart |
index 3666938e71831150cc540540e5aa93a7416110f6..afc41a6dbad28ce41f930eaa29bad2e000a56bfb 100644 |
--- a/mojo/dart/packages/mojo_services/lib/mojo/sharing.mojom.dart |
+++ b/mojo/dart/packages/mojo_services/lib/mojo/sharing.mojom.dart |
@@ -5,9 +5,12 @@ |
library sharing_mojom; |
import 'dart:async'; |
+import 'dart:collection'; |
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; |
@@ -76,9 +79,47 @@ class _SharingServiceShareTextParams extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _sharing_SharingService_ShareText_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = '_SharingServiceShareTextParams' |
+ ..fullIdentifier = 'mojo._SharingServiceShareTextParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Text') |
+ ..type = (new mojom_types.Type() |
+..stringType = (new mojom_types.StringType()..nullable = false)), |
+ ]; |
+} |
+ |
const int _SharingService_shareTextName = 0; |
+mojom_types.MojomInterface _sharing_SharingService__() { |
+ return new mojom_types.MojomInterface() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'SharingService' |
+ ..fullIdentifier = 'mojo.SharingService') |
+ ..interfaceName = 'SharingService' |
+ ..methods = <int, mojom_types.MojomMethod>{ |
+_SharingService_shareTextName: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ShareText') |
+ ..ordinal = _SharingService_shareTextName..parameters = _sharing_SharingService_ShareText_Params__(), |
+ }; |
+} |
+ |
+class _SharingServiceServiceDescription implements service_describer.ServiceDescription { |
+dynamic getTopLevelInterface([Function responseFactory = null]) { |
+ return _sharing_SharingService__(); |
+ } |
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions()[typeKey]; |
+ } |
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions(); |
+ } |
+} |
+ |
abstract class SharingService { |
static const String serviceName = "mojo::SharingService"; |
void shareText(String text); |
@@ -100,6 +141,9 @@ class _SharingServiceProxyImpl extends bindings.Proxy { |
return new _SharingServiceProxyImpl.fromEndpoint(endpoint); |
} |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _SharingServiceServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
default: |
@@ -243,6 +287,35 @@ class SharingServiceStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _SharingServiceServiceDescription(); |
} |
+ |
+ |
+ |
+ |
+ |
+Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
+ var map = new HashMap<String, mojom_types.UserDefinedType>(); |
+map["_sharing_SharingService_ShareText_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _sharing_SharingService_ShareText_Params__(); |
+map["_sharing_SharingService__"] = |
+ new mojom_types.UserDefinedType() |
+ ..interfaceType = _sharing_SharingService__(); |
+ |
+ return map; |
+} |
+ |
+var _MojomDesc; |
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
+ if (_MojomDesc == null) { |
+ _MojomDesc = _initDescriptions(); |
+ } |
+ return _MojomDesc; |
+} |
+ |