| Index: mojo/dart/packages/_mojo_for_test_only/lib/sample/sample_service.mojom.dart
|
| diff --git a/mojo/dart/packages/_mojo_for_test_only/lib/sample/sample_service.mojom.dart b/mojo/dart/packages/_mojo_for_test_only/lib/sample/sample_service.mojom.dart
|
| index fd57999548869a3bd14aebddad26bfd578c90057..83cb5df66f78530ef4fd3168ebb95d9d7e435090 100644
|
| --- a/mojo/dart/packages/_mojo_for_test_only/lib/sample/sample_service.mojom.dart
|
| +++ b/mojo/dart/packages/_mojo_for_test_only/lib/sample/sample_service.mojom.dart
|
| @@ -5,15 +5,17 @@
|
| library sample_service_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;
|
| import 'package:_mojo_for_test_only/imported/sample_import.mojom.dart' as sample_import_mojom;
|
| import 'package:_mojo_for_test_only/imported/sample_import2.mojom.dart' as sample_import2_mojom;
|
| const int kTwelve = 12;
|
|
|
|
|
| -
|
| class BarType extends bindings.MojoEnum {
|
| static const BarType vertical = const BarType._(1);
|
| static const BarType horizontal = const BarType._(2);
|
| @@ -72,12 +74,34 @@ class BarType extends bindings.MojoEnum {
|
| return 'BarType.both';
|
| case invalid:
|
| return 'BarType.invalid';
|
| + default:
|
| + return null;
|
| }
|
| }
|
|
|
| int toJson() => mojoEnumValue;
|
| }
|
|
|
| +mojom_types.MojomEnum _sample_service_Type__() {
|
| + return new mojom_types.MojomEnum()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'BarType'
|
| + ..fullIdentifier = 'sample.BarType')
|
| + ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Vertical')
|
| + ..enumTypeKey = '_sample_service_Type__'
|
| + ..intValue = 1,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Horizontal')
|
| + ..enumTypeKey = '_sample_service_Type__'
|
| + ..intValue = 2,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Both')
|
| + ..enumTypeKey = '_sample_service_Type__'
|
| + ..intValue = 3,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Invalid')
|
| + ..enumTypeKey = '_sample_service_Type__'
|
| + ..intValue = 4,];
|
| +}
|
| +
|
| class Bar extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -174,6 +198,34 @@ class Bar extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _sample_service_Bar__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'Bar'
|
| + ..fullIdentifier = 'sample.Bar')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Alpha')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Beta')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Gamma')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Type')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_sample_service_Type__'
|
| + ..typeKey = '_sample_service_Type__'
|
| + )),
|
| + ];
|
| +}
|
|
|
|
|
| class Foo extends bindings.Struct {
|
| @@ -441,6 +493,120 @@ class Foo extends bindings.Struct {
|
| 'Object containing handles cannot be encoded to JSON.');
|
| }
|
| }
|
| +mojom_types.MojomStruct _sample_service_Foo__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'Foo'
|
| + ..fullIdentifier = 'sample.Foo')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Name')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'X')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Y')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'B')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'C')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Bar')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| + ..nullable = true
|
| +
|
| +
|
| + ..identifier = '_sample_service_Bar__'
|
| + ..typeKey = '_sample_service_Bar__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'ExtraBars')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..nullable = true
|
| +
|
| + ..elementType = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_sample_service_Bar__'
|
| + ..typeKey = '_sample_service_Bar__'
|
| + )))),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Data')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..nullable = true
|
| +
|
| + ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8))),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Source')
|
| + ..type = (new mojom_types.Type()
|
| +..handleType = (new mojom_types.HandleType()
|
| +..kind = mojom_types.HandleTypeKind.messagePipe
|
| +..nullable = true)),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'InputStreams')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..nullable = true
|
| +
|
| + ..elementType = (new mojom_types.Type()
|
| +..handleType = (new mojom_types.HandleType()
|
| +..kind = mojom_types.HandleTypeKind.dataPipeConsumer
|
| +..nullable = false)))),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'OutputStreams')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..nullable = true
|
| +
|
| + ..elementType = (new mojom_types.Type()
|
| +..handleType = (new mojom_types.HandleType()
|
| +..kind = mojom_types.HandleTypeKind.dataPipeProducer
|
| +..nullable = false)))),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'ArrayOfArrayOfBools')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..nullable = true
|
| +
|
| + ..elementType = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool))))),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'MultiArrayOfStrings')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..nullable = true
|
| +
|
| + ..elementType = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..elementType = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..elementType = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)))))))),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'ArrayOfBools')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..nullable = true
|
| +
|
| + ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool))),
|
| + ];
|
| +}
|
|
|
|
|
| class DefaultsTest extends bindings.Struct {
|
| @@ -793,6 +959,158 @@ class DefaultsTest extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _sample_service_DefaultsTest__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'DefaultsTest'
|
| + ..fullIdentifier = 'sample.DefaultsTest')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A0')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int8),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A1')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A2')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int16),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A3')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint16),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A4')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A5')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A6')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int64),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A7')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint64),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A8')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A9')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A10')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A11')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A12')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A13')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.float),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A14')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.double),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A15')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.double),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A16')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.double),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A17')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.double),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A18')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8))),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A19')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A20')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_sample_service_Type__'
|
| + ..typeKey = '_sample_service_Type__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A21')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_sample_import_Point__'
|
| + ..typeKey = '_sample_import_Point__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A22')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_sample_import2_Thing__'
|
| + ..typeKey = '_sample_import2_Thing__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A23')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint64),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A24')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int64),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A25')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int64),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A26')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.double),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A27')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.double),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A28')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.double),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A29')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.float),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A30')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.float),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'A31')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.float),
|
| + ];
|
| +}
|
|
|
|
|
| class StructWithHoleV1 extends bindings.Struct {
|
| @@ -869,6 +1187,21 @@ class StructWithHoleV1 extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _sample_service_StructWithHoleV1__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'StructWithHoleV1'
|
| + ..fullIdentifier = 'sample.StructWithHoleV1')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'V1')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'V2')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int64),
|
| + ];
|
| +}
|
|
|
|
|
| class StructWithHoleV2 extends bindings.Struct {
|
| @@ -954,6 +1287,25 @@ class StructWithHoleV2 extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _sample_service_StructWithHoleV2__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'StructWithHoleV2'
|
| + ..fullIdentifier = 'sample.StructWithHoleV2')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'V1')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'V2')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int64),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'V3')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
|
| + ];
|
| +}
|
|
|
|
|
| class NonNullableMapStruct extends bindings.Struct {
|
| @@ -1075,6 +1427,21 @@ class NonNullableMapStruct extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _sample_service_NonNullableMapStruct__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'NonNullableMapStruct'
|
| + ..fullIdentifier = 'sample.NonNullableMapStruct')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'MapField')
|
| + ..type = (new mojom_types.Type()..mapType = (new mojom_types.MapType()
|
| + ..keyType = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false))
|
| + ..valueType = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)))),
|
| + ];
|
| +}
|
|
|
|
|
| class _ServiceFrobinateParams extends bindings.Struct {
|
| @@ -1162,6 +1529,44 @@ class _ServiceFrobinateParams extends bindings.Struct {
|
| 'Object containing handles cannot be encoded to JSON.');
|
| }
|
| }
|
| +mojom_types.MojomStruct _sample_service_Service_Frobinate_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = '_ServiceFrobinateParams'
|
| + ..fullIdentifier = 'sample._ServiceFrobinateParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Foo')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| + ..nullable = true
|
| +
|
| +
|
| + ..identifier = '_sample_service_Foo__'
|
| + ..typeKey = '_sample_service_Foo__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Baz')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_sample_service_BazOptions__'
|
| + ..typeKey = '_sample_service_BazOptions__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Port')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| + ..nullable = true
|
| +
|
| +
|
| + ..identifier = '_sample_service_Port__'
|
| + ..typeKey = '_sample_service_Port__'
|
| + )),
|
| + ];
|
| +}
|
|
|
|
|
| class ServiceFrobinateResponseParams extends bindings.Struct {
|
| @@ -1229,6 +1634,17 @@ class ServiceFrobinateResponseParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _sample_service_Service_Frobinate_ResponseParams__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'ServiceFrobinateResponseParams'
|
| + ..fullIdentifier = 'sample.ServiceFrobinateResponseParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Result')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
|
| + ];
|
| +}
|
|
|
|
|
| class _ServiceGetPortParams extends bindings.Struct {
|
| @@ -1295,6 +1711,23 @@ class _ServiceGetPortParams extends bindings.Struct {
|
| 'Object containing handles cannot be encoded to JSON.');
|
| }
|
| }
|
| +mojom_types.MojomStruct _sample_service_Service_GetPort_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = '_ServiceGetPortParams'
|
| + ..fullIdentifier = 'sample._ServiceGetPortParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Port')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..isInterfaceRequest = true
|
| + ..identifier = '_sample_service_Port__'
|
| + ..typeKey = '_sample_service_Port__'
|
| + )),
|
| + ];
|
| +}
|
|
|
|
|
| class _PortPostMessageParams extends bindings.Struct {
|
| @@ -1369,11 +1802,32 @@ class _PortPostMessageParams extends bindings.Struct {
|
| 'Object containing handles cannot be encoded to JSON.');
|
| }
|
| }
|
| +mojom_types.MojomStruct _sample_service_Port_PostMessage_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = '_PortPostMessageParams'
|
| + ..fullIdentifier = 'sample._PortPostMessageParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'MessageText')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Port')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_sample_service_Port__'
|
| + ..typeKey = '_sample_service_Port__'
|
| + )),
|
| + ];
|
| +}
|
| +
|
|
|
| const int _Service_frobinateName = 0;
|
| const int _Service_getPortName = 1;
|
| -
|
| -class ServiceBazOptions extends bindings.MojoEnum {
|
| + class ServiceBazOptions extends bindings.MojoEnum {
|
| static const ServiceBazOptions regular = const ServiceBazOptions._(0);
|
| static const ServiceBazOptions extra = const ServiceBazOptions._(1);
|
|
|
| @@ -1417,12 +1871,56 @@ class ServiceBazOptions extends bindings.MojoEnum {
|
| return 'ServiceBazOptions.regular';
|
| case extra:
|
| return 'ServiceBazOptions.extra';
|
| + default:
|
| + return null;
|
| }
|
| }
|
|
|
| int toJson() => mojoEnumValue;
|
| }
|
|
|
| +mojom_types.MojomEnum _sample_service_BazOptions__() {
|
| + return new mojom_types.MojomEnum()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'ServiceBazOptions'
|
| + ..fullIdentifier = 'sample.ServiceBazOptions')
|
| + ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Regular')
|
| + ..enumTypeKey = '_sample_service_BazOptions__'
|
| + ..intValue = 0,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Extra')
|
| + ..enumTypeKey = '_sample_service_BazOptions__'
|
| + ..intValue = 1,];
|
| +}
|
| +
|
| +mojom_types.MojomInterface _sample_service_Service__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'Service'
|
| + ..fullIdentifier = 'sample.Service')
|
| + ..interfaceName = 'Service'
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +_Service_frobinateName: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Frobinate')
|
| + ..ordinal = _Service_frobinateName
|
| + ..responseParams = _sample_service_Service_Frobinate_ResponseParams__()..parameters = _sample_service_Service_Frobinate_Params__(),_Service_getPortName: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'GetPort')
|
| + ..ordinal = _Service_getPortName..parameters = _sample_service_Service_GetPort_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _ServiceServiceDescription implements service_describer.ServiceDescription {
|
| +dynamic getTopLevelInterface([Function responseFactory = null]) {
|
| + return _sample_service_Service__();
|
| + }
|
| + dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions()[typeKey];
|
| + }
|
| + dynamic getAllTypeDefinitions([Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions();
|
| + }
|
| +}
|
| +
|
| abstract class Service {
|
| static const String serviceName = null;
|
| dynamic frobinate(Foo foo,ServiceBazOptions baz,Object port,[Function responseFactory = null]);
|
| @@ -1446,6 +1944,9 @@ class _ServiceProxyImpl extends bindings.Proxy {
|
| return new _ServiceProxyImpl.fromEndpoint(endpoint);
|
| }
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _ServiceServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| case _Service_frobinateName:
|
| @@ -1647,10 +2148,39 @@ class ServiceStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _ServiceServiceDescription();
|
| }
|
|
|
| const int _Port_postMessageName = 0;
|
|
|
| +mojom_types.MojomInterface _sample_service_Port__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'Port'
|
| + ..fullIdentifier = 'sample.Port')
|
| + ..interfaceName = 'Port'
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +_Port_postMessageName: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'PostMessage')
|
| + ..ordinal = _Port_postMessageName..parameters = _sample_service_Port_PostMessage_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _PortServiceDescription implements service_describer.ServiceDescription {
|
| +dynamic getTopLevelInterface([Function responseFactory = null]) {
|
| + return _sample_service_Port__();
|
| + }
|
| + dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions()[typeKey];
|
| + }
|
| + dynamic getAllTypeDefinitions([Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions();
|
| + }
|
| +}
|
| +
|
| abstract class Port {
|
| static const String serviceName = null;
|
| void postMessage(String messageText, Object port);
|
| @@ -1672,6 +2202,9 @@ class _PortProxyImpl extends bindings.Proxy {
|
| return new _PortProxyImpl.fromEndpoint(endpoint);
|
| }
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _PortServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| default:
|
| @@ -1816,6 +2349,77 @@ class PortStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _PortServiceDescription();
|
| +}
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +Map<String, mojom_types.UserDefinedType> _initDescriptions() {
|
| + var map = new HashMap<String, mojom_types.UserDefinedType>();
|
| +map["_sample_service_Bar__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _sample_service_Bar__();
|
| + map["_sample_service_Type__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..enumType = _sample_service_Type__();
|
| +map["_sample_service_Foo__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _sample_service_Foo__();
|
| +map["_sample_service_DefaultsTest__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _sample_service_DefaultsTest__();
|
| +map["_sample_service_StructWithHoleV1__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _sample_service_StructWithHoleV1__();
|
| +map["_sample_service_StructWithHoleV2__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _sample_service_StructWithHoleV2__();
|
| +map["_sample_service_NonNullableMapStruct__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _sample_service_NonNullableMapStruct__();
|
| +map["_sample_service_Service_Frobinate_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _sample_service_Service_Frobinate_Params__();
|
| +map["_sample_service_Service_Frobinate_ResponseParams__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _sample_service_Service_Frobinate_ResponseParams__();
|
| +map["_sample_service_Service_GetPort_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _sample_service_Service_GetPort_Params__();
|
| +map["_sample_service_Port_PostMessage_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _sample_service_Port_PostMessage_Params__();
|
| +map["_sample_service_Service__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..interfaceType = _sample_service_Service__();
|
| + map["_sample_service_BazOptions__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..enumType = _sample_service_BazOptions__();
|
| +map["_sample_service_Port__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..interfaceType = _sample_service_Port__();
|
| +sample_import_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) {
|
| + map[s] = udt;
|
| +});
|
| +sample_import2_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) {
|
| + map[s] = udt;
|
| +});
|
| +
|
| + return map;
|
| }
|
|
|
| +var _MojomDesc;
|
| +Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
|
| + if (_MojomDesc == null) {
|
| + _MojomDesc = _initDescriptions();
|
| + }
|
| + return _MojomDesc;
|
| +}
|
|
|
|
|