| Index: mojo/dart/packages/mojo_services/lib/icu_data/icu_data.mojom.dart
|
| diff --git a/mojo/dart/packages/mojo_services/lib/icu_data/icu_data.mojom.dart b/mojo/dart/packages/mojo_services/lib/icu_data/icu_data.mojom.dart
|
| index d74f533193b27f310cb29fac15f38ab01e72fa98..08754956f329f75e6d476df5e3b605dbb08c112a 100644
|
| --- a/mojo/dart/packages/mojo_services/lib/icu_data/icu_data.mojom.dart
|
| +++ b/mojo/dart/packages/mojo_services/lib/icu_data/icu_data.mojom.dart
|
| @@ -5,9 +5,12 @@
|
| library icu_data_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,6 +79,18 @@ class _IcuDataMapParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _icu_data_ICUData_Map_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = '_IcuDataMapParams'
|
| + ..fullIdentifier = 'icu_data._IcuDataMapParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Sha1hash')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| + ];
|
| +}
|
|
|
|
|
| class IcuDataMapResponseParams extends bindings.Struct {
|
| @@ -142,9 +157,50 @@ class IcuDataMapResponseParams extends bindings.Struct {
|
| 'Object containing handles cannot be encoded to JSON.');
|
| }
|
| }
|
| +mojom_types.MojomStruct _icu_data_ICUData_Map_ResponseParams__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'IcuDataMapResponseParams'
|
| + ..fullIdentifier = 'icu_data.IcuDataMapResponseParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'IcuData')
|
| + ..type = (new mojom_types.Type()
|
| +..handleType = (new mojom_types.HandleType()
|
| +..kind = mojom_types.HandleTypeKind.sharedBuffer
|
| +..nullable = true)),
|
| + ];
|
| +}
|
| +
|
|
|
| const int _IcuData_mapName = 0;
|
|
|
| +mojom_types.MojomInterface _icu_data_ICUData__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'IcuData'
|
| + ..fullIdentifier = 'icu_data.IcuData')
|
| + ..interfaceName = 'IcuData'
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +_IcuData_mapName: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Map')
|
| + ..ordinal = _IcuData_mapName
|
| + ..responseParams = _icu_data_ICUData_Map_ResponseParams__()..parameters = _icu_data_ICUData_Map_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _IcuDataServiceDescription implements service_describer.ServiceDescription {
|
| +dynamic getTopLevelInterface([Function responseFactory = null]) {
|
| + return _icu_data_ICUData__();
|
| + }
|
| + dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions()[typeKey];
|
| + }
|
| + dynamic getAllTypeDefinitions([Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions();
|
| + }
|
| +}
|
| +
|
| abstract class IcuData {
|
| static const String serviceName = "icu_data::ICUData";
|
| dynamic map(String sha1hash,[Function responseFactory = null]);
|
| @@ -166,6 +222,9 @@ class _IcuDataProxyImpl extends bindings.Proxy {
|
| return new _IcuDataProxyImpl.fromEndpoint(endpoint);
|
| }
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _IcuDataServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| case _IcuData_mapName:
|
| @@ -351,6 +410,38 @@ class IcuDataStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _IcuDataServiceDescription();
|
| +}
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +Map<String, mojom_types.UserDefinedType> _initDescriptions() {
|
| + var map = new HashMap<String, mojom_types.UserDefinedType>();
|
| +map["_icu_data_ICUData_Map_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _icu_data_ICUData_Map_Params__();
|
| +map["_icu_data_ICUData_Map_ResponseParams__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _icu_data_ICUData_Map_ResponseParams__();
|
| +map["_icu_data_ICUData__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..interfaceType = _icu_data_ICUData__();
|
| +
|
| + return map;
|
| }
|
|
|
| +var _MojomDesc;
|
| +Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
|
| + if (_MojomDesc == null) {
|
| + _MojomDesc = _initDescriptions();
|
| + }
|
| + return _MojomDesc;
|
| +}
|
|
|
|
|