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

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

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Move and Standardize Mojom Type Functions 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_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..d702e558bada8530d744b9261c72144732d19aef 100644
--- a/mojo/dart/packages/mojo_services/lib/mojo/animations.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/mojo/animations.mojom.dart
@@ -8,8 +8,9 @@ import 'dart:async';
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 +69,15 @@ class AnimationTweenType extends bindings.MojoEnum {
return 'AnimationTweenType.easeOut';
case easeInOut:
return 'AnimationTweenType.easeInOut';
+ default:
+ return null;
}
}
int toJson() => mojoEnumValue;
}
+
class AnimationProperty extends bindings.MojoEnum {
static const AnimationProperty none = const AnimationProperty._(0);
static const AnimationProperty opacity = const AnimationProperty._(1);
@@ -125,6 +129,8 @@ class AnimationProperty extends bindings.MojoEnum {
return 'AnimationProperty.opacity';
case transform:
return 'AnimationProperty.transform';
+ default:
+ return null;
}
}
@@ -133,6 +139,8 @@ class AnimationProperty extends bindings.MojoEnum {
+
+
class AnimationValue extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(24, 0)
@@ -210,6 +218,8 @@ class AnimationValue extends bindings.Struct {
}
+
+
class AnimationElement extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(40, 0)
@@ -323,6 +333,8 @@ class AnimationElement extends bindings.Struct {
}
+
+
class AnimationSequence extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(24, 0)
@@ -416,6 +428,8 @@ class AnimationSequence extends bindings.Struct {
}
+
+
class AnimationGroup extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(24, 0)
@@ -509,3 +523,8 @@ class AnimationGroup extends bindings.Struct {
}
+
+
+
+
+

Powered by Google App Engine
This is Rietveld 408576698