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

Unified Diff: mojo/dart/packages/mojo_services/lib/mojo/animations.mojom.dart

Issue 1433183002: Generate Mojom Types for Dart (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Simplify identifier_store for Go and Dart Created 5 years, 1 month 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_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 7ae0808b349e6ca215f4c489aacf3221ac8726d4..f76256f2f6e42356fa8fd2814652888eae049747 100644
--- a/mojo/dart/packages/mojo_services/lib/mojo/animations.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/mojo/animations.mojom.dart
@@ -8,6 +8,8 @@ import 'dart:async';
import 'package:mojo/bindings.dart' as bindings;
import 'package:mojo/core.dart' as core;
+import 'package:mojo/mojo/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 LINEAR = const AnimationTweenType._(0);
@@ -67,11 +69,31 @@ class AnimationTweenType extends bindings.MojoEnum {
return 'AnimationTweenType.EASE_OUT';
case EASE_IN_OUT:
return 'AnimationTweenType.EASE_IN_OUT';
+ default:
+ return null;
}
}
int toJson() => value;
}
+
+mojom_types.MojomEnum _animations_AnimationTweenType__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "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 = "EASE_IN")
+ ..enumTypeKey = '_animations_AnimationTweenType__'
+ ..intValue = 1,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "EASE_OUT")
+ ..enumTypeKey = '_animations_AnimationTweenType__'
+ ..intValue = 2,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "EASE_IN_OUT")
+ ..enumTypeKey = '_animations_AnimationTweenType__'
+ ..intValue = 3,];
+}
class AnimationProperty extends bindings.MojoEnum {
static const NONE = const AnimationProperty._(0);
static const OPACITY = const AnimationProperty._(1);
@@ -123,12 +145,29 @@ class AnimationProperty extends bindings.MojoEnum {
return 'AnimationProperty.OPACITY';
case TRANSFORM:
return 'AnimationProperty.TRANSFORM';
+ default:
+ return null;
}
}
int toJson() => value;
}
+mojom_types.MojomEnum _animations_AnimationProperty__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "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 {
@@ -207,6 +246,25 @@ class AnimationValue extends bindings.Struct {
}
}
+mojom_types.MojomStruct _animations_AnimationValue__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -320,6 +378,56 @@ class AnimationElement extends bindings.Struct {
}
}
+mojom_types.MojomStruct _animations_AnimationElement__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -413,6 +521,26 @@ class AnimationSequence extends bindings.Struct {
}
}
+mojom_types.MojomStruct _animations_AnimationSequence__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -506,4 +634,102 @@ class AnimationGroup extends bindings.Struct {
}
}
+mojom_types.MojomStruct _animations_AnimationGroup__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = '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__'
+ )))),
+ ];
+}
+
+
+
+
+
+
+
+
+
+var _MojomDesc__ = _initDescriptions();
+
+Map<String, mojom_types.UserDefinedType> _initDescriptions() {
+ var map = new Map<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;
+}
+
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
+ return _MojomDesc__;
+}
+

Powered by Google App Engine
This is Rietveld 408576698