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_transport_mojom; | 5 library media_transport_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_common.mojom.dart' as media_commo
n_mojom; | 13 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; | 14 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; | 15 import 'package:mojo_services/mojo/media/media_types.mojom.dart' as media_types_
mojom; |
14 | 16 |
15 | 17 |
16 | 18 |
17 class _MediaProducerConnectParams extends bindings.Struct { | 19 class _MediaProducerConnectParams extends bindings.Struct { |
18 static const List<bindings.StructDataHeader> kVersions = const [ | 20 static const List<bindings.StructDataHeader> kVersions = const [ |
19 const bindings.StructDataHeader(16, 0) | 21 const bindings.StructDataHeader(16, 0) |
20 ]; | 22 ]; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 "consumer: $consumer" ")"; | 75 "consumer: $consumer" ")"; |
74 } | 76 } |
75 | 77 |
76 Map toJson() { | 78 Map toJson() { |
77 throw new bindings.MojoCodecError( | 79 throw new bindings.MojoCodecError( |
78 'Object containing handles cannot be encoded to JSON.'); | 80 'Object containing handles cannot be encoded to JSON.'); |
79 } | 81 } |
80 } | 82 } |
81 | 83 |
82 | 84 |
| 85 |
| 86 |
83 class MediaProducerConnectResponseParams extends bindings.Struct { | 87 class MediaProducerConnectResponseParams extends bindings.Struct { |
84 static const List<bindings.StructDataHeader> kVersions = const [ | 88 static const List<bindings.StructDataHeader> kVersions = const [ |
85 const bindings.StructDataHeader(8, 0) | 89 const bindings.StructDataHeader(8, 0) |
86 ]; | 90 ]; |
87 | 91 |
88 MediaProducerConnectResponseParams() : super(kVersions.last.size); | 92 MediaProducerConnectResponseParams() : super(kVersions.last.size); |
89 | 93 |
90 static MediaProducerConnectResponseParams deserialize(bindings.Message message
) { | 94 static MediaProducerConnectResponseParams deserialize(bindings.Message message
) { |
91 var decoder = new bindings.Decoder(message); | 95 var decoder = new bindings.Decoder(message); |
92 var result = decode(decoder); | 96 var result = decode(decoder); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 return "MediaProducerConnectResponseParams("")"; | 135 return "MediaProducerConnectResponseParams("")"; |
132 } | 136 } |
133 | 137 |
134 Map toJson() { | 138 Map toJson() { |
135 Map map = new Map(); | 139 Map map = new Map(); |
136 return map; | 140 return map; |
137 } | 141 } |
138 } | 142 } |
139 | 143 |
140 | 144 |
| 145 |
| 146 |
141 class _MediaProducerDisconnectParams extends bindings.Struct { | 147 class _MediaProducerDisconnectParams extends bindings.Struct { |
142 static const List<bindings.StructDataHeader> kVersions = const [ | 148 static const List<bindings.StructDataHeader> kVersions = const [ |
143 const bindings.StructDataHeader(8, 0) | 149 const bindings.StructDataHeader(8, 0) |
144 ]; | 150 ]; |
145 | 151 |
146 _MediaProducerDisconnectParams() : super(kVersions.last.size); | 152 _MediaProducerDisconnectParams() : super(kVersions.last.size); |
147 | 153 |
148 static _MediaProducerDisconnectParams deserialize(bindings.Message message) { | 154 static _MediaProducerDisconnectParams deserialize(bindings.Message message) { |
149 var decoder = new bindings.Decoder(message); | 155 var decoder = new bindings.Decoder(message); |
150 var result = decode(decoder); | 156 var result = decode(decoder); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 return "_MediaProducerDisconnectParams("")"; | 195 return "_MediaProducerDisconnectParams("")"; |
190 } | 196 } |
191 | 197 |
192 Map toJson() { | 198 Map toJson() { |
193 Map map = new Map(); | 199 Map map = new Map(); |
194 return map; | 200 return map; |
195 } | 201 } |
196 } | 202 } |
197 | 203 |
198 | 204 |
| 205 |
| 206 |
199 class _MediaPullModeProducerGetBufferParams extends bindings.Struct { | 207 class _MediaPullModeProducerGetBufferParams extends bindings.Struct { |
200 static const List<bindings.StructDataHeader> kVersions = const [ | 208 static const List<bindings.StructDataHeader> kVersions = const [ |
201 const bindings.StructDataHeader(8, 0) | 209 const bindings.StructDataHeader(8, 0) |
202 ]; | 210 ]; |
203 | 211 |
204 _MediaPullModeProducerGetBufferParams() : super(kVersions.last.size); | 212 _MediaPullModeProducerGetBufferParams() : super(kVersions.last.size); |
205 | 213 |
206 static _MediaPullModeProducerGetBufferParams deserialize(bindings.Message mess
age) { | 214 static _MediaPullModeProducerGetBufferParams deserialize(bindings.Message mess
age) { |
207 var decoder = new bindings.Decoder(message); | 215 var decoder = new bindings.Decoder(message); |
208 var result = decode(decoder); | 216 var result = decode(decoder); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 return "_MediaPullModeProducerGetBufferParams("")"; | 255 return "_MediaPullModeProducerGetBufferParams("")"; |
248 } | 256 } |
249 | 257 |
250 Map toJson() { | 258 Map toJson() { |
251 Map map = new Map(); | 259 Map map = new Map(); |
252 return map; | 260 return map; |
253 } | 261 } |
254 } | 262 } |
255 | 263 |
256 | 264 |
| 265 |
| 266 |
257 class MediaPullModeProducerGetBufferResponseParams extends bindings.Struct { | 267 class MediaPullModeProducerGetBufferResponseParams extends bindings.Struct { |
258 static const List<bindings.StructDataHeader> kVersions = const [ | 268 static const List<bindings.StructDataHeader> kVersions = const [ |
259 const bindings.StructDataHeader(16, 0) | 269 const bindings.StructDataHeader(16, 0) |
260 ]; | 270 ]; |
261 core.MojoSharedBuffer buffer = null; | 271 core.MojoSharedBuffer buffer = null; |
262 | 272 |
263 MediaPullModeProducerGetBufferResponseParams() : super(kVersions.last.size); | 273 MediaPullModeProducerGetBufferResponseParams() : super(kVersions.last.size); |
264 | 274 |
265 static MediaPullModeProducerGetBufferResponseParams deserialize(bindings.Messa
ge message) { | 275 static MediaPullModeProducerGetBufferResponseParams deserialize(bindings.Messa
ge message) { |
266 var decoder = new bindings.Decoder(message); | 276 var decoder = new bindings.Decoder(message); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 "buffer: $buffer" ")"; | 323 "buffer: $buffer" ")"; |
314 } | 324 } |
315 | 325 |
316 Map toJson() { | 326 Map toJson() { |
317 throw new bindings.MojoCodecError( | 327 throw new bindings.MojoCodecError( |
318 'Object containing handles cannot be encoded to JSON.'); | 328 'Object containing handles cannot be encoded to JSON.'); |
319 } | 329 } |
320 } | 330 } |
321 | 331 |
322 | 332 |
| 333 |
| 334 |
323 class _MediaPullModeProducerPullPacketParams extends bindings.Struct { | 335 class _MediaPullModeProducerPullPacketParams extends bindings.Struct { |
324 static const List<bindings.StructDataHeader> kVersions = const [ | 336 static const List<bindings.StructDataHeader> kVersions = const [ |
325 const bindings.StructDataHeader(16, 0) | 337 const bindings.StructDataHeader(16, 0) |
326 ]; | 338 ]; |
327 media_pipe_mojom.MediaPacket toRelease = null; | 339 media_pipe_mojom.MediaPacket toRelease = null; |
328 | 340 |
329 _MediaPullModeProducerPullPacketParams() : super(kVersions.last.size); | 341 _MediaPullModeProducerPullPacketParams() : super(kVersions.last.size); |
330 | 342 |
331 static _MediaPullModeProducerPullPacketParams deserialize(bindings.Message mes
sage) { | 343 static _MediaPullModeProducerPullPacketParams deserialize(bindings.Message mes
sage) { |
332 var decoder = new bindings.Decoder(message); | 344 var decoder = new bindings.Decoder(message); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 } | 393 } |
382 | 394 |
383 Map toJson() { | 395 Map toJson() { |
384 Map map = new Map(); | 396 Map map = new Map(); |
385 map["toRelease"] = toRelease; | 397 map["toRelease"] = toRelease; |
386 return map; | 398 return map; |
387 } | 399 } |
388 } | 400 } |
389 | 401 |
390 | 402 |
| 403 |
| 404 |
391 class MediaPullModeProducerPullPacketResponseParams extends bindings.Struct { | 405 class MediaPullModeProducerPullPacketResponseParams extends bindings.Struct { |
392 static const List<bindings.StructDataHeader> kVersions = const [ | 406 static const List<bindings.StructDataHeader> kVersions = const [ |
393 const bindings.StructDataHeader(16, 0) | 407 const bindings.StructDataHeader(16, 0) |
394 ]; | 408 ]; |
395 media_pipe_mojom.MediaPacket packet = null; | 409 media_pipe_mojom.MediaPacket packet = null; |
396 | 410 |
397 MediaPullModeProducerPullPacketResponseParams() : super(kVersions.last.size); | 411 MediaPullModeProducerPullPacketResponseParams() : super(kVersions.last.size); |
398 | 412 |
399 static MediaPullModeProducerPullPacketResponseParams deserialize(bindings.Mess
age message) { | 413 static MediaPullModeProducerPullPacketResponseParams deserialize(bindings.Mess
age message) { |
400 var decoder = new bindings.Decoder(message); | 414 var decoder = new bindings.Decoder(message); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 } | 463 } |
450 | 464 |
451 Map toJson() { | 465 Map toJson() { |
452 Map map = new Map(); | 466 Map map = new Map(); |
453 map["packet"] = packet; | 467 map["packet"] = packet; |
454 return map; | 468 return map; |
455 } | 469 } |
456 } | 470 } |
457 | 471 |
458 | 472 |
| 473 |
| 474 |
459 class _MediaPullModeProducerReleasePacketParams extends bindings.Struct { | 475 class _MediaPullModeProducerReleasePacketParams extends bindings.Struct { |
460 static const List<bindings.StructDataHeader> kVersions = const [ | 476 static const List<bindings.StructDataHeader> kVersions = const [ |
461 const bindings.StructDataHeader(16, 0) | 477 const bindings.StructDataHeader(16, 0) |
462 ]; | 478 ]; |
463 media_pipe_mojom.MediaPacket toRelease = null; | 479 media_pipe_mojom.MediaPacket toRelease = null; |
464 | 480 |
465 _MediaPullModeProducerReleasePacketParams() : super(kVersions.last.size); | 481 _MediaPullModeProducerReleasePacketParams() : super(kVersions.last.size); |
466 | 482 |
467 static _MediaPullModeProducerReleasePacketParams deserialize(bindings.Message
message) { | 483 static _MediaPullModeProducerReleasePacketParams deserialize(bindings.Message
message) { |
468 var decoder = new bindings.Decoder(message); | 484 var decoder = new bindings.Decoder(message); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 } | 533 } |
518 | 534 |
519 Map toJson() { | 535 Map toJson() { |
520 Map map = new Map(); | 536 Map map = new Map(); |
521 map["toRelease"] = toRelease; | 537 map["toRelease"] = toRelease; |
522 return map; | 538 return map; |
523 } | 539 } |
524 } | 540 } |
525 | 541 |
526 | 542 |
| 543 |
| 544 |
527 class _MediaConsumerSetBufferParams extends bindings.Struct { | 545 class _MediaConsumerSetBufferParams extends bindings.Struct { |
528 static const List<bindings.StructDataHeader> kVersions = const [ | 546 static const List<bindings.StructDataHeader> kVersions = const [ |
529 const bindings.StructDataHeader(24, 0) | 547 const bindings.StructDataHeader(24, 0) |
530 ]; | 548 ]; |
531 core.MojoSharedBuffer buffer = null; | 549 core.MojoSharedBuffer buffer = null; |
532 int size = 0; | 550 int size = 0; |
533 | 551 |
534 _MediaConsumerSetBufferParams() : super(kVersions.last.size); | 552 _MediaConsumerSetBufferParams() : super(kVersions.last.size); |
535 | 553 |
536 static _MediaConsumerSetBufferParams deserialize(bindings.Message message) { | 554 static _MediaConsumerSetBufferParams deserialize(bindings.Message message) { |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 "size: $size" ")"; | 609 "size: $size" ")"; |
592 } | 610 } |
593 | 611 |
594 Map toJson() { | 612 Map toJson() { |
595 throw new bindings.MojoCodecError( | 613 throw new bindings.MojoCodecError( |
596 'Object containing handles cannot be encoded to JSON.'); | 614 'Object containing handles cannot be encoded to JSON.'); |
597 } | 615 } |
598 } | 616 } |
599 | 617 |
600 | 618 |
| 619 |
| 620 |
601 class MediaConsumerSetBufferResponseParams extends bindings.Struct { | 621 class MediaConsumerSetBufferResponseParams extends bindings.Struct { |
602 static const List<bindings.StructDataHeader> kVersions = const [ | 622 static const List<bindings.StructDataHeader> kVersions = const [ |
603 const bindings.StructDataHeader(8, 0) | 623 const bindings.StructDataHeader(8, 0) |
604 ]; | 624 ]; |
605 | 625 |
606 MediaConsumerSetBufferResponseParams() : super(kVersions.last.size); | 626 MediaConsumerSetBufferResponseParams() : super(kVersions.last.size); |
607 | 627 |
608 static MediaConsumerSetBufferResponseParams deserialize(bindings.Message messa
ge) { | 628 static MediaConsumerSetBufferResponseParams deserialize(bindings.Message messa
ge) { |
609 var decoder = new bindings.Decoder(message); | 629 var decoder = new bindings.Decoder(message); |
610 var result = decode(decoder); | 630 var result = decode(decoder); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
649 return "MediaConsumerSetBufferResponseParams("")"; | 669 return "MediaConsumerSetBufferResponseParams("")"; |
650 } | 670 } |
651 | 671 |
652 Map toJson() { | 672 Map toJson() { |
653 Map map = new Map(); | 673 Map map = new Map(); |
654 return map; | 674 return map; |
655 } | 675 } |
656 } | 676 } |
657 | 677 |
658 | 678 |
| 679 |
| 680 |
659 class _MediaConsumerPushPacketParams extends bindings.Struct { | 681 class _MediaConsumerPushPacketParams extends bindings.Struct { |
660 static const List<bindings.StructDataHeader> kVersions = const [ | 682 static const List<bindings.StructDataHeader> kVersions = const [ |
661 const bindings.StructDataHeader(16, 0) | 683 const bindings.StructDataHeader(16, 0) |
662 ]; | 684 ]; |
663 media_pipe_mojom.MediaPacket packet = null; | 685 media_pipe_mojom.MediaPacket packet = null; |
664 | 686 |
665 _MediaConsumerPushPacketParams() : super(kVersions.last.size); | 687 _MediaConsumerPushPacketParams() : super(kVersions.last.size); |
666 | 688 |
667 static _MediaConsumerPushPacketParams deserialize(bindings.Message message) { | 689 static _MediaConsumerPushPacketParams deserialize(bindings.Message message) { |
668 var decoder = new bindings.Decoder(message); | 690 var decoder = new bindings.Decoder(message); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 } | 739 } |
718 | 740 |
719 Map toJson() { | 741 Map toJson() { |
720 Map map = new Map(); | 742 Map map = new Map(); |
721 map["packet"] = packet; | 743 map["packet"] = packet; |
722 return map; | 744 return map; |
723 } | 745 } |
724 } | 746 } |
725 | 747 |
726 | 748 |
| 749 |
| 750 |
727 class MediaConsumerPushPacketResponseParams extends bindings.Struct { | 751 class MediaConsumerPushPacketResponseParams extends bindings.Struct { |
728 static const List<bindings.StructDataHeader> kVersions = const [ | 752 static const List<bindings.StructDataHeader> kVersions = const [ |
729 const bindings.StructDataHeader(8, 0) | 753 const bindings.StructDataHeader(8, 0) |
730 ]; | 754 ]; |
731 | 755 |
732 MediaConsumerPushPacketResponseParams() : super(kVersions.last.size); | 756 MediaConsumerPushPacketResponseParams() : super(kVersions.last.size); |
733 | 757 |
734 static MediaConsumerPushPacketResponseParams deserialize(bindings.Message mess
age) { | 758 static MediaConsumerPushPacketResponseParams deserialize(bindings.Message mess
age) { |
735 var decoder = new bindings.Decoder(message); | 759 var decoder = new bindings.Decoder(message); |
736 var result = decode(decoder); | 760 var result = decode(decoder); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
774 String toString() { | 798 String toString() { |
775 return "MediaConsumerPushPacketResponseParams("")"; | 799 return "MediaConsumerPushPacketResponseParams("")"; |
776 } | 800 } |
777 | 801 |
778 Map toJson() { | 802 Map toJson() { |
779 Map map = new Map(); | 803 Map map = new Map(); |
780 return map; | 804 return map; |
781 } | 805 } |
782 } | 806 } |
783 | 807 |
| 808 |
| 809 |
| 810 |
784 const int _MediaProducer_connectName = 0; | 811 const int _MediaProducer_connectName = 0; |
785 const int _MediaProducer_disconnectName = 1; | 812 const int _MediaProducer_disconnectName = 1; |
786 | 813 |
| 814 |
| 815 |
| 816 class _MediaProducerServiceDescription implements service_describer.ServiceDescr
iption { |
| 817 dynamic getTopLevelInterface([Function responseFactory]) => null; |
| 818 |
| 819 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; |
| 820 |
| 821 dynamic getAllTypeDefinitions([Function responseFactory]) => null; |
| 822 } |
| 823 |
787 abstract class MediaProducer { | 824 abstract class MediaProducer { |
788 static const String serviceName = null; | 825 static const String serviceName = null; |
789 dynamic connect(Object consumer,[Function responseFactory = null]); | 826 dynamic connect(Object consumer,[Function responseFactory = null]); |
790 void disconnect(); | 827 void disconnect(); |
791 } | 828 } |
792 | 829 |
793 | 830 |
794 class _MediaProducerProxyImpl extends bindings.Proxy { | 831 class _MediaProducerProxyImpl extends bindings.Proxy { |
795 _MediaProducerProxyImpl.fromEndpoint( | 832 _MediaProducerProxyImpl.fromEndpoint( |
796 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 833 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
797 | 834 |
798 _MediaProducerProxyImpl.fromHandle(core.MojoHandle handle) : | 835 _MediaProducerProxyImpl.fromHandle(core.MojoHandle handle) : |
799 super.fromHandle(handle); | 836 super.fromHandle(handle); |
800 | 837 |
801 _MediaProducerProxyImpl.unbound() : super.unbound(); | 838 _MediaProducerProxyImpl.unbound() : super.unbound(); |
802 | 839 |
803 static _MediaProducerProxyImpl newFromEndpoint( | 840 static _MediaProducerProxyImpl newFromEndpoint( |
804 core.MojoMessagePipeEndpoint endpoint) { | 841 core.MojoMessagePipeEndpoint endpoint) { |
805 assert(endpoint.setDescription("For _MediaProducerProxyImpl")); | 842 assert(endpoint.setDescription("For _MediaProducerProxyImpl")); |
806 return new _MediaProducerProxyImpl.fromEndpoint(endpoint); | 843 return new _MediaProducerProxyImpl.fromEndpoint(endpoint); |
807 } | 844 } |
808 | 845 |
| 846 service_describer.ServiceDescription get serviceDescription => |
| 847 new _MediaProducerServiceDescription(); |
| 848 |
809 void handleResponse(bindings.ServiceMessage message) { | 849 void handleResponse(bindings.ServiceMessage message) { |
810 switch (message.header.type) { | 850 switch (message.header.type) { |
811 case _MediaProducer_connectName: | 851 case _MediaProducer_connectName: |
812 var r = MediaProducerConnectResponseParams.deserialize( | 852 var r = MediaProducerConnectResponseParams.deserialize( |
813 message.payload); | 853 message.payload); |
814 if (!message.header.hasRequestId) { | 854 if (!message.header.hasRequestId) { |
815 proxyError("Expected a message with a valid request Id."); | 855 proxyError("Expected a message with a valid request Id."); |
816 return; | 856 return; |
817 } | 857 } |
818 Completer c = completerMap[message.header.requestId]; | 858 Completer c = completerMap[message.header.requestId]; |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
996 assert(_impl == null); | 1036 assert(_impl == null); |
997 _impl = d; | 1037 _impl = d; |
998 } | 1038 } |
999 | 1039 |
1000 String toString() { | 1040 String toString() { |
1001 var superString = super.toString(); | 1041 var superString = super.toString(); |
1002 return "MediaProducerStub($superString)"; | 1042 return "MediaProducerStub($superString)"; |
1003 } | 1043 } |
1004 | 1044 |
1005 int get version => 0; | 1045 int get version => 0; |
| 1046 |
| 1047 service_describer.ServiceDescription get serviceDescription => |
| 1048 new _MediaProducerServiceDescription(); |
1006 } | 1049 } |
1007 | 1050 |
1008 const int _MediaPullModeProducer_getBufferName = 0; | 1051 const int _MediaPullModeProducer_getBufferName = 0; |
1009 const int _MediaPullModeProducer_pullPacketName = 1; | 1052 const int _MediaPullModeProducer_pullPacketName = 1; |
1010 const int _MediaPullModeProducer_releasePacketName = 2; | 1053 const int _MediaPullModeProducer_releasePacketName = 2; |
1011 | 1054 |
| 1055 |
| 1056 |
| 1057 class _MediaPullModeProducerServiceDescription implements service_describer.Serv
iceDescription { |
| 1058 dynamic getTopLevelInterface([Function responseFactory]) => null; |
| 1059 |
| 1060 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; |
| 1061 |
| 1062 dynamic getAllTypeDefinitions([Function responseFactory]) => null; |
| 1063 } |
| 1064 |
1012 abstract class MediaPullModeProducer { | 1065 abstract class MediaPullModeProducer { |
1013 static const String serviceName = null; | 1066 static const String serviceName = null; |
1014 dynamic getBuffer([Function responseFactory = null]); | 1067 dynamic getBuffer([Function responseFactory = null]); |
1015 dynamic pullPacket(media_pipe_mojom.MediaPacket toRelease,[Function responseFa
ctory = null]); | 1068 dynamic pullPacket(media_pipe_mojom.MediaPacket toRelease,[Function responseFa
ctory = null]); |
1016 void releasePacket(media_pipe_mojom.MediaPacket toRelease); | 1069 void releasePacket(media_pipe_mojom.MediaPacket toRelease); |
1017 } | 1070 } |
1018 | 1071 |
1019 | 1072 |
1020 class _MediaPullModeProducerProxyImpl extends bindings.Proxy { | 1073 class _MediaPullModeProducerProxyImpl extends bindings.Proxy { |
1021 _MediaPullModeProducerProxyImpl.fromEndpoint( | 1074 _MediaPullModeProducerProxyImpl.fromEndpoint( |
1022 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1075 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
1023 | 1076 |
1024 _MediaPullModeProducerProxyImpl.fromHandle(core.MojoHandle handle) : | 1077 _MediaPullModeProducerProxyImpl.fromHandle(core.MojoHandle handle) : |
1025 super.fromHandle(handle); | 1078 super.fromHandle(handle); |
1026 | 1079 |
1027 _MediaPullModeProducerProxyImpl.unbound() : super.unbound(); | 1080 _MediaPullModeProducerProxyImpl.unbound() : super.unbound(); |
1028 | 1081 |
1029 static _MediaPullModeProducerProxyImpl newFromEndpoint( | 1082 static _MediaPullModeProducerProxyImpl newFromEndpoint( |
1030 core.MojoMessagePipeEndpoint endpoint) { | 1083 core.MojoMessagePipeEndpoint endpoint) { |
1031 assert(endpoint.setDescription("For _MediaPullModeProducerProxyImpl")); | 1084 assert(endpoint.setDescription("For _MediaPullModeProducerProxyImpl")); |
1032 return new _MediaPullModeProducerProxyImpl.fromEndpoint(endpoint); | 1085 return new _MediaPullModeProducerProxyImpl.fromEndpoint(endpoint); |
1033 } | 1086 } |
1034 | 1087 |
| 1088 service_describer.ServiceDescription get serviceDescription => |
| 1089 new _MediaPullModeProducerServiceDescription(); |
| 1090 |
1035 void handleResponse(bindings.ServiceMessage message) { | 1091 void handleResponse(bindings.ServiceMessage message) { |
1036 switch (message.header.type) { | 1092 switch (message.header.type) { |
1037 case _MediaPullModeProducer_getBufferName: | 1093 case _MediaPullModeProducer_getBufferName: |
1038 var r = MediaPullModeProducerGetBufferResponseParams.deserialize( | 1094 var r = MediaPullModeProducerGetBufferResponseParams.deserialize( |
1039 message.payload); | 1095 message.payload); |
1040 if (!message.header.hasRequestId) { | 1096 if (!message.header.hasRequestId) { |
1041 proxyError("Expected a message with a valid request Id."); | 1097 proxyError("Expected a message with a valid request Id."); |
1042 return; | 1098 return; |
1043 } | 1099 } |
1044 Completer c = completerMap[message.header.requestId]; | 1100 Completer c = completerMap[message.header.requestId]; |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1279 assert(_impl == null); | 1335 assert(_impl == null); |
1280 _impl = d; | 1336 _impl = d; |
1281 } | 1337 } |
1282 | 1338 |
1283 String toString() { | 1339 String toString() { |
1284 var superString = super.toString(); | 1340 var superString = super.toString(); |
1285 return "MediaPullModeProducerStub($superString)"; | 1341 return "MediaPullModeProducerStub($superString)"; |
1286 } | 1342 } |
1287 | 1343 |
1288 int get version => 0; | 1344 int get version => 0; |
| 1345 |
| 1346 service_describer.ServiceDescription get serviceDescription => |
| 1347 new _MediaPullModeProducerServiceDescription(); |
1289 } | 1348 } |
1290 | 1349 |
1291 const int _MediaConsumer_setBufferName = 0; | 1350 const int _MediaConsumer_setBufferName = 0; |
1292 const int _MediaConsumer_pushPacketName = 1; | 1351 const int _MediaConsumer_pushPacketName = 1; |
1293 | 1352 |
| 1353 |
| 1354 |
| 1355 class _MediaConsumerServiceDescription implements service_describer.ServiceDescr
iption { |
| 1356 dynamic getTopLevelInterface([Function responseFactory]) => null; |
| 1357 |
| 1358 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; |
| 1359 |
| 1360 dynamic getAllTypeDefinitions([Function responseFactory]) => null; |
| 1361 } |
| 1362 |
1294 abstract class MediaConsumer { | 1363 abstract class MediaConsumer { |
1295 static const String serviceName = null; | 1364 static const String serviceName = null; |
1296 dynamic setBuffer(core.MojoSharedBuffer buffer,int size,[Function responseFact
ory = null]); | 1365 dynamic setBuffer(core.MojoSharedBuffer buffer,int size,[Function responseFact
ory = null]); |
1297 dynamic pushPacket(media_pipe_mojom.MediaPacket packet,[Function responseFacto
ry = null]); | 1366 dynamic pushPacket(media_pipe_mojom.MediaPacket packet,[Function responseFacto
ry = null]); |
1298 } | 1367 } |
1299 | 1368 |
1300 | 1369 |
1301 class _MediaConsumerProxyImpl extends bindings.Proxy { | 1370 class _MediaConsumerProxyImpl extends bindings.Proxy { |
1302 _MediaConsumerProxyImpl.fromEndpoint( | 1371 _MediaConsumerProxyImpl.fromEndpoint( |
1303 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1372 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
1304 | 1373 |
1305 _MediaConsumerProxyImpl.fromHandle(core.MojoHandle handle) : | 1374 _MediaConsumerProxyImpl.fromHandle(core.MojoHandle handle) : |
1306 super.fromHandle(handle); | 1375 super.fromHandle(handle); |
1307 | 1376 |
1308 _MediaConsumerProxyImpl.unbound() : super.unbound(); | 1377 _MediaConsumerProxyImpl.unbound() : super.unbound(); |
1309 | 1378 |
1310 static _MediaConsumerProxyImpl newFromEndpoint( | 1379 static _MediaConsumerProxyImpl newFromEndpoint( |
1311 core.MojoMessagePipeEndpoint endpoint) { | 1380 core.MojoMessagePipeEndpoint endpoint) { |
1312 assert(endpoint.setDescription("For _MediaConsumerProxyImpl")); | 1381 assert(endpoint.setDescription("For _MediaConsumerProxyImpl")); |
1313 return new _MediaConsumerProxyImpl.fromEndpoint(endpoint); | 1382 return new _MediaConsumerProxyImpl.fromEndpoint(endpoint); |
1314 } | 1383 } |
1315 | 1384 |
| 1385 service_describer.ServiceDescription get serviceDescription => |
| 1386 new _MediaConsumerServiceDescription(); |
| 1387 |
1316 void handleResponse(bindings.ServiceMessage message) { | 1388 void handleResponse(bindings.ServiceMessage message) { |
1317 switch (message.header.type) { | 1389 switch (message.header.type) { |
1318 case _MediaConsumer_setBufferName: | 1390 case _MediaConsumer_setBufferName: |
1319 var r = MediaConsumerSetBufferResponseParams.deserialize( | 1391 var r = MediaConsumerSetBufferResponseParams.deserialize( |
1320 message.payload); | 1392 message.payload); |
1321 if (!message.header.hasRequestId) { | 1393 if (!message.header.hasRequestId) { |
1322 proxyError("Expected a message with a valid request Id."); | 1394 proxyError("Expected a message with a valid request Id."); |
1323 return; | 1395 return; |
1324 } | 1396 } |
1325 Completer c = completerMap[message.header.requestId]; | 1397 Completer c = completerMap[message.header.requestId]; |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1546 assert(_impl == null); | 1618 assert(_impl == null); |
1547 _impl = d; | 1619 _impl = d; |
1548 } | 1620 } |
1549 | 1621 |
1550 String toString() { | 1622 String toString() { |
1551 var superString = super.toString(); | 1623 var superString = super.toString(); |
1552 return "MediaConsumerStub($superString)"; | 1624 return "MediaConsumerStub($superString)"; |
1553 } | 1625 } |
1554 | 1626 |
1555 int get version => 0; | 1627 int get version => 0; |
| 1628 |
| 1629 service_describer.ServiceDescription get serviceDescription => |
| 1630 new _MediaConsumerServiceDescription(); |
1556 } | 1631 } |
1557 | 1632 |
1558 | 1633 |
| 1634 |
OLD | NEW |