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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/media/audio_track.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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 library audio_track_mojom; 5 library audio_track_mojom;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection';
8 9
9 import 'package:mojo/bindings.dart' as bindings; 10 import 'package:mojo/bindings.dart' as bindings;
10 import 'package:mojo/core.dart' as core; 11 import 'package:mojo/core.dart' as core;
12 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types;
13 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic e_describer;
11 import 'package:mojo_services/mojo/media/media_common.mojom.dart' as media_commo n_mojom; 14 import 'package:mojo_services/mojo/media/media_common.mojom.dart' as media_commo n_mojom;
12 import 'package:mojo_services/mojo/media/media_pipe.mojom.dart' as media_pipe_mo jom; 15 import 'package:mojo_services/mojo/media/media_pipe.mojom.dart' as media_pipe_mo jom;
13 import 'package:mojo_services/mojo/media/media_types.mojom.dart' as media_types_ mojom; 16 import 'package:mojo_services/mojo/media/media_types.mojom.dart' as media_types_ mojom;
14 import 'package:mojo_services/mojo/media/rate_control.mojom.dart' as rate_contro l_mojom; 17 import 'package:mojo_services/mojo/media/rate_control.mojom.dart' as rate_contro l_mojom;
15 18
16 19
17 20
18 class AudioTrackDescriptor extends bindings.Struct { 21 class AudioTrackDescriptor extends bindings.Struct {
19 static const List<bindings.StructDataHeader> kVersions = const [ 22 static const List<bindings.StructDataHeader> kVersions = const [
20 const bindings.StructDataHeader(16, 0) 23 const bindings.StructDataHeader(16, 0)
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 return "AudioTrackDescriptor(" 93 return "AudioTrackDescriptor("
91 "supportedMediaTypes: $supportedMediaTypes" ")"; 94 "supportedMediaTypes: $supportedMediaTypes" ")";
92 } 95 }
93 96
94 Map toJson() { 97 Map toJson() {
95 Map map = new Map(); 98 Map map = new Map();
96 map["supportedMediaTypes"] = supportedMediaTypes; 99 map["supportedMediaTypes"] = supportedMediaTypes;
97 return map; 100 return map;
98 } 101 }
99 } 102 }
103 mojom_types.MojomStruct _audio_track_AudioTrackDescriptor__() {
104 return new mojom_types.MojomStruct()
105 ..declData = (new mojom_types.DeclarationData()
106 ..shortName = 'AudioTrackDescriptor'
107 ..fullIdentifier = 'mojo.media.AudioTrackDescriptor')
108 ..fields = <mojom_types.StructField>[
109 new mojom_types.StructField()
110 ..declData = (new mojom_types.DeclarationData()..shortName = 'SupportedM ediaTypes')
111 ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType ()
112 ..elementType = (new mojom_types.Type()
113 ..typeReference = (new mojom_types.TypeReference()
114
115 ..identifier = '_media_types_MediaTypeSet__'
116 ..typeKey = '_media_types_MediaTypeSet__'
117 )))),
118 ];
119 }
100 120
101 121
102 class AudioTrackConfiguration extends bindings.Struct { 122 class AudioTrackConfiguration extends bindings.Struct {
103 static const List<bindings.StructDataHeader> kVersions = const [ 123 static const List<bindings.StructDataHeader> kVersions = const [
104 const bindings.StructDataHeader(32, 0) 124 const bindings.StructDataHeader(32, 0)
105 ]; 125 ];
106 media_types_mojom.MediaType mediaType = null; 126 media_types_mojom.MediaType mediaType = null;
107 int maxFrames = 0; 127 int maxFrames = 0;
108 int audioFrameRatio = 1; 128 int audioFrameRatio = 1;
109 int mediaTimeRatio = 1; 129 int mediaTimeRatio = 1;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 205
186 Map toJson() { 206 Map toJson() {
187 Map map = new Map(); 207 Map map = new Map();
188 map["mediaType"] = mediaType; 208 map["mediaType"] = mediaType;
189 map["maxFrames"] = maxFrames; 209 map["maxFrames"] = maxFrames;
190 map["audioFrameRatio"] = audioFrameRatio; 210 map["audioFrameRatio"] = audioFrameRatio;
191 map["mediaTimeRatio"] = mediaTimeRatio; 211 map["mediaTimeRatio"] = mediaTimeRatio;
192 return map; 212 return map;
193 } 213 }
194 } 214 }
215 mojom_types.MojomStruct _audio_track_AudioTrackConfiguration__() {
216 return new mojom_types.MojomStruct()
217 ..declData = (new mojom_types.DeclarationData()
218 ..shortName = 'AudioTrackConfiguration'
219 ..fullIdentifier = 'mojo.media.AudioTrackConfiguration')
220 ..fields = <mojom_types.StructField>[
221 new mojom_types.StructField()
222 ..declData = (new mojom_types.DeclarationData()..shortName = 'MediaType' )
223 ..type = (new mojom_types.Type()
224 ..typeReference = (new mojom_types.TypeReference()
225
226 ..identifier = '_media_types_MediaType__'
227 ..typeKey = '_media_types_MediaType__'
228 )),
229
230 new mojom_types.StructField()
231 ..declData = (new mojom_types.DeclarationData()..shortName = 'MaxFrames' )
232 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.ui nt64),
233
234 new mojom_types.StructField()
235 ..declData = (new mojom_types.DeclarationData()..shortName = 'AudioFrame Ratio')
236 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.ui nt32),
237
238 new mojom_types.StructField()
239 ..declData = (new mojom_types.DeclarationData()..shortName = 'MediaTimeR atio')
240 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.ui nt32),
241 ];
242 }
195 243
196 244
197 class _AudioTrackDescribeParams extends bindings.Struct { 245 class _AudioTrackDescribeParams extends bindings.Struct {
198 static const List<bindings.StructDataHeader> kVersions = const [ 246 static const List<bindings.StructDataHeader> kVersions = const [
199 const bindings.StructDataHeader(8, 0) 247 const bindings.StructDataHeader(8, 0)
200 ]; 248 ];
201 249
202 _AudioTrackDescribeParams() : super(kVersions.last.size); 250 _AudioTrackDescribeParams() : super(kVersions.last.size);
203 251
204 static _AudioTrackDescribeParams deserialize(bindings.Message message) { 252 static _AudioTrackDescribeParams deserialize(bindings.Message message) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 291
244 String toString() { 292 String toString() {
245 return "_AudioTrackDescribeParams("")"; 293 return "_AudioTrackDescribeParams("")";
246 } 294 }
247 295
248 Map toJson() { 296 Map toJson() {
249 Map map = new Map(); 297 Map map = new Map();
250 return map; 298 return map;
251 } 299 }
252 } 300 }
301 mojom_types.MojomStruct _audio_track_AudioTrack_Describe_Params__() {
302 return new mojom_types.MojomStruct()
303 ..declData = (new mojom_types.DeclarationData()
304 ..shortName = '_AudioTrackDescribeParams'
305 ..fullIdentifier = 'mojo.media._AudioTrackDescribeParams')
306 ..fields = <mojom_types.StructField>[];
307 }
253 308
254 309
255 class AudioTrackDescribeResponseParams extends bindings.Struct { 310 class AudioTrackDescribeResponseParams extends bindings.Struct {
256 static const List<bindings.StructDataHeader> kVersions = const [ 311 static const List<bindings.StructDataHeader> kVersions = const [
257 const bindings.StructDataHeader(16, 0) 312 const bindings.StructDataHeader(16, 0)
258 ]; 313 ];
259 AudioTrackDescriptor descriptor = null; 314 AudioTrackDescriptor descriptor = null;
260 315
261 AudioTrackDescribeResponseParams() : super(kVersions.last.size); 316 AudioTrackDescribeResponseParams() : super(kVersions.last.size);
262 317
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 return "AudioTrackDescribeResponseParams(" 366 return "AudioTrackDescribeResponseParams("
312 "descriptor: $descriptor" ")"; 367 "descriptor: $descriptor" ")";
313 } 368 }
314 369
315 Map toJson() { 370 Map toJson() {
316 Map map = new Map(); 371 Map map = new Map();
317 map["descriptor"] = descriptor; 372 map["descriptor"] = descriptor;
318 return map; 373 return map;
319 } 374 }
320 } 375 }
376 mojom_types.MojomStruct _audio_track_AudioTrack_Describe_ResponseParams__() {
377 return new mojom_types.MojomStruct()
378 ..declData = (new mojom_types.DeclarationData()
379 ..shortName = 'AudioTrackDescribeResponseParams'
380 ..fullIdentifier = 'mojo.media.AudioTrackDescribeResponseParams')
381 ..fields = <mojom_types.StructField>[
382 new mojom_types.StructField()
383 ..declData = (new mojom_types.DeclarationData()..shortName = 'Descriptor ')
384 ..type = (new mojom_types.Type()
385 ..typeReference = (new mojom_types.TypeReference()
386
387 ..identifier = '_audio_track_AudioTrackDescriptor__'
388 ..typeKey = '_audio_track_AudioTrackDescriptor__'
389 )),
390 ];
391 }
321 392
322 393
323 class _AudioTrackConfigureParams extends bindings.Struct { 394 class _AudioTrackConfigureParams extends bindings.Struct {
324 static const List<bindings.StructDataHeader> kVersions = const [ 395 static const List<bindings.StructDataHeader> kVersions = const [
325 const bindings.StructDataHeader(24, 0) 396 const bindings.StructDataHeader(24, 0)
326 ]; 397 ];
327 AudioTrackConfiguration configuration = null; 398 AudioTrackConfiguration configuration = null;
328 Object pipe = null; 399 Object pipe = null;
329 400
330 _AudioTrackConfigureParams() : super(kVersions.last.size); 401 _AudioTrackConfigureParams() : super(kVersions.last.size);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 return "_AudioTrackConfigureParams(" 457 return "_AudioTrackConfigureParams("
387 "configuration: $configuration" ", " 458 "configuration: $configuration" ", "
388 "pipe: $pipe" ")"; 459 "pipe: $pipe" ")";
389 } 460 }
390 461
391 Map toJson() { 462 Map toJson() {
392 throw new bindings.MojoCodecError( 463 throw new bindings.MojoCodecError(
393 'Object containing handles cannot be encoded to JSON.'); 464 'Object containing handles cannot be encoded to JSON.');
394 } 465 }
395 } 466 }
467 mojom_types.MojomStruct _audio_track_AudioTrack_Configure_Params__() {
468 return new mojom_types.MojomStruct()
469 ..declData = (new mojom_types.DeclarationData()
470 ..shortName = '_AudioTrackConfigureParams'
471 ..fullIdentifier = 'mojo.media._AudioTrackConfigureParams')
472 ..fields = <mojom_types.StructField>[
473 new mojom_types.StructField()
474 ..declData = (new mojom_types.DeclarationData()..shortName = 'Configurat ion')
475 ..type = (new mojom_types.Type()
476 ..typeReference = (new mojom_types.TypeReference()
477
478 ..identifier = '_audio_track_AudioTrackConfiguration__'
479 ..typeKey = '_audio_track_AudioTrackConfiguration__'
480 )),
481
482 new mojom_types.StructField()
483 ..declData = (new mojom_types.DeclarationData()..shortName = 'Pipe')
484 ..type = (new mojom_types.Type()
485 ..typeReference = (new mojom_types.TypeReference()
486
487 ..isInterfaceRequest = true
488 ..identifier = '_media_pipe_MediaPipe__'
489 ..typeKey = '_media_pipe_MediaPipe__'
490 )),
491 ];
492 }
396 493
397 494
398 class AudioTrackConfigureResponseParams extends bindings.Struct { 495 class AudioTrackConfigureResponseParams extends bindings.Struct {
399 static const List<bindings.StructDataHeader> kVersions = const [ 496 static const List<bindings.StructDataHeader> kVersions = const [
400 const bindings.StructDataHeader(16, 0) 497 const bindings.StructDataHeader(16, 0)
401 ]; 498 ];
402 media_common_mojom.MediaResult result = null; 499 media_common_mojom.MediaResult result = null;
403 500
404 AudioTrackConfigureResponseParams() : super(kVersions.last.size); 501 AudioTrackConfigureResponseParams() : super(kVersions.last.size);
405 502
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 return "AudioTrackConfigureResponseParams(" 554 return "AudioTrackConfigureResponseParams("
458 "result: $result" ")"; 555 "result: $result" ")";
459 } 556 }
460 557
461 Map toJson() { 558 Map toJson() {
462 Map map = new Map(); 559 Map map = new Map();
463 map["result"] = result; 560 map["result"] = result;
464 return map; 561 return map;
465 } 562 }
466 } 563 }
564 mojom_types.MojomStruct _audio_track_AudioTrack_Configure_ResponseParams__() {
565 return new mojom_types.MojomStruct()
566 ..declData = (new mojom_types.DeclarationData()
567 ..shortName = 'AudioTrackConfigureResponseParams'
568 ..fullIdentifier = 'mojo.media.AudioTrackConfigureResponseParams')
569 ..fields = <mojom_types.StructField>[
570 new mojom_types.StructField()
571 ..declData = (new mojom_types.DeclarationData()..shortName = 'Result')
572 ..type = (new mojom_types.Type()
573 ..typeReference = (new mojom_types.TypeReference()
574
575 ..identifier = '_media_common_MediaResult__'
576 ..typeKey = '_media_common_MediaResult__'
577 )),
578 ];
579 }
467 580
468 581
469 class _AudioTrackGetRateControlParams extends bindings.Struct { 582 class _AudioTrackGetRateControlParams extends bindings.Struct {
470 static const List<bindings.StructDataHeader> kVersions = const [ 583 static const List<bindings.StructDataHeader> kVersions = const [
471 const bindings.StructDataHeader(16, 0) 584 const bindings.StructDataHeader(16, 0)
472 ]; 585 ];
473 Object rateControl = null; 586 Object rateControl = null;
474 587
475 _AudioTrackGetRateControlParams() : super(kVersions.last.size); 588 _AudioTrackGetRateControlParams() : super(kVersions.last.size);
476 589
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 String toString() { 636 String toString() {
524 return "_AudioTrackGetRateControlParams(" 637 return "_AudioTrackGetRateControlParams("
525 "rateControl: $rateControl" ")"; 638 "rateControl: $rateControl" ")";
526 } 639 }
527 640
528 Map toJson() { 641 Map toJson() {
529 throw new bindings.MojoCodecError( 642 throw new bindings.MojoCodecError(
530 'Object containing handles cannot be encoded to JSON.'); 643 'Object containing handles cannot be encoded to JSON.');
531 } 644 }
532 } 645 }
646 mojom_types.MojomStruct _audio_track_AudioTrack_GetRateControl_Params__() {
647 return new mojom_types.MojomStruct()
648 ..declData = (new mojom_types.DeclarationData()
649 ..shortName = '_AudioTrackGetRateControlParams'
650 ..fullIdentifier = 'mojo.media._AudioTrackGetRateControlParams')
651 ..fields = <mojom_types.StructField>[
652 new mojom_types.StructField()
653 ..declData = (new mojom_types.DeclarationData()..shortName = 'RateContro l')
654 ..type = (new mojom_types.Type()
655 ..typeReference = (new mojom_types.TypeReference()
656
657 ..isInterfaceRequest = true
658 ..identifier = '_rate_control_RateControl__'
659 ..typeKey = '_rate_control_RateControl__'
660 )),
661 ];
662 }
533 663
534 664
535 class AudioTrackGetRateControlResponseParams extends bindings.Struct { 665 class AudioTrackGetRateControlResponseParams extends bindings.Struct {
536 static const List<bindings.StructDataHeader> kVersions = const [ 666 static const List<bindings.StructDataHeader> kVersions = const [
537 const bindings.StructDataHeader(16, 0) 667 const bindings.StructDataHeader(16, 0)
538 ]; 668 ];
539 media_common_mojom.MediaResult result = null; 669 media_common_mojom.MediaResult result = null;
540 670
541 AudioTrackGetRateControlResponseParams() : super(kVersions.last.size); 671 AudioTrackGetRateControlResponseParams() : super(kVersions.last.size);
542 672
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 return "AudioTrackGetRateControlResponseParams(" 724 return "AudioTrackGetRateControlResponseParams("
595 "result: $result" ")"; 725 "result: $result" ")";
596 } 726 }
597 727
598 Map toJson() { 728 Map toJson() {
599 Map map = new Map(); 729 Map map = new Map();
600 map["result"] = result; 730 map["result"] = result;
601 return map; 731 return map;
602 } 732 }
603 } 733 }
734 mojom_types.MojomStruct _audio_track_AudioTrack_GetRateControl_ResponseParams__( ) {
735 return new mojom_types.MojomStruct()
736 ..declData = (new mojom_types.DeclarationData()
737 ..shortName = 'AudioTrackGetRateControlResponseParams'
738 ..fullIdentifier = 'mojo.media.AudioTrackGetRateControlResponseParams')
739 ..fields = <mojom_types.StructField>[
740 new mojom_types.StructField()
741 ..declData = (new mojom_types.DeclarationData()..shortName = 'Result')
742 ..type = (new mojom_types.Type()
743 ..typeReference = (new mojom_types.TypeReference()
744
745 ..identifier = '_media_common_MediaResult__'
746 ..typeKey = '_media_common_MediaResult__'
747 )),
748 ];
749 }
750
604 751
605 const int _AudioTrack_describeName = 0; 752 const int _AudioTrack_describeName = 0;
606 const int _AudioTrack_configureName = 1; 753 const int _AudioTrack_configureName = 1;
607 const int _AudioTrack_getRateControlName = 2; 754 const int _AudioTrack_getRateControlName = 2;
608 755
756 mojom_types.MojomInterface _audio_track_AudioTrack__() {
757 return new mojom_types.MojomInterface()
758 ..declData = (new mojom_types.DeclarationData()
759 ..shortName = 'AudioTrack'
760 ..fullIdentifier = 'mojo.media.AudioTrack')
761 ..interfaceName = 'AudioTrack'
762 ..methods = <int, mojom_types.MojomMethod>{
763 _AudioTrack_describeName: new mojom_types.MojomMethod()
764 ..declData = (new mojom_types.DeclarationData()..shortName = 'Describe')
765 ..ordinal = _AudioTrack_describeName
766 ..responseParams = _audio_track_AudioTrack_Describe_ResponseParams__().. parameters = _audio_track_AudioTrack_Describe_Params__(),_AudioTrack_configureNa me: new mojom_types.MojomMethod()
767 ..declData = (new mojom_types.DeclarationData()..shortName = 'Configure' )
768 ..ordinal = _AudioTrack_configureName
769 ..responseParams = _audio_track_AudioTrack_Configure_ResponseParams__(). .parameters = _audio_track_AudioTrack_Configure_Params__(),_AudioTrack_getRateCo ntrolName: new mojom_types.MojomMethod()
770 ..declData = (new mojom_types.DeclarationData()..shortName = 'GetRateCon trol')
771 ..ordinal = _AudioTrack_getRateControlName
772 ..responseParams = _audio_track_AudioTrack_GetRateControl_ResponseParams __()..parameters = _audio_track_AudioTrack_GetRateControl_Params__(),
773 };
774 }
775
776 class _AudioTrackServiceDescription implements service_describer.ServiceDescript ion {
777 dynamic getTopLevelInterface([Function responseFactory = null]) {
778 return _audio_track_AudioTrack__();
779 }
780 dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
781 return getAllMojomTypeDefinitions()[typeKey];
782 }
783 dynamic getAllTypeDefinitions([Function responseFactory = null]) {
784 return getAllMojomTypeDefinitions();
785 }
786 }
787
609 abstract class AudioTrack { 788 abstract class AudioTrack {
610 static const String serviceName = null; 789 static const String serviceName = null;
611 dynamic describe([Function responseFactory = null]); 790 dynamic describe([Function responseFactory = null]);
612 dynamic configure(AudioTrackConfiguration configuration,Object pipe,[Function responseFactory = null]); 791 dynamic configure(AudioTrackConfiguration configuration,Object pipe,[Function responseFactory = null]);
613 dynamic getRateControl(Object rateControl,[Function responseFactory = null]); 792 dynamic getRateControl(Object rateControl,[Function responseFactory = null]);
614 } 793 }
615 794
616 795
617 class _AudioTrackProxyImpl extends bindings.Proxy { 796 class _AudioTrackProxyImpl extends bindings.Proxy {
618 _AudioTrackProxyImpl.fromEndpoint( 797 _AudioTrackProxyImpl.fromEndpoint(
619 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 798 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
620 799
621 _AudioTrackProxyImpl.fromHandle(core.MojoHandle handle) : 800 _AudioTrackProxyImpl.fromHandle(core.MojoHandle handle) :
622 super.fromHandle(handle); 801 super.fromHandle(handle);
623 802
624 _AudioTrackProxyImpl.unbound() : super.unbound(); 803 _AudioTrackProxyImpl.unbound() : super.unbound();
625 804
626 static _AudioTrackProxyImpl newFromEndpoint( 805 static _AudioTrackProxyImpl newFromEndpoint(
627 core.MojoMessagePipeEndpoint endpoint) { 806 core.MojoMessagePipeEndpoint endpoint) {
628 assert(endpoint.setDescription("For _AudioTrackProxyImpl")); 807 assert(endpoint.setDescription("For _AudioTrackProxyImpl"));
629 return new _AudioTrackProxyImpl.fromEndpoint(endpoint); 808 return new _AudioTrackProxyImpl.fromEndpoint(endpoint);
630 } 809 }
631 810
811 service_describer.ServiceDescription get serviceDescription =>
812 new _AudioTrackServiceDescription();
813
632 void handleResponse(bindings.ServiceMessage message) { 814 void handleResponse(bindings.ServiceMessage message) {
633 switch (message.header.type) { 815 switch (message.header.type) {
634 case _AudioTrack_describeName: 816 case _AudioTrack_describeName:
635 var r = AudioTrackDescribeResponseParams.deserialize( 817 var r = AudioTrackDescribeResponseParams.deserialize(
636 message.payload); 818 message.payload);
637 if (!message.header.hasRequestId) { 819 if (!message.header.hasRequestId) {
638 proxyError("Expected a message with a valid request Id."); 820 proxyError("Expected a message with a valid request Id.");
639 return; 821 return;
640 } 822 }
641 Completer c = completerMap[message.header.requestId]; 823 Completer c = completerMap[message.header.requestId];
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 assert(_impl == null); 1101 assert(_impl == null);
920 _impl = d; 1102 _impl = d;
921 } 1103 }
922 1104
923 String toString() { 1105 String toString() {
924 var superString = super.toString(); 1106 var superString = super.toString();
925 return "AudioTrackStub($superString)"; 1107 return "AudioTrackStub($superString)";
926 } 1108 }
927 1109
928 int get version => 0; 1110 int get version => 0;
1111
1112
1113 service_describer.ServiceDescription get serviceDescription =>
1114 new _AudioTrackServiceDescription();
929 } 1115 }
930 1116
931 1117
1118
1119
1120
1121
1122
1123 Map<String, mojom_types.UserDefinedType> _initDescriptions() {
1124 var map = new HashMap<String, mojom_types.UserDefinedType>();
1125 map["_audio_track_AudioTrackDescriptor__"] =
1126 new mojom_types.UserDefinedType()
1127 ..structType = _audio_track_AudioTrackDescriptor__();
1128 map["_audio_track_AudioTrackConfiguration__"] =
1129 new mojom_types.UserDefinedType()
1130 ..structType = _audio_track_AudioTrackConfiguration__();
1131 map["_audio_track_AudioTrack_Describe_Params__"] =
1132 new mojom_types.UserDefinedType()
1133 ..structType = _audio_track_AudioTrack_Describe_Params__();
1134 map["_audio_track_AudioTrack_Describe_ResponseParams__"] =
1135 new mojom_types.UserDefinedType()
1136 ..structType = _audio_track_AudioTrack_Describe_ResponseParams__();
1137 map["_audio_track_AudioTrack_Configure_Params__"] =
1138 new mojom_types.UserDefinedType()
1139 ..structType = _audio_track_AudioTrack_Configure_Params__();
1140 map["_audio_track_AudioTrack_Configure_ResponseParams__"] =
1141 new mojom_types.UserDefinedType()
1142 ..structType = _audio_track_AudioTrack_Configure_ResponseParams__();
1143 map["_audio_track_AudioTrack_GetRateControl_Params__"] =
1144 new mojom_types.UserDefinedType()
1145 ..structType = _audio_track_AudioTrack_GetRateControl_Params__();
1146 map["_audio_track_AudioTrack_GetRateControl_ResponseParams__"] =
1147 new mojom_types.UserDefinedType()
1148 ..structType = _audio_track_AudioTrack_GetRateControl_ResponseParams__();
1149 map["_audio_track_AudioTrack__"] =
1150 new mojom_types.UserDefinedType()
1151 ..interfaceType = _audio_track_AudioTrack__();
1152 media_common_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.U serDefinedType udt) {
1153 map[s] = udt;
1154 });
1155 media_pipe_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.Use rDefinedType udt) {
1156 map[s] = udt;
1157 });
1158 media_types_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.Us erDefinedType udt) {
1159 map[s] = udt;
1160 });
1161 rate_control_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.U serDefinedType udt) {
1162 map[s] = udt;
1163 });
1164
1165 return map;
1166 }
1167
1168 var _MojomDesc;
1169 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
1170 if (_MojomDesc == null) {
1171 _MojomDesc = _initDescriptions();
1172 }
1173 return _MojomDesc;
1174 }
1175
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698