OLD | NEW |
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 mojom_types_mojom; | 4 library mojom_types_mojom; |
5 import 'package:mojo/bindings.dart' as bindings; | 5 import 'package:mojo/bindings.dart' as bindings; |
6 | 6 |
7 | 7 |
8 class SimpleType extends bindings.MojoEnum { | 8 class SimpleType extends bindings.MojoEnum { |
9 static const SimpleType bool = const SimpleType._(0); | 9 static const SimpleType bool = const SimpleType._(0); |
10 static const SimpleType double = const SimpleType._(1); | 10 static const SimpleType double = const SimpleType._(1); |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 203 |
204 | 204 |
205 class StringType extends bindings.Struct { | 205 class StringType extends bindings.Struct { |
206 static const List<bindings.StructDataHeader> kVersions = const [ | 206 static const List<bindings.StructDataHeader> kVersions = const [ |
207 const bindings.StructDataHeader(16, 0) | 207 const bindings.StructDataHeader(16, 0) |
208 ]; | 208 ]; |
209 bool nullable = false; | 209 bool nullable = false; |
210 | 210 |
211 StringType() : super(kVersions.last.size); | 211 StringType() : super(kVersions.last.size); |
212 | 212 |
| 213 StringType.init( |
| 214 bool this.nullable |
| 215 ) : super(kVersions.last.size); |
| 216 |
213 static StringType deserialize(bindings.Message message) { | 217 static StringType deserialize(bindings.Message message) { |
214 var decoder = new bindings.Decoder(message); | 218 var decoder = new bindings.Decoder(message); |
215 var result = decode(decoder); | 219 var result = decode(decoder); |
216 if (decoder.excessHandles != null) { | 220 if (decoder.excessHandles != null) { |
217 decoder.excessHandles.forEach((h) => h.close()); | 221 decoder.excessHandles.forEach((h) => h.close()); |
218 } | 222 } |
219 return result; | 223 return result; |
220 } | 224 } |
221 | 225 |
222 static StringType decode(bindings.Decoder decoder0) { | 226 static StringType decode(bindings.Decoder decoder0) { |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 | 353 |
350 class HandleType extends bindings.Struct { | 354 class HandleType extends bindings.Struct { |
351 static const List<bindings.StructDataHeader> kVersions = const [ | 355 static const List<bindings.StructDataHeader> kVersions = const [ |
352 const bindings.StructDataHeader(16, 0) | 356 const bindings.StructDataHeader(16, 0) |
353 ]; | 357 ]; |
354 bool nullable = false; | 358 bool nullable = false; |
355 HandleTypeKind kind = new HandleTypeKind(0); | 359 HandleTypeKind kind = new HandleTypeKind(0); |
356 | 360 |
357 HandleType() : super(kVersions.last.size); | 361 HandleType() : super(kVersions.last.size); |
358 | 362 |
| 363 HandleType.init( |
| 364 bool this.nullable, |
| 365 HandleTypeKind this.kind |
| 366 ) : super(kVersions.last.size); |
| 367 |
359 static HandleType deserialize(bindings.Message message) { | 368 static HandleType deserialize(bindings.Message message) { |
360 var decoder = new bindings.Decoder(message); | 369 var decoder = new bindings.Decoder(message); |
361 var result = decode(decoder); | 370 var result = decode(decoder); |
362 if (decoder.excessHandles != null) { | 371 if (decoder.excessHandles != null) { |
363 decoder.excessHandles.forEach((h) => h.close()); | 372 decoder.excessHandles.forEach((h) => h.close()); |
364 } | 373 } |
365 return result; | 374 return result; |
366 } | 375 } |
367 | 376 |
368 static HandleType decode(bindings.Decoder decoder0) { | 377 static HandleType decode(bindings.Decoder decoder0) { |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 class ArrayType extends bindings.Struct { | 449 class ArrayType extends bindings.Struct { |
441 static const List<bindings.StructDataHeader> kVersions = const [ | 450 static const List<bindings.StructDataHeader> kVersions = const [ |
442 const bindings.StructDataHeader(32, 0) | 451 const bindings.StructDataHeader(32, 0) |
443 ]; | 452 ]; |
444 bool nullable = false; | 453 bool nullable = false; |
445 int fixedLength = -1; | 454 int fixedLength = -1; |
446 Type elementType = null; | 455 Type elementType = null; |
447 | 456 |
448 ArrayType() : super(kVersions.last.size); | 457 ArrayType() : super(kVersions.last.size); |
449 | 458 |
| 459 ArrayType.init( |
| 460 bool this.nullable, |
| 461 int this.fixedLength, |
| 462 Type this.elementType |
| 463 ) : super(kVersions.last.size); |
| 464 |
450 static ArrayType deserialize(bindings.Message message) { | 465 static ArrayType deserialize(bindings.Message message) { |
451 var decoder = new bindings.Decoder(message); | 466 var decoder = new bindings.Decoder(message); |
452 var result = decode(decoder); | 467 var result = decode(decoder); |
453 if (decoder.excessHandles != null) { | 468 if (decoder.excessHandles != null) { |
454 decoder.excessHandles.forEach((h) => h.close()); | 469 decoder.excessHandles.forEach((h) => h.close()); |
455 } | 470 } |
456 return result; | 471 return result; |
457 } | 472 } |
458 | 473 |
459 static ArrayType decode(bindings.Decoder decoder0) { | 474 static ArrayType decode(bindings.Decoder decoder0) { |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 class MapType extends bindings.Struct { | 559 class MapType extends bindings.Struct { |
545 static const List<bindings.StructDataHeader> kVersions = const [ | 560 static const List<bindings.StructDataHeader> kVersions = const [ |
546 const bindings.StructDataHeader(48, 0) | 561 const bindings.StructDataHeader(48, 0) |
547 ]; | 562 ]; |
548 bool nullable = false; | 563 bool nullable = false; |
549 Type keyType = null; | 564 Type keyType = null; |
550 Type valueType = null; | 565 Type valueType = null; |
551 | 566 |
552 MapType() : super(kVersions.last.size); | 567 MapType() : super(kVersions.last.size); |
553 | 568 |
| 569 MapType.init( |
| 570 bool this.nullable, |
| 571 Type this.keyType, |
| 572 Type this.valueType |
| 573 ) : super(kVersions.last.size); |
| 574 |
554 static MapType deserialize(bindings.Message message) { | 575 static MapType deserialize(bindings.Message message) { |
555 var decoder = new bindings.Decoder(message); | 576 var decoder = new bindings.Decoder(message); |
556 var result = decode(decoder); | 577 var result = decode(decoder); |
557 if (decoder.excessHandles != null) { | 578 if (decoder.excessHandles != null) { |
558 decoder.excessHandles.forEach((h) => h.close()); | 579 decoder.excessHandles.forEach((h) => h.close()); |
559 } | 580 } |
560 return result; | 581 return result; |
561 } | 582 } |
562 | 583 |
563 static MapType decode(bindings.Decoder decoder0) { | 584 static MapType decode(bindings.Decoder decoder0) { |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 static const List<bindings.StructDataHeader> kVersions = const [ | 674 static const List<bindings.StructDataHeader> kVersions = const [ |
654 const bindings.StructDataHeader(32, 0) | 675 const bindings.StructDataHeader(32, 0) |
655 ]; | 676 ]; |
656 bool nullable = false; | 677 bool nullable = false; |
657 bool isInterfaceRequest = false; | 678 bool isInterfaceRequest = false; |
658 String identifier = null; | 679 String identifier = null; |
659 String typeKey = null; | 680 String typeKey = null; |
660 | 681 |
661 TypeReference() : super(kVersions.last.size); | 682 TypeReference() : super(kVersions.last.size); |
662 | 683 |
| 684 TypeReference.init( |
| 685 bool this.nullable, |
| 686 bool this.isInterfaceRequest, |
| 687 String this.identifier, |
| 688 String this.typeKey |
| 689 ) : super(kVersions.last.size); |
| 690 |
663 static TypeReference deserialize(bindings.Message message) { | 691 static TypeReference deserialize(bindings.Message message) { |
664 var decoder = new bindings.Decoder(message); | 692 var decoder = new bindings.Decoder(message); |
665 var result = decode(decoder); | 693 var result = decode(decoder); |
666 if (decoder.excessHandles != null) { | 694 if (decoder.excessHandles != null) { |
667 decoder.excessHandles.forEach((h) => h.close()); | 695 decoder.excessHandles.forEach((h) => h.close()); |
668 } | 696 } |
669 return result; | 697 return result; |
670 } | 698 } |
671 | 699 |
672 static TypeReference decode(bindings.Decoder decoder0) { | 700 static TypeReference decode(bindings.Decoder decoder0) { |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 ]; | 797 ]; |
770 DeclarationData declData = null; | 798 DeclarationData declData = null; |
771 Type type = null; | 799 Type type = null; |
772 DefaultFieldValue defaultValue = null; | 800 DefaultFieldValue defaultValue = null; |
773 int offset = 0; | 801 int offset = 0; |
774 int bit = 0; | 802 int bit = 0; |
775 int minVersion = 0; | 803 int minVersion = 0; |
776 | 804 |
777 StructField() : super(kVersions.last.size); | 805 StructField() : super(kVersions.last.size); |
778 | 806 |
| 807 StructField.init( |
| 808 DeclarationData this.declData, |
| 809 Type this.type, |
| 810 DefaultFieldValue this.defaultValue, |
| 811 int this.offset, |
| 812 int this.bit, |
| 813 int this.minVersion |
| 814 ) : super(kVersions.last.size); |
| 815 |
779 static StructField deserialize(bindings.Message message) { | 816 static StructField deserialize(bindings.Message message) { |
780 var decoder = new bindings.Decoder(message); | 817 var decoder = new bindings.Decoder(message); |
781 var result = decode(decoder); | 818 var result = decode(decoder); |
782 if (decoder.excessHandles != null) { | 819 if (decoder.excessHandles != null) { |
783 decoder.excessHandles.forEach((h) => h.close()); | 820 decoder.excessHandles.forEach((h) => h.close()); |
784 } | 821 } |
785 return result; | 822 return result; |
786 } | 823 } |
787 | 824 |
788 static StructField decode(bindings.Decoder decoder0) { | 825 static StructField decode(bindings.Decoder decoder0) { |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
910 } | 947 } |
911 | 948 |
912 | 949 |
913 class DefaultKeyword extends bindings.Struct { | 950 class DefaultKeyword extends bindings.Struct { |
914 static const List<bindings.StructDataHeader> kVersions = const [ | 951 static const List<bindings.StructDataHeader> kVersions = const [ |
915 const bindings.StructDataHeader(8, 0) | 952 const bindings.StructDataHeader(8, 0) |
916 ]; | 953 ]; |
917 | 954 |
918 DefaultKeyword() : super(kVersions.last.size); | 955 DefaultKeyword() : super(kVersions.last.size); |
919 | 956 |
| 957 DefaultKeyword.init( |
| 958 ) : super(kVersions.last.size); |
| 959 |
920 static DefaultKeyword deserialize(bindings.Message message) { | 960 static DefaultKeyword deserialize(bindings.Message message) { |
921 var decoder = new bindings.Decoder(message); | 961 var decoder = new bindings.Decoder(message); |
922 var result = decode(decoder); | 962 var result = decode(decoder); |
923 if (decoder.excessHandles != null) { | 963 if (decoder.excessHandles != null) { |
924 decoder.excessHandles.forEach((h) => h.close()); | 964 decoder.excessHandles.forEach((h) => h.close()); |
925 } | 965 } |
926 return result; | 966 return result; |
927 } | 967 } |
928 | 968 |
929 static DefaultKeyword decode(bindings.Decoder decoder0) { | 969 static DefaultKeyword decode(bindings.Decoder decoder0) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
971 class StructVersion extends bindings.Struct { | 1011 class StructVersion extends bindings.Struct { |
972 static const List<bindings.StructDataHeader> kVersions = const [ | 1012 static const List<bindings.StructDataHeader> kVersions = const [ |
973 const bindings.StructDataHeader(24, 0) | 1013 const bindings.StructDataHeader(24, 0) |
974 ]; | 1014 ]; |
975 int versionNumber = 0; | 1015 int versionNumber = 0; |
976 int numFields = 0; | 1016 int numFields = 0; |
977 int numBytes = 0; | 1017 int numBytes = 0; |
978 | 1018 |
979 StructVersion() : super(kVersions.last.size); | 1019 StructVersion() : super(kVersions.last.size); |
980 | 1020 |
| 1021 StructVersion.init( |
| 1022 int this.versionNumber, |
| 1023 int this.numFields, |
| 1024 int this.numBytes |
| 1025 ) : super(kVersions.last.size); |
| 1026 |
981 static StructVersion deserialize(bindings.Message message) { | 1027 static StructVersion deserialize(bindings.Message message) { |
982 var decoder = new bindings.Decoder(message); | 1028 var decoder = new bindings.Decoder(message); |
983 var result = decode(decoder); | 1029 var result = decode(decoder); |
984 if (decoder.excessHandles != null) { | 1030 if (decoder.excessHandles != null) { |
985 decoder.excessHandles.forEach((h) => h.close()); | 1031 decoder.excessHandles.forEach((h) => h.close()); |
986 } | 1032 } |
987 return result; | 1033 return result; |
988 } | 1034 } |
989 | 1035 |
990 static StructVersion decode(bindings.Decoder decoder0) { | 1036 static StructVersion decode(bindings.Decoder decoder0) { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1071 class MojomStruct extends bindings.Struct { | 1117 class MojomStruct extends bindings.Struct { |
1072 static const List<bindings.StructDataHeader> kVersions = const [ | 1118 static const List<bindings.StructDataHeader> kVersions = const [ |
1073 const bindings.StructDataHeader(32, 0) | 1119 const bindings.StructDataHeader(32, 0) |
1074 ]; | 1120 ]; |
1075 DeclarationData declData = null; | 1121 DeclarationData declData = null; |
1076 List<StructField> fields = null; | 1122 List<StructField> fields = null; |
1077 List<StructVersion> versionInfo = null; | 1123 List<StructVersion> versionInfo = null; |
1078 | 1124 |
1079 MojomStruct() : super(kVersions.last.size); | 1125 MojomStruct() : super(kVersions.last.size); |
1080 | 1126 |
| 1127 MojomStruct.init( |
| 1128 DeclarationData this.declData, |
| 1129 List<StructField> this.fields, |
| 1130 List<StructVersion> this.versionInfo |
| 1131 ) : super(kVersions.last.size); |
| 1132 |
1081 static MojomStruct deserialize(bindings.Message message) { | 1133 static MojomStruct deserialize(bindings.Message message) { |
1082 var decoder = new bindings.Decoder(message); | 1134 var decoder = new bindings.Decoder(message); |
1083 var result = decode(decoder); | 1135 var result = decode(decoder); |
1084 if (decoder.excessHandles != null) { | 1136 if (decoder.excessHandles != null) { |
1085 decoder.excessHandles.forEach((h) => h.close()); | 1137 decoder.excessHandles.forEach((h) => h.close()); |
1086 } | 1138 } |
1087 return result; | 1139 return result; |
1088 } | 1140 } |
1089 | 1141 |
1090 static MojomStruct decode(bindings.Decoder decoder0) { | 1142 static MojomStruct decode(bindings.Decoder decoder0) { |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1206 class UnionField extends bindings.Struct { | 1258 class UnionField extends bindings.Struct { |
1207 static const List<bindings.StructDataHeader> kVersions = const [ | 1259 static const List<bindings.StructDataHeader> kVersions = const [ |
1208 const bindings.StructDataHeader(40, 0) | 1260 const bindings.StructDataHeader(40, 0) |
1209 ]; | 1261 ]; |
1210 DeclarationData declData = null; | 1262 DeclarationData declData = null; |
1211 Type type = null; | 1263 Type type = null; |
1212 int tag = 0; | 1264 int tag = 0; |
1213 | 1265 |
1214 UnionField() : super(kVersions.last.size); | 1266 UnionField() : super(kVersions.last.size); |
1215 | 1267 |
| 1268 UnionField.init( |
| 1269 DeclarationData this.declData, |
| 1270 Type this.type, |
| 1271 int this.tag |
| 1272 ) : super(kVersions.last.size); |
| 1273 |
1216 static UnionField deserialize(bindings.Message message) { | 1274 static UnionField deserialize(bindings.Message message) { |
1217 var decoder = new bindings.Decoder(message); | 1275 var decoder = new bindings.Decoder(message); |
1218 var result = decode(decoder); | 1276 var result = decode(decoder); |
1219 if (decoder.excessHandles != null) { | 1277 if (decoder.excessHandles != null) { |
1220 decoder.excessHandles.forEach((h) => h.close()); | 1278 decoder.excessHandles.forEach((h) => h.close()); |
1221 } | 1279 } |
1222 return result; | 1280 return result; |
1223 } | 1281 } |
1224 | 1282 |
1225 static UnionField decode(bindings.Decoder decoder0) { | 1283 static UnionField decode(bindings.Decoder decoder0) { |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1310 | 1368 |
1311 class MojomUnion extends bindings.Struct { | 1369 class MojomUnion extends bindings.Struct { |
1312 static const List<bindings.StructDataHeader> kVersions = const [ | 1370 static const List<bindings.StructDataHeader> kVersions = const [ |
1313 const bindings.StructDataHeader(24, 0) | 1371 const bindings.StructDataHeader(24, 0) |
1314 ]; | 1372 ]; |
1315 DeclarationData declData = null; | 1373 DeclarationData declData = null; |
1316 List<UnionField> fields = null; | 1374 List<UnionField> fields = null; |
1317 | 1375 |
1318 MojomUnion() : super(kVersions.last.size); | 1376 MojomUnion() : super(kVersions.last.size); |
1319 | 1377 |
| 1378 MojomUnion.init( |
| 1379 DeclarationData this.declData, |
| 1380 List<UnionField> this.fields |
| 1381 ) : super(kVersions.last.size); |
| 1382 |
1320 static MojomUnion deserialize(bindings.Message message) { | 1383 static MojomUnion deserialize(bindings.Message message) { |
1321 var decoder = new bindings.Decoder(message); | 1384 var decoder = new bindings.Decoder(message); |
1322 var result = decode(decoder); | 1385 var result = decode(decoder); |
1323 if (decoder.excessHandles != null) { | 1386 if (decoder.excessHandles != null) { |
1324 decoder.excessHandles.forEach((h) => h.close()); | 1387 decoder.excessHandles.forEach((h) => h.close()); |
1325 } | 1388 } |
1326 return result; | 1389 return result; |
1327 } | 1390 } |
1328 | 1391 |
1329 static MojomUnion decode(bindings.Decoder decoder0) { | 1392 static MojomUnion decode(bindings.Decoder decoder0) { |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1414 class EnumValue extends bindings.Struct { | 1477 class EnumValue extends bindings.Struct { |
1415 static const List<bindings.StructDataHeader> kVersions = const [ | 1478 static const List<bindings.StructDataHeader> kVersions = const [ |
1416 const bindings.StructDataHeader(40, 0) | 1479 const bindings.StructDataHeader(40, 0) |
1417 ]; | 1480 ]; |
1418 DeclarationData declData = null; | 1481 DeclarationData declData = null; |
1419 Value initializerValue = null; | 1482 Value initializerValue = null; |
1420 int intValue = 0; | 1483 int intValue = 0; |
1421 | 1484 |
1422 EnumValue() : super(kVersions.last.size); | 1485 EnumValue() : super(kVersions.last.size); |
1423 | 1486 |
| 1487 EnumValue.init( |
| 1488 DeclarationData this.declData, |
| 1489 Value this.initializerValue, |
| 1490 int this.intValue |
| 1491 ) : super(kVersions.last.size); |
| 1492 |
1424 static EnumValue deserialize(bindings.Message message) { | 1493 static EnumValue deserialize(bindings.Message message) { |
1425 var decoder = new bindings.Decoder(message); | 1494 var decoder = new bindings.Decoder(message); |
1426 var result = decode(decoder); | 1495 var result = decode(decoder); |
1427 if (decoder.excessHandles != null) { | 1496 if (decoder.excessHandles != null) { |
1428 decoder.excessHandles.forEach((h) => h.close()); | 1497 decoder.excessHandles.forEach((h) => h.close()); |
1429 } | 1498 } |
1430 return result; | 1499 return result; |
1431 } | 1500 } |
1432 | 1501 |
1433 static EnumValue decode(bindings.Decoder decoder0) { | 1502 static EnumValue decode(bindings.Decoder decoder0) { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1514 | 1583 |
1515 class MojomEnum extends bindings.Struct { | 1584 class MojomEnum extends bindings.Struct { |
1516 static const List<bindings.StructDataHeader> kVersions = const [ | 1585 static const List<bindings.StructDataHeader> kVersions = const [ |
1517 const bindings.StructDataHeader(24, 0) | 1586 const bindings.StructDataHeader(24, 0) |
1518 ]; | 1587 ]; |
1519 DeclarationData declData = null; | 1588 DeclarationData declData = null; |
1520 List<EnumValue> values = null; | 1589 List<EnumValue> values = null; |
1521 | 1590 |
1522 MojomEnum() : super(kVersions.last.size); | 1591 MojomEnum() : super(kVersions.last.size); |
1523 | 1592 |
| 1593 MojomEnum.init( |
| 1594 DeclarationData this.declData, |
| 1595 List<EnumValue> this.values |
| 1596 ) : super(kVersions.last.size); |
| 1597 |
1524 static MojomEnum deserialize(bindings.Message message) { | 1598 static MojomEnum deserialize(bindings.Message message) { |
1525 var decoder = new bindings.Decoder(message); | 1599 var decoder = new bindings.Decoder(message); |
1526 var result = decode(decoder); | 1600 var result = decode(decoder); |
1527 if (decoder.excessHandles != null) { | 1601 if (decoder.excessHandles != null) { |
1528 decoder.excessHandles.forEach((h) => h.close()); | 1602 decoder.excessHandles.forEach((h) => h.close()); |
1529 } | 1603 } |
1530 return result; | 1604 return result; |
1531 } | 1605 } |
1532 | 1606 |
1533 static MojomEnum decode(bindings.Decoder decoder0) { | 1607 static MojomEnum decode(bindings.Decoder decoder0) { |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1620 const bindings.StructDataHeader(40, 0) | 1694 const bindings.StructDataHeader(40, 0) |
1621 ]; | 1695 ]; |
1622 DeclarationData declData = null; | 1696 DeclarationData declData = null; |
1623 MojomStruct parameters = null; | 1697 MojomStruct parameters = null; |
1624 MojomStruct responseParams = null; | 1698 MojomStruct responseParams = null; |
1625 int ordinal = 0; | 1699 int ordinal = 0; |
1626 int minVersion = 0; | 1700 int minVersion = 0; |
1627 | 1701 |
1628 MojomMethod() : super(kVersions.last.size); | 1702 MojomMethod() : super(kVersions.last.size); |
1629 | 1703 |
| 1704 MojomMethod.init( |
| 1705 DeclarationData this.declData, |
| 1706 MojomStruct this.parameters, |
| 1707 MojomStruct this.responseParams, |
| 1708 int this.ordinal, |
| 1709 int this.minVersion |
| 1710 ) : super(kVersions.last.size); |
| 1711 |
1630 static MojomMethod deserialize(bindings.Message message) { | 1712 static MojomMethod deserialize(bindings.Message message) { |
1631 var decoder = new bindings.Decoder(message); | 1713 var decoder = new bindings.Decoder(message); |
1632 var result = decode(decoder); | 1714 var result = decode(decoder); |
1633 if (decoder.excessHandles != null) { | 1715 if (decoder.excessHandles != null) { |
1634 decoder.excessHandles.forEach((h) => h.close()); | 1716 decoder.excessHandles.forEach((h) => h.close()); |
1635 } | 1717 } |
1636 return result; | 1718 return result; |
1637 } | 1719 } |
1638 | 1720 |
1639 static MojomMethod decode(bindings.Decoder decoder0) { | 1721 static MojomMethod decode(bindings.Decoder decoder0) { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1750 static const List<bindings.StructDataHeader> kVersions = const [ | 1832 static const List<bindings.StructDataHeader> kVersions = const [ |
1751 const bindings.StructDataHeader(40, 0) | 1833 const bindings.StructDataHeader(40, 0) |
1752 ]; | 1834 ]; |
1753 DeclarationData declData = null; | 1835 DeclarationData declData = null; |
1754 String serviceName_ = null; | 1836 String serviceName_ = null; |
1755 Map<int, MojomMethod> methods = null; | 1837 Map<int, MojomMethod> methods = null; |
1756 int currentVersion = 0; | 1838 int currentVersion = 0; |
1757 | 1839 |
1758 MojomInterface() : super(kVersions.last.size); | 1840 MojomInterface() : super(kVersions.last.size); |
1759 | 1841 |
| 1842 MojomInterface.init( |
| 1843 DeclarationData this.declData, |
| 1844 String this.serviceName_, |
| 1845 Map<int, MojomMethod> this.methods, |
| 1846 int this.currentVersion |
| 1847 ) : super(kVersions.last.size); |
| 1848 |
1760 static MojomInterface deserialize(bindings.Message message) { | 1849 static MojomInterface deserialize(bindings.Message message) { |
1761 var decoder = new bindings.Decoder(message); | 1850 var decoder = new bindings.Decoder(message); |
1762 var result = decode(decoder); | 1851 var result = decode(decoder); |
1763 if (decoder.excessHandles != null) { | 1852 if (decoder.excessHandles != null) { |
1764 decoder.excessHandles.forEach((h) => h.close()); | 1853 decoder.excessHandles.forEach((h) => h.close()); |
1765 } | 1854 } |
1766 return result; | 1855 return result; |
1767 } | 1856 } |
1768 | 1857 |
1769 static MojomInterface decode(bindings.Decoder decoder0) { | 1858 static MojomInterface decode(bindings.Decoder decoder0) { |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1901 | 1990 |
1902 class ConstantReference extends bindings.Struct { | 1991 class ConstantReference extends bindings.Struct { |
1903 static const List<bindings.StructDataHeader> kVersions = const [ | 1992 static const List<bindings.StructDataHeader> kVersions = const [ |
1904 const bindings.StructDataHeader(24, 0) | 1993 const bindings.StructDataHeader(24, 0) |
1905 ]; | 1994 ]; |
1906 String identifier = null; | 1995 String identifier = null; |
1907 String constantKey = null; | 1996 String constantKey = null; |
1908 | 1997 |
1909 ConstantReference() : super(kVersions.last.size); | 1998 ConstantReference() : super(kVersions.last.size); |
1910 | 1999 |
| 2000 ConstantReference.init( |
| 2001 String this.identifier, |
| 2002 String this.constantKey |
| 2003 ) : super(kVersions.last.size); |
| 2004 |
1911 static ConstantReference deserialize(bindings.Message message) { | 2005 static ConstantReference deserialize(bindings.Message message) { |
1912 var decoder = new bindings.Decoder(message); | 2006 var decoder = new bindings.Decoder(message); |
1913 var result = decode(decoder); | 2007 var result = decode(decoder); |
1914 if (decoder.excessHandles != null) { | 2008 if (decoder.excessHandles != null) { |
1915 decoder.excessHandles.forEach((h) => h.close()); | 2009 decoder.excessHandles.forEach((h) => h.close()); |
1916 } | 2010 } |
1917 return result; | 2011 return result; |
1918 } | 2012 } |
1919 | 2013 |
1920 static ConstantReference decode(bindings.Decoder decoder0) { | 2014 static ConstantReference decode(bindings.Decoder decoder0) { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1988 class EnumValueReference extends bindings.Struct { | 2082 class EnumValueReference extends bindings.Struct { |
1989 static const List<bindings.StructDataHeader> kVersions = const [ | 2083 static const List<bindings.StructDataHeader> kVersions = const [ |
1990 const bindings.StructDataHeader(32, 0) | 2084 const bindings.StructDataHeader(32, 0) |
1991 ]; | 2085 ]; |
1992 String identifier = null; | 2086 String identifier = null; |
1993 String enumTypeKey = null; | 2087 String enumTypeKey = null; |
1994 int enumValueIndex = 0; | 2088 int enumValueIndex = 0; |
1995 | 2089 |
1996 EnumValueReference() : super(kVersions.last.size); | 2090 EnumValueReference() : super(kVersions.last.size); |
1997 | 2091 |
| 2092 EnumValueReference.init( |
| 2093 String this.identifier, |
| 2094 String this.enumTypeKey, |
| 2095 int this.enumValueIndex |
| 2096 ) : super(kVersions.last.size); |
| 2097 |
1998 static EnumValueReference deserialize(bindings.Message message) { | 2098 static EnumValueReference deserialize(bindings.Message message) { |
1999 var decoder = new bindings.Decoder(message); | 2099 var decoder = new bindings.Decoder(message); |
2000 var result = decode(decoder); | 2100 var result = decode(decoder); |
2001 if (decoder.excessHandles != null) { | 2101 if (decoder.excessHandles != null) { |
2002 decoder.excessHandles.forEach((h) => h.close()); | 2102 decoder.excessHandles.forEach((h) => h.close()); |
2003 } | 2103 } |
2004 return result; | 2104 return result; |
2005 } | 2105 } |
2006 | 2106 |
2007 static EnumValueReference decode(bindings.Decoder decoder0) { | 2107 static EnumValueReference decode(bindings.Decoder decoder0) { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2089 static const List<bindings.StructDataHeader> kVersions = const [ | 2189 static const List<bindings.StructDataHeader> kVersions = const [ |
2090 const bindings.StructDataHeader(64, 0) | 2190 const bindings.StructDataHeader(64, 0) |
2091 ]; | 2191 ]; |
2092 DeclarationData declData = null; | 2192 DeclarationData declData = null; |
2093 Type type = null; | 2193 Type type = null; |
2094 Value value = null; | 2194 Value value = null; |
2095 Value resolvedConcreteValue = null; | 2195 Value resolvedConcreteValue = null; |
2096 | 2196 |
2097 DeclaredConstant() : super(kVersions.last.size); | 2197 DeclaredConstant() : super(kVersions.last.size); |
2098 | 2198 |
| 2199 DeclaredConstant.init( |
| 2200 DeclarationData this.declData, |
| 2201 Type this.type, |
| 2202 Value this.value, |
| 2203 Value this.resolvedConcreteValue |
| 2204 ) : super(kVersions.last.size); |
| 2205 |
2099 static DeclaredConstant deserialize(bindings.Message message) { | 2206 static DeclaredConstant deserialize(bindings.Message message) { |
2100 var decoder = new bindings.Decoder(message); | 2207 var decoder = new bindings.Decoder(message); |
2101 var result = decode(decoder); | 2208 var result = decode(decoder); |
2102 if (decoder.excessHandles != null) { | 2209 if (decoder.excessHandles != null) { |
2103 decoder.excessHandles.forEach((h) => h.close()); | 2210 decoder.excessHandles.forEach((h) => h.close()); |
2104 } | 2211 } |
2105 return result; | 2212 return result; |
2106 } | 2213 } |
2107 | 2214 |
2108 static DeclaredConstant decode(bindings.Decoder decoder0) { | 2215 static DeclaredConstant decode(bindings.Decoder decoder0) { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2210 | 2317 |
2211 class Attribute extends bindings.Struct { | 2318 class Attribute extends bindings.Struct { |
2212 static const List<bindings.StructDataHeader> kVersions = const [ | 2319 static const List<bindings.StructDataHeader> kVersions = const [ |
2213 const bindings.StructDataHeader(32, 0) | 2320 const bindings.StructDataHeader(32, 0) |
2214 ]; | 2321 ]; |
2215 String key = null; | 2322 String key = null; |
2216 LiteralValue value = null; | 2323 LiteralValue value = null; |
2217 | 2324 |
2218 Attribute() : super(kVersions.last.size); | 2325 Attribute() : super(kVersions.last.size); |
2219 | 2326 |
| 2327 Attribute.init( |
| 2328 String this.key, |
| 2329 LiteralValue this.value |
| 2330 ) : super(kVersions.last.size); |
| 2331 |
2220 static Attribute deserialize(bindings.Message message) { | 2332 static Attribute deserialize(bindings.Message message) { |
2221 var decoder = new bindings.Decoder(message); | 2333 var decoder = new bindings.Decoder(message); |
2222 var result = decode(decoder); | 2334 var result = decode(decoder); |
2223 if (decoder.excessHandles != null) { | 2335 if (decoder.excessHandles != null) { |
2224 decoder.excessHandles.forEach((h) => h.close()); | 2336 decoder.excessHandles.forEach((h) => h.close()); |
2225 } | 2337 } |
2226 return result; | 2338 return result; |
2227 } | 2339 } |
2228 | 2340 |
2229 static Attribute decode(bindings.Decoder decoder0) { | 2341 static Attribute decode(bindings.Decoder decoder0) { |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2306 String shortName = null; | 2418 String shortName = null; |
2307 String fullIdentifier = null; | 2419 String fullIdentifier = null; |
2308 int declaredOrdinal = -1; | 2420 int declaredOrdinal = -1; |
2309 int declarationOrder = -1; | 2421 int declarationOrder = -1; |
2310 SourceFileInfo sourceFileInfo = null; | 2422 SourceFileInfo sourceFileInfo = null; |
2311 ContainedDeclarations containedDeclarations = null; | 2423 ContainedDeclarations containedDeclarations = null; |
2312 String containerTypeKey = null; | 2424 String containerTypeKey = null; |
2313 | 2425 |
2314 DeclarationData() : super(kVersions.last.size); | 2426 DeclarationData() : super(kVersions.last.size); |
2315 | 2427 |
| 2428 DeclarationData.init( |
| 2429 List<Attribute> this.attributes, |
| 2430 String this.shortName, |
| 2431 String this.fullIdentifier, |
| 2432 int this.declaredOrdinal, |
| 2433 int this.declarationOrder, |
| 2434 SourceFileInfo this.sourceFileInfo, |
| 2435 ContainedDeclarations this.containedDeclarations, |
| 2436 String this.containerTypeKey |
| 2437 ) : super(kVersions.last.size); |
| 2438 |
2316 static DeclarationData deserialize(bindings.Message message) { | 2439 static DeclarationData deserialize(bindings.Message message) { |
2317 var decoder = new bindings.Decoder(message); | 2440 var decoder = new bindings.Decoder(message); |
2318 var result = decode(decoder); | 2441 var result = decode(decoder); |
2319 if (decoder.excessHandles != null) { | 2442 if (decoder.excessHandles != null) { |
2320 decoder.excessHandles.forEach((h) => h.close()); | 2443 decoder.excessHandles.forEach((h) => h.close()); |
2321 } | 2444 } |
2322 return result; | 2445 return result; |
2323 } | 2446 } |
2324 | 2447 |
2325 static DeclarationData decode(bindings.Decoder decoder0) { | 2448 static DeclarationData decode(bindings.Decoder decoder0) { |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2491 class SourceFileInfo extends bindings.Struct { | 2614 class SourceFileInfo extends bindings.Struct { |
2492 static const List<bindings.StructDataHeader> kVersions = const [ | 2615 static const List<bindings.StructDataHeader> kVersions = const [ |
2493 const bindings.StructDataHeader(24, 0) | 2616 const bindings.StructDataHeader(24, 0) |
2494 ]; | 2617 ]; |
2495 String fileName = null; | 2618 String fileName = null; |
2496 int lineNumber = 0; | 2619 int lineNumber = 0; |
2497 int columnNumber = 0; | 2620 int columnNumber = 0; |
2498 | 2621 |
2499 SourceFileInfo() : super(kVersions.last.size); | 2622 SourceFileInfo() : super(kVersions.last.size); |
2500 | 2623 |
| 2624 SourceFileInfo.init( |
| 2625 String this.fileName, |
| 2626 int this.lineNumber, |
| 2627 int this.columnNumber |
| 2628 ) : super(kVersions.last.size); |
| 2629 |
2501 static SourceFileInfo deserialize(bindings.Message message) { | 2630 static SourceFileInfo deserialize(bindings.Message message) { |
2502 var decoder = new bindings.Decoder(message); | 2631 var decoder = new bindings.Decoder(message); |
2503 var result = decode(decoder); | 2632 var result = decode(decoder); |
2504 if (decoder.excessHandles != null) { | 2633 if (decoder.excessHandles != null) { |
2505 decoder.excessHandles.forEach((h) => h.close()); | 2634 decoder.excessHandles.forEach((h) => h.close()); |
2506 } | 2635 } |
2507 return result; | 2636 return result; |
2508 } | 2637 } |
2509 | 2638 |
2510 static SourceFileInfo decode(bindings.Decoder decoder0) { | 2639 static SourceFileInfo decode(bindings.Decoder decoder0) { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2590 | 2719 |
2591 class ContainedDeclarations extends bindings.Struct { | 2720 class ContainedDeclarations extends bindings.Struct { |
2592 static const List<bindings.StructDataHeader> kVersions = const [ | 2721 static const List<bindings.StructDataHeader> kVersions = const [ |
2593 const bindings.StructDataHeader(24, 0) | 2722 const bindings.StructDataHeader(24, 0) |
2594 ]; | 2723 ]; |
2595 List<String> enums = null; | 2724 List<String> enums = null; |
2596 List<String> constants = null; | 2725 List<String> constants = null; |
2597 | 2726 |
2598 ContainedDeclarations() : super(kVersions.last.size); | 2727 ContainedDeclarations() : super(kVersions.last.size); |
2599 | 2728 |
| 2729 ContainedDeclarations.init( |
| 2730 List<String> this.enums, |
| 2731 List<String> this.constants |
| 2732 ) : super(kVersions.last.size); |
| 2733 |
2600 static ContainedDeclarations deserialize(bindings.Message message) { | 2734 static ContainedDeclarations deserialize(bindings.Message message) { |
2601 var decoder = new bindings.Decoder(message); | 2735 var decoder = new bindings.Decoder(message); |
2602 var result = decode(decoder); | 2736 var result = decode(decoder); |
2603 if (decoder.excessHandles != null) { | 2737 if (decoder.excessHandles != null) { |
2604 decoder.excessHandles.forEach((h) => h.close()); | 2738 decoder.excessHandles.forEach((h) => h.close()); |
2605 } | 2739 } |
2606 return result; | 2740 return result; |
2607 } | 2741 } |
2608 | 2742 |
2609 static ContainedDeclarations decode(bindings.Decoder decoder0) { | 2743 static ContainedDeclarations decode(bindings.Decoder decoder0) { |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2710 | 2844 |
2711 class RuntimeTypeInfo extends bindings.Struct { | 2845 class RuntimeTypeInfo extends bindings.Struct { |
2712 static const List<bindings.StructDataHeader> kVersions = const [ | 2846 static const List<bindings.StructDataHeader> kVersions = const [ |
2713 const bindings.StructDataHeader(24, 0) | 2847 const bindings.StructDataHeader(24, 0) |
2714 ]; | 2848 ]; |
2715 Map<String, String> services = null; | 2849 Map<String, String> services = null; |
2716 Map<String, UserDefinedType> typeMap = null; | 2850 Map<String, UserDefinedType> typeMap = null; |
2717 | 2851 |
2718 RuntimeTypeInfo() : super(kVersions.last.size); | 2852 RuntimeTypeInfo() : super(kVersions.last.size); |
2719 | 2853 |
| 2854 RuntimeTypeInfo.init( |
| 2855 Map<String, String> this.services, |
| 2856 Map<String, UserDefinedType> this.typeMap |
| 2857 ) : super(kVersions.last.size); |
| 2858 |
2720 static RuntimeTypeInfo deserialize(bindings.Message message) { | 2859 static RuntimeTypeInfo deserialize(bindings.Message message) { |
2721 var decoder = new bindings.Decoder(message); | 2860 var decoder = new bindings.Decoder(message); |
2722 var result = decode(decoder); | 2861 var result = decode(decoder); |
2723 if (decoder.excessHandles != null) { | 2862 if (decoder.excessHandles != null) { |
2724 decoder.excessHandles.forEach((h) => h.close()); | 2863 decoder.excessHandles.forEach((h) => h.close()); |
2725 } | 2864 } |
2726 return result; | 2865 return result; |
2727 } | 2866 } |
2728 | 2867 |
2729 static RuntimeTypeInfo decode(bindings.Decoder decoder0) { | 2868 static RuntimeTypeInfo decode(bindings.Decoder decoder0) { |
(...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3861 break; | 4000 break; |
3862 default: | 4001 default: |
3863 result += "unknown"; | 4002 result += "unknown"; |
3864 } | 4003 } |
3865 result += ": $_data)"; | 4004 result += ": $_data)"; |
3866 return result; | 4005 return result; |
3867 } | 4006 } |
3868 } | 4007 } |
3869 | 4008 |
3870 | 4009 |
OLD | NEW |