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

Unified Diff: mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_types.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/lib/mojo/bindings/types/mojom_types.mojom.dart
diff --git a/mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_types.mojom.dart b/mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_types.mojom.dart
index 426c61ed5fb852c2b41e4ddfa81cbc2ee35c9169..4cae528bf0590ab3a7cb7912ca684e13e001a9b9 100644
--- a/mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_types.mojom.dart
+++ b/mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_types.mojom.dart
@@ -5,10 +5,12 @@
library mojom_types_mojom;
import 'dart:async';
+import 'dart:collection';
import 'package:mojo/bindings.dart' as bindings;
import 'package:mojo/core.dart' as core;
+
class SimpleType extends bindings.MojoEnum {
static const SimpleType bool = const SimpleType._(0);
static const SimpleType double = const SimpleType._(1);
@@ -116,12 +118,54 @@ class SimpleType extends bindings.MojoEnum {
return 'SimpleType.uint32';
case uint64:
return 'SimpleType.uint64';
+ default:
+ return null;
}
}
int toJson() => mojoEnumValue;
}
+MojomEnum _mojom_types_SimpleType__() {
+ return new MojomEnum()
+ ..declData = (new DeclarationData()
+ ..shortName = 'SimpleType'
+ ..fullIdentifier = 'mojo.bindings.types.SimpleType')
+ ..values = <EnumValue>[new EnumValue()
+ ..declData = (new DeclarationData()..shortName = 'Bool')
+ ..enumTypeKey = '_mojom_types_SimpleType__'
+ ..intValue = 0,new EnumValue()
+ ..declData = (new DeclarationData()..shortName = 'Double')
+ ..enumTypeKey = '_mojom_types_SimpleType__'
+ ..intValue = 1,new EnumValue()
+ ..declData = (new DeclarationData()..shortName = 'Float')
+ ..enumTypeKey = '_mojom_types_SimpleType__'
+ ..intValue = 2,new EnumValue()
+ ..declData = (new DeclarationData()..shortName = 'Int8')
+ ..enumTypeKey = '_mojom_types_SimpleType__'
+ ..intValue = 3,new EnumValue()
+ ..declData = (new DeclarationData()..shortName = 'Int16')
+ ..enumTypeKey = '_mojom_types_SimpleType__'
+ ..intValue = 4,new EnumValue()
+ ..declData = (new DeclarationData()..shortName = 'Int32')
+ ..enumTypeKey = '_mojom_types_SimpleType__'
+ ..intValue = 5,new EnumValue()
+ ..declData = (new DeclarationData()..shortName = 'Int64')
+ ..enumTypeKey = '_mojom_types_SimpleType__'
+ ..intValue = 6,new EnumValue()
+ ..declData = (new DeclarationData()..shortName = 'Uint8')
+ ..enumTypeKey = '_mojom_types_SimpleType__'
+ ..intValue = 7,new EnumValue()
+ ..declData = (new DeclarationData()..shortName = 'Uint16')
+ ..enumTypeKey = '_mojom_types_SimpleType__'
+ ..intValue = 8,new EnumValue()
+ ..declData = (new DeclarationData()..shortName = 'Uint32')
+ ..enumTypeKey = '_mojom_types_SimpleType__'
+ ..intValue = 9,new EnumValue()
+ ..declData = (new DeclarationData()..shortName = 'Uint64')
+ ..enumTypeKey = '_mojom_types_SimpleType__'
+ ..intValue = 10,];
+}
class BuiltinConstantValue extends bindings.MojoEnum {
static const BuiltinConstantValue doubleInfinity = const BuiltinConstantValue._(0);
static const BuiltinConstantValue doubleNegativeInfinity = const BuiltinConstantValue._(1);
@@ -194,12 +238,40 @@ class BuiltinConstantValue extends bindings.MojoEnum {
return 'BuiltinConstantValue.floatNegativeInfinity';
case floatNan:
return 'BuiltinConstantValue.floatNan';
+ default:
+ return null;
}
}
int toJson() => mojoEnumValue;
}
+MojomEnum _mojom_types_BuiltinConstantValue__() {
+ return new MojomEnum()
+ ..declData = (new DeclarationData()
+ ..shortName = 'BuiltinConstantValue'
+ ..fullIdentifier = 'mojo.bindings.types.BuiltinConstantValue')
+ ..values = <EnumValue>[new EnumValue()
+ ..declData = (new DeclarationData()..shortName = 'DoubleInfinity')
+ ..enumTypeKey = '_mojom_types_BuiltinConstantValue__'
+ ..intValue = 0,new EnumValue()
+ ..declData = (new DeclarationData()..shortName = 'DoubleNegativeInfinity')
+ ..enumTypeKey = '_mojom_types_BuiltinConstantValue__'
+ ..intValue = 1,new EnumValue()
+ ..declData = (new DeclarationData()..shortName = 'DoubleNan')
+ ..enumTypeKey = '_mojom_types_BuiltinConstantValue__'
+ ..intValue = 2,new EnumValue()
+ ..declData = (new DeclarationData()..shortName = 'FloatInfinity')
+ ..enumTypeKey = '_mojom_types_BuiltinConstantValue__'
+ ..intValue = 3,new EnumValue()
+ ..declData = (new DeclarationData()..shortName = 'FloatNegativeInfinity')
+ ..enumTypeKey = '_mojom_types_BuiltinConstantValue__'
+ ..intValue = 4,new EnumValue()
+ ..declData = (new DeclarationData()..shortName = 'FloatNan')
+ ..enumTypeKey = '_mojom_types_BuiltinConstantValue__'
+ ..intValue = 5,];
+}
+
class StringType extends bindings.Struct {
@@ -267,7 +339,17 @@ class StringType extends bindings.Struct {
return map;
}
}
-
+MojomStruct _mojom_types_StringType__() {
+ return new MojomStruct()
+ ..declData = (new DeclarationData()
+ ..shortName = 'StringType'
+ ..fullIdentifier = 'mojo.bindings.types.StringType')
+ ..fields = <StructField>[
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Nullable')
+ ..type = (new Type()..simpleType = SimpleType.bool),
+ ];
+}
class HandleTypeKind extends bindings.MojoEnum {
static const HandleTypeKind unspecified = const HandleTypeKind._(0);
@@ -334,12 +416,37 @@ class HandleTypeKind extends bindings.MojoEnum {
return 'HandleTypeKind.dataPipeProducer';
case sharedBuffer:
return 'HandleTypeKind.sharedBuffer';
+ default:
+ return null;
}
}
int toJson() => mojoEnumValue;
}
+MojomEnum _mojom_types_Kind__() {
+ return new MojomEnum()
+ ..declData = (new DeclarationData()
+ ..shortName = 'HandleTypeKind'
+ ..fullIdentifier = 'mojo.bindings.types.HandleTypeKind')
+ ..values = <EnumValue>[new EnumValue()
+ ..declData = (new DeclarationData()..shortName = 'Unspecified')
+ ..enumTypeKey = '_mojom_types_Kind__'
+ ..intValue = 0,new EnumValue()
+ ..declData = (new DeclarationData()..shortName = 'MessagePipe')
+ ..enumTypeKey = '_mojom_types_Kind__'
+ ..intValue = 1,new EnumValue()
+ ..declData = (new DeclarationData()..shortName = 'DataPipeConsumer')
+ ..enumTypeKey = '_mojom_types_Kind__'
+ ..intValue = 2,new EnumValue()
+ ..declData = (new DeclarationData()..shortName = 'DataPipeProducer')
+ ..enumTypeKey = '_mojom_types_Kind__'
+ ..intValue = 3,new EnumValue()
+ ..declData = (new DeclarationData()..shortName = 'SharedBuffer')
+ ..enumTypeKey = '_mojom_types_Kind__'
+ ..intValue = 4,];
+}
+
class HandleType extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -418,6 +525,26 @@ class HandleType extends bindings.Struct {
return map;
}
}
+MojomStruct _mojom_types_HandleType__() {
+ return new MojomStruct()
+ ..declData = (new DeclarationData()
+ ..shortName = 'HandleType'
+ ..fullIdentifier = 'mojo.bindings.types.HandleType')
+ ..fields = <StructField>[
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Nullable')
+ ..type = (new Type()..simpleType = SimpleType.bool),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Kind')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_Kind__'
+ ..typeKey = '_mojom_types_Kind__'
+ )),
+ ];
+}
class ArrayType extends bindings.Struct {
@@ -507,6 +634,30 @@ class ArrayType extends bindings.Struct {
return map;
}
}
+MojomStruct _mojom_types_ArrayType__() {
+ return new MojomStruct()
+ ..declData = (new DeclarationData()
+ ..shortName = 'ArrayType'
+ ..fullIdentifier = 'mojo.bindings.types.ArrayType')
+ ..fields = <StructField>[
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Nullable')
+ ..type = (new Type()..simpleType = SimpleType.bool),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'FixedLength')
+ ..type = (new Type()..simpleType = SimpleType.int32),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'ElementType')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_Type__'
+ ..typeKey = '_mojom_types_Type__'
+ )),
+ ];
+}
class MapType extends bindings.Struct {
@@ -600,6 +751,35 @@ class MapType extends bindings.Struct {
return map;
}
}
+MojomStruct _mojom_types_MapType__() {
+ return new MojomStruct()
+ ..declData = (new DeclarationData()
+ ..shortName = 'MapType'
+ ..fullIdentifier = 'mojo.bindings.types.MapType')
+ ..fields = <StructField>[
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Nullable')
+ ..type = (new Type()..simpleType = SimpleType.bool),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'KeyType')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_Type__'
+ ..typeKey = '_mojom_types_Type__'
+ )),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'ValueType')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_Type__'
+ ..typeKey = '_mojom_types_Type__'
+ )),
+ ];
+}
class TypeReference extends bindings.Struct {
@@ -694,6 +874,31 @@ class TypeReference extends bindings.Struct {
return map;
}
}
+MojomStruct _mojom_types_TypeReference__() {
+ return new MojomStruct()
+ ..declData = (new DeclarationData()
+ ..shortName = 'TypeReference'
+ ..fullIdentifier = 'mojo.bindings.types.TypeReference')
+ ..fields = <StructField>[
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Nullable')
+ ..type = (new Type()..simpleType = SimpleType.bool),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'IsInterfaceRequest')
+ ..type = (new Type()..simpleType = SimpleType.bool),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Identifier')
+ ..type = (new Type()
+..stringType = (new StringType()..nullable = true)),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'TypeKey')
+ ..type = (new Type()
+..stringType = (new StringType()..nullable = true)),
+ ];
+}
class StructField extends bindings.Struct {
@@ -793,6 +998,48 @@ class StructField extends bindings.Struct {
return map;
}
}
+MojomStruct _mojom_types_StructField__() {
+ return new MojomStruct()
+ ..declData = (new DeclarationData()
+ ..shortName = 'StructField'
+ ..fullIdentifier = 'mojo.bindings.types.StructField')
+ ..fields = <StructField>[
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'DeclData')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_mojom_types_DeclarationData__'
+ ..typeKey = '_mojom_types_DeclarationData__'
+ )),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Type')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_Type__'
+ ..typeKey = '_mojom_types_Type__'
+ )),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'DefaultValue')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_mojom_types_DefaultFieldValue__'
+ ..typeKey = '_mojom_types_DefaultFieldValue__'
+ )),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Offset')
+ ..type = (new Type()..simpleType = SimpleType.int32),
+ ];
+}
class DefaultKeyword extends bindings.Struct {
@@ -851,6 +1098,13 @@ class DefaultKeyword extends bindings.Struct {
return map;
}
}
+MojomStruct _mojom_types_DefaultKeyword__() {
+ return new MojomStruct()
+ ..declData = (new DeclarationData()
+ ..shortName = 'DefaultKeyword'
+ ..fullIdentifier = 'mojo.bindings.types.DefaultKeyword')
+ ..fields = <StructField>[];
+}
class StructVersion extends bindings.Struct {
@@ -936,6 +1190,25 @@ class StructVersion extends bindings.Struct {
return map;
}
}
+MojomStruct _mojom_types_StructVersion__() {
+ return new MojomStruct()
+ ..declData = (new DeclarationData()
+ ..shortName = 'StructVersion'
+ ..fullIdentifier = 'mojo.bindings.types.StructVersion')
+ ..fields = <StructField>[
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'VersionNumber')
+ ..type = (new Type()..simpleType = SimpleType.uint32),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'NumFields')
+ ..type = (new Type()..simpleType = SimpleType.uint32),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'NumBytes')
+ ..type = (new Type()..simpleType = SimpleType.uint32),
+ ];
+}
class MojomStruct extends bindings.Struct {
@@ -1058,6 +1331,46 @@ class MojomStruct extends bindings.Struct {
return map;
}
}
+MojomStruct _mojom_types_MojomStruct__() {
+ return new MojomStruct()
+ ..declData = (new DeclarationData()
+ ..shortName = 'MojomStruct'
+ ..fullIdentifier = 'mojo.bindings.types.MojomStruct')
+ ..fields = <StructField>[
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'DeclData')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_mojom_types_DeclarationData__'
+ ..typeKey = '_mojom_types_DeclarationData__'
+ )),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Fields')
+ ..type = (new Type()..arrayType = (new ArrayType()
+ ..elementType = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_StructField__'
+ ..typeKey = '_mojom_types_StructField__'
+ )))),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'VersionInfo')
+ ..type = (new Type()..arrayType = (new ArrayType()
+ ..nullable = true
+
+ ..elementType = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_StructVersion__'
+ ..typeKey = '_mojom_types_StructVersion__'
+ )))),
+ ];
+}
class UnionField extends bindings.Struct {
@@ -1148,6 +1461,37 @@ class UnionField extends bindings.Struct {
return map;
}
}
+MojomStruct _mojom_types_UnionField__() {
+ return new MojomStruct()
+ ..declData = (new DeclarationData()
+ ..shortName = 'UnionField'
+ ..fullIdentifier = 'mojo.bindings.types.UnionField')
+ ..fields = <StructField>[
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'DeclData')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_mojom_types_DeclarationData__'
+ ..typeKey = '_mojom_types_DeclarationData__'
+ )),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Type')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_Type__'
+ ..typeKey = '_mojom_types_Type__'
+ )),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Tag')
+ ..type = (new Type()..simpleType = SimpleType.uint32),
+ ];
+}
class MojomUnion extends bindings.Struct {
@@ -1242,6 +1586,34 @@ class MojomUnion extends bindings.Struct {
return map;
}
}
+MojomStruct _mojom_types_MojomUnion__() {
+ return new MojomStruct()
+ ..declData = (new DeclarationData()
+ ..shortName = 'MojomUnion'
+ ..fullIdentifier = 'mojo.bindings.types.MojomUnion')
+ ..fields = <StructField>[
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'DeclData')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_mojom_types_DeclarationData__'
+ ..typeKey = '_mojom_types_DeclarationData__'
+ )),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Fields')
+ ..type = (new Type()..arrayType = (new ArrayType()
+ ..elementType = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_UnionField__'
+ ..typeKey = '_mojom_types_UnionField__'
+ )))),
+ ];
+}
class EnumValue extends bindings.Struct {
@@ -1337,6 +1709,44 @@ class EnumValue extends bindings.Struct {
return map;
}
}
+MojomStruct _mojom_types_EnumValue__() {
+ return new MojomStruct()
+ ..declData = (new DeclarationData()
+ ..shortName = 'EnumValue'
+ ..fullIdentifier = 'mojo.bindings.types.EnumValue')
+ ..fields = <StructField>[
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'DeclData')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_mojom_types_DeclarationData__'
+ ..typeKey = '_mojom_types_DeclarationData__'
+ )),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'EnumTypeKey')
+ ..type = (new Type()
+..stringType = (new StringType()..nullable = false)),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'InitializerValue')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_mojom_types_Value__'
+ ..typeKey = '_mojom_types_Value__'
+ )),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'IntValue')
+ ..type = (new Type()..simpleType = SimpleType.int32),
+ ];
+}
class MojomEnum extends bindings.Struct {
@@ -1431,6 +1841,34 @@ class MojomEnum extends bindings.Struct {
return map;
}
}
+MojomStruct _mojom_types_MojomEnum__() {
+ return new MojomStruct()
+ ..declData = (new DeclarationData()
+ ..shortName = 'MojomEnum'
+ ..fullIdentifier = 'mojo.bindings.types.MojomEnum')
+ ..fields = <StructField>[
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'DeclData')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_mojom_types_DeclarationData__'
+ ..typeKey = '_mojom_types_DeclarationData__'
+ )),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Values')
+ ..type = (new Type()..arrayType = (new ArrayType()
+ ..elementType = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_EnumValue__'
+ ..typeKey = '_mojom_types_EnumValue__'
+ )))),
+ ];
+}
class MojomMethod extends bindings.Struct {
@@ -1528,6 +1966,48 @@ class MojomMethod extends bindings.Struct {
return map;
}
}
+MojomStruct _mojom_types_MojomMethod__() {
+ return new MojomStruct()
+ ..declData = (new DeclarationData()
+ ..shortName = 'MojomMethod'
+ ..fullIdentifier = 'mojo.bindings.types.MojomMethod')
+ ..fields = <StructField>[
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'DeclData')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_mojom_types_DeclarationData__'
+ ..typeKey = '_mojom_types_DeclarationData__'
+ )),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Parameters')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_MojomStruct__'
+ ..typeKey = '_mojom_types_MojomStruct__'
+ )),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'ResponseParams')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_mojom_types_MojomStruct__'
+ ..typeKey = '_mojom_types_MojomStruct__'
+ )),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Ordinal')
+ ..type = (new Type()..simpleType = SimpleType.uint32),
+ ];
+}
class MojomInterface extends bindings.Struct {
@@ -1655,6 +2135,40 @@ class MojomInterface extends bindings.Struct {
return map;
}
}
+MojomStruct _mojom_types_MojomInterface__() {
+ return new MojomStruct()
+ ..declData = (new DeclarationData()
+ ..shortName = 'MojomInterface'
+ ..fullIdentifier = 'mojo.bindings.types.MojomInterface')
+ ..fields = <StructField>[
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'DeclData')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_mojom_types_DeclarationData__'
+ ..typeKey = '_mojom_types_DeclarationData__'
+ )),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'InterfaceName')
+ ..type = (new Type()
+..stringType = (new StringType()..nullable = false)),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Methods')
+ ..type = (new Type()..mapType = (new MapType()
+ ..keyType = (new Type()..simpleType = SimpleType.uint32)
+ ..valueType = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_MojomMethod__'
+ ..typeKey = '_mojom_types_MojomMethod__'
+ )))),
+ ];
+}
class UserValueReference extends bindings.Struct {
@@ -1740,6 +2254,34 @@ class UserValueReference extends bindings.Struct {
return map;
}
}
+MojomStruct _mojom_types_UserValueReference__() {
+ return new MojomStruct()
+ ..declData = (new DeclarationData()
+ ..shortName = 'UserValueReference'
+ ..fullIdentifier = 'mojo.bindings.types.UserValueReference')
+ ..fields = <StructField>[
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Identifier')
+ ..type = (new Type()
+..stringType = (new StringType()..nullable = false)),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'ValueKey')
+ ..type = (new Type()
+..stringType = (new StringType()..nullable = true)),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'ResolvedConcreteValue')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_mojom_types_Value__'
+ ..typeKey = '_mojom_types_Value__'
+ )),
+ ];
+}
class DeclaredConstant extends bindings.Struct {
@@ -1834,6 +2376,40 @@ class DeclaredConstant extends bindings.Struct {
return map;
}
}
+MojomStruct _mojom_types_DeclaredConstant__() {
+ return new MojomStruct()
+ ..declData = (new DeclarationData()
+ ..shortName = 'DeclaredConstant'
+ ..fullIdentifier = 'mojo.bindings.types.DeclaredConstant')
+ ..fields = <StructField>[
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'DeclData')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_DeclarationData__'
+ ..typeKey = '_mojom_types_DeclarationData__'
+ )),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Type')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_Type__'
+ ..typeKey = '_mojom_types_Type__'
+ )),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Value')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_Value__'
+ ..typeKey = '_mojom_types_Value__'
+ )),
+ ];
+}
class Attribute extends bindings.Struct {
@@ -1914,6 +2490,27 @@ class Attribute extends bindings.Struct {
return map;
}
}
+MojomStruct _mojom_types_Attribute__() {
+ return new MojomStruct()
+ ..declData = (new DeclarationData()
+ ..shortName = 'Attribute'
+ ..fullIdentifier = 'mojo.bindings.types.Attribute')
+ ..fields = <StructField>[
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Key')
+ ..type = (new Type()
+..stringType = (new StringType()..nullable = false)),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Value')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_LiteralValue__'
+ ..typeKey = '_mojom_types_LiteralValue__'
+ )),
+ ];
+}
class DeclarationData extends bindings.Struct {
@@ -2074,6 +2671,74 @@ class DeclarationData extends bindings.Struct {
return map;
}
}
+MojomStruct _mojom_types_DeclarationData__() {
+ return new MojomStruct()
+ ..declData = (new DeclarationData()
+ ..shortName = 'DeclarationData'
+ ..fullIdentifier = 'mojo.bindings.types.DeclarationData')
+ ..fields = <StructField>[
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Attributes')
+ ..type = (new Type()..arrayType = (new ArrayType()
+ ..nullable = true
+
+ ..elementType = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_Attribute__'
+ ..typeKey = '_mojom_types_Attribute__'
+ )))),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'MinVersion')
+ ..type = (new Type()..simpleType = SimpleType.int32),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'ShortName')
+ ..type = (new Type()
+..stringType = (new StringType()..nullable = true)),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'FullIdentifier')
+ ..type = (new Type()
+..stringType = (new StringType()..nullable = true)),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'DeclaredOrdinal')
+ ..type = (new Type()..simpleType = SimpleType.int32),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'DeclarationOrder')
+ ..type = (new Type()..simpleType = SimpleType.int32),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'SourceFileInfo')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_mojom_types_SourceFileInfo__'
+ ..typeKey = '_mojom_types_SourceFileInfo__'
+ )),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'ContainedDeclarations')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_mojom_types_ContainedDeclarations__'
+ ..typeKey = '_mojom_types_ContainedDeclarations__'
+ )),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'ContainerTypeKey')
+ ..type = (new Type()
+..stringType = (new StringType()..nullable = true)),
+ ];
+}
class SourceFileInfo extends bindings.Struct {
@@ -2159,6 +2824,26 @@ class SourceFileInfo extends bindings.Struct {
return map;
}
}
+MojomStruct _mojom_types_SourceFileInfo__() {
+ return new MojomStruct()
+ ..declData = (new DeclarationData()
+ ..shortName = 'SourceFileInfo'
+ ..fullIdentifier = 'mojo.bindings.types.SourceFileInfo')
+ ..fields = <StructField>[
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'FileName')
+ ..type = (new Type()
+..stringType = (new StringType()..nullable = false)),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'LineNumber')
+ ..type = (new Type()..simpleType = SimpleType.uint32),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'ColumnNumber')
+ ..type = (new Type()..simpleType = SimpleType.uint32),
+ ];
+}
class ContainedDeclarations extends bindings.Struct {
@@ -2271,6 +2956,29 @@ class ContainedDeclarations extends bindings.Struct {
return map;
}
}
+MojomStruct _mojom_types_ContainedDeclarations__() {
+ return new MojomStruct()
+ ..declData = (new DeclarationData()
+ ..shortName = 'ContainedDeclarations'
+ ..fullIdentifier = 'mojo.bindings.types.ContainedDeclarations')
+ ..fields = <StructField>[
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Enums')
+ ..type = (new Type()..arrayType = (new ArrayType()
+ ..nullable = true
+
+ ..elementType = (new Type()
+..stringType = (new StringType()..nullable = false)))),
+
+ new StructField()
+ ..declData = (new DeclarationData()..shortName = 'Constants')
+ ..type = (new Type()..arrayType = (new ArrayType()
+ ..nullable = true
+
+ ..elementType = (new Type()
+..stringType = (new StringType()..nullable = false)))),
+ ];
+}
@@ -2487,6 +3195,74 @@ class Type extends bindings.Union {
}
}
+MojomUnion _mojom_types_Type__() {
+ return new MojomUnion()
+ ..declData = (new DeclarationData()
+ ..shortName = 'Type'
+ ..fullIdentifier = 'mojo.bindings.types.Type')
+ ..fields = <UnionField>[
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'SimpleType')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_SimpleType__'
+ ..typeKey = '_mojom_types_SimpleType__'
+ ))
+ ..tag = 0,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'StringType')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_StringType__'
+ ..typeKey = '_mojom_types_StringType__'
+ ))
+ ..tag = 1,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'ArrayType')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_ArrayType__'
+ ..typeKey = '_mojom_types_ArrayType__'
+ ))
+ ..tag = 2,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'MapType')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_MapType__'
+ ..typeKey = '_mojom_types_MapType__'
+ ))
+ ..tag = 3,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'HandleType')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_HandleType__'
+ ..typeKey = '_mojom_types_HandleType__'
+ ))
+ ..tag = 4,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'TypeReference')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_TypeReference__'
+ ..typeKey = '_mojom_types_TypeReference__'
+ ))
+ ..tag = 5,
+ ];
+}
+
enum UserDefinedTypeTag {
enumType,
@@ -2646,6 +3422,54 @@ class UserDefinedType extends bindings.Union {
}
}
+MojomUnion _mojom_types_UserDefinedType__() {
+ return new MojomUnion()
+ ..declData = (new DeclarationData()
+ ..shortName = 'UserDefinedType'
+ ..fullIdentifier = 'mojo.bindings.types.UserDefinedType')
+ ..fields = <UnionField>[
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'EnumType')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_MojomEnum__'
+ ..typeKey = '_mojom_types_MojomEnum__'
+ ))
+ ..tag = 0,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'StructType')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_MojomStruct__'
+ ..typeKey = '_mojom_types_MojomStruct__'
+ ))
+ ..tag = 1,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'UnionType')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_MojomUnion__'
+ ..typeKey = '_mojom_types_MojomUnion__'
+ ))
+ ..tag = 2,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'InterfaceType')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_MojomInterface__'
+ ..typeKey = '_mojom_types_MojomInterface__'
+ ))
+ ..tag = 3,
+ ];
+}
+
enum DefaultFieldValueTag {
value,
@@ -2751,6 +3575,34 @@ class DefaultFieldValue extends bindings.Union {
}
}
+MojomUnion _mojom_types_DefaultFieldValue__() {
+ return new MojomUnion()
+ ..declData = (new DeclarationData()
+ ..shortName = 'DefaultFieldValue'
+ ..fullIdentifier = 'mojo.bindings.types.DefaultFieldValue')
+ ..fields = <UnionField>[
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'Value')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_Value__'
+ ..typeKey = '_mojom_types_Value__'
+ ))
+ ..tag = 0,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'DefaultKeyword')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_DefaultKeyword__'
+ ..typeKey = '_mojom_types_DefaultKeyword__'
+ ))
+ ..tag = 1,
+ ];
+}
+
enum ValueTag {
literalValue,
@@ -2885,6 +3737,44 @@ class Value extends bindings.Union {
}
}
+MojomUnion _mojom_types_Value__() {
+ return new MojomUnion()
+ ..declData = (new DeclarationData()
+ ..shortName = 'Value'
+ ..fullIdentifier = 'mojo.bindings.types.Value')
+ ..fields = <UnionField>[
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'LiteralValue')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_LiteralValue__'
+ ..typeKey = '_mojom_types_LiteralValue__'
+ ))
+ ..tag = 0,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'UserValueReference')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_UserValueReference__'
+ ..typeKey = '_mojom_types_UserValueReference__'
+ ))
+ ..tag = 1,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'BuiltinValue')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_BuiltinConstantValue__'
+ ..typeKey = '_mojom_types_BuiltinConstantValue__'
+ ))
+ ..tag = 2,
+ ];
+}
+
enum LiteralValueTag {
boolValue,
@@ -3240,6 +4130,75 @@ class LiteralValue extends bindings.Union {
}
}
+MojomUnion _mojom_types_LiteralValue__() {
+ return new MojomUnion()
+ ..declData = (new DeclarationData()
+ ..shortName = 'LiteralValue'
+ ..fullIdentifier = 'mojo.bindings.types.LiteralValue')
+ ..fields = <UnionField>[
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'BoolValue')
+ ..type = (new Type()..simpleType = SimpleType.bool)
+ ..tag = 0,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'DoubleValue')
+ ..type = (new Type()..simpleType = SimpleType.double)
+ ..tag = 1,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'FloatValue')
+ ..type = (new Type()..simpleType = SimpleType.float)
+ ..tag = 2,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'Int8Value')
+ ..type = (new Type()..simpleType = SimpleType.int8)
+ ..tag = 3,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'Int16Value')
+ ..type = (new Type()..simpleType = SimpleType.int16)
+ ..tag = 4,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'Int32Value')
+ ..type = (new Type()..simpleType = SimpleType.int32)
+ ..tag = 5,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'Int64Value')
+ ..type = (new Type()..simpleType = SimpleType.int64)
+ ..tag = 6,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'StringValue')
+ ..type = (new Type()
+..stringType = (new StringType()..nullable = false))
+ ..tag = 7,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'Uint8Value')
+ ..type = (new Type()..simpleType = SimpleType.uint8)
+ ..tag = 8,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'Uint16Value')
+ ..type = (new Type()..simpleType = SimpleType.uint16)
+ ..tag = 9,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'Uint32Value')
+ ..type = (new Type()..simpleType = SimpleType.uint32)
+ ..tag = 10,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'Uint64Value')
+ ..type = (new Type()..simpleType = SimpleType.uint64)
+ ..tag = 11,
+ ];
+}
+
enum UserDefinedValueTag {
enumValue,
@@ -3347,3 +4306,141 @@ class UserDefinedValue extends bindings.Union {
}
}
+MojomUnion _mojom_types_UserDefinedValue__() {
+ return new MojomUnion()
+ ..declData = (new DeclarationData()
+ ..shortName = 'UserDefinedValue'
+ ..fullIdentifier = 'mojo.bindings.types.UserDefinedValue')
+ ..fields = <UnionField>[
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'EnumValue')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_EnumValue__'
+ ..typeKey = '_mojom_types_EnumValue__'
+ ))
+ ..tag = 0,
+
+ new UnionField()
+ ..declData = (new DeclarationData()..shortName = 'DeclaredConstant')
+ ..type = (new Type()
+ ..typeReference = (new TypeReference()
+
+ ..identifier = '_mojom_types_DeclaredConstant__'
+ ..typeKey = '_mojom_types_DeclaredConstant__'
+ ))
+ ..tag = 1,
+ ];
+}
+
+
+
+
+
+
+
+Map<String, UserDefinedType> _initDescriptions() {
+ var map = new HashMap<String, UserDefinedType>();
+map["_mojom_types_SimpleType__"] =
+ new UserDefinedType()
+ ..enumType = _mojom_types_SimpleType__();
+map["_mojom_types_BuiltinConstantValue__"] =
+ new UserDefinedType()
+ ..enumType = _mojom_types_BuiltinConstantValue__();
+map["_mojom_types_StringType__"] =
+ new UserDefinedType()
+ ..structType = _mojom_types_StringType__();
+map["_mojom_types_HandleType__"] =
+ new UserDefinedType()
+ ..structType = _mojom_types_HandleType__();
+ map["_mojom_types_Kind__"] =
+ new UserDefinedType()
+ ..enumType = _mojom_types_Kind__();
+map["_mojom_types_ArrayType__"] =
+ new UserDefinedType()
+ ..structType = _mojom_types_ArrayType__();
+map["_mojom_types_MapType__"] =
+ new UserDefinedType()
+ ..structType = _mojom_types_MapType__();
+map["_mojom_types_TypeReference__"] =
+ new UserDefinedType()
+ ..structType = _mojom_types_TypeReference__();
+map["_mojom_types_StructField__"] =
+ new UserDefinedType()
+ ..structType = _mojom_types_StructField__();
+map["_mojom_types_DefaultKeyword__"] =
+ new UserDefinedType()
+ ..structType = _mojom_types_DefaultKeyword__();
+map["_mojom_types_StructVersion__"] =
+ new UserDefinedType()
+ ..structType = _mojom_types_StructVersion__();
+map["_mojom_types_MojomStruct__"] =
+ new UserDefinedType()
+ ..structType = _mojom_types_MojomStruct__();
+map["_mojom_types_UnionField__"] =
+ new UserDefinedType()
+ ..structType = _mojom_types_UnionField__();
+map["_mojom_types_MojomUnion__"] =
+ new UserDefinedType()
+ ..structType = _mojom_types_MojomUnion__();
+map["_mojom_types_EnumValue__"] =
+ new UserDefinedType()
+ ..structType = _mojom_types_EnumValue__();
+map["_mojom_types_MojomEnum__"] =
+ new UserDefinedType()
+ ..structType = _mojom_types_MojomEnum__();
+map["_mojom_types_MojomMethod__"] =
+ new UserDefinedType()
+ ..structType = _mojom_types_MojomMethod__();
+map["_mojom_types_MojomInterface__"] =
+ new UserDefinedType()
+ ..structType = _mojom_types_MojomInterface__();
+map["_mojom_types_UserValueReference__"] =
+ new UserDefinedType()
+ ..structType = _mojom_types_UserValueReference__();
+map["_mojom_types_DeclaredConstant__"] =
+ new UserDefinedType()
+ ..structType = _mojom_types_DeclaredConstant__();
+map["_mojom_types_Attribute__"] =
+ new UserDefinedType()
+ ..structType = _mojom_types_Attribute__();
+map["_mojom_types_DeclarationData__"] =
+ new UserDefinedType()
+ ..structType = _mojom_types_DeclarationData__();
+map["_mojom_types_SourceFileInfo__"] =
+ new UserDefinedType()
+ ..structType = _mojom_types_SourceFileInfo__();
+map["_mojom_types_ContainedDeclarations__"] =
+ new UserDefinedType()
+ ..structType = _mojom_types_ContainedDeclarations__();
+map["_mojom_types_Type__"] =
+ new UserDefinedType()
+ ..unionType = _mojom_types_Type__();
+map["_mojom_types_UserDefinedType__"] =
+ new UserDefinedType()
+ ..unionType = _mojom_types_UserDefinedType__();
+map["_mojom_types_DefaultFieldValue__"] =
+ new UserDefinedType()
+ ..unionType = _mojom_types_DefaultFieldValue__();
+map["_mojom_types_Value__"] =
+ new UserDefinedType()
+ ..unionType = _mojom_types_Value__();
+map["_mojom_types_LiteralValue__"] =
+ new UserDefinedType()
+ ..unionType = _mojom_types_LiteralValue__();
+map["_mojom_types_UserDefinedValue__"] =
+ new UserDefinedType()
+ ..unionType = _mojom_types_UserDefinedValue__();
+
+ return map;
+}
+
+var _MojomDesc;
+Map<String, UserDefinedType> getAllMojomTypeDefinitions() {
+ if (_MojomDesc == null) {
+ _MojomDesc = _initDescriptions();
+ }
+ return _MojomDesc;
+}
+

Powered by Google App Engine
This is Rietveld 408576698