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

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

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Merge with master 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/quads.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/quads.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/quads.mojom.dart
index e1968c1f4c617ecf59004cf92be00937bae20b26..7a4db5e24292eed33cab50bff5eec31d66b07bd4 100644
--- a/mojo/dart/packages/mojo_services/lib/mojo/quads.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/mojo/quads.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/bindings/types/mojom_types.mojom.dart' as mojom_types;
+
import 'package:mojo_services/mojo/geometry.mojom.dart' as geometry_mojom;
import 'package:mojo_services/mojo/surface_id.mojom.dart' as surface_id_mojom;
@@ -62,12 +64,16 @@ class YuvColorSpace extends bindings.MojoEnum {
return 'YuvColorSpace.rec709';
case jpeg:
return 'YuvColorSpace.jpeg';
+ default:
+ return null;
}
}
int toJson() => mojoEnumValue;
}
+
+
class Material extends bindings.MojoEnum {
static const Material checkerboard = const Material._(1);
static const Material debugBorder = const Material._(2);
@@ -175,12 +181,16 @@ class Material extends bindings.MojoEnum {
return 'Material.tiledContent';
case yuvVideoContent:
return 'Material.yuvVideoContent';
+ default:
+ return null;
}
}
int toJson() => mojoEnumValue;
}
+
+
class SkXfermode extends bindings.MojoEnum {
static const SkXfermode kClearMode = const SkXfermode._(0);
static const SkXfermode kSrcMode = const SkXfermode._(1);
@@ -435,6 +445,8 @@ class SkXfermode extends bindings.MojoEnum {
return 'SkXfermode.kLuminosityMode';
case kLastMode:
return 'SkXfermode.kLastMode';
+ default:
+ return null;
}
}
@@ -443,6 +455,8 @@ class SkXfermode extends bindings.MojoEnum {
+
+
class Color extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -510,6 +524,8 @@ class Color extends bindings.Struct {
}
+
+
class CheckerboardQuadState extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(8, 0)
@@ -568,6 +584,8 @@ class CheckerboardQuadState extends bindings.Struct {
}
+
+
class DebugBorderQuadState extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(8, 0)
@@ -626,6 +644,8 @@ class DebugBorderQuadState extends bindings.Struct {
}
+
+
class IoSurfaceContentQuadState extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(8, 0)
@@ -684,6 +704,8 @@ class IoSurfaceContentQuadState extends bindings.Struct {
}
+
+
class RenderPassId extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -760,6 +782,8 @@ class RenderPassId extends bindings.Struct {
}
+
+
class RenderPassQuadState extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(48, 0)
@@ -867,6 +891,8 @@ class RenderPassQuadState extends bindings.Struct {
}
+
+
class SolidColorQuadState extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(24, 0)
@@ -944,6 +970,8 @@ class SolidColorQuadState extends bindings.Struct {
}
+
+
class SurfaceQuadState extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -1012,6 +1040,8 @@ class SurfaceQuadState extends bindings.Struct {
}
+
+
class TextureQuadState extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(48, 0)
@@ -1145,6 +1175,8 @@ class TextureQuadState extends bindings.Struct {
}
+
+
class TileQuadState extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(32, 0)
@@ -1250,6 +1282,8 @@ class TileQuadState extends bindings.Struct {
}
+
+
class StreamVideoQuadState extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(8, 0)
@@ -1308,6 +1342,8 @@ class StreamVideoQuadState extends bindings.Struct {
}
+
+
class YuvVideoQuadState extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(40, 0)
@@ -1425,6 +1461,8 @@ class YuvVideoQuadState extends bindings.Struct {
}
+
+
class Quad extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(128, 0)
@@ -1644,6 +1682,8 @@ class Quad extends bindings.Struct {
}
+
+
class SharedQuadState extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(56, 0)
@@ -1782,6 +1822,8 @@ class SharedQuadState extends bindings.Struct {
}
+
+
class Pass extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(56, 0)
@@ -1940,3 +1982,7 @@ class Pass extends bindings.Struct {
}
+
+
+
+

Powered by Google App Engine
This is Rietveld 408576698