OLD | NEW |
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 media_source_mojom; | 5 library media_source_mojom; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:mojo/bindings.dart' as bindings; | 9 import 'package:mojo/bindings.dart' as bindings; |
10 import 'package:mojo/core.dart' as core; | 10 import 'package:mojo/core.dart' as core; |
| 11 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; |
| 12 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic
e_describer; |
11 import 'package:mojo_services/mojo/media/media_clock.mojom.dart' as media_clock_
mojom; | 13 import 'package:mojo_services/mojo/media/media_clock.mojom.dart' as media_clock_
mojom; |
12 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; |
13 import 'package:mojo_services/mojo/media/media_metadata.mojom.dart' as media_met
adata_mojom; | 15 import 'package:mojo_services/mojo/media/media_metadata.mojom.dart' as media_met
adata_mojom; |
14 import 'package:mojo_services/mojo/media/media_state.mojom.dart' as media_state_
mojom; | 16 import 'package:mojo_services/mojo/media/media_state.mojom.dart' as media_state_
mojom; |
15 import 'package:mojo_services/mojo/media/media_transport.mojom.dart' as media_tr
ansport_mojom; | 17 import 'package:mojo_services/mojo/media/media_transport.mojom.dart' as media_tr
ansport_mojom; |
16 import 'package:mojo_services/mojo/media/media_types.mojom.dart' as media_types_
mojom; | 18 import 'package:mojo_services/mojo/media/media_types.mojom.dart' as media_types_
mojom; |
17 | 19 |
18 | 20 |
19 | 21 |
20 class MediaSourceStreamDescriptor extends bindings.Struct { | 22 class MediaSourceStreamDescriptor extends bindings.Struct { |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 Map toJson() { | 99 Map toJson() { |
98 Map map = new Map(); | 100 Map map = new Map(); |
99 map["index"] = index; | 101 map["index"] = index; |
100 map["mediaType"] = mediaType; | 102 map["mediaType"] = mediaType; |
101 map["originalMediaType"] = originalMediaType; | 103 map["originalMediaType"] = originalMediaType; |
102 return map; | 104 return map; |
103 } | 105 } |
104 } | 106 } |
105 | 107 |
106 | 108 |
| 109 |
| 110 |
107 class MediaSourceStatus extends bindings.Struct { | 111 class MediaSourceStatus extends bindings.Struct { |
108 static const List<bindings.StructDataHeader> kVersions = const [ | 112 static const List<bindings.StructDataHeader> kVersions = const [ |
109 const bindings.StructDataHeader(24, 0) | 113 const bindings.StructDataHeader(24, 0) |
110 ]; | 114 ]; |
111 media_state_mojom.MediaState state = null; | 115 media_state_mojom.MediaState state = null; |
112 media_metadata_mojom.MediaMetadata metadata = null; | 116 media_metadata_mojom.MediaMetadata metadata = null; |
113 | 117 |
114 MediaSourceStatus() : super(kVersions.last.size); | 118 MediaSourceStatus() : super(kVersions.last.size); |
115 | 119 |
116 static MediaSourceStatus deserialize(bindings.Message message) { | 120 static MediaSourceStatus deserialize(bindings.Message message) { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 182 |
179 Map toJson() { | 183 Map toJson() { |
180 Map map = new Map(); | 184 Map map = new Map(); |
181 map["state"] = state; | 185 map["state"] = state; |
182 map["metadata"] = metadata; | 186 map["metadata"] = metadata; |
183 return map; | 187 return map; |
184 } | 188 } |
185 } | 189 } |
186 | 190 |
187 | 191 |
| 192 |
| 193 |
188 class _MediaSourceGetStreamsParams extends bindings.Struct { | 194 class _MediaSourceGetStreamsParams extends bindings.Struct { |
189 static const List<bindings.StructDataHeader> kVersions = const [ | 195 static const List<bindings.StructDataHeader> kVersions = const [ |
190 const bindings.StructDataHeader(8, 0) | 196 const bindings.StructDataHeader(8, 0) |
191 ]; | 197 ]; |
192 | 198 |
193 _MediaSourceGetStreamsParams() : super(kVersions.last.size); | 199 _MediaSourceGetStreamsParams() : super(kVersions.last.size); |
194 | 200 |
195 static _MediaSourceGetStreamsParams deserialize(bindings.Message message) { | 201 static _MediaSourceGetStreamsParams deserialize(bindings.Message message) { |
196 var decoder = new bindings.Decoder(message); | 202 var decoder = new bindings.Decoder(message); |
197 var result = decode(decoder); | 203 var result = decode(decoder); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 return "_MediaSourceGetStreamsParams("")"; | 242 return "_MediaSourceGetStreamsParams("")"; |
237 } | 243 } |
238 | 244 |
239 Map toJson() { | 245 Map toJson() { |
240 Map map = new Map(); | 246 Map map = new Map(); |
241 return map; | 247 return map; |
242 } | 248 } |
243 } | 249 } |
244 | 250 |
245 | 251 |
| 252 |
| 253 |
246 class MediaSourceGetStreamsResponseParams extends bindings.Struct { | 254 class MediaSourceGetStreamsResponseParams extends bindings.Struct { |
247 static const List<bindings.StructDataHeader> kVersions = const [ | 255 static const List<bindings.StructDataHeader> kVersions = const [ |
248 const bindings.StructDataHeader(16, 0) | 256 const bindings.StructDataHeader(16, 0) |
249 ]; | 257 ]; |
250 List<MediaSourceStreamDescriptor> streams = null; | 258 List<MediaSourceStreamDescriptor> streams = null; |
251 | 259 |
252 MediaSourceGetStreamsResponseParams() : super(kVersions.last.size); | 260 MediaSourceGetStreamsResponseParams() : super(kVersions.last.size); |
253 | 261 |
254 static MediaSourceGetStreamsResponseParams deserialize(bindings.Message messag
e) { | 262 static MediaSourceGetStreamsResponseParams deserialize(bindings.Message messag
e) { |
255 var decoder = new bindings.Decoder(message); | 263 var decoder = new bindings.Decoder(message); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 } | 328 } |
321 | 329 |
322 Map toJson() { | 330 Map toJson() { |
323 Map map = new Map(); | 331 Map map = new Map(); |
324 map["streams"] = streams; | 332 map["streams"] = streams; |
325 return map; | 333 return map; |
326 } | 334 } |
327 } | 335 } |
328 | 336 |
329 | 337 |
| 338 |
| 339 |
330 class _MediaSourceGetClockDispositionParams extends bindings.Struct { | 340 class _MediaSourceGetClockDispositionParams extends bindings.Struct { |
331 static const List<bindings.StructDataHeader> kVersions = const [ | 341 static const List<bindings.StructDataHeader> kVersions = const [ |
332 const bindings.StructDataHeader(8, 0) | 342 const bindings.StructDataHeader(8, 0) |
333 ]; | 343 ]; |
334 | 344 |
335 _MediaSourceGetClockDispositionParams() : super(kVersions.last.size); | 345 _MediaSourceGetClockDispositionParams() : super(kVersions.last.size); |
336 | 346 |
337 static _MediaSourceGetClockDispositionParams deserialize(bindings.Message mess
age) { | 347 static _MediaSourceGetClockDispositionParams deserialize(bindings.Message mess
age) { |
338 var decoder = new bindings.Decoder(message); | 348 var decoder = new bindings.Decoder(message); |
339 var result = decode(decoder); | 349 var result = decode(decoder); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 return "_MediaSourceGetClockDispositionParams("")"; | 388 return "_MediaSourceGetClockDispositionParams("")"; |
379 } | 389 } |
380 | 390 |
381 Map toJson() { | 391 Map toJson() { |
382 Map map = new Map(); | 392 Map map = new Map(); |
383 return map; | 393 return map; |
384 } | 394 } |
385 } | 395 } |
386 | 396 |
387 | 397 |
| 398 |
| 399 |
388 class MediaSourceGetClockDispositionResponseParams extends bindings.Struct { | 400 class MediaSourceGetClockDispositionResponseParams extends bindings.Struct { |
389 static const List<bindings.StructDataHeader> kVersions = const [ | 401 static const List<bindings.StructDataHeader> kVersions = const [ |
390 const bindings.StructDataHeader(16, 0) | 402 const bindings.StructDataHeader(16, 0) |
391 ]; | 403 ]; |
392 media_clock_mojom.ClockDisposition clockDisposition = null; | 404 media_clock_mojom.ClockDisposition clockDisposition = null; |
393 | 405 |
394 MediaSourceGetClockDispositionResponseParams() : super(kVersions.last.size); | 406 MediaSourceGetClockDispositionResponseParams() : super(kVersions.last.size); |
395 | 407 |
396 static MediaSourceGetClockDispositionResponseParams deserialize(bindings.Messa
ge message) { | 408 static MediaSourceGetClockDispositionResponseParams deserialize(bindings.Messa
ge message) { |
397 var decoder = new bindings.Decoder(message); | 409 var decoder = new bindings.Decoder(message); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 } | 461 } |
450 | 462 |
451 Map toJson() { | 463 Map toJson() { |
452 Map map = new Map(); | 464 Map map = new Map(); |
453 map["clockDisposition"] = clockDisposition; | 465 map["clockDisposition"] = clockDisposition; |
454 return map; | 466 return map; |
455 } | 467 } |
456 } | 468 } |
457 | 469 |
458 | 470 |
| 471 |
| 472 |
459 class _MediaSourceGetMasterClockParams extends bindings.Struct { | 473 class _MediaSourceGetMasterClockParams extends bindings.Struct { |
460 static const List<bindings.StructDataHeader> kVersions = const [ | 474 static const List<bindings.StructDataHeader> kVersions = const [ |
461 const bindings.StructDataHeader(16, 0) | 475 const bindings.StructDataHeader(16, 0) |
462 ]; | 476 ]; |
463 Object masterClock = null; | 477 Object masterClock = null; |
464 | 478 |
465 _MediaSourceGetMasterClockParams() : super(kVersions.last.size); | 479 _MediaSourceGetMasterClockParams() : super(kVersions.last.size); |
466 | 480 |
467 static _MediaSourceGetMasterClockParams deserialize(bindings.Message message)
{ | 481 static _MediaSourceGetMasterClockParams deserialize(bindings.Message message)
{ |
468 var decoder = new bindings.Decoder(message); | 482 var decoder = new bindings.Decoder(message); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 "masterClock: $masterClock" ")"; | 529 "masterClock: $masterClock" ")"; |
516 } | 530 } |
517 | 531 |
518 Map toJson() { | 532 Map toJson() { |
519 throw new bindings.MojoCodecError( | 533 throw new bindings.MojoCodecError( |
520 'Object containing handles cannot be encoded to JSON.'); | 534 'Object containing handles cannot be encoded to JSON.'); |
521 } | 535 } |
522 } | 536 } |
523 | 537 |
524 | 538 |
| 539 |
| 540 |
525 class _MediaSourceSetMasterClockParams extends bindings.Struct { | 541 class _MediaSourceSetMasterClockParams extends bindings.Struct { |
526 static const List<bindings.StructDataHeader> kVersions = const [ | 542 static const List<bindings.StructDataHeader> kVersions = const [ |
527 const bindings.StructDataHeader(16, 0) | 543 const bindings.StructDataHeader(16, 0) |
528 ]; | 544 ]; |
529 Object masterClock = null; | 545 Object masterClock = null; |
530 | 546 |
531 _MediaSourceSetMasterClockParams() : super(kVersions.last.size); | 547 _MediaSourceSetMasterClockParams() : super(kVersions.last.size); |
532 | 548 |
533 static _MediaSourceSetMasterClockParams deserialize(bindings.Message message)
{ | 549 static _MediaSourceSetMasterClockParams deserialize(bindings.Message message)
{ |
534 var decoder = new bindings.Decoder(message); | 550 var decoder = new bindings.Decoder(message); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 "masterClock: $masterClock" ")"; | 597 "masterClock: $masterClock" ")"; |
582 } | 598 } |
583 | 599 |
584 Map toJson() { | 600 Map toJson() { |
585 throw new bindings.MojoCodecError( | 601 throw new bindings.MojoCodecError( |
586 'Object containing handles cannot be encoded to JSON.'); | 602 'Object containing handles cannot be encoded to JSON.'); |
587 } | 603 } |
588 } | 604 } |
589 | 605 |
590 | 606 |
| 607 |
| 608 |
591 class _MediaSourceGetProducerParams extends bindings.Struct { | 609 class _MediaSourceGetProducerParams extends bindings.Struct { |
592 static const List<bindings.StructDataHeader> kVersions = const [ | 610 static const List<bindings.StructDataHeader> kVersions = const [ |
593 const bindings.StructDataHeader(16, 0) | 611 const bindings.StructDataHeader(16, 0) |
594 ]; | 612 ]; |
595 int streamIndex = 0; | 613 int streamIndex = 0; |
596 Object producer = null; | 614 Object producer = null; |
597 | 615 |
598 _MediaSourceGetProducerParams() : super(kVersions.last.size); | 616 _MediaSourceGetProducerParams() : super(kVersions.last.size); |
599 | 617 |
600 static _MediaSourceGetProducerParams deserialize(bindings.Message message) { | 618 static _MediaSourceGetProducerParams deserialize(bindings.Message message) { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 "producer: $producer" ")"; | 673 "producer: $producer" ")"; |
656 } | 674 } |
657 | 675 |
658 Map toJson() { | 676 Map toJson() { |
659 throw new bindings.MojoCodecError( | 677 throw new bindings.MojoCodecError( |
660 'Object containing handles cannot be encoded to JSON.'); | 678 'Object containing handles cannot be encoded to JSON.'); |
661 } | 679 } |
662 } | 680 } |
663 | 681 |
664 | 682 |
| 683 |
| 684 |
665 class _MediaSourceGetPullModeProducerParams extends bindings.Struct { | 685 class _MediaSourceGetPullModeProducerParams extends bindings.Struct { |
666 static const List<bindings.StructDataHeader> kVersions = const [ | 686 static const List<bindings.StructDataHeader> kVersions = const [ |
667 const bindings.StructDataHeader(16, 0) | 687 const bindings.StructDataHeader(16, 0) |
668 ]; | 688 ]; |
669 int streamIndex = 0; | 689 int streamIndex = 0; |
670 Object producer = null; | 690 Object producer = null; |
671 | 691 |
672 _MediaSourceGetPullModeProducerParams() : super(kVersions.last.size); | 692 _MediaSourceGetPullModeProducerParams() : super(kVersions.last.size); |
673 | 693 |
674 static _MediaSourceGetPullModeProducerParams deserialize(bindings.Message mess
age) { | 694 static _MediaSourceGetPullModeProducerParams deserialize(bindings.Message mess
age) { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 "producer: $producer" ")"; | 749 "producer: $producer" ")"; |
730 } | 750 } |
731 | 751 |
732 Map toJson() { | 752 Map toJson() { |
733 throw new bindings.MojoCodecError( | 753 throw new bindings.MojoCodecError( |
734 'Object containing handles cannot be encoded to JSON.'); | 754 'Object containing handles cannot be encoded to JSON.'); |
735 } | 755 } |
736 } | 756 } |
737 | 757 |
738 | 758 |
| 759 |
| 760 |
739 class _MediaSourceGetStatusParams extends bindings.Struct { | 761 class _MediaSourceGetStatusParams extends bindings.Struct { |
740 static const List<bindings.StructDataHeader> kVersions = const [ | 762 static const List<bindings.StructDataHeader> kVersions = const [ |
741 const bindings.StructDataHeader(16, 0) | 763 const bindings.StructDataHeader(16, 0) |
742 ]; | 764 ]; |
743 int versionLastSeen = 0; | 765 int versionLastSeen = 0; |
744 | 766 |
745 _MediaSourceGetStatusParams() : super(kVersions.last.size); | 767 _MediaSourceGetStatusParams() : super(kVersions.last.size); |
746 | 768 |
747 static _MediaSourceGetStatusParams deserialize(bindings.Message message) { | 769 static _MediaSourceGetStatusParams deserialize(bindings.Message message) { |
748 var decoder = new bindings.Decoder(message); | 770 var decoder = new bindings.Decoder(message); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 } | 818 } |
797 | 819 |
798 Map toJson() { | 820 Map toJson() { |
799 Map map = new Map(); | 821 Map map = new Map(); |
800 map["versionLastSeen"] = versionLastSeen; | 822 map["versionLastSeen"] = versionLastSeen; |
801 return map; | 823 return map; |
802 } | 824 } |
803 } | 825 } |
804 | 826 |
805 | 827 |
| 828 |
| 829 |
806 class MediaSourceGetStatusResponseParams extends bindings.Struct { | 830 class MediaSourceGetStatusResponseParams extends bindings.Struct { |
807 static const List<bindings.StructDataHeader> kVersions = const [ | 831 static const List<bindings.StructDataHeader> kVersions = const [ |
808 const bindings.StructDataHeader(24, 0) | 832 const bindings.StructDataHeader(24, 0) |
809 ]; | 833 ]; |
810 int version = 0; | 834 int version = 0; |
811 MediaSourceStatus status = null; | 835 MediaSourceStatus status = null; |
812 | 836 |
813 MediaSourceGetStatusResponseParams() : super(kVersions.last.size); | 837 MediaSourceGetStatusResponseParams() : super(kVersions.last.size); |
814 | 838 |
815 static MediaSourceGetStatusResponseParams deserialize(bindings.Message message
) { | 839 static MediaSourceGetStatusResponseParams deserialize(bindings.Message message
) { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
873 | 897 |
874 Map toJson() { | 898 Map toJson() { |
875 Map map = new Map(); | 899 Map map = new Map(); |
876 map["version"] = version; | 900 map["version"] = version; |
877 map["status"] = status; | 901 map["status"] = status; |
878 return map; | 902 return map; |
879 } | 903 } |
880 } | 904 } |
881 | 905 |
882 | 906 |
| 907 |
| 908 |
883 class _MediaSourcePrepareParams extends bindings.Struct { | 909 class _MediaSourcePrepareParams extends bindings.Struct { |
884 static const List<bindings.StructDataHeader> kVersions = const [ | 910 static const List<bindings.StructDataHeader> kVersions = const [ |
885 const bindings.StructDataHeader(8, 0) | 911 const bindings.StructDataHeader(8, 0) |
886 ]; | 912 ]; |
887 | 913 |
888 _MediaSourcePrepareParams() : super(kVersions.last.size); | 914 _MediaSourcePrepareParams() : super(kVersions.last.size); |
889 | 915 |
890 static _MediaSourcePrepareParams deserialize(bindings.Message message) { | 916 static _MediaSourcePrepareParams deserialize(bindings.Message message) { |
891 var decoder = new bindings.Decoder(message); | 917 var decoder = new bindings.Decoder(message); |
892 var result = decode(decoder); | 918 var result = decode(decoder); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
931 return "_MediaSourcePrepareParams("")"; | 957 return "_MediaSourcePrepareParams("")"; |
932 } | 958 } |
933 | 959 |
934 Map toJson() { | 960 Map toJson() { |
935 Map map = new Map(); | 961 Map map = new Map(); |
936 return map; | 962 return map; |
937 } | 963 } |
938 } | 964 } |
939 | 965 |
940 | 966 |
| 967 |
| 968 |
941 class MediaSourcePrepareResponseParams extends bindings.Struct { | 969 class MediaSourcePrepareResponseParams extends bindings.Struct { |
942 static const List<bindings.StructDataHeader> kVersions = const [ | 970 static const List<bindings.StructDataHeader> kVersions = const [ |
943 const bindings.StructDataHeader(8, 0) | 971 const bindings.StructDataHeader(8, 0) |
944 ]; | 972 ]; |
945 | 973 |
946 MediaSourcePrepareResponseParams() : super(kVersions.last.size); | 974 MediaSourcePrepareResponseParams() : super(kVersions.last.size); |
947 | 975 |
948 static MediaSourcePrepareResponseParams deserialize(bindings.Message message)
{ | 976 static MediaSourcePrepareResponseParams deserialize(bindings.Message message)
{ |
949 var decoder = new bindings.Decoder(message); | 977 var decoder = new bindings.Decoder(message); |
950 var result = decode(decoder); | 978 var result = decode(decoder); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
988 String toString() { | 1016 String toString() { |
989 return "MediaSourcePrepareResponseParams("")"; | 1017 return "MediaSourcePrepareResponseParams("")"; |
990 } | 1018 } |
991 | 1019 |
992 Map toJson() { | 1020 Map toJson() { |
993 Map map = new Map(); | 1021 Map map = new Map(); |
994 return map; | 1022 return map; |
995 } | 1023 } |
996 } | 1024 } |
997 | 1025 |
| 1026 |
| 1027 |
| 1028 |
998 const int _MediaSource_getStreamsName = 0; | 1029 const int _MediaSource_getStreamsName = 0; |
999 const int _MediaSource_getClockDispositionName = 1; | 1030 const int _MediaSource_getClockDispositionName = 1; |
1000 const int _MediaSource_getMasterClockName = 2; | 1031 const int _MediaSource_getMasterClockName = 2; |
1001 const int _MediaSource_setMasterClockName = 3; | 1032 const int _MediaSource_setMasterClockName = 3; |
1002 const int _MediaSource_getProducerName = 4; | 1033 const int _MediaSource_getProducerName = 4; |
1003 const int _MediaSource_getPullModeProducerName = 5; | 1034 const int _MediaSource_getPullModeProducerName = 5; |
1004 const int _MediaSource_getStatusName = 6; | 1035 const int _MediaSource_getStatusName = 6; |
1005 const int _MediaSource_prepareName = 7; | 1036 const int _MediaSource_prepareName = 7; |
1006 | 1037 |
| 1038 |
| 1039 |
| 1040 class _MediaSourceServiceDescription implements service_describer.ServiceDescrip
tion { |
| 1041 dynamic getTopLevelInterface([Function responseFactory]) => null; |
| 1042 |
| 1043 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; |
| 1044 |
| 1045 dynamic getAllTypeDefinitions([Function responseFactory]) => null; |
| 1046 } |
| 1047 |
1007 abstract class MediaSource { | 1048 abstract class MediaSource { |
1008 static const String serviceName = null; | 1049 static const String serviceName = null; |
1009 dynamic getStreams([Function responseFactory = null]); | 1050 dynamic getStreams([Function responseFactory = null]); |
1010 dynamic getClockDisposition([Function responseFactory = null]); | 1051 dynamic getClockDisposition([Function responseFactory = null]); |
1011 void getMasterClock(Object masterClock); | 1052 void getMasterClock(Object masterClock); |
1012 void setMasterClock(Object masterClock); | 1053 void setMasterClock(Object masterClock); |
1013 void getProducer(int streamIndex, Object producer); | 1054 void getProducer(int streamIndex, Object producer); |
1014 void getPullModeProducer(int streamIndex, Object producer); | 1055 void getPullModeProducer(int streamIndex, Object producer); |
1015 dynamic getStatus(int versionLastSeen,[Function responseFactory = null]); | 1056 dynamic getStatus(int versionLastSeen,[Function responseFactory = null]); |
1016 dynamic prepare([Function responseFactory = null]); | 1057 dynamic prepare([Function responseFactory = null]); |
1017 } | 1058 } |
1018 | 1059 |
1019 | 1060 |
1020 class _MediaSourceProxyImpl extends bindings.Proxy { | 1061 class _MediaSourceProxyImpl extends bindings.Proxy { |
1021 _MediaSourceProxyImpl.fromEndpoint( | 1062 _MediaSourceProxyImpl.fromEndpoint( |
1022 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1063 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
1023 | 1064 |
1024 _MediaSourceProxyImpl.fromHandle(core.MojoHandle handle) : | 1065 _MediaSourceProxyImpl.fromHandle(core.MojoHandle handle) : |
1025 super.fromHandle(handle); | 1066 super.fromHandle(handle); |
1026 | 1067 |
1027 _MediaSourceProxyImpl.unbound() : super.unbound(); | 1068 _MediaSourceProxyImpl.unbound() : super.unbound(); |
1028 | 1069 |
1029 static _MediaSourceProxyImpl newFromEndpoint( | 1070 static _MediaSourceProxyImpl newFromEndpoint( |
1030 core.MojoMessagePipeEndpoint endpoint) { | 1071 core.MojoMessagePipeEndpoint endpoint) { |
1031 assert(endpoint.setDescription("For _MediaSourceProxyImpl")); | 1072 assert(endpoint.setDescription("For _MediaSourceProxyImpl")); |
1032 return new _MediaSourceProxyImpl.fromEndpoint(endpoint); | 1073 return new _MediaSourceProxyImpl.fromEndpoint(endpoint); |
1033 } | 1074 } |
1034 | 1075 |
| 1076 service_describer.ServiceDescription get serviceDescription => |
| 1077 new _MediaSourceServiceDescription(); |
| 1078 |
1035 void handleResponse(bindings.ServiceMessage message) { | 1079 void handleResponse(bindings.ServiceMessage message) { |
1036 switch (message.header.type) { | 1080 switch (message.header.type) { |
1037 case _MediaSource_getStreamsName: | 1081 case _MediaSource_getStreamsName: |
1038 var r = MediaSourceGetStreamsResponseParams.deserialize( | 1082 var r = MediaSourceGetStreamsResponseParams.deserialize( |
1039 message.payload); | 1083 message.payload); |
1040 if (!message.header.hasRequestId) { | 1084 if (!message.header.hasRequestId) { |
1041 proxyError("Expected a message with a valid request Id."); | 1085 proxyError("Expected a message with a valid request Id."); |
1042 return; | 1086 return; |
1043 } | 1087 } |
1044 Completer c = completerMap[message.header.requestId]; | 1088 Completer c = completerMap[message.header.requestId]; |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1433 assert(_impl == null); | 1477 assert(_impl == null); |
1434 _impl = d; | 1478 _impl = d; |
1435 } | 1479 } |
1436 | 1480 |
1437 String toString() { | 1481 String toString() { |
1438 var superString = super.toString(); | 1482 var superString = super.toString(); |
1439 return "MediaSourceStub($superString)"; | 1483 return "MediaSourceStub($superString)"; |
1440 } | 1484 } |
1441 | 1485 |
1442 int get version => 0; | 1486 int get version => 0; |
| 1487 |
| 1488 service_describer.ServiceDescription get serviceDescription => |
| 1489 new _MediaSourceServiceDescription(); |
1443 } | 1490 } |
1444 | 1491 |
1445 | 1492 |
| 1493 |
OLD | NEW |