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

Unified Diff: mojo/dart/packages/mojo_services/lib/mojo/media/media_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_services/lib/mojo/media/media_types.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/mojo/media/media_types.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/media/media_types.mojom.dart
index d2c0b8dec639b195d5d75eacb640d4b69a79e555..4baef4471d09fe76ae892ddb1124ff2813cb0798 100644
--- a/mojo/dart/packages/mojo_services/lib/mojo/media/media_types.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/mojo/media/media_types.mojom.dart
@@ -5,9 +5,11 @@
library media_types_mojom;
import 'dart:async';
+import 'dart:collection';
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;
class MediaTypeScheme extends bindings.MojoEnum {
static const MediaTypeScheme unknown = const MediaTypeScheme._(0);
@@ -130,12 +132,60 @@ class MediaTypeScheme extends bindings.MojoEnum {
return 'MediaTypeScheme.compressedAudio';
case video:
return 'MediaTypeScheme.video';
+ default:
+ return null;
}
}
int toJson() => mojoEnumValue;
}
+mojom_types.MojomEnum _media_types_MediaTypeScheme__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'MediaTypeScheme'
+ ..fullIdentifier = 'mojo.media.MediaTypeScheme')
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Unknown')
+ ..enumTypeKey = '_media_types_MediaTypeScheme__'
+ ..intValue = 0,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'None')
+ ..enumTypeKey = '_media_types_MediaTypeScheme__'
+ ..intValue = 1,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'AnyElementary')
+ ..enumTypeKey = '_media_types_MediaTypeScheme__'
+ ..intValue = 2,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'AnyAudio')
+ ..enumTypeKey = '_media_types_MediaTypeScheme__'
+ ..intValue = 3,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'AnyVideo')
+ ..enumTypeKey = '_media_types_MediaTypeScheme__'
+ ..intValue = 4,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'AnySubpicture')
+ ..enumTypeKey = '_media_types_MediaTypeScheme__'
+ ..intValue = 5,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'AnyText')
+ ..enumTypeKey = '_media_types_MediaTypeScheme__'
+ ..intValue = 6,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'AnyMultiplexed')
+ ..enumTypeKey = '_media_types_MediaTypeScheme__'
+ ..intValue = 7,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Any')
+ ..enumTypeKey = '_media_types_MediaTypeScheme__'
+ ..intValue = 8,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Multiplexed')
+ ..enumTypeKey = '_media_types_MediaTypeScheme__'
+ ..intValue = 9,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Lpcm')
+ ..enumTypeKey = '_media_types_MediaTypeScheme__'
+ ..intValue = 10,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'CompressedAudio')
+ ..enumTypeKey = '_media_types_MediaTypeScheme__'
+ ..intValue = 11,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Video')
+ ..enumTypeKey = '_media_types_MediaTypeScheme__'
+ ..intValue = 12,];
+}
class LpcmSampleFormat extends bindings.MojoEnum {
static const LpcmSampleFormat unknown = const LpcmSampleFormat._(0);
static const LpcmSampleFormat any = const LpcmSampleFormat._(1);
@@ -208,12 +258,39 @@ class LpcmSampleFormat extends bindings.MojoEnum {
return 'LpcmSampleFormat.signed24In32';
case float:
return 'LpcmSampleFormat.float';
+ default:
+ return null;
}
}
int toJson() => mojoEnumValue;
}
+mojom_types.MojomEnum _media_types_LpcmSampleFormat__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'LpcmSampleFormat'
+ ..fullIdentifier = 'mojo.media.LpcmSampleFormat')
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Unknown')
+ ..enumTypeKey = '_media_types_LpcmSampleFormat__'
+ ..intValue = 0,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Any')
+ ..enumTypeKey = '_media_types_LpcmSampleFormat__'
+ ..intValue = 1,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Unsigned8')
+ ..enumTypeKey = '_media_types_LpcmSampleFormat__'
+ ..intValue = 2,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Signed16')
+ ..enumTypeKey = '_media_types_LpcmSampleFormat__'
+ ..intValue = 3,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Signed24In32')
+ ..enumTypeKey = '_media_types_LpcmSampleFormat__'
+ ..intValue = 4,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Float')
+ ..enumTypeKey = '_media_types_LpcmSampleFormat__'
+ ..intValue = 5,];
+}
class AudioEncoding extends bindings.MojoEnum {
static const AudioEncoding unknown = const AudioEncoding._(0);
static const AudioEncoding any = const AudioEncoding._(1);
@@ -265,12 +342,30 @@ class AudioEncoding extends bindings.MojoEnum {
return 'AudioEncoding.any';
case vorbis:
return 'AudioEncoding.vorbis';
+ default:
+ return null;
}
}
int toJson() => mojoEnumValue;
}
+mojom_types.MojomEnum _media_types_AudioEncoding__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'AudioEncoding'
+ ..fullIdentifier = 'mojo.media.AudioEncoding')
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Unknown')
+ ..enumTypeKey = '_media_types_AudioEncoding__'
+ ..intValue = 0,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Any')
+ ..enumTypeKey = '_media_types_AudioEncoding__'
+ ..intValue = 1,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Vorbis')
+ ..enumTypeKey = '_media_types_AudioEncoding__'
+ ..intValue = 2,];
+}
class VideoEncoding extends bindings.MojoEnum {
static const VideoEncoding unknown = const VideoEncoding._(0);
static const VideoEncoding any = const VideoEncoding._(1);
@@ -329,12 +424,33 @@ class VideoEncoding extends bindings.MojoEnum {
return 'VideoEncoding.theora';
case vp8:
return 'VideoEncoding.vp8';
+ default:
+ return null;
}
}
int toJson() => mojoEnumValue;
}
+mojom_types.MojomEnum _media_types_VideoEncoding__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'VideoEncoding'
+ ..fullIdentifier = 'mojo.media.VideoEncoding')
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Unknown')
+ ..enumTypeKey = '_media_types_VideoEncoding__'
+ ..intValue = 0,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Any')
+ ..enumTypeKey = '_media_types_VideoEncoding__'
+ ..intValue = 1,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Theora')
+ ..enumTypeKey = '_media_types_VideoEncoding__'
+ ..intValue = 2,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Vp8')
+ ..enumTypeKey = '_media_types_VideoEncoding__'
+ ..intValue = 3,];
+}
class VideoProfile extends bindings.MojoEnum {
static const VideoProfile unknown = const VideoProfile._(0);
static const VideoProfile notApplicable = const VideoProfile._(1);
@@ -456,12 +572,60 @@ class VideoProfile extends bindings.MojoEnum {
return 'VideoProfile.h264StereoHigh';
case h264MultiviewHigh:
return 'VideoProfile.h264MultiviewHigh';
+ default:
+ return null;
}
}
int toJson() => mojoEnumValue;
}
+mojom_types.MojomEnum _media_types_VideoProfile__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'VideoProfile'
+ ..fullIdentifier = 'mojo.media.VideoProfile')
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Unknown')
+ ..enumTypeKey = '_media_types_VideoProfile__'
+ ..intValue = 0,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'NotApplicable')
+ ..enumTypeKey = '_media_types_VideoProfile__'
+ ..intValue = 1,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'H264Baseline')
+ ..enumTypeKey = '_media_types_VideoProfile__'
+ ..intValue = 2,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'H264Main')
+ ..enumTypeKey = '_media_types_VideoProfile__'
+ ..intValue = 3,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'H264Extended')
+ ..enumTypeKey = '_media_types_VideoProfile__'
+ ..intValue = 4,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'H264High')
+ ..enumTypeKey = '_media_types_VideoProfile__'
+ ..intValue = 5,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'H264High10')
+ ..enumTypeKey = '_media_types_VideoProfile__'
+ ..intValue = 6,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'H264High422')
+ ..enumTypeKey = '_media_types_VideoProfile__'
+ ..intValue = 7,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'H264High444Predictive')
+ ..enumTypeKey = '_media_types_VideoProfile__'
+ ..intValue = 8,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'H264ScalableBaseline')
+ ..enumTypeKey = '_media_types_VideoProfile__'
+ ..intValue = 9,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'H264ScalableHigh')
+ ..enumTypeKey = '_media_types_VideoProfile__'
+ ..intValue = 10,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'H264StereoHigh')
+ ..enumTypeKey = '_media_types_VideoProfile__'
+ ..intValue = 11,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'H264MultiviewHigh')
+ ..enumTypeKey = '_media_types_VideoProfile__'
+ ..intValue = 12,];
+}
class PixelFormat extends bindings.MojoEnum {
static const PixelFormat unknown = const PixelFormat._(0);
static const PixelFormat i420 = const PixelFormat._(1);
@@ -604,12 +768,69 @@ class PixelFormat extends bindings.MojoEnum {
return 'PixelFormat.mjpeg';
case mt21:
return 'PixelFormat.mt21';
+ default:
+ return null;
}
}
int toJson() => mojoEnumValue;
}
+mojom_types.MojomEnum _media_types_PixelFormat__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'PixelFormat'
+ ..fullIdentifier = 'mojo.media.PixelFormat')
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Unknown')
+ ..enumTypeKey = '_media_types_PixelFormat__'
+ ..intValue = 0,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'I420')
+ ..enumTypeKey = '_media_types_PixelFormat__'
+ ..intValue = 1,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Yv12')
+ ..enumTypeKey = '_media_types_PixelFormat__'
+ ..intValue = 2,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Yv16')
+ ..enumTypeKey = '_media_types_PixelFormat__'
+ ..intValue = 3,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Yv12A')
+ ..enumTypeKey = '_media_types_PixelFormat__'
+ ..intValue = 4,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Yv24')
+ ..enumTypeKey = '_media_types_PixelFormat__'
+ ..intValue = 5,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Nv12')
+ ..enumTypeKey = '_media_types_PixelFormat__'
+ ..intValue = 6,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Nv21')
+ ..enumTypeKey = '_media_types_PixelFormat__'
+ ..intValue = 7,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Uyvy')
+ ..enumTypeKey = '_media_types_PixelFormat__'
+ ..intValue = 8,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Yuy2')
+ ..enumTypeKey = '_media_types_PixelFormat__'
+ ..intValue = 9,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Argb')
+ ..enumTypeKey = '_media_types_PixelFormat__'
+ ..intValue = 10,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Xrgb')
+ ..enumTypeKey = '_media_types_PixelFormat__'
+ ..intValue = 11,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Rgb24')
+ ..enumTypeKey = '_media_types_PixelFormat__'
+ ..intValue = 12,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Rgb32')
+ ..enumTypeKey = '_media_types_PixelFormat__'
+ ..intValue = 13,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Mjpeg')
+ ..enumTypeKey = '_media_types_PixelFormat__'
+ ..intValue = 14,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Mt21')
+ ..enumTypeKey = '_media_types_PixelFormat__'
+ ..intValue = 15,];
+}
class ColorSpace extends bindings.MojoEnum {
static const ColorSpace unknown = const ColorSpace._(0);
static const ColorSpace notApplicable = const ColorSpace._(1);
@@ -675,12 +896,37 @@ class ColorSpace extends bindings.MojoEnum {
return 'ColorSpace.hdRec709';
case sdRec601:
return 'ColorSpace.sdRec601';
+ default:
+ return null;
}
}
int toJson() => mojoEnumValue;
}
+mojom_types.MojomEnum _media_types_ColorSpace__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'ColorSpace'
+ ..fullIdentifier = 'mojo.media.ColorSpace')
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Unknown')
+ ..enumTypeKey = '_media_types_ColorSpace__'
+ ..intValue = 0,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'NotApplicable')
+ ..enumTypeKey = '_media_types_ColorSpace__'
+ ..intValue = 1,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Jpeg')
+ ..enumTypeKey = '_media_types_ColorSpace__'
+ ..intValue = 2,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'HdRec709')
+ ..enumTypeKey = '_media_types_ColorSpace__'
+ ..intValue = 3,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SdRec601')
+ ..enumTypeKey = '_media_types_ColorSpace__'
+ ..intValue = 4,];
+}
+
class MediaType extends bindings.Struct {
@@ -761,6 +1007,33 @@ class MediaType extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _media_types_MediaType__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'MediaType'
+ ..fullIdentifier = 'mojo.media.MediaType')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Scheme')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_MediaTypeScheme__'
+ ..typeKey = '_media_types_MediaTypeScheme__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Details')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_media_types_MediaTypeDetails__'
+ ..typeKey = '_media_types_MediaTypeDetails__'
+ )),
+ ];
+}
class MediaTypeSet extends bindings.Struct {
@@ -841,6 +1114,33 @@ class MediaTypeSet extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _media_types_MediaTypeSet__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'MediaTypeSet'
+ ..fullIdentifier = 'mojo.media.MediaTypeSet')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Scheme')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_MediaTypeScheme__'
+ ..typeKey = '_media_types_MediaTypeScheme__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Details')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_media_types_MediaTypeSetDetails__'
+ ..typeKey = '_media_types_MediaTypeSetDetails__'
+ )),
+ ];
+}
class LpcmMediaTypeDetails extends bindings.Struct {
@@ -930,6 +1230,30 @@ class LpcmMediaTypeDetails extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _media_types_LpcmMediaTypeDetails__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'LpcmMediaTypeDetails'
+ ..fullIdentifier = 'mojo.media.LpcmMediaTypeDetails')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SampleFormat')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_LpcmSampleFormat__'
+ ..typeKey = '_media_types_LpcmSampleFormat__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Channels')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'FramesPerSecond')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+ ];
+}
class LpcmMediaTypeSetDetails extends bindings.Struct {
@@ -1037,6 +1361,38 @@ class LpcmMediaTypeSetDetails extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _media_types_LpcmMediaTypeSetDetails__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'LpcmMediaTypeSetDetails'
+ ..fullIdentifier = 'mojo.media.LpcmMediaTypeSetDetails')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SampleFormat')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_LpcmSampleFormat__'
+ ..typeKey = '_media_types_LpcmSampleFormat__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MinChannels')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MaxChannels')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MinFramesPerSecond')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MaxFramesPerSecond')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+ ];
+}
class MultiplexedMediaTypeDetails extends bindings.Struct {
@@ -1131,6 +1487,32 @@ class MultiplexedMediaTypeDetails extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _media_types_MultiplexedMediaTypeDetails__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'MultiplexedMediaTypeDetails'
+ ..fullIdentifier = 'mojo.media.MultiplexedMediaTypeDetails')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MultiplexType')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_MediaType__'
+ ..typeKey = '_media_types_MediaType__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SubstreamTypes')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_MediaType__'
+ ..typeKey = '_media_types_MediaType__'
+ )))),
+ ];
+}
class MultiplexedMediaTypeSetDetails extends bindings.Struct {
@@ -1225,6 +1607,32 @@ class MultiplexedMediaTypeSetDetails extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _media_types_MultiplexedMediaTypeSetDetails__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'MultiplexedMediaTypeSetDetails'
+ ..fullIdentifier = 'mojo.media.MultiplexedMediaTypeSetDetails')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MultiplexTypeSet')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_MediaTypeSet__'
+ ..typeKey = '_media_types_MediaTypeSet__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SubstreamTypeSets')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_MediaTypeSet__'
+ ..typeKey = '_media_types_MediaTypeSet__'
+ )))),
+ ];
+}
class CompressedAudioMediaTypeDetails extends bindings.Struct {
@@ -1336,6 +1744,44 @@ class CompressedAudioMediaTypeDetails extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _media_types_CompressedAudioMediaTypeDetails__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'CompressedAudioMediaTypeDetails'
+ ..fullIdentifier = 'mojo.media.CompressedAudioMediaTypeDetails')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Encoding')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_AudioEncoding__'
+ ..typeKey = '_media_types_AudioEncoding__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SampleFormat')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_LpcmSampleFormat__'
+ ..typeKey = '_media_types_LpcmSampleFormat__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Channels')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'FramesPerSecond')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ExtraDataBase64')
+ ..type = (new mojom_types.Type()
+..stringType = (new mojom_types.StringType()..nullable = false)),
+ ];
+}
class CompressedAudioMediaTypeSetDetails extends bindings.Struct {
@@ -1456,6 +1902,47 @@ class CompressedAudioMediaTypeSetDetails extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _media_types_CompressedAudioMediaTypeSetDetails__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'CompressedAudioMediaTypeSetDetails'
+ ..fullIdentifier = 'mojo.media.CompressedAudioMediaTypeSetDetails')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Encoding')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_AudioEncoding__'
+ ..typeKey = '_media_types_AudioEncoding__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SampleFormat')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_LpcmSampleFormat__'
+ ..typeKey = '_media_types_LpcmSampleFormat__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MinChannels')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MaxChannels')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MinFramesPerSecond')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MaxFramesPerSecond')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+ ];
+}
class VideoMediaTypeDetails extends bindings.Struct {
@@ -1611,6 +2098,70 @@ class VideoMediaTypeDetails extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _media_types_VideoMediaTypeDetails__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'VideoMediaTypeDetails'
+ ..fullIdentifier = 'mojo.media.VideoMediaTypeDetails')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Encoding')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_VideoEncoding__'
+ ..typeKey = '_media_types_VideoEncoding__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Profile')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_VideoProfile__'
+ ..typeKey = '_media_types_VideoProfile__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'PixelFormat')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_PixelFormat__'
+ ..typeKey = '_media_types_PixelFormat__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ColorSpace')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_ColorSpace__'
+ ..typeKey = '_media_types_ColorSpace__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Width')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Height')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'CodedWidth')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'CodedHeight')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ExtraDataBase64')
+ ..type = (new mojom_types.Type()
+..stringType = (new mojom_types.StringType()..nullable = false)),
+ ];
+}
class VideoMediaTypeSetDetails extends bindings.Struct {
@@ -1718,6 +2269,38 @@ class VideoMediaTypeSetDetails extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _media_types_VideoMediaTypeSetDetails__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'VideoMediaTypeSetDetails'
+ ..fullIdentifier = 'mojo.media.VideoMediaTypeSetDetails')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Encoding')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_VideoEncoding__'
+ ..typeKey = '_media_types_VideoEncoding__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MinWidth')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MaxWidth')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MinHeight')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MaxHeight')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
+ ];
+}
@@ -1879,6 +2462,54 @@ class MediaTypeDetails extends bindings.Union {
}
}
+mojom_types.MojomUnion _media_types_MediaTypeDetails__() {
+ return new mojom_types.MojomUnion()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'MediaTypeDetails'
+ ..fullIdentifier = 'mojo.media.MediaTypeDetails')
+ ..fields = <mojom_types.UnionField>[
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Multiplexed')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_MultiplexedMediaTypeDetails__'
+ ..typeKey = '_media_types_MultiplexedMediaTypeDetails__'
+ ))
+ ..tag = 0,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Lpcm')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_LpcmMediaTypeDetails__'
+ ..typeKey = '_media_types_LpcmMediaTypeDetails__'
+ ))
+ ..tag = 1,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'CompressedAudio')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_CompressedAudioMediaTypeDetails__'
+ ..typeKey = '_media_types_CompressedAudioMediaTypeDetails__'
+ ))
+ ..tag = 2,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Video')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_VideoMediaTypeDetails__'
+ ..typeKey = '_media_types_VideoMediaTypeDetails__'
+ ))
+ ..tag = 3,
+ ];
+}
+
enum MediaTypeSetDetailsTag {
multiplexed,
@@ -2038,3 +2669,128 @@ class MediaTypeSetDetails extends bindings.Union {
}
}
+mojom_types.MojomUnion _media_types_MediaTypeSetDetails__() {
+ return new mojom_types.MojomUnion()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'MediaTypeSetDetails'
+ ..fullIdentifier = 'mojo.media.MediaTypeSetDetails')
+ ..fields = <mojom_types.UnionField>[
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Multiplexed')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_MultiplexedMediaTypeSetDetails__'
+ ..typeKey = '_media_types_MultiplexedMediaTypeSetDetails__'
+ ))
+ ..tag = 0,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Lpcm')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_LpcmMediaTypeSetDetails__'
+ ..typeKey = '_media_types_LpcmMediaTypeSetDetails__'
+ ))
+ ..tag = 1,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'CompressedAudio')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_CompressedAudioMediaTypeSetDetails__'
+ ..typeKey = '_media_types_CompressedAudioMediaTypeSetDetails__'
+ ))
+ ..tag = 2,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Video')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_media_types_VideoMediaTypeSetDetails__'
+ ..typeKey = '_media_types_VideoMediaTypeSetDetails__'
+ ))
+ ..tag = 3,
+ ];
+}
+
+
+
+
+
+
+
+Map<String, mojom_types.UserDefinedType> _initDescriptions() {
+ var map = new HashMap<String, mojom_types.UserDefinedType>();
+map["_media_types_MediaTypeScheme__"] =
+ new mojom_types.UserDefinedType()
+ ..enumType = _media_types_MediaTypeScheme__();
+map["_media_types_LpcmSampleFormat__"] =
+ new mojom_types.UserDefinedType()
+ ..enumType = _media_types_LpcmSampleFormat__();
+map["_media_types_AudioEncoding__"] =
+ new mojom_types.UserDefinedType()
+ ..enumType = _media_types_AudioEncoding__();
+map["_media_types_VideoEncoding__"] =
+ new mojom_types.UserDefinedType()
+ ..enumType = _media_types_VideoEncoding__();
+map["_media_types_VideoProfile__"] =
+ new mojom_types.UserDefinedType()
+ ..enumType = _media_types_VideoProfile__();
+map["_media_types_PixelFormat__"] =
+ new mojom_types.UserDefinedType()
+ ..enumType = _media_types_PixelFormat__();
+map["_media_types_ColorSpace__"] =
+ new mojom_types.UserDefinedType()
+ ..enumType = _media_types_ColorSpace__();
+map["_media_types_MediaType__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _media_types_MediaType__();
+map["_media_types_MediaTypeSet__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _media_types_MediaTypeSet__();
+map["_media_types_LpcmMediaTypeDetails__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _media_types_LpcmMediaTypeDetails__();
+map["_media_types_LpcmMediaTypeSetDetails__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _media_types_LpcmMediaTypeSetDetails__();
+map["_media_types_MultiplexedMediaTypeDetails__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _media_types_MultiplexedMediaTypeDetails__();
+map["_media_types_MultiplexedMediaTypeSetDetails__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _media_types_MultiplexedMediaTypeSetDetails__();
+map["_media_types_CompressedAudioMediaTypeDetails__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _media_types_CompressedAudioMediaTypeDetails__();
+map["_media_types_CompressedAudioMediaTypeSetDetails__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _media_types_CompressedAudioMediaTypeSetDetails__();
+map["_media_types_VideoMediaTypeDetails__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _media_types_VideoMediaTypeDetails__();
+map["_media_types_VideoMediaTypeSetDetails__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _media_types_VideoMediaTypeSetDetails__();
+map["_media_types_MediaTypeDetails__"] =
+ new mojom_types.UserDefinedType()
+ ..unionType = _media_types_MediaTypeDetails__();
+map["_media_types_MediaTypeSetDetails__"] =
+ new mojom_types.UserDefinedType()
+ ..unionType = _media_types_MediaTypeSetDetails__();
+
+ return map;
+}
+
+var _MojomDesc;
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
+ if (_MojomDesc == null) {
+ _MojomDesc = _initDescriptions();
+ }
+ return _MojomDesc;
+}
+

Powered by Google App Engine
This is Rietveld 408576698