Index: mojo/dart/packages/mojo_services/lib/mojo/animations.mojom.dart |
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/animations.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/animations.mojom.dart |
index 4040c28fb2a990cc3861a7cab53640f4d95532ef..9a71f4eb1859d442a8228ca652393f5628937906 100644 |
--- a/mojo/dart/packages/mojo_services/lib/mojo/animations.mojom.dart |
+++ b/mojo/dart/packages/mojo_services/lib/mojo/animations.mojom.dart |
@@ -5,11 +5,13 @@ |
library animations_mojom; |
import 'dart:async'; |
+import 'dart:collection'; |
import 'package:mojo/bindings.dart' as bindings; |
import 'package:mojo/core.dart' as core; |
-import 'package:mojo_services/mojo/geometry.mojom.dart' as geometry_mojom; |
+import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; |
+import 'package:mojo_services/mojo/geometry.mojom.dart' as geometry_mojom; |
class AnimationTweenType extends bindings.MojoEnum { |
static const AnimationTweenType linear = const AnimationTweenType._(0); |
static const AnimationTweenType easeIn = const AnimationTweenType._(1); |
@@ -68,12 +70,33 @@ class AnimationTweenType extends bindings.MojoEnum { |
return 'AnimationTweenType.easeOut'; |
case easeInOut: |
return 'AnimationTweenType.easeInOut'; |
+ default: |
+ return null; |
} |
} |
int toJson() => mojoEnumValue; |
} |
+mojom_types.MojomEnum _animations_AnimationTweenType__() { |
+ return new mojom_types.MojomEnum() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'AnimationTweenType' |
+ ..fullIdentifier = 'mojo.AnimationTweenType') |
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Linear') |
+ ..enumTypeKey = '_animations_AnimationTweenType__' |
+ ..intValue = 0,new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'EaseIn') |
+ ..enumTypeKey = '_animations_AnimationTweenType__' |
+ ..intValue = 1,new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'EaseOut') |
+ ..enumTypeKey = '_animations_AnimationTweenType__' |
+ ..intValue = 2,new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'EaseInOut') |
+ ..enumTypeKey = '_animations_AnimationTweenType__' |
+ ..intValue = 3,]; |
+} |
class AnimationProperty extends bindings.MojoEnum { |
static const AnimationProperty none = const AnimationProperty._(0); |
static const AnimationProperty opacity = const AnimationProperty._(1); |
@@ -125,12 +148,31 @@ class AnimationProperty extends bindings.MojoEnum { |
return 'AnimationProperty.opacity'; |
case transform: |
return 'AnimationProperty.transform'; |
+ default: |
+ return null; |
} |
} |
int toJson() => mojoEnumValue; |
} |
+mojom_types.MojomEnum _animations_AnimationProperty__() { |
+ return new mojom_types.MojomEnum() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'AnimationProperty' |
+ ..fullIdentifier = 'mojo.AnimationProperty') |
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'None') |
+ ..enumTypeKey = '_animations_AnimationProperty__' |
+ ..intValue = 0,new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Opacity') |
+ ..enumTypeKey = '_animations_AnimationProperty__' |
+ ..intValue = 1,new mojom_types.EnumValue() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Transform') |
+ ..enumTypeKey = '_animations_AnimationProperty__' |
+ ..intValue = 2,]; |
+} |
+ |
class AnimationValue extends bindings.Struct { |
@@ -208,6 +250,26 @@ class AnimationValue extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _animations_AnimationValue__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'AnimationValue' |
+ ..fullIdentifier = 'mojo.AnimationValue') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'FloatValue') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.float), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Transform') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_geometry_Transform__' |
+ ..typeKey = '_geometry_Transform__' |
+ )), |
+ ]; |
+} |
class AnimationElement extends bindings.Struct { |
@@ -321,6 +383,57 @@ class AnimationElement extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _animations_AnimationElement__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'AnimationElement' |
+ ..fullIdentifier = 'mojo.AnimationElement') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Property') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_animations_AnimationProperty__' |
+ ..typeKey = '_animations_AnimationProperty__' |
+ )), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Duration') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.int64), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'TweenType') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_animations_AnimationTweenType__' |
+ ..typeKey = '_animations_AnimationTweenType__' |
+ )), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'StartValue') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ ..nullable = true |
+ |
+ |
+ ..identifier = '_animations_AnimationValue__' |
+ ..typeKey = '_animations_AnimationValue__' |
+ )), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'TargetValue') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ ..nullable = true |
+ |
+ |
+ ..identifier = '_animations_AnimationValue__' |
+ ..typeKey = '_animations_AnimationValue__' |
+ )), |
+ ]; |
+} |
class AnimationSequence extends bindings.Struct { |
@@ -414,6 +527,27 @@ class AnimationSequence extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _animations_AnimationSequence__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'AnimationSequence' |
+ ..fullIdentifier = 'mojo.AnimationSequence') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'CycleCount') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Elements') |
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType() |
+ ..elementType = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_animations_AnimationElement__' |
+ ..typeKey = '_animations_AnimationElement__' |
+ )))), |
+ ]; |
+} |
class AnimationGroup extends bindings.Struct { |
@@ -507,5 +641,67 @@ class AnimationGroup extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _animations_AnimationGroup__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'AnimationGroup' |
+ ..fullIdentifier = 'mojo.AnimationGroup') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ViewId') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Sequences') |
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType() |
+ ..elementType = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_animations_AnimationSequence__' |
+ ..typeKey = '_animations_AnimationSequence__' |
+ )))), |
+ ]; |
+} |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
+ var map = new HashMap<String, mojom_types.UserDefinedType>(); |
+map["_animations_AnimationTweenType__"] = |
+ new mojom_types.UserDefinedType() |
+ ..enumType = _animations_AnimationTweenType__(); |
+map["_animations_AnimationProperty__"] = |
+ new mojom_types.UserDefinedType() |
+ ..enumType = _animations_AnimationProperty__(); |
+map["_animations_AnimationValue__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _animations_AnimationValue__(); |
+map["_animations_AnimationElement__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _animations_AnimationElement__(); |
+map["_animations_AnimationSequence__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _animations_AnimationSequence__(); |
+map["_animations_AnimationGroup__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _animations_AnimationGroup__(); |
+geometry_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) { |
+ map[s] = udt; |
+}); |
+ |
+ return map; |
+} |
+var _MojomDesc; |
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
+ if (_MojomDesc == null) { |
+ _MojomDesc = _initDescriptions(); |
+ } |
+ return _MojomDesc; |
+} |