| Index: mojo/dart/packages/mojo_services/lib/mojo/media/audio_track.mojom.dart
|
| diff --git a/mojo/dart/packages/mojo_services/lib/mojo/media/audio_track.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/media/audio_track.mojom.dart
|
| index d777e296d702ea27d539df62924d2f6627202ce8..01202cd4d1d0244a2d271460a4c85c62860266d8 100644
|
| --- a/mojo/dart/packages/mojo_services/lib/mojo/media/audio_track.mojom.dart
|
| +++ b/mojo/dart/packages/mojo_services/lib/mojo/media/audio_track.mojom.dart
|
| @@ -5,9 +5,12 @@
|
| library audio_track_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;
|
| +import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as service_describer;
|
| import 'package:mojo_services/mojo/media/media_common.mojom.dart' as media_common_mojom;
|
| import 'package:mojo_services/mojo/media/media_pipe.mojom.dart' as media_pipe_mojom;
|
| import 'package:mojo_services/mojo/media/media_types.mojom.dart' as media_types_mojom;
|
| @@ -97,6 +100,23 @@ class AudioTrackDescriptor extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _audio_track_AudioTrackDescriptor__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'AudioTrackDescriptor'
|
| + ..fullIdentifier = 'mojo.media.AudioTrackDescriptor')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'SupportedMediaTypes')
|
| + ..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 AudioTrackConfiguration extends bindings.Struct {
|
| @@ -192,6 +212,34 @@ class AudioTrackConfiguration extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _audio_track_AudioTrackConfiguration__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'AudioTrackConfiguration'
|
| + ..fullIdentifier = 'mojo.media.AudioTrackConfiguration')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'MediaType')
|
| + ..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 = 'MaxFrames')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint64),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'AudioFrameRatio')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'MediaTimeRatio')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint32),
|
| + ];
|
| +}
|
|
|
|
|
| class _AudioTrackDescribeParams extends bindings.Struct {
|
| @@ -250,6 +298,13 @@ class _AudioTrackDescribeParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _audio_track_AudioTrack_Describe_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = '_AudioTrackDescribeParams'
|
| + ..fullIdentifier = 'mojo.media._AudioTrackDescribeParams')
|
| + ..fields = <mojom_types.StructField>[];
|
| +}
|
|
|
|
|
| class AudioTrackDescribeResponseParams extends bindings.Struct {
|
| @@ -318,6 +373,22 @@ class AudioTrackDescribeResponseParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _audio_track_AudioTrack_Describe_ResponseParams__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'AudioTrackDescribeResponseParams'
|
| + ..fullIdentifier = 'mojo.media.AudioTrackDescribeResponseParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Descriptor')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_audio_track_AudioTrackDescriptor__'
|
| + ..typeKey = '_audio_track_AudioTrackDescriptor__'
|
| + )),
|
| + ];
|
| +}
|
|
|
|
|
| class _AudioTrackConfigureParams extends bindings.Struct {
|
| @@ -393,6 +464,32 @@ class _AudioTrackConfigureParams extends bindings.Struct {
|
| 'Object containing handles cannot be encoded to JSON.');
|
| }
|
| }
|
| +mojom_types.MojomStruct _audio_track_AudioTrack_Configure_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = '_AudioTrackConfigureParams'
|
| + ..fullIdentifier = 'mojo.media._AudioTrackConfigureParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Configuration')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_audio_track_AudioTrackConfiguration__'
|
| + ..typeKey = '_audio_track_AudioTrackConfiguration__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Pipe')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..isInterfaceRequest = true
|
| + ..identifier = '_media_pipe_MediaPipe__'
|
| + ..typeKey = '_media_pipe_MediaPipe__'
|
| + )),
|
| + ];
|
| +}
|
|
|
|
|
| class AudioTrackConfigureResponseParams extends bindings.Struct {
|
| @@ -464,6 +561,22 @@ class AudioTrackConfigureResponseParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _audio_track_AudioTrack_Configure_ResponseParams__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'AudioTrackConfigureResponseParams'
|
| + ..fullIdentifier = 'mojo.media.AudioTrackConfigureResponseParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Result')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_media_common_MediaResult__'
|
| + ..typeKey = '_media_common_MediaResult__'
|
| + )),
|
| + ];
|
| +}
|
|
|
|
|
| class _AudioTrackGetRateControlParams extends bindings.Struct {
|
| @@ -530,6 +643,23 @@ class _AudioTrackGetRateControlParams extends bindings.Struct {
|
| 'Object containing handles cannot be encoded to JSON.');
|
| }
|
| }
|
| +mojom_types.MojomStruct _audio_track_AudioTrack_GetRateControl_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = '_AudioTrackGetRateControlParams'
|
| + ..fullIdentifier = 'mojo.media._AudioTrackGetRateControlParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'RateControl')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..isInterfaceRequest = true
|
| + ..identifier = '_rate_control_RateControl__'
|
| + ..typeKey = '_rate_control_RateControl__'
|
| + )),
|
| + ];
|
| +}
|
|
|
|
|
| class AudioTrackGetRateControlResponseParams extends bindings.Struct {
|
| @@ -601,11 +731,60 @@ class AudioTrackGetRateControlResponseParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _audio_track_AudioTrack_GetRateControl_ResponseParams__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'AudioTrackGetRateControlResponseParams'
|
| + ..fullIdentifier = 'mojo.media.AudioTrackGetRateControlResponseParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Result')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_media_common_MediaResult__'
|
| + ..typeKey = '_media_common_MediaResult__'
|
| + )),
|
| + ];
|
| +}
|
| +
|
|
|
| const int _AudioTrack_describeName = 0;
|
| const int _AudioTrack_configureName = 1;
|
| const int _AudioTrack_getRateControlName = 2;
|
|
|
| +mojom_types.MojomInterface _audio_track_AudioTrack__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'AudioTrack'
|
| + ..fullIdentifier = 'mojo.media.AudioTrack')
|
| + ..interfaceName = 'AudioTrack'
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +_AudioTrack_describeName: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Describe')
|
| + ..ordinal = _AudioTrack_describeName
|
| + ..responseParams = _audio_track_AudioTrack_Describe_ResponseParams__()..parameters = _audio_track_AudioTrack_Describe_Params__(),_AudioTrack_configureName: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Configure')
|
| + ..ordinal = _AudioTrack_configureName
|
| + ..responseParams = _audio_track_AudioTrack_Configure_ResponseParams__()..parameters = _audio_track_AudioTrack_Configure_Params__(),_AudioTrack_getRateControlName: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'GetRateControl')
|
| + ..ordinal = _AudioTrack_getRateControlName
|
| + ..responseParams = _audio_track_AudioTrack_GetRateControl_ResponseParams__()..parameters = _audio_track_AudioTrack_GetRateControl_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _AudioTrackServiceDescription implements service_describer.ServiceDescription {
|
| +dynamic getTopLevelInterface([Function responseFactory = null]) {
|
| + return _audio_track_AudioTrack__();
|
| + }
|
| + dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions()[typeKey];
|
| + }
|
| + dynamic getAllTypeDefinitions([Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions();
|
| + }
|
| +}
|
| +
|
| abstract class AudioTrack {
|
| static const String serviceName = null;
|
| dynamic describe([Function responseFactory = null]);
|
| @@ -629,6 +808,9 @@ class _AudioTrackProxyImpl extends bindings.Proxy {
|
| return new _AudioTrackProxyImpl.fromEndpoint(endpoint);
|
| }
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _AudioTrackServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| case _AudioTrack_describeName:
|
| @@ -926,6 +1108,68 @@ class AudioTrackStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _AudioTrackServiceDescription();
|
| +}
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +Map<String, mojom_types.UserDefinedType> _initDescriptions() {
|
| + var map = new HashMap<String, mojom_types.UserDefinedType>();
|
| +map["_audio_track_AudioTrackDescriptor__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _audio_track_AudioTrackDescriptor__();
|
| +map["_audio_track_AudioTrackConfiguration__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _audio_track_AudioTrackConfiguration__();
|
| +map["_audio_track_AudioTrack_Describe_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _audio_track_AudioTrack_Describe_Params__();
|
| +map["_audio_track_AudioTrack_Describe_ResponseParams__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _audio_track_AudioTrack_Describe_ResponseParams__();
|
| +map["_audio_track_AudioTrack_Configure_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _audio_track_AudioTrack_Configure_Params__();
|
| +map["_audio_track_AudioTrack_Configure_ResponseParams__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _audio_track_AudioTrack_Configure_ResponseParams__();
|
| +map["_audio_track_AudioTrack_GetRateControl_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _audio_track_AudioTrack_GetRateControl_Params__();
|
| +map["_audio_track_AudioTrack_GetRateControl_ResponseParams__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _audio_track_AudioTrack_GetRateControl_ResponseParams__();
|
| +map["_audio_track_AudioTrack__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..interfaceType = _audio_track_AudioTrack__();
|
| +media_common_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) {
|
| + map[s] = udt;
|
| +});
|
| +media_pipe_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) {
|
| + map[s] = udt;
|
| +});
|
| +media_types_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) {
|
| + map[s] = udt;
|
| +});
|
| +rate_control_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;
|
| +}
|
|
|
|
|