Index: mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/serialization_test_structs.mojom.dart |
diff --git a/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/serialization_test_structs.mojom.dart b/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/serialization_test_structs.mojom.dart |
index fd72d5a72271c1688c8e01879ef1d27855772290..476f4bffdb96695bee3033e0bc1d569332cb571b 100644 |
--- a/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/serialization_test_structs.mojom.dart |
+++ b/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/serialization_test_structs.mojom.dart |
@@ -5,9 +5,12 @@ |
library serialization_test_structs_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; |
+ |
@@ -76,6 +79,17 @@ class Struct1 extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _serialization_test_structs_Struct1__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'Struct1' |
+ ..fullIdentifier = 'mojo.test.Struct1') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'I') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8), |
+ ]; |
+} |
class Struct2 extends bindings.Struct { |
@@ -142,6 +156,20 @@ class Struct2 extends bindings.Struct { |
'Object containing handles cannot be encoded to JSON.'); |
} |
} |
+mojom_types.MojomStruct _serialization_test_structs_Struct2__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'Struct2' |
+ ..fullIdentifier = 'mojo.test.Struct2') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Hdl') |
+ ..type = (new mojom_types.Type() |
+..handleType = (new mojom_types.HandleType() |
+..kind = mojom_types.HandleTypeKind.unspecified |
+..nullable = false)), |
+ ]; |
+} |
class Struct3 extends bindings.Struct { |
@@ -210,6 +238,22 @@ class Struct3 extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _serialization_test_structs_Struct3__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'Struct3' |
+ ..fullIdentifier = 'mojo.test.Struct3') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Struct1') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_serialization_test_structs_Struct1__' |
+ ..typeKey = '_serialization_test_structs_Struct1__' |
+ )), |
+ ]; |
+} |
class Struct4 extends bindings.Struct { |
@@ -294,6 +338,23 @@ class Struct4 extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _serialization_test_structs_Struct4__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'Struct4' |
+ ..fullIdentifier = 'mojo.test.Struct4') |
+ ..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() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_serialization_test_structs_Struct1__' |
+ ..typeKey = '_serialization_test_structs_Struct1__' |
+ )))), |
+ ]; |
+} |
class Struct5 extends bindings.Struct { |
@@ -378,6 +439,23 @@ class Struct5 extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _serialization_test_structs_Struct5__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'Struct5' |
+ ..fullIdentifier = 'mojo.test.Struct5') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Pair') |
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()..fixedLength = 2 |
+ ..elementType = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_serialization_test_structs_Struct1__' |
+ ..typeKey = '_serialization_test_structs_Struct1__' |
+ )))), |
+ ]; |
+} |
class Struct6 extends bindings.Struct { |
@@ -445,6 +523,18 @@ class Struct6 extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _serialization_test_structs_Struct6__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'Struct6' |
+ ..fullIdentifier = 'mojo.test.Struct6') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Str') |
+ ..type = (new mojom_types.Type() |
+..stringType = (new mojom_types.StringType()..nullable = false)), |
+ ]; |
+} |
class StructOfNullables extends bindings.Struct { |
@@ -528,5 +618,76 @@ class StructOfNullables extends bindings.Struct { |
'Object containing handles cannot be encoded to JSON.'); |
} |
} |
+mojom_types.MojomStruct _serialization_test_structs_StructOfNullables__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'StructOfNullables' |
+ ..fullIdentifier = 'mojo.test.StructOfNullables') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Hdl') |
+ ..type = (new mojom_types.Type() |
+..handleType = (new mojom_types.HandleType() |
+..kind = mojom_types.HandleTypeKind.unspecified |
+..nullable = true)), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Struct1') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ ..nullable = true |
+ |
+ |
+ ..identifier = '_serialization_test_structs_Struct1__' |
+ ..typeKey = '_serialization_test_structs_Struct1__' |
+ )), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Str') |
+ ..type = (new mojom_types.Type() |
+..stringType = (new mojom_types.StringType()..nullable = true)), |
+ ]; |
+} |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
+ var map = new HashMap<String, mojom_types.UserDefinedType>(); |
+map["_serialization_test_structs_Struct1__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _serialization_test_structs_Struct1__(); |
+map["_serialization_test_structs_Struct2__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _serialization_test_structs_Struct2__(); |
+map["_serialization_test_structs_Struct3__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _serialization_test_structs_Struct3__(); |
+map["_serialization_test_structs_Struct4__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _serialization_test_structs_Struct4__(); |
+map["_serialization_test_structs_Struct5__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _serialization_test_structs_Struct5__(); |
+map["_serialization_test_structs_Struct6__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _serialization_test_structs_Struct6__(); |
+map["_serialization_test_structs_StructOfNullables__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _serialization_test_structs_StructOfNullables__(); |
+ |
+ return map; |
+} |
+var _MojomDesc; |
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
+ if (_MojomDesc == null) { |
+ _MojomDesc = _initDescriptions(); |
+ } |
+ return _MojomDesc; |
+} |