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

Unified Diff: mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/validation_test_interfaces.mojom.dart

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Update to master and regenerate mojoms 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_for_test_only/lib/mojo/test/validation_test_interfaces.mojom.dart
diff --git a/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/validation_test_interfaces.mojom.dart b/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/validation_test_interfaces.mojom.dart
index 5a0b12c8cb22bad207c8138c51be47ecaa399614..12df15911524053b696a53d9875eacc8f2b12c0e 100644
--- a/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/validation_test_interfaces.mojom.dart
+++ b/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/validation_test_interfaces.mojom.dart
@@ -5,10 +5,12 @@
library validation_test_interfaces_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;
class BasicEnum extends bindings.MojoEnum {
static const BasicEnum a = const BasicEnum._(0);
static const BasicEnum b = const BasicEnum._(1);
@@ -74,12 +76,37 @@ class BasicEnum extends bindings.MojoEnum {
return 'BasicEnum.d';
case e:
return 'BasicEnum.e';
+ default:
+ return null;
}
}
int toJson() => mojoEnumValue;
}
+mojom_types.MojomEnum _validation_test_interfaces_BasicEnum__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'BasicEnum'
+ ..fullIdentifier = 'mojo.test.BasicEnum')
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'A')
+ ..enumTypeKey = '_validation_test_interfaces_BasicEnum__'
+ ..intValue = 0,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'B')
+ ..enumTypeKey = '_validation_test_interfaces_BasicEnum__'
+ ..intValue = 1,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'C')
+ ..enumTypeKey = '_validation_test_interfaces_BasicEnum__'
+ ..intValue = 0,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'D')
+ ..enumTypeKey = '_validation_test_interfaces_BasicEnum__'
+ ..intValue = -3,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'E')
+ ..enumTypeKey = '_validation_test_interfaces_BasicEnum__'
+ ..intValue = 10,];
+}
+
class StructA extends bindings.Struct {
@@ -147,6 +174,17 @@ class StructA extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_StructA__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'StructA'
+ ..fullIdentifier = 'mojo.test.StructA')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'I')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint64),
+ ];
+}
class StructB extends bindings.Struct {
@@ -215,6 +253,22 @@ class StructB extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_StructB__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'StructB'
+ ..fullIdentifier = 'mojo.test.StructB')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'StructA')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_StructA__'
+ ..typeKey = '_validation_test_interfaces_StructA__'
+ )),
+ ];
+}
class StructC extends bindings.Struct {
@@ -282,6 +336,18 @@ class StructC extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_StructC__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'StructC'
+ ..fullIdentifier = 'mojo.test.StructC')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Data')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8))),
+ ];
+}
class StructD extends bindings.Struct {
@@ -348,6 +414,21 @@ class StructD extends bindings.Struct {
'Object containing handles cannot be encoded to JSON.');
}
}
+mojom_types.MojomStruct _validation_test_interfaces_StructD__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'StructD'
+ ..fullIdentifier = 'mojo.test.StructD')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MessagePipes')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()
+..handleType = (new mojom_types.HandleType()
+..kind = mojom_types.HandleTypeKind.messagePipe
+..nullable = false)))),
+ ];
+}
class StructE extends bindings.Struct {
@@ -423,6 +504,29 @@ class StructE extends bindings.Struct {
'Object containing handles cannot be encoded to JSON.');
}
}
+mojom_types.MojomStruct _validation_test_interfaces_StructE__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'StructE'
+ ..fullIdentifier = 'mojo.test.StructE')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'StructD')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_StructD__'
+ ..typeKey = '_validation_test_interfaces_StructD__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'DataPipeConsumer')
+ ..type = (new mojom_types.Type()
+..handleType = (new mojom_types.HandleType()
+..kind = mojom_types.HandleTypeKind.dataPipeConsumer
+..nullable = false)),
+ ];
+}
class StructF extends bindings.Struct {
@@ -490,6 +594,18 @@ class StructF extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_StructF__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'StructF'
+ ..fullIdentifier = 'mojo.test.StructF')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'FixedSizeArray')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()..fixedLength = 3
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8))),
+ ];
+}
class StructG extends bindings.Struct {
@@ -587,6 +703,37 @@ class StructG extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_StructG__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'StructG'
+ ..fullIdentifier = 'mojo.test.StructG')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'I')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'StructA')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_validation_test_interfaces_StructA__'
+ ..typeKey = '_validation_test_interfaces_StructA__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Str')
+ ..type = (new mojom_types.Type()
+..stringType = (new mojom_types.StringType()..nullable = true)),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'B')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool),
+ ];
+}
class StructH extends bindings.Struct {
@@ -758,6 +905,57 @@ class StructH extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_StructH__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'StructH'
+ ..fullIdentifier = 'mojo.test.StructH')
+ ..fields = <mojom_types.StructField>[
+ 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.uint8),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'C')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_validation_test_interfaces_UnionA__'
+ ..typeKey = '_validation_test_interfaces_UnionA__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'D')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..nullable = true
+
+ ..elementType = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_UnionA__'
+ ..typeKey = '_validation_test_interfaces_UnionA__'
+ )))),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'E')
+ ..type = (new mojom_types.Type()..mapType = (new mojom_types.MapType()
+ ..nullable = true
+
+ ..keyType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8)
+ ..valueType = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_UnionA__'
+ ..typeKey = '_validation_test_interfaces_UnionA__'
+ )))),
+ ];
+}
class BasicStruct extends bindings.Struct {
@@ -825,7 +1023,17 @@ class BasicStruct extends bindings.Struct {
return map;
}
}
-
+mojom_types.MojomStruct _validation_test_interfaces_BasicStruct__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'BasicStruct'
+ ..fullIdentifier = 'mojo.test.BasicStruct')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'A')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int32),
+ ];
+}
class StructWithEnumEnumWithin extends bindings.MojoEnum {
static const StructWithEnumEnumWithin a = const StructWithEnumEnumWithin._(0);
@@ -885,12 +1093,34 @@ class StructWithEnumEnumWithin extends bindings.MojoEnum {
return 'StructWithEnumEnumWithin.c';
case d:
return 'StructWithEnumEnumWithin.d';
+ default:
+ return null;
}
}
int toJson() => mojoEnumValue;
}
+mojom_types.MojomEnum _validation_test_interfaces_EnumWithin__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'StructWithEnumEnumWithin'
+ ..fullIdentifier = 'mojo.test.StructWithEnumEnumWithin')
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'A')
+ ..enumTypeKey = '_validation_test_interfaces_EnumWithin__'
+ ..intValue = 0,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'B')
+ ..enumTypeKey = '_validation_test_interfaces_EnumWithin__'
+ ..intValue = 1,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'C')
+ ..enumTypeKey = '_validation_test_interfaces_EnumWithin__'
+ ..intValue = 2,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'D')
+ ..enumTypeKey = '_validation_test_interfaces_EnumWithin__'
+ ..intValue = 3,];
+}
+
class StructWithEnum extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(8, 0)
@@ -947,6 +1177,13 @@ class StructWithEnum extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_StructWithEnum__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'StructWithEnum'
+ ..fullIdentifier = 'mojo.test.StructWithEnum')
+ ..fields = <mojom_types.StructField>[];
+}
class _BoundsCheckTestInterfaceMethod0Params extends bindings.Struct {
@@ -1014,6 +1251,17 @@ class _BoundsCheckTestInterfaceMethod0Params extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_BoundsCheckTestInterface_Method0_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_BoundsCheckTestInterfaceMethod0Params'
+ ..fullIdentifier = 'mojo.test._BoundsCheckTestInterfaceMethod0Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8),
+ ];
+}
class BoundsCheckTestInterfaceMethod0ResponseParams extends bindings.Struct {
@@ -1081,6 +1329,17 @@ class BoundsCheckTestInterfaceMethod0ResponseParams extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_BoundsCheckTestInterface_Method0_ResponseParams__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'BoundsCheckTestInterfaceMethod0ResponseParams'
+ ..fullIdentifier = 'mojo.test.BoundsCheckTestInterfaceMethod0ResponseParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8),
+ ];
+}
class _BoundsCheckTestInterfaceMethod1Params extends bindings.Struct {
@@ -1148,6 +1407,17 @@ class _BoundsCheckTestInterfaceMethod1Params extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_BoundsCheckTestInterface_Method1_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_BoundsCheckTestInterfaceMethod1Params'
+ ..fullIdentifier = 'mojo.test._BoundsCheckTestInterfaceMethod1Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8),
+ ];
+}
class _ConformanceTestInterfaceMethod0Params extends bindings.Struct {
@@ -1215,6 +1485,17 @@ class _ConformanceTestInterfaceMethod0Params extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method0_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_ConformanceTestInterfaceMethod0Params'
+ ..fullIdentifier = 'mojo.test._ConformanceTestInterfaceMethod0Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.float),
+ ];
+}
class _ConformanceTestInterfaceMethod1Params extends bindings.Struct {
@@ -1283,6 +1564,22 @@ class _ConformanceTestInterfaceMethod1Params extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method1_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_ConformanceTestInterfaceMethod1Params'
+ ..fullIdentifier = 'mojo.test._ConformanceTestInterfaceMethod1Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_StructA__'
+ ..typeKey = '_validation_test_interfaces_StructA__'
+ )),
+ ];
+}
class _ConformanceTestInterfaceMethod2Params extends bindings.Struct {
@@ -1361,6 +1658,31 @@ class _ConformanceTestInterfaceMethod2Params extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method2_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_ConformanceTestInterfaceMethod2Params'
+ ..fullIdentifier = 'mojo.test._ConformanceTestInterfaceMethod2Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_StructB__'
+ ..typeKey = '_validation_test_interfaces_StructB__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param1')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_StructA__'
+ ..typeKey = '_validation_test_interfaces_StructA__'
+ )),
+ ];
+}
class _ConformanceTestInterfaceMethod3Params extends bindings.Struct {
@@ -1428,6 +1750,18 @@ class _ConformanceTestInterfaceMethod3Params extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method3_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_ConformanceTestInterfaceMethod3Params'
+ ..fullIdentifier = 'mojo.test._ConformanceTestInterfaceMethod3Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool))),
+ ];
+}
class _ConformanceTestInterfaceMethod4Params extends bindings.Struct {
@@ -1505,6 +1839,27 @@ class _ConformanceTestInterfaceMethod4Params extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method4_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_ConformanceTestInterfaceMethod4Params'
+ ..fullIdentifier = 'mojo.test._ConformanceTestInterfaceMethod4Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_StructC__'
+ ..typeKey = '_validation_test_interfaces_StructC__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param1')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8))),
+ ];
+}
class _ConformanceTestInterfaceMethod5Params extends bindings.Struct {
@@ -1580,6 +1935,29 @@ class _ConformanceTestInterfaceMethod5Params extends bindings.Struct {
'Object containing handles cannot be encoded to JSON.');
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method5_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_ConformanceTestInterfaceMethod5Params'
+ ..fullIdentifier = 'mojo.test._ConformanceTestInterfaceMethod5Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_StructE__'
+ ..typeKey = '_validation_test_interfaces_StructE__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param1')
+ ..type = (new mojom_types.Type()
+..handleType = (new mojom_types.HandleType()
+..kind = mojom_types.HandleTypeKind.dataPipeProducer
+..nullable = false)),
+ ];
+}
class _ConformanceTestInterfaceMethod6Params extends bindings.Struct {
@@ -1663,6 +2041,19 @@ class _ConformanceTestInterfaceMethod6Params extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method6_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_ConformanceTestInterfaceMethod6Params'
+ ..fullIdentifier = 'mojo.test._ConformanceTestInterfaceMethod6Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8))))),
+ ];
+}
class _ConformanceTestInterfaceMethod7Params extends bindings.Struct {
@@ -1756,6 +2147,30 @@ class _ConformanceTestInterfaceMethod7Params extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method7_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_ConformanceTestInterfaceMethod7Params'
+ ..fullIdentifier = 'mojo.test._ConformanceTestInterfaceMethod7Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_StructF__'
+ ..typeKey = '_validation_test_interfaces_StructF__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param1')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()..fixedLength = 2
+ ..elementType = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..nullable = true
+ ..fixedLength = 3
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8))))),
+ ];
+}
class _ConformanceTestInterfaceMethod8Params extends bindings.Struct {
@@ -1857,6 +2272,22 @@ class _ConformanceTestInterfaceMethod8Params extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method8_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_ConformanceTestInterfaceMethod8Params'
+ ..fullIdentifier = 'mojo.test._ConformanceTestInterfaceMethod8Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..nullable = true
+
+ ..elementType = (new mojom_types.Type()
+..stringType = (new mojom_types.StringType()..nullable = false)))))),
+ ];
+}
class _ConformanceTestInterfaceMethod9Params extends bindings.Struct {
@@ -1941,6 +2372,24 @@ class _ConformanceTestInterfaceMethod9Params extends bindings.Struct {
'Object containing handles cannot be encoded to JSON.');
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method9_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_ConformanceTestInterfaceMethod9Params'
+ ..fullIdentifier = 'mojo.test._ConformanceTestInterfaceMethod9Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..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()
+..handleType = (new mojom_types.HandleType()
+..kind = mojom_types.HandleTypeKind.unspecified
+..nullable = true)))))),
+ ];
+}
class _ConformanceTestInterfaceMethod10Params extends bindings.Struct {
@@ -2048,6 +2497,20 @@ class _ConformanceTestInterfaceMethod10Params extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method10_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_ConformanceTestInterfaceMethod10Params'
+ ..fullIdentifier = 'mojo.test._ConformanceTestInterfaceMethod10Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..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()..simpleType = mojom_types.SimpleType.uint8))),
+ ];
+}
class _ConformanceTestInterfaceMethod11Params extends bindings.Struct {
@@ -2116,6 +2579,22 @@ class _ConformanceTestInterfaceMethod11Params extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method11_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_ConformanceTestInterfaceMethod11Params'
+ ..fullIdentifier = 'mojo.test._ConformanceTestInterfaceMethod11Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_StructG__'
+ ..typeKey = '_validation_test_interfaces_StructG__'
+ )),
+ ];
+}
class _ConformanceTestInterfaceMethod12Params extends bindings.Struct {
@@ -2183,6 +2662,17 @@ class _ConformanceTestInterfaceMethod12Params extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method12_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_ConformanceTestInterfaceMethod12Params'
+ ..fullIdentifier = 'mojo.test._ConformanceTestInterfaceMethod12Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.float),
+ ];
+}
class ConformanceTestInterfaceMethod12ResponseParams extends bindings.Struct {
@@ -2250,6 +2740,17 @@ class ConformanceTestInterfaceMethod12ResponseParams extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method12_ResponseParams__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'ConformanceTestInterfaceMethod12ResponseParams'
+ ..fullIdentifier = 'mojo.test.ConformanceTestInterfaceMethod12ResponseParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.float),
+ ];
+}
class _ConformanceTestInterfaceMethod13Params extends bindings.Struct {
@@ -2332,6 +2833,39 @@ class _ConformanceTestInterfaceMethod13Params extends bindings.Struct {
'Object containing handles cannot be encoded to JSON.');
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method13_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_ConformanceTestInterfaceMethod13Params'
+ ..fullIdentifier = 'mojo.test._ConformanceTestInterfaceMethod13Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_validation_test_interfaces_InterfaceA__'
+ ..typeKey = '_validation_test_interfaces_InterfaceA__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param1')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param2')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_validation_test_interfaces_InterfaceA__'
+ ..typeKey = '_validation_test_interfaces_InterfaceA__'
+ )),
+ ];
+}
class _ConformanceTestInterfaceMethod14Params extends bindings.Struct {
@@ -2403,6 +2937,22 @@ class _ConformanceTestInterfaceMethod14Params extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method14_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_ConformanceTestInterfaceMethod14Params'
+ ..fullIdentifier = 'mojo.test._ConformanceTestInterfaceMethod14Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_UnionA__'
+ ..typeKey = '_validation_test_interfaces_UnionA__'
+ )),
+ ];
+}
class _ConformanceTestInterfaceMethod15Params extends bindings.Struct {
@@ -2471,6 +3021,22 @@ class _ConformanceTestInterfaceMethod15Params extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method15_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_ConformanceTestInterfaceMethod15Params'
+ ..fullIdentifier = 'mojo.test._ConformanceTestInterfaceMethod15Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_StructH__'
+ ..typeKey = '_validation_test_interfaces_StructH__'
+ )),
+ ];
+}
class _IntegrationTestInterfaceMethod0Params extends bindings.Struct {
@@ -2539,6 +3105,22 @@ class _IntegrationTestInterfaceMethod0Params extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_IntegrationTestInterface_Method0_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_IntegrationTestInterfaceMethod0Params'
+ ..fullIdentifier = 'mojo.test._IntegrationTestInterfaceMethod0Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_BasicStruct__'
+ ..typeKey = '_validation_test_interfaces_BasicStruct__'
+ )),
+ ];
+}
class IntegrationTestInterfaceMethod0ResponseParams extends bindings.Struct {
@@ -2606,6 +3188,18 @@ class IntegrationTestInterfaceMethod0ResponseParams extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _validation_test_interfaces_IntegrationTestInterface_Method0_ResponseParams__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'IntegrationTestInterfaceMethod0ResponseParams'
+ ..fullIdentifier = 'mojo.test.IntegrationTestInterfaceMethod0ResponseParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8))),
+ ];
+}
@@ -2995,6 +3589,100 @@ class UnionA extends bindings.Union {
}
}
+mojom_types.MojomUnion _validation_test_interfaces_UnionA__() {
+ return new mojom_types.MojomUnion()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'UnionA'
+ ..fullIdentifier = 'mojo.test.UnionA')
+ ..fields = <mojom_types.UnionField>[
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'A')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint16)
+ ..tag = 0,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'B')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32)
+ ..tag = 1,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'C')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_validation_test_interfaces_StructA__'
+ ..typeKey = '_validation_test_interfaces_StructA__'
+ ))
+ ..tag = 2,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'D')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..nullable = true
+
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8)))
+ ..tag = 3,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'E')
+ ..type = (new mojom_types.Type()..mapType = (new mojom_types.MapType()
+ ..nullable = true
+
+ ..keyType = (new mojom_types.Type()
+..stringType = (new mojom_types.StringType()..nullable = false))
+ ..valueType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8)))
+ ..tag = 4,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'F')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_validation_test_interfaces_UnionB__'
+ ..typeKey = '_validation_test_interfaces_UnionB__'
+ ))
+ ..tag = 5,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'G')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_StructA__'
+ ..typeKey = '_validation_test_interfaces_StructA__'
+ ))
+ ..tag = 6,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'H')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8)))
+ ..tag = 7,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'I')
+ ..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()..simpleType = mojom_types.SimpleType.uint8)))
+ ..tag = 8,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'J')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_UnionB__'
+ ..typeKey = '_validation_test_interfaces_UnionB__'
+ ))
+ ..tag = 9,
+ ];
+}
+
enum UnionBTag {
a,
@@ -3150,6 +3838,58 @@ class UnionB extends bindings.Union {
}
}
+mojom_types.MojomUnion _validation_test_interfaces_UnionB__() {
+ return new mojom_types.MojomUnion()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'UnionB'
+ ..fullIdentifier = 'mojo.test.UnionB')
+ ..fields = <mojom_types.UnionField>[
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'A')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint16)
+ ..tag = 0,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'B')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32)
+ ..tag = 1,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'C')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint64)
+ ..tag = 2,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'D')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32)
+ ..tag = 3,
+ ];
+}
+
+
+mojom_types.MojomInterface _validation_test_interfaces_InterfaceA__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'InterfaceA'
+ ..fullIdentifier = 'mojo.test.InterfaceA')
+ ..interfaceName = 'InterfaceA'
+ ..methods = <int, mojom_types.MojomMethod>{
+
+ };
+}
+
+class _InterfaceAServiceDescription implements service_describer.ServiceDescription {
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _validation_test_interfaces_InterfaceA__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class InterfaceA {
static const String serviceName = null;
}
@@ -3170,6 +3910,9 @@ class _InterfaceAProxyImpl extends bindings.Proxy {
return new _InterfaceAProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _InterfaceAServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
default:
@@ -3299,11 +4042,43 @@ class InterfaceAStub extends bindings.Stub {
}
int get version => 0;
+
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _InterfaceAServiceDescription();
}
const int _BoundsCheckTestInterface_method0Name = 0;
const int _BoundsCheckTestInterface_method1Name = 1;
+mojom_types.MojomInterface _validation_test_interfaces_BoundsCheckTestInterface__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'BoundsCheckTestInterface'
+ ..fullIdentifier = 'mojo.test.BoundsCheckTestInterface')
+ ..interfaceName = 'BoundsCheckTestInterface'
+ ..methods = <int, mojom_types.MojomMethod>{
+_BoundsCheckTestInterface_method0Name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Method0')
+ ..ordinal = _BoundsCheckTestInterface_method0Name
+ ..responseParams = _validation_test_interfaces_BoundsCheckTestInterface_Method0_ResponseParams__()..parameters = _validation_test_interfaces_BoundsCheckTestInterface_Method0_Params__(),_BoundsCheckTestInterface_method1Name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Method1')
+ ..ordinal = _BoundsCheckTestInterface_method1Name..parameters = _validation_test_interfaces_BoundsCheckTestInterface_Method1_Params__(),
+ };
+}
+
+class _BoundsCheckTestInterfaceServiceDescription implements service_describer.ServiceDescription {
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _validation_test_interfaces_BoundsCheckTestInterface__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class BoundsCheckTestInterface {
static const String serviceName = null;
dynamic method0(int param0,[Function responseFactory = null]);
@@ -3326,6 +4101,9 @@ class _BoundsCheckTestInterfaceProxyImpl extends bindings.Proxy {
return new _BoundsCheckTestInterfaceProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _BoundsCheckTestInterfaceServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
case _BoundsCheckTestInterface_method0Name:
@@ -3525,6 +4303,10 @@ class BoundsCheckTestInterfaceStub extends bindings.Stub {
}
int get version => 0;
+
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _BoundsCheckTestInterfaceServiceDescription();
}
const int _ConformanceTestInterface_method0Name = 0;
@@ -3544,6 +4326,62 @@ const int _ConformanceTestInterface_method13Name = 13;
const int _ConformanceTestInterface_method14Name = 14;
const int _ConformanceTestInterface_method15Name = 15;
+mojom_types.MojomInterface _validation_test_interfaces_ConformanceTestInterface__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'ConformanceTestInterface'
+ ..fullIdentifier = 'mojo.test.ConformanceTestInterface')
+ ..interfaceName = 'ConformanceTestInterface'
+ ..methods = <int, mojom_types.MojomMethod>{
+_ConformanceTestInterface_method0Name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Method0')
+ ..ordinal = _ConformanceTestInterface_method0Name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method0_Params__(),_ConformanceTestInterface_method1Name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Method1')
+ ..ordinal = _ConformanceTestInterface_method1Name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method1_Params__(),_ConformanceTestInterface_method2Name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Method2')
+ ..ordinal = _ConformanceTestInterface_method2Name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method2_Params__(),_ConformanceTestInterface_method3Name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Method3')
+ ..ordinal = _ConformanceTestInterface_method3Name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method3_Params__(),_ConformanceTestInterface_method4Name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Method4')
+ ..ordinal = _ConformanceTestInterface_method4Name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method4_Params__(),_ConformanceTestInterface_method5Name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Method5')
+ ..ordinal = _ConformanceTestInterface_method5Name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method5_Params__(),_ConformanceTestInterface_method6Name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Method6')
+ ..ordinal = _ConformanceTestInterface_method6Name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method6_Params__(),_ConformanceTestInterface_method7Name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Method7')
+ ..ordinal = _ConformanceTestInterface_method7Name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method7_Params__(),_ConformanceTestInterface_method8Name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Method8')
+ ..ordinal = _ConformanceTestInterface_method8Name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method8_Params__(),_ConformanceTestInterface_method9Name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Method9')
+ ..ordinal = _ConformanceTestInterface_method9Name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method9_Params__(),_ConformanceTestInterface_method10Name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Method10')
+ ..ordinal = _ConformanceTestInterface_method10Name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method10_Params__(),_ConformanceTestInterface_method11Name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Method11')
+ ..ordinal = _ConformanceTestInterface_method11Name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method11_Params__(),_ConformanceTestInterface_method12Name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Method12')
+ ..ordinal = _ConformanceTestInterface_method12Name
+ ..responseParams = _validation_test_interfaces_ConformanceTestInterface_Method12_ResponseParams__()..parameters = _validation_test_interfaces_ConformanceTestInterface_Method12_Params__(),_ConformanceTestInterface_method13Name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Method13')
+ ..ordinal = _ConformanceTestInterface_method13Name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method13_Params__(),_ConformanceTestInterface_method14Name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Method14')
+ ..ordinal = _ConformanceTestInterface_method14Name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method14_Params__(),_ConformanceTestInterface_method15Name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Method15')
+ ..ordinal = _ConformanceTestInterface_method15Name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method15_Params__(),
+ };
+}
+
+class _ConformanceTestInterfaceServiceDescription implements service_describer.ServiceDescription {
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _validation_test_interfaces_ConformanceTestInterface__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class ConformanceTestInterface {
static const String serviceName = null;
void method0(double param0);
@@ -3580,6 +4418,9 @@ class _ConformanceTestInterfaceProxyImpl extends bindings.Proxy {
return new _ConformanceTestInterfaceProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _ConformanceTestInterfaceServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
case _ConformanceTestInterface_method12Name:
@@ -3981,10 +4822,40 @@ class ConformanceTestInterfaceStub extends bindings.Stub {
}
int get version => 0;
+
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _ConformanceTestInterfaceServiceDescription();
}
const int _IntegrationTestInterface_method0Name = 0;
+mojom_types.MojomInterface _validation_test_interfaces_IntegrationTestInterface__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'IntegrationTestInterface'
+ ..fullIdentifier = 'mojo.test.IntegrationTestInterface')
+ ..interfaceName = 'IntegrationTestInterface'
+ ..methods = <int, mojom_types.MojomMethod>{
+_IntegrationTestInterface_method0Name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Method0')
+ ..ordinal = _IntegrationTestInterface_method0Name
+ ..responseParams = _validation_test_interfaces_IntegrationTestInterface_Method0_ResponseParams__()..parameters = _validation_test_interfaces_IntegrationTestInterface_Method0_Params__(),
+ };
+}
+
+class _IntegrationTestInterfaceServiceDescription implements service_describer.ServiceDescription {
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _validation_test_interfaces_IntegrationTestInterface__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class IntegrationTestInterface {
static const String serviceName = null;
dynamic method0(BasicStruct param0,[Function responseFactory = null]);
@@ -4006,6 +4877,9 @@ class _IntegrationTestInterfaceProxyImpl extends bindings.Proxy {
return new _IntegrationTestInterfaceProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _IntegrationTestInterfaceServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
case _IntegrationTestInterface_method0Name:
@@ -4191,6 +5065,149 @@ class IntegrationTestInterfaceStub extends bindings.Stub {
}
int get version => 0;
+
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _IntegrationTestInterfaceServiceDescription();
+}
+
+
+
+
+
+
+
+Map<String, mojom_types.UserDefinedType> _initDescriptions() {
+ var map = new HashMap<String, mojom_types.UserDefinedType>();
+map["_validation_test_interfaces_BasicEnum__"] =
+ new mojom_types.UserDefinedType()
+ ..enumType = _validation_test_interfaces_BasicEnum__();
+map["_validation_test_interfaces_StructA__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_StructA__();
+map["_validation_test_interfaces_StructB__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_StructB__();
+map["_validation_test_interfaces_StructC__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_StructC__();
+map["_validation_test_interfaces_StructD__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_StructD__();
+map["_validation_test_interfaces_StructE__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_StructE__();
+map["_validation_test_interfaces_StructF__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_StructF__();
+map["_validation_test_interfaces_StructG__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_StructG__();
+map["_validation_test_interfaces_StructH__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_StructH__();
+map["_validation_test_interfaces_BasicStruct__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_BasicStruct__();
+map["_validation_test_interfaces_StructWithEnum__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_StructWithEnum__();
+ map["_validation_test_interfaces_EnumWithin__"] =
+ new mojom_types.UserDefinedType()
+ ..enumType = _validation_test_interfaces_EnumWithin__();
+map["_validation_test_interfaces_BoundsCheckTestInterface_Method0_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_BoundsCheckTestInterface_Method0_Params__();
+map["_validation_test_interfaces_BoundsCheckTestInterface_Method0_ResponseParams__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_BoundsCheckTestInterface_Method0_ResponseParams__();
+map["_validation_test_interfaces_BoundsCheckTestInterface_Method1_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_BoundsCheckTestInterface_Method1_Params__();
+map["_validation_test_interfaces_ConformanceTestInterface_Method0_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method0_Params__();
+map["_validation_test_interfaces_ConformanceTestInterface_Method1_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method1_Params__();
+map["_validation_test_interfaces_ConformanceTestInterface_Method2_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method2_Params__();
+map["_validation_test_interfaces_ConformanceTestInterface_Method3_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method3_Params__();
+map["_validation_test_interfaces_ConformanceTestInterface_Method4_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method4_Params__();
+map["_validation_test_interfaces_ConformanceTestInterface_Method5_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method5_Params__();
+map["_validation_test_interfaces_ConformanceTestInterface_Method6_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method6_Params__();
+map["_validation_test_interfaces_ConformanceTestInterface_Method7_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method7_Params__();
+map["_validation_test_interfaces_ConformanceTestInterface_Method8_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method8_Params__();
+map["_validation_test_interfaces_ConformanceTestInterface_Method9_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method9_Params__();
+map["_validation_test_interfaces_ConformanceTestInterface_Method10_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method10_Params__();
+map["_validation_test_interfaces_ConformanceTestInterface_Method11_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method11_Params__();
+map["_validation_test_interfaces_ConformanceTestInterface_Method12_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method12_Params__();
+map["_validation_test_interfaces_ConformanceTestInterface_Method12_ResponseParams__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method12_ResponseParams__();
+map["_validation_test_interfaces_ConformanceTestInterface_Method13_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method13_Params__();
+map["_validation_test_interfaces_ConformanceTestInterface_Method14_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method14_Params__();
+map["_validation_test_interfaces_ConformanceTestInterface_Method15_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method15_Params__();
+map["_validation_test_interfaces_IntegrationTestInterface_Method0_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_IntegrationTestInterface_Method0_Params__();
+map["_validation_test_interfaces_IntegrationTestInterface_Method0_ResponseParams__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_IntegrationTestInterface_Method0_ResponseParams__();
+map["_validation_test_interfaces_UnionA__"] =
+ new mojom_types.UserDefinedType()
+ ..unionType = _validation_test_interfaces_UnionA__();
+map["_validation_test_interfaces_UnionB__"] =
+ new mojom_types.UserDefinedType()
+ ..unionType = _validation_test_interfaces_UnionB__();
+map["_validation_test_interfaces_InterfaceA__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _validation_test_interfaces_InterfaceA__();
+map["_validation_test_interfaces_BoundsCheckTestInterface__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _validation_test_interfaces_BoundsCheckTestInterface__();
+map["_validation_test_interfaces_ConformanceTestInterface__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _validation_test_interfaces_ConformanceTestInterface__();
+map["_validation_test_interfaces_IntegrationTestInterface__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _validation_test_interfaces_IntegrationTestInterface__();
+
+ return map;
}
+var _MojomDesc;
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
+ if (_MojomDesc == null) {
+ _MojomDesc = _initDescriptions();
+ }
+ return _MojomDesc;
+}

Powered by Google App Engine
This is Rietveld 408576698