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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/media/media_types.mojom.dart

Issue 2006093002: Dart: Futures -> Callbacks. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Merge Created 4 years, 6 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 // WARNING: DO NOT EDIT. This file was generated by a program. 1 // WARNING: DO NOT EDIT. This file was generated by a program.
2 // See $MOJO_SDK/tools/bindings/mojom_bindings_generator.py. 2 // See $MOJO_SDK/tools/bindings/mojom_bindings_generator.py.
3 3
4 library media_types_mojom; 4 library media_types_mojom;
5 import 'package:mojo/bindings.dart' as bindings; 5 import 'package:mojo/bindings.dart' as bindings;
6 6
7 7
8 class MediaTypeMedium extends bindings.MojoEnum { 8 class MediaTypeMedium extends bindings.MojoEnum {
9 static const MediaTypeMedium audio = const MediaTypeMedium._(0); 9 static const MediaTypeMedium audio = const MediaTypeMedium._(0);
10 static const MediaTypeMedium video = const MediaTypeMedium._(1); 10 static const MediaTypeMedium video = const MediaTypeMedium._(1);
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 static const String kVideoEncodingUncompressed = "uncompressed_video"; 519 static const String kVideoEncodingUncompressed = "uncompressed_video";
520 static const String kVideoEncodingVp3 = "vp3"; 520 static const String kVideoEncodingVp3 = "vp3";
521 static const String kVideoEncodingVp8 = "vp8"; 521 static const String kVideoEncodingVp8 = "vp8";
522 MediaTypeMedium medium = null; 522 MediaTypeMedium medium = null;
523 MediaTypeDetails details = null; 523 MediaTypeDetails details = null;
524 String encoding = null; 524 String encoding = null;
525 List<int> encodingParameters = null; 525 List<int> encodingParameters = null;
526 526
527 MediaType() : super(kVersions.last.size); 527 MediaType() : super(kVersions.last.size);
528 528
529 MediaType.init(
530 MediaTypeMedium this.medium,
531 MediaTypeDetails this.details,
532 String this.encoding,
533 List<int> this.encodingParameters
534 ) : super(kVersions.last.size);
535
529 static MediaType deserialize(bindings.Message message) { 536 static MediaType deserialize(bindings.Message message) {
530 var decoder = new bindings.Decoder(message); 537 var decoder = new bindings.Decoder(message);
531 var result = decode(decoder); 538 var result = decode(decoder);
532 if (decoder.excessHandles != null) { 539 if (decoder.excessHandles != null) {
533 decoder.excessHandles.forEach((h) => h.close()); 540 decoder.excessHandles.forEach((h) => h.close());
534 } 541 }
535 return result; 542 return result;
536 } 543 }
537 544
538 static MediaType decode(bindings.Decoder decoder0) { 545 static MediaType decode(bindings.Decoder decoder0) {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 class MediaTypeSet extends bindings.Struct { 647 class MediaTypeSet extends bindings.Struct {
641 static const List<bindings.StructDataHeader> kVersions = const [ 648 static const List<bindings.StructDataHeader> kVersions = const [
642 const bindings.StructDataHeader(40, 0) 649 const bindings.StructDataHeader(40, 0)
643 ]; 650 ];
644 MediaTypeMedium medium = null; 651 MediaTypeMedium medium = null;
645 MediaTypeSetDetails details = null; 652 MediaTypeSetDetails details = null;
646 List<String> encodings = null; 653 List<String> encodings = null;
647 654
648 MediaTypeSet() : super(kVersions.last.size); 655 MediaTypeSet() : super(kVersions.last.size);
649 656
657 MediaTypeSet.init(
658 MediaTypeMedium this.medium,
659 MediaTypeSetDetails this.details,
660 List<String> this.encodings
661 ) : super(kVersions.last.size);
662
650 static MediaTypeSet deserialize(bindings.Message message) { 663 static MediaTypeSet deserialize(bindings.Message message) {
651 var decoder = new bindings.Decoder(message); 664 var decoder = new bindings.Decoder(message);
652 var result = decode(decoder); 665 var result = decode(decoder);
653 if (decoder.excessHandles != null) { 666 if (decoder.excessHandles != null) {
654 decoder.excessHandles.forEach((h) => h.close()); 667 decoder.excessHandles.forEach((h) => h.close());
655 } 668 }
656 return result; 669 return result;
657 } 670 }
658 671
659 static MediaTypeSet decode(bindings.Decoder decoder0) { 672 static MediaTypeSet decode(bindings.Decoder decoder0) {
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 class AudioMediaTypeDetails extends bindings.Struct { 776 class AudioMediaTypeDetails extends bindings.Struct {
764 static const List<bindings.StructDataHeader> kVersions = const [ 777 static const List<bindings.StructDataHeader> kVersions = const [
765 const bindings.StructDataHeader(24, 0) 778 const bindings.StructDataHeader(24, 0)
766 ]; 779 ];
767 AudioSampleFormat sampleFormat = null; 780 AudioSampleFormat sampleFormat = null;
768 int channels = 0; 781 int channels = 0;
769 int framesPerSecond = 0; 782 int framesPerSecond = 0;
770 783
771 AudioMediaTypeDetails() : super(kVersions.last.size); 784 AudioMediaTypeDetails() : super(kVersions.last.size);
772 785
786 AudioMediaTypeDetails.init(
787 AudioSampleFormat this.sampleFormat,
788 int this.channels,
789 int this.framesPerSecond
790 ) : super(kVersions.last.size);
791
773 static AudioMediaTypeDetails deserialize(bindings.Message message) { 792 static AudioMediaTypeDetails deserialize(bindings.Message message) {
774 var decoder = new bindings.Decoder(message); 793 var decoder = new bindings.Decoder(message);
775 var result = decode(decoder); 794 var result = decode(decoder);
776 if (decoder.excessHandles != null) { 795 if (decoder.excessHandles != null) {
777 decoder.excessHandles.forEach((h) => h.close()); 796 decoder.excessHandles.forEach((h) => h.close());
778 } 797 }
779 return result; 798 return result;
780 } 799 }
781 800
782 static AudioMediaTypeDetails decode(bindings.Decoder decoder0) { 801 static AudioMediaTypeDetails decode(bindings.Decoder decoder0) {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 const bindings.StructDataHeader(32, 0) 888 const bindings.StructDataHeader(32, 0)
870 ]; 889 ];
871 AudioSampleFormat sampleFormat = null; 890 AudioSampleFormat sampleFormat = null;
872 int minChannels = 0; 891 int minChannels = 0;
873 int maxChannels = 0; 892 int maxChannels = 0;
874 int minFramesPerSecond = 0; 893 int minFramesPerSecond = 0;
875 int maxFramesPerSecond = 0; 894 int maxFramesPerSecond = 0;
876 895
877 AudioMediaTypeSetDetails() : super(kVersions.last.size); 896 AudioMediaTypeSetDetails() : super(kVersions.last.size);
878 897
898 AudioMediaTypeSetDetails.init(
899 AudioSampleFormat this.sampleFormat,
900 int this.minChannels,
901 int this.maxChannels,
902 int this.minFramesPerSecond,
903 int this.maxFramesPerSecond
904 ) : super(kVersions.last.size);
905
879 static AudioMediaTypeSetDetails deserialize(bindings.Message message) { 906 static AudioMediaTypeSetDetails deserialize(bindings.Message message) {
880 var decoder = new bindings.Decoder(message); 907 var decoder = new bindings.Decoder(message);
881 var result = decode(decoder); 908 var result = decode(decoder);
882 if (decoder.excessHandles != null) { 909 if (decoder.excessHandles != null) {
883 decoder.excessHandles.forEach((h) => h.close()); 910 decoder.excessHandles.forEach((h) => h.close());
884 } 911 }
885 return result; 912 return result;
886 } 913 }
887 914
888 static AudioMediaTypeSetDetails decode(bindings.Decoder decoder0) { 915 static AudioMediaTypeSetDetails decode(bindings.Decoder decoder0) {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 VideoProfile profile = null; 1030 VideoProfile profile = null;
1004 PixelFormat pixelFormat = null; 1031 PixelFormat pixelFormat = null;
1005 ColorSpace colorSpace = null; 1032 ColorSpace colorSpace = null;
1006 int width = 0; 1033 int width = 0;
1007 int height = 0; 1034 int height = 0;
1008 int codedWidth = 0; 1035 int codedWidth = 0;
1009 int codedHeight = 0; 1036 int codedHeight = 0;
1010 1037
1011 VideoMediaTypeDetails() : super(kVersions.last.size); 1038 VideoMediaTypeDetails() : super(kVersions.last.size);
1012 1039
1040 VideoMediaTypeDetails.init(
1041 VideoProfile this.profile,
1042 PixelFormat this.pixelFormat,
1043 ColorSpace this.colorSpace,
1044 int this.width,
1045 int this.height,
1046 int this.codedWidth,
1047 int this.codedHeight
1048 ) : super(kVersions.last.size);
1049
1013 static VideoMediaTypeDetails deserialize(bindings.Message message) { 1050 static VideoMediaTypeDetails deserialize(bindings.Message message) {
1014 var decoder = new bindings.Decoder(message); 1051 var decoder = new bindings.Decoder(message);
1015 var result = decode(decoder); 1052 var result = decode(decoder);
1016 if (decoder.excessHandles != null) { 1053 if (decoder.excessHandles != null) {
1017 decoder.excessHandles.forEach((h) => h.close()); 1054 decoder.excessHandles.forEach((h) => h.close());
1018 } 1055 }
1019 return result; 1056 return result;
1020 } 1057 }
1021 1058
1022 static VideoMediaTypeDetails decode(bindings.Decoder decoder0) { 1059 static VideoMediaTypeDetails decode(bindings.Decoder decoder0) {
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 static const List<bindings.StructDataHeader> kVersions = const [ 1205 static const List<bindings.StructDataHeader> kVersions = const [
1169 const bindings.StructDataHeader(24, 0) 1206 const bindings.StructDataHeader(24, 0)
1170 ]; 1207 ];
1171 int minWidth = 0; 1208 int minWidth = 0;
1172 int maxWidth = 0; 1209 int maxWidth = 0;
1173 int minHeight = 0; 1210 int minHeight = 0;
1174 int maxHeight = 0; 1211 int maxHeight = 0;
1175 1212
1176 VideoMediaTypeSetDetails() : super(kVersions.last.size); 1213 VideoMediaTypeSetDetails() : super(kVersions.last.size);
1177 1214
1215 VideoMediaTypeSetDetails.init(
1216 int this.minWidth,
1217 int this.maxWidth,
1218 int this.minHeight,
1219 int this.maxHeight
1220 ) : super(kVersions.last.size);
1221
1178 static VideoMediaTypeSetDetails deserialize(bindings.Message message) { 1222 static VideoMediaTypeSetDetails deserialize(bindings.Message message) {
1179 var decoder = new bindings.Decoder(message); 1223 var decoder = new bindings.Decoder(message);
1180 var result = decode(decoder); 1224 var result = decode(decoder);
1181 if (decoder.excessHandles != null) { 1225 if (decoder.excessHandles != null) {
1182 decoder.excessHandles.forEach((h) => h.close()); 1226 decoder.excessHandles.forEach((h) => h.close());
1183 } 1227 }
1184 return result; 1228 return result;
1185 } 1229 }
1186 1230
1187 static VideoMediaTypeSetDetails decode(bindings.Decoder decoder0) { 1231 static VideoMediaTypeSetDetails decode(bindings.Decoder decoder0) {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 } 1322 }
1279 1323
1280 1324
1281 class TextMediaTypeDetails extends bindings.Struct { 1325 class TextMediaTypeDetails extends bindings.Struct {
1282 static const List<bindings.StructDataHeader> kVersions = const [ 1326 static const List<bindings.StructDataHeader> kVersions = const [
1283 const bindings.StructDataHeader(8, 0) 1327 const bindings.StructDataHeader(8, 0)
1284 ]; 1328 ];
1285 1329
1286 TextMediaTypeDetails() : super(kVersions.last.size); 1330 TextMediaTypeDetails() : super(kVersions.last.size);
1287 1331
1332 TextMediaTypeDetails.init(
1333 ) : super(kVersions.last.size);
1334
1288 static TextMediaTypeDetails deserialize(bindings.Message message) { 1335 static TextMediaTypeDetails deserialize(bindings.Message message) {
1289 var decoder = new bindings.Decoder(message); 1336 var decoder = new bindings.Decoder(message);
1290 var result = decode(decoder); 1337 var result = decode(decoder);
1291 if (decoder.excessHandles != null) { 1338 if (decoder.excessHandles != null) {
1292 decoder.excessHandles.forEach((h) => h.close()); 1339 decoder.excessHandles.forEach((h) => h.close());
1293 } 1340 }
1294 return result; 1341 return result;
1295 } 1342 }
1296 1343
1297 static TextMediaTypeDetails decode(bindings.Decoder decoder0) { 1344 static TextMediaTypeDetails decode(bindings.Decoder decoder0) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 } 1383 }
1337 1384
1338 1385
1339 class TextMediaTypeSetDetails extends bindings.Struct { 1386 class TextMediaTypeSetDetails extends bindings.Struct {
1340 static const List<bindings.StructDataHeader> kVersions = const [ 1387 static const List<bindings.StructDataHeader> kVersions = const [
1341 const bindings.StructDataHeader(8, 0) 1388 const bindings.StructDataHeader(8, 0)
1342 ]; 1389 ];
1343 1390
1344 TextMediaTypeSetDetails() : super(kVersions.last.size); 1391 TextMediaTypeSetDetails() : super(kVersions.last.size);
1345 1392
1393 TextMediaTypeSetDetails.init(
1394 ) : super(kVersions.last.size);
1395
1346 static TextMediaTypeSetDetails deserialize(bindings.Message message) { 1396 static TextMediaTypeSetDetails deserialize(bindings.Message message) {
1347 var decoder = new bindings.Decoder(message); 1397 var decoder = new bindings.Decoder(message);
1348 var result = decode(decoder); 1398 var result = decode(decoder);
1349 if (decoder.excessHandles != null) { 1399 if (decoder.excessHandles != null) {
1350 decoder.excessHandles.forEach((h) => h.close()); 1400 decoder.excessHandles.forEach((h) => h.close());
1351 } 1401 }
1352 return result; 1402 return result;
1353 } 1403 }
1354 1404
1355 static TextMediaTypeSetDetails decode(bindings.Decoder decoder0) { 1405 static TextMediaTypeSetDetails decode(bindings.Decoder decoder0) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1394 } 1444 }
1395 1445
1396 1446
1397 class SubpictureMediaTypeDetails extends bindings.Struct { 1447 class SubpictureMediaTypeDetails extends bindings.Struct {
1398 static const List<bindings.StructDataHeader> kVersions = const [ 1448 static const List<bindings.StructDataHeader> kVersions = const [
1399 const bindings.StructDataHeader(8, 0) 1449 const bindings.StructDataHeader(8, 0)
1400 ]; 1450 ];
1401 1451
1402 SubpictureMediaTypeDetails() : super(kVersions.last.size); 1452 SubpictureMediaTypeDetails() : super(kVersions.last.size);
1403 1453
1454 SubpictureMediaTypeDetails.init(
1455 ) : super(kVersions.last.size);
1456
1404 static SubpictureMediaTypeDetails deserialize(bindings.Message message) { 1457 static SubpictureMediaTypeDetails deserialize(bindings.Message message) {
1405 var decoder = new bindings.Decoder(message); 1458 var decoder = new bindings.Decoder(message);
1406 var result = decode(decoder); 1459 var result = decode(decoder);
1407 if (decoder.excessHandles != null) { 1460 if (decoder.excessHandles != null) {
1408 decoder.excessHandles.forEach((h) => h.close()); 1461 decoder.excessHandles.forEach((h) => h.close());
1409 } 1462 }
1410 return result; 1463 return result;
1411 } 1464 }
1412 1465
1413 static SubpictureMediaTypeDetails decode(bindings.Decoder decoder0) { 1466 static SubpictureMediaTypeDetails decode(bindings.Decoder decoder0) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1452 } 1505 }
1453 1506
1454 1507
1455 class SubpictureMediaTypeSetDetails extends bindings.Struct { 1508 class SubpictureMediaTypeSetDetails extends bindings.Struct {
1456 static const List<bindings.StructDataHeader> kVersions = const [ 1509 static const List<bindings.StructDataHeader> kVersions = const [
1457 const bindings.StructDataHeader(8, 0) 1510 const bindings.StructDataHeader(8, 0)
1458 ]; 1511 ];
1459 1512
1460 SubpictureMediaTypeSetDetails() : super(kVersions.last.size); 1513 SubpictureMediaTypeSetDetails() : super(kVersions.last.size);
1461 1514
1515 SubpictureMediaTypeSetDetails.init(
1516 ) : super(kVersions.last.size);
1517
1462 static SubpictureMediaTypeSetDetails deserialize(bindings.Message message) { 1518 static SubpictureMediaTypeSetDetails deserialize(bindings.Message message) {
1463 var decoder = new bindings.Decoder(message); 1519 var decoder = new bindings.Decoder(message);
1464 var result = decode(decoder); 1520 var result = decode(decoder);
1465 if (decoder.excessHandles != null) { 1521 if (decoder.excessHandles != null) {
1466 decoder.excessHandles.forEach((h) => h.close()); 1522 decoder.excessHandles.forEach((h) => h.close());
1467 } 1523 }
1468 return result; 1524 return result;
1469 } 1525 }
1470 1526
1471 static SubpictureMediaTypeSetDetails decode(bindings.Decoder decoder0) { 1527 static SubpictureMediaTypeSetDetails decode(bindings.Decoder decoder0) {
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
1814 break; 1870 break;
1815 default: 1871 default:
1816 result += "unknown"; 1872 result += "unknown";
1817 } 1873 }
1818 result += ": $_data)"; 1874 result += ": $_data)";
1819 return result; 1875 return result;
1820 } 1876 }
1821 } 1877 }
1822 1878
1823 1879
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698