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 test_unions_mojom; | 4 library test_unions_mojom; |
5 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:collection'; | 6 import 'dart:collection'; |
7 import 'dart:convert'; | 7 import 'dart:convert'; |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 import 'dart:typed_data'; | 9 import 'dart:typed_data'; |
10 import 'package:mojo/bindings.dart' as bindings; | 10 import 'package:mojo/bindings.dart' as bindings; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 const bindings.StructDataHeader(56, 0) | 72 const bindings.StructDataHeader(56, 0) |
73 ]; | 73 ]; |
74 ObjectUnion u = null; | 74 ObjectUnion u = null; |
75 List<ObjectUnion> aOu = null; | 75 List<ObjectUnion> aOu = null; |
76 List<HandleUnion> aHu = null; | 76 List<HandleUnion> aHu = null; |
77 Map<int, ObjectUnion> mOu = null; | 77 Map<int, ObjectUnion> mOu = null; |
78 Map<int, HandleUnion> mHu = null; | 78 Map<int, HandleUnion> mHu = null; |
79 | 79 |
80 StructOfUnions() : super(kVersions.last.size); | 80 StructOfUnions() : super(kVersions.last.size); |
81 | 81 |
| 82 StructOfUnions.init( |
| 83 ObjectUnion this.u, |
| 84 List<ObjectUnion> this.aOu, |
| 85 List<HandleUnion> this.aHu, |
| 86 Map<int, ObjectUnion> this.mOu, |
| 87 Map<int, HandleUnion> this.mHu |
| 88 ) : super(kVersions.last.size); |
| 89 |
82 static StructOfUnions deserialize(bindings.Message message) { | 90 static StructOfUnions deserialize(bindings.Message message) { |
83 var decoder = new bindings.Decoder(message); | 91 var decoder = new bindings.Decoder(message); |
84 var result = decode(decoder); | 92 var result = decode(decoder); |
85 if (decoder.excessHandles != null) { | 93 if (decoder.excessHandles != null) { |
86 decoder.excessHandles.forEach((h) => h.close()); | 94 decoder.excessHandles.forEach((h) => h.close()); |
87 } | 95 } |
88 return result; | 96 return result; |
89 } | 97 } |
90 | 98 |
91 static StructOfUnions decode(bindings.Decoder decoder0) { | 99 static StructOfUnions decode(bindings.Decoder decoder0) { |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 class WrapperStruct extends bindings.Struct { | 325 class WrapperStruct extends bindings.Struct { |
318 static const List<bindings.StructDataHeader> kVersions = const [ | 326 static const List<bindings.StructDataHeader> kVersions = const [ |
319 const bindings.StructDataHeader(56, 0) | 327 const bindings.StructDataHeader(56, 0) |
320 ]; | 328 ]; |
321 ObjectUnion objectUnion = null; | 329 ObjectUnion objectUnion = null; |
322 PodUnion podUnion = null; | 330 PodUnion podUnion = null; |
323 HandleUnion handleUnion = null; | 331 HandleUnion handleUnion = null; |
324 | 332 |
325 WrapperStruct() : super(kVersions.last.size); | 333 WrapperStruct() : super(kVersions.last.size); |
326 | 334 |
| 335 WrapperStruct.init( |
| 336 ObjectUnion this.objectUnion, |
| 337 PodUnion this.podUnion, |
| 338 HandleUnion this.handleUnion |
| 339 ) : super(kVersions.last.size); |
| 340 |
327 static WrapperStruct deserialize(bindings.Message message) { | 341 static WrapperStruct deserialize(bindings.Message message) { |
328 var decoder = new bindings.Decoder(message); | 342 var decoder = new bindings.Decoder(message); |
329 var result = decode(decoder); | 343 var result = decode(decoder); |
330 if (decoder.excessHandles != null) { | 344 if (decoder.excessHandles != null) { |
331 decoder.excessHandles.forEach((h) => h.close()); | 345 decoder.excessHandles.forEach((h) => h.close()); |
332 } | 346 } |
333 return result; | 347 return result; |
334 } | 348 } |
335 | 349 |
336 static WrapperStruct decode(bindings.Decoder decoder0) { | 350 static WrapperStruct decode(bindings.Decoder decoder0) { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 | 426 |
413 | 427 |
414 class DummyStruct extends bindings.Struct { | 428 class DummyStruct extends bindings.Struct { |
415 static const List<bindings.StructDataHeader> kVersions = const [ | 429 static const List<bindings.StructDataHeader> kVersions = const [ |
416 const bindings.StructDataHeader(16, 0) | 430 const bindings.StructDataHeader(16, 0) |
417 ]; | 431 ]; |
418 int fInt8 = 0; | 432 int fInt8 = 0; |
419 | 433 |
420 DummyStruct() : super(kVersions.last.size); | 434 DummyStruct() : super(kVersions.last.size); |
421 | 435 |
| 436 DummyStruct.init( |
| 437 int this.fInt8 |
| 438 ) : super(kVersions.last.size); |
| 439 |
422 static DummyStruct deserialize(bindings.Message message) { | 440 static DummyStruct deserialize(bindings.Message message) { |
423 var decoder = new bindings.Decoder(message); | 441 var decoder = new bindings.Decoder(message); |
424 var result = decode(decoder); | 442 var result = decode(decoder); |
425 if (decoder.excessHandles != null) { | 443 if (decoder.excessHandles != null) { |
426 decoder.excessHandles.forEach((h) => h.close()); | 444 decoder.excessHandles.forEach((h) => h.close()); |
427 } | 445 } |
428 return result; | 446 return result; |
429 } | 447 } |
430 | 448 |
431 static DummyStruct decode(bindings.Decoder decoder0) { | 449 static DummyStruct decode(bindings.Decoder decoder0) { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 DummyStruct dummyStruct = null; | 508 DummyStruct dummyStruct = null; |
491 PodUnion podUnion = null; | 509 PodUnion podUnion = null; |
492 List<PodUnion> podUnionArray = null; | 510 List<PodUnion> podUnionArray = null; |
493 List<PodUnion> nullablePodUnionArray = null; | 511 List<PodUnion> nullablePodUnionArray = null; |
494 List<DummyStruct> sArray = null; | 512 List<DummyStruct> sArray = null; |
495 Map<String, PodUnion> podUnionMap = null; | 513 Map<String, PodUnion> podUnionMap = null; |
496 Map<String, PodUnion> nullablePodUnionMap = null; | 514 Map<String, PodUnion> nullablePodUnionMap = null; |
497 | 515 |
498 SmallStruct() : super(kVersions.last.size); | 516 SmallStruct() : super(kVersions.last.size); |
499 | 517 |
| 518 SmallStruct.init( |
| 519 DummyStruct this.dummyStruct, |
| 520 PodUnion this.podUnion, |
| 521 List<PodUnion> this.podUnionArray, |
| 522 List<PodUnion> this.nullablePodUnionArray, |
| 523 List<DummyStruct> this.sArray, |
| 524 Map<String, PodUnion> this.podUnionMap, |
| 525 Map<String, PodUnion> this.nullablePodUnionMap |
| 526 ) : super(kVersions.last.size); |
| 527 |
500 static SmallStruct deserialize(bindings.Message message) { | 528 static SmallStruct deserialize(bindings.Message message) { |
501 var decoder = new bindings.Decoder(message); | 529 var decoder = new bindings.Decoder(message); |
502 var result = decode(decoder); | 530 var result = decode(decoder); |
503 if (decoder.excessHandles != null) { | 531 if (decoder.excessHandles != null) { |
504 decoder.excessHandles.forEach((h) => h.close()); | 532 decoder.excessHandles.forEach((h) => h.close()); |
505 } | 533 } |
506 return result; | 534 return result; |
507 } | 535 } |
508 | 536 |
509 static SmallStruct decode(bindings.Decoder decoder0) { | 537 static SmallStruct decode(bindings.Decoder decoder0) { |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 | 835 |
808 | 836 |
809 class SmallStructNonNullableUnion extends bindings.Struct { | 837 class SmallStructNonNullableUnion extends bindings.Struct { |
810 static const List<bindings.StructDataHeader> kVersions = const [ | 838 static const List<bindings.StructDataHeader> kVersions = const [ |
811 const bindings.StructDataHeader(24, 0) | 839 const bindings.StructDataHeader(24, 0) |
812 ]; | 840 ]; |
813 PodUnion podUnion = null; | 841 PodUnion podUnion = null; |
814 | 842 |
815 SmallStructNonNullableUnion() : super(kVersions.last.size); | 843 SmallStructNonNullableUnion() : super(kVersions.last.size); |
816 | 844 |
| 845 SmallStructNonNullableUnion.init( |
| 846 PodUnion this.podUnion |
| 847 ) : super(kVersions.last.size); |
| 848 |
817 static SmallStructNonNullableUnion deserialize(bindings.Message message) { | 849 static SmallStructNonNullableUnion deserialize(bindings.Message message) { |
818 var decoder = new bindings.Decoder(message); | 850 var decoder = new bindings.Decoder(message); |
819 var result = decode(decoder); | 851 var result = decode(decoder); |
820 if (decoder.excessHandles != null) { | 852 if (decoder.excessHandles != null) { |
821 decoder.excessHandles.forEach((h) => h.close()); | 853 decoder.excessHandles.forEach((h) => h.close()); |
822 } | 854 } |
823 return result; | 855 return result; |
824 } | 856 } |
825 | 857 |
826 static SmallStructNonNullableUnion decode(bindings.Decoder decoder0) { | 858 static SmallStructNonNullableUnion decode(bindings.Decoder decoder0) { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
883 | 915 |
884 | 916 |
885 class StructNullObjectUnion extends bindings.Struct { | 917 class StructNullObjectUnion extends bindings.Struct { |
886 static const List<bindings.StructDataHeader> kVersions = const [ | 918 static const List<bindings.StructDataHeader> kVersions = const [ |
887 const bindings.StructDataHeader(24, 0) | 919 const bindings.StructDataHeader(24, 0) |
888 ]; | 920 ]; |
889 ObjectOnlyUnion objUnion = null; | 921 ObjectOnlyUnion objUnion = null; |
890 | 922 |
891 StructNullObjectUnion() : super(kVersions.last.size); | 923 StructNullObjectUnion() : super(kVersions.last.size); |
892 | 924 |
| 925 StructNullObjectUnion.init( |
| 926 ObjectOnlyUnion this.objUnion |
| 927 ) : super(kVersions.last.size); |
| 928 |
893 static StructNullObjectUnion deserialize(bindings.Message message) { | 929 static StructNullObjectUnion deserialize(bindings.Message message) { |
894 var decoder = new bindings.Decoder(message); | 930 var decoder = new bindings.Decoder(message); |
895 var result = decode(decoder); | 931 var result = decode(decoder); |
896 if (decoder.excessHandles != null) { | 932 if (decoder.excessHandles != null) { |
897 decoder.excessHandles.forEach((h) => h.close()); | 933 decoder.excessHandles.forEach((h) => h.close()); |
898 } | 934 } |
899 return result; | 935 return result; |
900 } | 936 } |
901 | 937 |
902 static StructNullObjectUnion decode(bindings.Decoder decoder0) { | 938 static StructNullObjectUnion decode(bindings.Decoder decoder0) { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
956 | 992 |
957 class SmallObjStruct extends bindings.Struct { | 993 class SmallObjStruct extends bindings.Struct { |
958 static const List<bindings.StructDataHeader> kVersions = const [ | 994 static const List<bindings.StructDataHeader> kVersions = const [ |
959 const bindings.StructDataHeader(32, 0) | 995 const bindings.StructDataHeader(32, 0) |
960 ]; | 996 ]; |
961 ObjectUnion objUnion = null; | 997 ObjectUnion objUnion = null; |
962 int fInt8 = 0; | 998 int fInt8 = 0; |
963 | 999 |
964 SmallObjStruct() : super(kVersions.last.size); | 1000 SmallObjStruct() : super(kVersions.last.size); |
965 | 1001 |
| 1002 SmallObjStruct.init( |
| 1003 ObjectUnion this.objUnion, |
| 1004 int this.fInt8 |
| 1005 ) : super(kVersions.last.size); |
| 1006 |
966 static SmallObjStruct deserialize(bindings.Message message) { | 1007 static SmallObjStruct deserialize(bindings.Message message) { |
967 var decoder = new bindings.Decoder(message); | 1008 var decoder = new bindings.Decoder(message); |
968 var result = decode(decoder); | 1009 var result = decode(decoder); |
969 if (decoder.excessHandles != null) { | 1010 if (decoder.excessHandles != null) { |
970 decoder.excessHandles.forEach((h) => h.close()); | 1011 decoder.excessHandles.forEach((h) => h.close()); |
971 } | 1012 } |
972 return result; | 1013 return result; |
973 } | 1014 } |
974 | 1015 |
975 static SmallObjStruct decode(bindings.Decoder decoder0) { | 1016 static SmallObjStruct decode(bindings.Decoder decoder0) { |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1046 | 1087 |
1047 class TryNonNullStruct extends bindings.Struct { | 1088 class TryNonNullStruct extends bindings.Struct { |
1048 static const List<bindings.StructDataHeader> kVersions = const [ | 1089 static const List<bindings.StructDataHeader> kVersions = const [ |
1049 const bindings.StructDataHeader(24, 0) | 1090 const bindings.StructDataHeader(24, 0) |
1050 ]; | 1091 ]; |
1051 DummyStruct nullable = null; | 1092 DummyStruct nullable = null; |
1052 DummyStruct nonNullable = null; | 1093 DummyStruct nonNullable = null; |
1053 | 1094 |
1054 TryNonNullStruct() : super(kVersions.last.size); | 1095 TryNonNullStruct() : super(kVersions.last.size); |
1055 | 1096 |
| 1097 TryNonNullStruct.init( |
| 1098 DummyStruct this.nullable, |
| 1099 DummyStruct this.nonNullable |
| 1100 ) : super(kVersions.last.size); |
| 1101 |
1056 static TryNonNullStruct deserialize(bindings.Message message) { | 1102 static TryNonNullStruct deserialize(bindings.Message message) { |
1057 var decoder = new bindings.Decoder(message); | 1103 var decoder = new bindings.Decoder(message); |
1058 var result = decode(decoder); | 1104 var result = decode(decoder); |
1059 if (decoder.excessHandles != null) { | 1105 if (decoder.excessHandles != null) { |
1060 decoder.excessHandles.forEach((h) => h.close()); | 1106 decoder.excessHandles.forEach((h) => h.close()); |
1061 } | 1107 } |
1062 return result; | 1108 return result; |
1063 } | 1109 } |
1064 | 1110 |
1065 static TryNonNullStruct decode(bindings.Decoder decoder0) { | 1111 static TryNonNullStruct decode(bindings.Decoder decoder0) { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1133 | 1179 |
1134 | 1180 |
1135 class IncludingStruct extends bindings.Struct { | 1181 class IncludingStruct extends bindings.Struct { |
1136 static const List<bindings.StructDataHeader> kVersions = const [ | 1182 static const List<bindings.StructDataHeader> kVersions = const [ |
1137 const bindings.StructDataHeader(24, 0) | 1183 const bindings.StructDataHeader(24, 0) |
1138 ]; | 1184 ]; |
1139 test_included_unions_mojom.IncludedUnion a = null; | 1185 test_included_unions_mojom.IncludedUnion a = null; |
1140 | 1186 |
1141 IncludingStruct() : super(kVersions.last.size); | 1187 IncludingStruct() : super(kVersions.last.size); |
1142 | 1188 |
| 1189 IncludingStruct.init( |
| 1190 test_included_unions_mojom.IncludedUnion this.a |
| 1191 ) : super(kVersions.last.size); |
| 1192 |
1143 static IncludingStruct deserialize(bindings.Message message) { | 1193 static IncludingStruct deserialize(bindings.Message message) { |
1144 var decoder = new bindings.Decoder(message); | 1194 var decoder = new bindings.Decoder(message); |
1145 var result = decode(decoder); | 1195 var result = decode(decoder); |
1146 if (decoder.excessHandles != null) { | 1196 if (decoder.excessHandles != null) { |
1147 decoder.excessHandles.forEach((h) => h.close()); | 1197 decoder.excessHandles.forEach((h) => h.close()); |
1148 } | 1198 } |
1149 return result; | 1199 return result; |
1150 } | 1200 } |
1151 | 1201 |
1152 static IncludingStruct decode(bindings.Decoder decoder0) { | 1202 static IncludingStruct decode(bindings.Decoder decoder0) { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1209 | 1259 |
1210 | 1260 |
1211 class _SmallCacheSetIntValueParams extends bindings.Struct { | 1261 class _SmallCacheSetIntValueParams extends bindings.Struct { |
1212 static const List<bindings.StructDataHeader> kVersions = const [ | 1262 static const List<bindings.StructDataHeader> kVersions = const [ |
1213 const bindings.StructDataHeader(16, 0) | 1263 const bindings.StructDataHeader(16, 0) |
1214 ]; | 1264 ]; |
1215 int intValue = 0; | 1265 int intValue = 0; |
1216 | 1266 |
1217 _SmallCacheSetIntValueParams() : super(kVersions.last.size); | 1267 _SmallCacheSetIntValueParams() : super(kVersions.last.size); |
1218 | 1268 |
| 1269 _SmallCacheSetIntValueParams.init( |
| 1270 int this.intValue |
| 1271 ) : super(kVersions.last.size); |
| 1272 |
1219 static _SmallCacheSetIntValueParams deserialize(bindings.Message message) { | 1273 static _SmallCacheSetIntValueParams deserialize(bindings.Message message) { |
1220 var decoder = new bindings.Decoder(message); | 1274 var decoder = new bindings.Decoder(message); |
1221 var result = decode(decoder); | 1275 var result = decode(decoder); |
1222 if (decoder.excessHandles != null) { | 1276 if (decoder.excessHandles != null) { |
1223 decoder.excessHandles.forEach((h) => h.close()); | 1277 decoder.excessHandles.forEach((h) => h.close()); |
1224 } | 1278 } |
1225 return result; | 1279 return result; |
1226 } | 1280 } |
1227 | 1281 |
1228 static _SmallCacheSetIntValueParams decode(bindings.Decoder decoder0) { | 1282 static _SmallCacheSetIntValueParams decode(bindings.Decoder decoder0) { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1280 } | 1334 } |
1281 | 1335 |
1282 | 1336 |
1283 class _SmallCacheGetIntValueParams extends bindings.Struct { | 1337 class _SmallCacheGetIntValueParams extends bindings.Struct { |
1284 static const List<bindings.StructDataHeader> kVersions = const [ | 1338 static const List<bindings.StructDataHeader> kVersions = const [ |
1285 const bindings.StructDataHeader(8, 0) | 1339 const bindings.StructDataHeader(8, 0) |
1286 ]; | 1340 ]; |
1287 | 1341 |
1288 _SmallCacheGetIntValueParams() : super(kVersions.last.size); | 1342 _SmallCacheGetIntValueParams() : super(kVersions.last.size); |
1289 | 1343 |
| 1344 _SmallCacheGetIntValueParams.init( |
| 1345 ) : super(kVersions.last.size); |
| 1346 |
1290 static _SmallCacheGetIntValueParams deserialize(bindings.Message message) { | 1347 static _SmallCacheGetIntValueParams deserialize(bindings.Message message) { |
1291 var decoder = new bindings.Decoder(message); | 1348 var decoder = new bindings.Decoder(message); |
1292 var result = decode(decoder); | 1349 var result = decode(decoder); |
1293 if (decoder.excessHandles != null) { | 1350 if (decoder.excessHandles != null) { |
1294 decoder.excessHandles.forEach((h) => h.close()); | 1351 decoder.excessHandles.forEach((h) => h.close()); |
1295 } | 1352 } |
1296 return result; | 1353 return result; |
1297 } | 1354 } |
1298 | 1355 |
1299 static _SmallCacheGetIntValueParams decode(bindings.Decoder decoder0) { | 1356 static _SmallCacheGetIntValueParams decode(bindings.Decoder decoder0) { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1339 | 1396 |
1340 | 1397 |
1341 class SmallCacheGetIntValueResponseParams extends bindings.Struct { | 1398 class SmallCacheGetIntValueResponseParams extends bindings.Struct { |
1342 static const List<bindings.StructDataHeader> kVersions = const [ | 1399 static const List<bindings.StructDataHeader> kVersions = const [ |
1343 const bindings.StructDataHeader(16, 0) | 1400 const bindings.StructDataHeader(16, 0) |
1344 ]; | 1401 ]; |
1345 int intValue = 0; | 1402 int intValue = 0; |
1346 | 1403 |
1347 SmallCacheGetIntValueResponseParams() : super(kVersions.last.size); | 1404 SmallCacheGetIntValueResponseParams() : super(kVersions.last.size); |
1348 | 1405 |
| 1406 SmallCacheGetIntValueResponseParams.init( |
| 1407 int this.intValue |
| 1408 ) : super(kVersions.last.size); |
| 1409 |
1349 static SmallCacheGetIntValueResponseParams deserialize(bindings.Message messag
e) { | 1410 static SmallCacheGetIntValueResponseParams deserialize(bindings.Message messag
e) { |
1350 var decoder = new bindings.Decoder(message); | 1411 var decoder = new bindings.Decoder(message); |
1351 var result = decode(decoder); | 1412 var result = decode(decoder); |
1352 if (decoder.excessHandles != null) { | 1413 if (decoder.excessHandles != null) { |
1353 decoder.excessHandles.forEach((h) => h.close()); | 1414 decoder.excessHandles.forEach((h) => h.close()); |
1354 } | 1415 } |
1355 return result; | 1416 return result; |
1356 } | 1417 } |
1357 | 1418 |
1358 static SmallCacheGetIntValueResponseParams decode(bindings.Decoder decoder0) { | 1419 static SmallCacheGetIntValueResponseParams decode(bindings.Decoder decoder0) { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1411 | 1472 |
1412 | 1473 |
1413 class _UnionInterfaceEchoParams extends bindings.Struct { | 1474 class _UnionInterfaceEchoParams extends bindings.Struct { |
1414 static const List<bindings.StructDataHeader> kVersions = const [ | 1475 static const List<bindings.StructDataHeader> kVersions = const [ |
1415 const bindings.StructDataHeader(24, 0) | 1476 const bindings.StructDataHeader(24, 0) |
1416 ]; | 1477 ]; |
1417 PodUnion inVal = null; | 1478 PodUnion inVal = null; |
1418 | 1479 |
1419 _UnionInterfaceEchoParams() : super(kVersions.last.size); | 1480 _UnionInterfaceEchoParams() : super(kVersions.last.size); |
1420 | 1481 |
| 1482 _UnionInterfaceEchoParams.init( |
| 1483 PodUnion this.inVal |
| 1484 ) : super(kVersions.last.size); |
| 1485 |
1421 static _UnionInterfaceEchoParams deserialize(bindings.Message message) { | 1486 static _UnionInterfaceEchoParams deserialize(bindings.Message message) { |
1422 var decoder = new bindings.Decoder(message); | 1487 var decoder = new bindings.Decoder(message); |
1423 var result = decode(decoder); | 1488 var result = decode(decoder); |
1424 if (decoder.excessHandles != null) { | 1489 if (decoder.excessHandles != null) { |
1425 decoder.excessHandles.forEach((h) => h.close()); | 1490 decoder.excessHandles.forEach((h) => h.close()); |
1426 } | 1491 } |
1427 return result; | 1492 return result; |
1428 } | 1493 } |
1429 | 1494 |
1430 static _UnionInterfaceEchoParams decode(bindings.Decoder decoder0) { | 1495 static _UnionInterfaceEchoParams decode(bindings.Decoder decoder0) { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1487 | 1552 |
1488 | 1553 |
1489 class UnionInterfaceEchoResponseParams extends bindings.Struct { | 1554 class UnionInterfaceEchoResponseParams extends bindings.Struct { |
1490 static const List<bindings.StructDataHeader> kVersions = const [ | 1555 static const List<bindings.StructDataHeader> kVersions = const [ |
1491 const bindings.StructDataHeader(24, 0) | 1556 const bindings.StructDataHeader(24, 0) |
1492 ]; | 1557 ]; |
1493 PodUnion outVal = null; | 1558 PodUnion outVal = null; |
1494 | 1559 |
1495 UnionInterfaceEchoResponseParams() : super(kVersions.last.size); | 1560 UnionInterfaceEchoResponseParams() : super(kVersions.last.size); |
1496 | 1561 |
| 1562 UnionInterfaceEchoResponseParams.init( |
| 1563 PodUnion this.outVal |
| 1564 ) : super(kVersions.last.size); |
| 1565 |
1497 static UnionInterfaceEchoResponseParams deserialize(bindings.Message message)
{ | 1566 static UnionInterfaceEchoResponseParams deserialize(bindings.Message message)
{ |
1498 var decoder = new bindings.Decoder(message); | 1567 var decoder = new bindings.Decoder(message); |
1499 var result = decode(decoder); | 1568 var result = decode(decoder); |
1500 if (decoder.excessHandles != null) { | 1569 if (decoder.excessHandles != null) { |
1501 decoder.excessHandles.forEach((h) => h.close()); | 1570 decoder.excessHandles.forEach((h) => h.close()); |
1502 } | 1571 } |
1503 return result; | 1572 return result; |
1504 } | 1573 } |
1505 | 1574 |
1506 static UnionInterfaceEchoResponseParams decode(bindings.Decoder decoder0) { | 1575 static UnionInterfaceEchoResponseParams decode(bindings.Decoder decoder0) { |
(...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2947 result += "unknown"; | 3016 result += "unknown"; |
2948 } | 3017 } |
2949 result += ": $_data)"; | 3018 result += ": $_data)"; |
2950 return result; | 3019 return result; |
2951 } | 3020 } |
2952 } | 3021 } |
2953 const int _smallCacheMethodSetIntValueName = 0; | 3022 const int _smallCacheMethodSetIntValueName = 0; |
2954 const int _smallCacheMethodGetIntValueName = 1; | 3023 const int _smallCacheMethodGetIntValueName = 1; |
2955 | 3024 |
2956 class _SmallCacheServiceDescription implements service_describer.ServiceDescript
ion { | 3025 class _SmallCacheServiceDescription implements service_describer.ServiceDescript
ion { |
2957 dynamic getTopLevelInterface([Function responseFactory]) => | 3026 void getTopLevelInterface(Function responder) { |
2958 responseFactory(null); | 3027 responder(null); |
| 3028 } |
2959 | 3029 |
2960 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 3030 void getTypeDefinition(String typeKey, Function responder) { |
2961 responseFactory(null); | 3031 responder(null); |
| 3032 } |
2962 | 3033 |
2963 dynamic getAllTypeDefinitions([Function responseFactory]) => | 3034 void getAllTypeDefinitions(Function responder) { |
2964 responseFactory(null); | 3035 responder(null); |
| 3036 } |
2965 } | 3037 } |
2966 | 3038 |
2967 abstract class SmallCache { | 3039 abstract class SmallCache { |
2968 static const String serviceName = null; | 3040 static const String serviceName = null; |
2969 | 3041 |
2970 static service_describer.ServiceDescription _cachedServiceDescription; | 3042 static service_describer.ServiceDescription _cachedServiceDescription; |
2971 static service_describer.ServiceDescription get serviceDescription { | 3043 static service_describer.ServiceDescription get serviceDescription { |
2972 if (_cachedServiceDescription == null) { | 3044 if (_cachedServiceDescription == null) { |
2973 _cachedServiceDescription = new _SmallCacheServiceDescription(); | 3045 _cachedServiceDescription = new _SmallCacheServiceDescription(); |
2974 } | 3046 } |
2975 return _cachedServiceDescription; | 3047 return _cachedServiceDescription; |
2976 } | 3048 } |
2977 | 3049 |
2978 static SmallCacheProxy connectToService( | 3050 static SmallCacheProxy connectToService( |
2979 bindings.ServiceConnector s, String url, [String serviceName]) { | 3051 bindings.ServiceConnector s, String url, [String serviceName]) { |
2980 SmallCacheProxy p = new SmallCacheProxy.unbound(); | 3052 SmallCacheProxy p = new SmallCacheProxy.unbound(); |
2981 String name = serviceName ?? SmallCache.serviceName; | 3053 String name = serviceName ?? SmallCache.serviceName; |
2982 if ((name == null) || name.isEmpty) { | 3054 if ((name == null) || name.isEmpty) { |
2983 throw new core.MojoApiError( | 3055 throw new core.MojoApiError( |
2984 "If an interface has no ServiceName, then one must be provided."); | 3056 "If an interface has no ServiceName, then one must be provided."); |
2985 } | 3057 } |
2986 s.connectToService(url, p, name); | 3058 s.connectToService(url, p, name); |
2987 return p; | 3059 return p; |
2988 } | 3060 } |
2989 void setIntValue(int intValue); | 3061 void setIntValue(int intValue); |
2990 dynamic getIntValue([Function responseFactory = null]); | 3062 void getIntValue(void callback(int intValue)); |
2991 } | 3063 } |
2992 | 3064 |
2993 abstract class SmallCacheInterface | 3065 abstract class SmallCacheInterface |
2994 implements bindings.MojoInterface<SmallCache>, | 3066 implements bindings.MojoInterface<SmallCache>, |
2995 SmallCache { | 3067 SmallCache { |
2996 factory SmallCacheInterface([SmallCache impl]) => | 3068 factory SmallCacheInterface([SmallCache impl]) => |
2997 new SmallCacheStub.unbound(impl); | 3069 new SmallCacheStub.unbound(impl); |
2998 | 3070 |
2999 factory SmallCacheInterface.fromEndpoint( | 3071 factory SmallCacheInterface.fromEndpoint( |
3000 core.MojoMessagePipeEndpoint endpoint, | 3072 core.MojoMessagePipeEndpoint endpoint, |
(...skipping 29 matching lines...) Expand all Loading... |
3030 | 3102 |
3031 void handleResponse(bindings.ServiceMessage message) { | 3103 void handleResponse(bindings.ServiceMessage message) { |
3032 switch (message.header.type) { | 3104 switch (message.header.type) { |
3033 case _smallCacheMethodGetIntValueName: | 3105 case _smallCacheMethodGetIntValueName: |
3034 var r = SmallCacheGetIntValueResponseParams.deserialize( | 3106 var r = SmallCacheGetIntValueResponseParams.deserialize( |
3035 message.payload); | 3107 message.payload); |
3036 if (!message.header.hasRequestId) { | 3108 if (!message.header.hasRequestId) { |
3037 proxyError("Expected a message with a valid request Id."); | 3109 proxyError("Expected a message with a valid request Id."); |
3038 return; | 3110 return; |
3039 } | 3111 } |
3040 Completer c = completerMap[message.header.requestId]; | 3112 Function callback = callbackMap[message.header.requestId]; |
3041 if (c == null) { | 3113 if (callback == null) { |
3042 proxyError( | 3114 proxyError( |
3043 "Message had unknown request Id: ${message.header.requestId}"); | 3115 "Message had unknown request Id: ${message.header.requestId}"); |
3044 return; | 3116 return; |
3045 } | 3117 } |
3046 completerMap.remove(message.header.requestId); | 3118 callbackMap.remove(message.header.requestId); |
3047 if (c.isCompleted) { | 3119 callback(r.intValue ); |
3048 proxyError("Response completer already completed"); | |
3049 return; | |
3050 } | |
3051 c.complete(r); | |
3052 break; | 3120 break; |
3053 default: | 3121 default: |
3054 proxyError("Unexpected message type: ${message.header.type}"); | 3122 proxyError("Unexpected message type: ${message.header.type}"); |
3055 close(immediate: true); | 3123 close(immediate: true); |
3056 break; | 3124 break; |
3057 } | 3125 } |
3058 } | 3126 } |
3059 | 3127 |
3060 @override | 3128 @override |
3061 String toString() { | 3129 String toString() { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3100 } | 3168 } |
3101 if (!ctrl.isBound) { | 3169 if (!ctrl.isBound) { |
3102 ctrl.proxyError("The Proxy is closed."); | 3170 ctrl.proxyError("The Proxy is closed."); |
3103 return; | 3171 return; |
3104 } | 3172 } |
3105 var params = new _SmallCacheSetIntValueParams(); | 3173 var params = new _SmallCacheSetIntValueParams(); |
3106 params.intValue = intValue; | 3174 params.intValue = intValue; |
3107 ctrl.sendMessage(params, | 3175 ctrl.sendMessage(params, |
3108 _smallCacheMethodSetIntValueName); | 3176 _smallCacheMethodSetIntValueName); |
3109 } | 3177 } |
3110 dynamic getIntValue([Function responseFactory = null]) { | 3178 void getIntValue(void callback(int intValue)) { |
3111 if (impl != null) { | 3179 if (impl != null) { |
3112 return new Future(() => impl.getIntValue(_SmallCacheStubControl._smallCach
eGetIntValueResponseParamsFactory)); | 3180 impl.getIntValue(callback); |
| 3181 return; |
3113 } | 3182 } |
3114 var params = new _SmallCacheGetIntValueParams(); | 3183 var params = new _SmallCacheGetIntValueParams(); |
3115 return ctrl.sendMessageWithRequestId( | 3184 ctrl.sendMessageWithRequestId( |
3116 params, | 3185 params, |
3117 _smallCacheMethodGetIntValueName, | 3186 _smallCacheMethodGetIntValueName, |
3118 -1, | 3187 -1, |
3119 bindings.MessageHeader.kMessageExpectsResponse); | 3188 bindings.MessageHeader.kMessageExpectsResponse, |
| 3189 callback); |
3120 } | 3190 } |
3121 } | 3191 } |
3122 | 3192 |
3123 class _SmallCacheStubControl | 3193 class _SmallCacheStubControl |
3124 extends bindings.StubMessageHandler | 3194 extends bindings.StubMessageHandler |
3125 implements bindings.StubControl<SmallCache> { | 3195 implements bindings.StubControl<SmallCache> { |
3126 SmallCache _impl; | 3196 SmallCache _impl; |
3127 | 3197 |
3128 _SmallCacheStubControl.fromEndpoint( | 3198 _SmallCacheStubControl.fromEndpoint( |
3129 core.MojoMessagePipeEndpoint endpoint, [SmallCache impl]) | 3199 core.MojoMessagePipeEndpoint endpoint, [SmallCache impl]) |
3130 : super.fromEndpoint(endpoint, autoBegin: impl != null) { | 3200 : super.fromEndpoint(endpoint, autoBegin: impl != null) { |
3131 _impl = impl; | 3201 _impl = impl; |
3132 } | 3202 } |
3133 | 3203 |
3134 _SmallCacheStubControl.fromHandle( | 3204 _SmallCacheStubControl.fromHandle( |
3135 core.MojoHandle handle, [SmallCache impl]) | 3205 core.MojoHandle handle, [SmallCache impl]) |
3136 : super.fromHandle(handle, autoBegin: impl != null) { | 3206 : super.fromHandle(handle, autoBegin: impl != null) { |
3137 _impl = impl; | 3207 _impl = impl; |
3138 } | 3208 } |
3139 | 3209 |
3140 _SmallCacheStubControl.unbound([this._impl]) : super.unbound(); | 3210 _SmallCacheStubControl.unbound([this._impl]) : super.unbound(); |
3141 | 3211 |
3142 String get serviceName => SmallCache.serviceName; | 3212 String get serviceName => SmallCache.serviceName; |
3143 | 3213 |
3144 | 3214 |
3145 static SmallCacheGetIntValueResponseParams _smallCacheGetIntValueResponseParam
sFactory(int intValue) { | 3215 Function _smallCacheGetIntValueResponseParamsResponder( |
3146 var result = new SmallCacheGetIntValueResponseParams(); | 3216 int requestId) { |
3147 result.intValue = intValue; | 3217 return (int intValue) { |
3148 return result; | 3218 var result = new SmallCacheGetIntValueResponseParams(); |
| 3219 result.intValue = intValue; |
| 3220 sendResponse(buildResponseWithId( |
| 3221 result, |
| 3222 _smallCacheMethodGetIntValueName, |
| 3223 requestId, |
| 3224 bindings.MessageHeader.kMessageIsResponse)); |
| 3225 }; |
3149 } | 3226 } |
3150 | 3227 |
3151 dynamic handleMessage(bindings.ServiceMessage message) { | 3228 void handleMessage(bindings.ServiceMessage message) { |
3152 if (bindings.ControlMessageHandler.isControlMessage(message)) { | 3229 if (bindings.ControlMessageHandler.isControlMessage(message)) { |
3153 return bindings.ControlMessageHandler.handleMessage(this, | 3230 bindings.ControlMessageHandler.handleMessage( |
3154 0, | 3231 this, 0, message); |
3155 message); | 3232 return; |
3156 } | 3233 } |
3157 if (_impl == null) { | 3234 if (_impl == null) { |
3158 throw new core.MojoApiError("$this has no implementation set"); | 3235 throw new core.MojoApiError("$this has no implementation set"); |
3159 } | 3236 } |
3160 switch (message.header.type) { | 3237 switch (message.header.type) { |
3161 case _smallCacheMethodSetIntValueName: | 3238 case _smallCacheMethodSetIntValueName: |
3162 var params = _SmallCacheSetIntValueParams.deserialize( | 3239 var params = _SmallCacheSetIntValueParams.deserialize( |
3163 message.payload); | 3240 message.payload); |
3164 _impl.setIntValue(params.intValue); | 3241 _impl.setIntValue(params.intValue); |
3165 break; | 3242 break; |
3166 case _smallCacheMethodGetIntValueName: | 3243 case _smallCacheMethodGetIntValueName: |
3167 var response = _impl.getIntValue(_smallCacheGetIntValueResponseParamsFac
tory); | 3244 _impl.getIntValue(_smallCacheGetIntValueResponseParamsResponder(message.
header.requestId)); |
3168 if (response is Future) { | |
3169 return response.then((response) { | |
3170 if (response != null) { | |
3171 return buildResponseWithId( | |
3172 response, | |
3173 _smallCacheMethodGetIntValueName, | |
3174 message.header.requestId, | |
3175 bindings.MessageHeader.kMessageIsResponse); | |
3176 } | |
3177 }); | |
3178 } else if (response != null) { | |
3179 return buildResponseWithId( | |
3180 response, | |
3181 _smallCacheMethodGetIntValueName, | |
3182 message.header.requestId, | |
3183 bindings.MessageHeader.kMessageIsResponse); | |
3184 } | |
3185 break; | 3245 break; |
3186 default: | 3246 default: |
3187 throw new bindings.MojoCodecError("Unexpected message name"); | 3247 throw new bindings.MojoCodecError("Unexpected message name"); |
3188 break; | 3248 break; |
3189 } | 3249 } |
3190 return null; | |
3191 } | 3250 } |
3192 | 3251 |
3193 SmallCache get impl => _impl; | 3252 SmallCache get impl => _impl; |
3194 set impl(SmallCache d) { | 3253 set impl(SmallCache d) { |
3195 if (d == null) { | 3254 if (d == null) { |
3196 throw new core.MojoApiError("$this: Cannot set a null implementation"); | 3255 throw new core.MojoApiError("$this: Cannot set a null implementation"); |
3197 } | 3256 } |
3198 if (isBound && (_impl == null)) { | 3257 if (isBound && (_impl == null)) { |
3199 beginHandlingEvents(); | 3258 beginHandlingEvents(); |
3200 } | 3259 } |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3237 static SmallCacheStub newFromEndpoint( | 3296 static SmallCacheStub newFromEndpoint( |
3238 core.MojoMessagePipeEndpoint endpoint) { | 3297 core.MojoMessagePipeEndpoint endpoint) { |
3239 assert(endpoint.setDescription("For SmallCacheStub")); | 3298 assert(endpoint.setDescription("For SmallCacheStub")); |
3240 return new SmallCacheStub.fromEndpoint(endpoint); | 3299 return new SmallCacheStub.fromEndpoint(endpoint); |
3241 } | 3300 } |
3242 | 3301 |
3243 | 3302 |
3244 void setIntValue(int intValue) { | 3303 void setIntValue(int intValue) { |
3245 return impl.setIntValue(intValue); | 3304 return impl.setIntValue(intValue); |
3246 } | 3305 } |
3247 dynamic getIntValue([Function responseFactory = null]) { | 3306 void getIntValue(void callback(int intValue)) { |
3248 return impl.getIntValue(responseFactory); | 3307 return impl.getIntValue(callback); |
3249 } | 3308 } |
3250 } | 3309 } |
3251 | 3310 |
3252 const int _unionInterfaceMethodEchoName = 0; | 3311 const int _unionInterfaceMethodEchoName = 0; |
3253 | 3312 |
3254 class _UnionInterfaceServiceDescription implements service_describer.ServiceDesc
ription { | 3313 class _UnionInterfaceServiceDescription implements service_describer.ServiceDesc
ription { |
3255 dynamic getTopLevelInterface([Function responseFactory]) => | 3314 void getTopLevelInterface(Function responder) { |
3256 responseFactory(null); | 3315 responder(null); |
| 3316 } |
3257 | 3317 |
3258 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 3318 void getTypeDefinition(String typeKey, Function responder) { |
3259 responseFactory(null); | 3319 responder(null); |
| 3320 } |
3260 | 3321 |
3261 dynamic getAllTypeDefinitions([Function responseFactory]) => | 3322 void getAllTypeDefinitions(Function responder) { |
3262 responseFactory(null); | 3323 responder(null); |
| 3324 } |
3263 } | 3325 } |
3264 | 3326 |
3265 abstract class UnionInterface { | 3327 abstract class UnionInterface { |
3266 static const String serviceName = null; | 3328 static const String serviceName = null; |
3267 | 3329 |
3268 static service_describer.ServiceDescription _cachedServiceDescription; | 3330 static service_describer.ServiceDescription _cachedServiceDescription; |
3269 static service_describer.ServiceDescription get serviceDescription { | 3331 static service_describer.ServiceDescription get serviceDescription { |
3270 if (_cachedServiceDescription == null) { | 3332 if (_cachedServiceDescription == null) { |
3271 _cachedServiceDescription = new _UnionInterfaceServiceDescription(); | 3333 _cachedServiceDescription = new _UnionInterfaceServiceDescription(); |
3272 } | 3334 } |
3273 return _cachedServiceDescription; | 3335 return _cachedServiceDescription; |
3274 } | 3336 } |
3275 | 3337 |
3276 static UnionInterfaceProxy connectToService( | 3338 static UnionInterfaceProxy connectToService( |
3277 bindings.ServiceConnector s, String url, [String serviceName]) { | 3339 bindings.ServiceConnector s, String url, [String serviceName]) { |
3278 UnionInterfaceProxy p = new UnionInterfaceProxy.unbound(); | 3340 UnionInterfaceProxy p = new UnionInterfaceProxy.unbound(); |
3279 String name = serviceName ?? UnionInterface.serviceName; | 3341 String name = serviceName ?? UnionInterface.serviceName; |
3280 if ((name == null) || name.isEmpty) { | 3342 if ((name == null) || name.isEmpty) { |
3281 throw new core.MojoApiError( | 3343 throw new core.MojoApiError( |
3282 "If an interface has no ServiceName, then one must be provided."); | 3344 "If an interface has no ServiceName, then one must be provided."); |
3283 } | 3345 } |
3284 s.connectToService(url, p, name); | 3346 s.connectToService(url, p, name); |
3285 return p; | 3347 return p; |
3286 } | 3348 } |
3287 dynamic echo(PodUnion inVal,[Function responseFactory = null]); | 3349 void echo(PodUnion inVal,void callback(PodUnion outVal)); |
3288 } | 3350 } |
3289 | 3351 |
3290 abstract class UnionInterfaceInterface | 3352 abstract class UnionInterfaceInterface |
3291 implements bindings.MojoInterface<UnionInterface>, | 3353 implements bindings.MojoInterface<UnionInterface>, |
3292 UnionInterface { | 3354 UnionInterface { |
3293 factory UnionInterfaceInterface([UnionInterface impl]) => | 3355 factory UnionInterfaceInterface([UnionInterface impl]) => |
3294 new UnionInterfaceStub.unbound(impl); | 3356 new UnionInterfaceStub.unbound(impl); |
3295 | 3357 |
3296 factory UnionInterfaceInterface.fromEndpoint( | 3358 factory UnionInterfaceInterface.fromEndpoint( |
3297 core.MojoMessagePipeEndpoint endpoint, | 3359 core.MojoMessagePipeEndpoint endpoint, |
(...skipping 29 matching lines...) Expand all Loading... |
3327 | 3389 |
3328 void handleResponse(bindings.ServiceMessage message) { | 3390 void handleResponse(bindings.ServiceMessage message) { |
3329 switch (message.header.type) { | 3391 switch (message.header.type) { |
3330 case _unionInterfaceMethodEchoName: | 3392 case _unionInterfaceMethodEchoName: |
3331 var r = UnionInterfaceEchoResponseParams.deserialize( | 3393 var r = UnionInterfaceEchoResponseParams.deserialize( |
3332 message.payload); | 3394 message.payload); |
3333 if (!message.header.hasRequestId) { | 3395 if (!message.header.hasRequestId) { |
3334 proxyError("Expected a message with a valid request Id."); | 3396 proxyError("Expected a message with a valid request Id."); |
3335 return; | 3397 return; |
3336 } | 3398 } |
3337 Completer c = completerMap[message.header.requestId]; | 3399 Function callback = callbackMap[message.header.requestId]; |
3338 if (c == null) { | 3400 if (callback == null) { |
3339 proxyError( | 3401 proxyError( |
3340 "Message had unknown request Id: ${message.header.requestId}"); | 3402 "Message had unknown request Id: ${message.header.requestId}"); |
3341 return; | 3403 return; |
3342 } | 3404 } |
3343 completerMap.remove(message.header.requestId); | 3405 callbackMap.remove(message.header.requestId); |
3344 if (c.isCompleted) { | 3406 callback(r.outVal ); |
3345 proxyError("Response completer already completed"); | |
3346 return; | |
3347 } | |
3348 c.complete(r); | |
3349 break; | 3407 break; |
3350 default: | 3408 default: |
3351 proxyError("Unexpected message type: ${message.header.type}"); | 3409 proxyError("Unexpected message type: ${message.header.type}"); |
3352 close(immediate: true); | 3410 close(immediate: true); |
3353 break; | 3411 break; |
3354 } | 3412 } |
3355 } | 3413 } |
3356 | 3414 |
3357 @override | 3415 @override |
3358 String toString() { | 3416 String toString() { |
(...skipping 24 matching lines...) Expand all Loading... |
3383 return newMockedProxy; | 3441 return newMockedProxy; |
3384 } | 3442 } |
3385 | 3443 |
3386 static UnionInterfaceProxy newFromEndpoint( | 3444 static UnionInterfaceProxy newFromEndpoint( |
3387 core.MojoMessagePipeEndpoint endpoint) { | 3445 core.MojoMessagePipeEndpoint endpoint) { |
3388 assert(endpoint.setDescription("For UnionInterfaceProxy")); | 3446 assert(endpoint.setDescription("For UnionInterfaceProxy")); |
3389 return new UnionInterfaceProxy.fromEndpoint(endpoint); | 3447 return new UnionInterfaceProxy.fromEndpoint(endpoint); |
3390 } | 3448 } |
3391 | 3449 |
3392 | 3450 |
3393 dynamic echo(PodUnion inVal,[Function responseFactory = null]) { | 3451 void echo(PodUnion inVal,void callback(PodUnion outVal)) { |
3394 if (impl != null) { | 3452 if (impl != null) { |
3395 return new Future(() => impl.echo(inVal,_UnionInterfaceStubControl._unionI
nterfaceEchoResponseParamsFactory)); | 3453 impl.echo(inVal,callback); |
| 3454 return; |
3396 } | 3455 } |
3397 var params = new _UnionInterfaceEchoParams(); | 3456 var params = new _UnionInterfaceEchoParams(); |
3398 params.inVal = inVal; | 3457 params.inVal = inVal; |
3399 return ctrl.sendMessageWithRequestId( | 3458 ctrl.sendMessageWithRequestId( |
3400 params, | 3459 params, |
3401 _unionInterfaceMethodEchoName, | 3460 _unionInterfaceMethodEchoName, |
3402 -1, | 3461 -1, |
3403 bindings.MessageHeader.kMessageExpectsResponse); | 3462 bindings.MessageHeader.kMessageExpectsResponse, |
| 3463 callback); |
3404 } | 3464 } |
3405 } | 3465 } |
3406 | 3466 |
3407 class _UnionInterfaceStubControl | 3467 class _UnionInterfaceStubControl |
3408 extends bindings.StubMessageHandler | 3468 extends bindings.StubMessageHandler |
3409 implements bindings.StubControl<UnionInterface> { | 3469 implements bindings.StubControl<UnionInterface> { |
3410 UnionInterface _impl; | 3470 UnionInterface _impl; |
3411 | 3471 |
3412 _UnionInterfaceStubControl.fromEndpoint( | 3472 _UnionInterfaceStubControl.fromEndpoint( |
3413 core.MojoMessagePipeEndpoint endpoint, [UnionInterface impl]) | 3473 core.MojoMessagePipeEndpoint endpoint, [UnionInterface impl]) |
3414 : super.fromEndpoint(endpoint, autoBegin: impl != null) { | 3474 : super.fromEndpoint(endpoint, autoBegin: impl != null) { |
3415 _impl = impl; | 3475 _impl = impl; |
3416 } | 3476 } |
3417 | 3477 |
3418 _UnionInterfaceStubControl.fromHandle( | 3478 _UnionInterfaceStubControl.fromHandle( |
3419 core.MojoHandle handle, [UnionInterface impl]) | 3479 core.MojoHandle handle, [UnionInterface impl]) |
3420 : super.fromHandle(handle, autoBegin: impl != null) { | 3480 : super.fromHandle(handle, autoBegin: impl != null) { |
3421 _impl = impl; | 3481 _impl = impl; |
3422 } | 3482 } |
3423 | 3483 |
3424 _UnionInterfaceStubControl.unbound([this._impl]) : super.unbound(); | 3484 _UnionInterfaceStubControl.unbound([this._impl]) : super.unbound(); |
3425 | 3485 |
3426 String get serviceName => UnionInterface.serviceName; | 3486 String get serviceName => UnionInterface.serviceName; |
3427 | 3487 |
3428 | 3488 |
3429 static UnionInterfaceEchoResponseParams _unionInterfaceEchoResponseParamsFacto
ry(PodUnion outVal) { | 3489 Function _unionInterfaceEchoResponseParamsResponder( |
3430 var result = new UnionInterfaceEchoResponseParams(); | 3490 int requestId) { |
3431 result.outVal = outVal; | 3491 return (PodUnion outVal) { |
3432 return result; | 3492 var result = new UnionInterfaceEchoResponseParams(); |
| 3493 result.outVal = outVal; |
| 3494 sendResponse(buildResponseWithId( |
| 3495 result, |
| 3496 _unionInterfaceMethodEchoName, |
| 3497 requestId, |
| 3498 bindings.MessageHeader.kMessageIsResponse)); |
| 3499 }; |
3433 } | 3500 } |
3434 | 3501 |
3435 dynamic handleMessage(bindings.ServiceMessage message) { | 3502 void handleMessage(bindings.ServiceMessage message) { |
3436 if (bindings.ControlMessageHandler.isControlMessage(message)) { | 3503 if (bindings.ControlMessageHandler.isControlMessage(message)) { |
3437 return bindings.ControlMessageHandler.handleMessage(this, | 3504 bindings.ControlMessageHandler.handleMessage( |
3438 0, | 3505 this, 0, message); |
3439 message); | 3506 return; |
3440 } | 3507 } |
3441 if (_impl == null) { | 3508 if (_impl == null) { |
3442 throw new core.MojoApiError("$this has no implementation set"); | 3509 throw new core.MojoApiError("$this has no implementation set"); |
3443 } | 3510 } |
3444 switch (message.header.type) { | 3511 switch (message.header.type) { |
3445 case _unionInterfaceMethodEchoName: | 3512 case _unionInterfaceMethodEchoName: |
3446 var params = _UnionInterfaceEchoParams.deserialize( | 3513 var params = _UnionInterfaceEchoParams.deserialize( |
3447 message.payload); | 3514 message.payload); |
3448 var response = _impl.echo(params.inVal,_unionInterfaceEchoResponseParams
Factory); | 3515 _impl.echo(params.inVal, _unionInterfaceEchoResponseParamsResponder(mess
age.header.requestId)); |
3449 if (response is Future) { | |
3450 return response.then((response) { | |
3451 if (response != null) { | |
3452 return buildResponseWithId( | |
3453 response, | |
3454 _unionInterfaceMethodEchoName, | |
3455 message.header.requestId, | |
3456 bindings.MessageHeader.kMessageIsResponse); | |
3457 } | |
3458 }); | |
3459 } else if (response != null) { | |
3460 return buildResponseWithId( | |
3461 response, | |
3462 _unionInterfaceMethodEchoName, | |
3463 message.header.requestId, | |
3464 bindings.MessageHeader.kMessageIsResponse); | |
3465 } | |
3466 break; | 3516 break; |
3467 default: | 3517 default: |
3468 throw new bindings.MojoCodecError("Unexpected message name"); | 3518 throw new bindings.MojoCodecError("Unexpected message name"); |
3469 break; | 3519 break; |
3470 } | 3520 } |
3471 return null; | |
3472 } | 3521 } |
3473 | 3522 |
3474 UnionInterface get impl => _impl; | 3523 UnionInterface get impl => _impl; |
3475 set impl(UnionInterface d) { | 3524 set impl(UnionInterface d) { |
3476 if (d == null) { | 3525 if (d == null) { |
3477 throw new core.MojoApiError("$this: Cannot set a null implementation"); | 3526 throw new core.MojoApiError("$this: Cannot set a null implementation"); |
3478 } | 3527 } |
3479 if (isBound && (_impl == null)) { | 3528 if (isBound && (_impl == null)) { |
3480 beginHandlingEvents(); | 3529 beginHandlingEvents(); |
3481 } | 3530 } |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3515 core.MojoHandle handle, [UnionInterface impl]) | 3564 core.MojoHandle handle, [UnionInterface impl]) |
3516 : super(new _UnionInterfaceStubControl.fromHandle(handle, impl)); | 3565 : super(new _UnionInterfaceStubControl.fromHandle(handle, impl)); |
3517 | 3566 |
3518 static UnionInterfaceStub newFromEndpoint( | 3567 static UnionInterfaceStub newFromEndpoint( |
3519 core.MojoMessagePipeEndpoint endpoint) { | 3568 core.MojoMessagePipeEndpoint endpoint) { |
3520 assert(endpoint.setDescription("For UnionInterfaceStub")); | 3569 assert(endpoint.setDescription("For UnionInterfaceStub")); |
3521 return new UnionInterfaceStub.fromEndpoint(endpoint); | 3570 return new UnionInterfaceStub.fromEndpoint(endpoint); |
3522 } | 3571 } |
3523 | 3572 |
3524 | 3573 |
3525 dynamic echo(PodUnion inVal,[Function responseFactory = null]) { | 3574 void echo(PodUnion inVal,void callback(PodUnion outVal)) { |
3526 return impl.echo(inVal,responseFactory); | 3575 return impl.echo(inVal,callback); |
3527 } | 3576 } |
3528 } | 3577 } |
3529 | 3578 |
3530 | 3579 |
3531 mojom_types.RuntimeTypeInfo getRuntimeTypeInfo() => _runtimeTypeInfo ?? | 3580 mojom_types.RuntimeTypeInfo getRuntimeTypeInfo() => _runtimeTypeInfo ?? |
3532 _initRuntimeTypeInfo(); | 3581 _initRuntimeTypeInfo(); |
3533 | 3582 |
3534 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { | 3583 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
3535 return getRuntimeTypeInfo().typeMap; | 3584 return getRuntimeTypeInfo().typeMap; |
3536 } | 3585 } |
3537 | 3586 |
3538 var _runtimeTypeInfo; | 3587 var _runtimeTypeInfo; |
3539 mojom_types.RuntimeTypeInfo _initRuntimeTypeInfo() { | 3588 mojom_types.RuntimeTypeInfo _initRuntimeTypeInfo() { |
3540 // serializedRuntimeTypeInfo contains the bytes of the Mojo serialization of | 3589 // serializedRuntimeTypeInfo contains the bytes of the Mojo serialization of |
3541 // a mojom_types.RuntimeTypeInfo struct describing the Mojom types in this | 3590 // a mojom_types.RuntimeTypeInfo struct describing the Mojom types in this |
3542 // file. The string contains the base64 encoding of the gzip-compressed bytes. | 3591 // file. The string contains the base64 encoding of the gzip-compressed bytes. |
3543 var serializedRuntimeTypeInfo = "H4sIAAAJbogC/+xdTXDbxhUGSFGmZCdm4p8wcZswTtMqS
S3JP1U17p86thypmUpqpDbOtDMURIKmNCTAkEQSt52pjzn6qGOOOebYY4466uijjjrqqFsLgG9F7MPuY
kljAUoKZu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4qrbxyTHiUyA31ocQx5R3gsdmkdL73DGiS3Ia8uum0yRvEOejKeieb5Mv5YJ8
GulMeQ1HeDXcJ8bjl9zBUfxuCN5Ph+X3OL2e0HzEMcfrQrmIfgey6OQvNUmmYd0BPLD/gZuUmYfV7XBO
84RtzXz4fm5puZ7xLLzD2Hxb1k7HvXMUd8jpvqdj6jfq0S/twW443yau5me/fkvtMGeVCHb7vnkVHmpz
5HyadsJzi948ZHofdpR97kcV7+PxuXZmPPEZPNHTp6YoaBympesz4ugrxiX/xtwyeM+r5BHKk0H67vsf
SAsgZ6/ewLyxkHzsrjzxk4OyFEBvWJaPLzfA7+e5Htl48zLZMlj3HxSuDwaXHm8/4LKg+6XF3W/ZdG86
5kWbz4pTB4tgX38MqF5liZYT1bBXjIS80pD+fDt5eoxkc+49hMUP2U9cqPxE+6XNTM1WvxUDvCTTl/oZ
thXQD4h22X75Pplwuvt91NqxEs4b8S8EMWp+3J9Ldb1NVzXbJttZscDintPO177SYSt5+cF9YIanY9p8
c7H6Gb5/vkYS0Hl5ICnQn3zHFHhsPezcR+A+5l4/QmOpyvVhsnrb1tLtv4S+S6PWE8YZs8Ov97Cyxehj
lDmOIP1Rbttp4yQrxe5E5xPjVsvcX0O9PKowPWlXvLXlU3LrW/l6uU7J0gvJ7U/Heoj82MzGu93JlgK2
p83Nbn7WtD8J8btB2CnuN/904D97iexb2JYnrNwzPKcov2y9sl8YdL5zLdOWD4zDPe0pLzllROWtxTtf
4a4ZyTlJ98+4fnJMDlMScpD/uyE5yFF67MPs/HGJ8yP3HHjE5aCyumW5LxiAfQR+4G/m3mYVqP+AOfHp
mtUwxIEitttRfOMca5rBOGeiznPGLWOaUU7vnX8QXgXxlx3DdPzwa9PifX8I0X1fBLrQ946+/8HAAD//
22WXrtoeAAA"; |
3544 | 3593 |
3545 // Deserialize RuntimeTypeInfo | 3594 // Deserialize RuntimeTypeInfo |
3546 var bytes = BASE64.decode(serializedRuntimeTypeInfo); | 3595 var bytes = BASE64.decode(serializedRuntimeTypeInfo); |
3547 var unzippedBytes = new ZLibDecoder().convert(bytes); | 3596 var unzippedBytes = new ZLibDecoder().convert(bytes); |
3548 var bdata = new ByteData.view(unzippedBytes.buffer); | 3597 var bdata = new ByteData.view(unzippedBytes.buffer); |
3549 var message = new bindings.Message(bdata, null, unzippedBytes.length, 0); | 3598 var message = new bindings.Message(bdata, null, unzippedBytes.length, 0); |
3550 _runtimeTypeInfo = mojom_types.RuntimeTypeInfo.deserialize(message); | 3599 _runtimeTypeInfo = mojom_types.RuntimeTypeInfo.deserialize(message); |
3551 test_included_unions_mojom.getAllMojomTypeDefinitions() | 3600 test_included_unions_mojom.getAllMojomTypeDefinitions() |
3552 .forEach((String s, mojom_types.UserDefinedType udt) { | 3601 .forEach((String s, mojom_types.UserDefinedType udt) { |
3553 _runtimeTypeInfo.typeMap[s] = udt; | 3602 _runtimeTypeInfo.typeMap[s] = udt; |
3554 }); | 3603 }); |
3555 | 3604 |
3556 return _runtimeTypeInfo; | 3605 return _runtimeTypeInfo; |
3557 } | 3606 } |
OLD | NEW |