OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 library test_structs_mojom; | 5 library test_structs_mojom; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; |
8 | 9 |
9 import 'package:mojo/bindings.dart' as bindings; | 10 import 'package:mojo/bindings.dart' as bindings; |
10 import 'package:mojo/core.dart' as core; | 11 import 'package:mojo/core.dart' as core; |
| 12 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; |
| 13 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic
e_describer; |
11 import 'package:_mojo_for_test_only/mojo/test/rect.mojom.dart' as rect_mojom; | 14 import 'package:_mojo_for_test_only/mojo/test/rect.mojom.dart' as rect_mojom; |
12 | 15 |
13 | 16 |
14 | 17 |
15 class StructOfStructs extends bindings.Struct { | 18 class StructOfStructs extends bindings.Struct { |
16 static const List<bindings.StructDataHeader> kVersions = const [ | 19 static const List<bindings.StructDataHeader> kVersions = const [ |
17 const bindings.StructDataHeader(48, 0) | 20 const bindings.StructDataHeader(48, 0) |
18 ]; | 21 ]; |
19 NamedRegion nr = null; | 22 NamedRegion nr = null; |
20 List<NamedRegion> aNr = null; | 23 List<NamedRegion> aNr = null; |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
219 "mNdfv: $mNdfv" ", " | 222 "mNdfv: $mNdfv" ", " |
220 "mHs: $mHs" ")"; | 223 "mHs: $mHs" ")"; |
221 } | 224 } |
222 | 225 |
223 Map toJson() { | 226 Map toJson() { |
224 throw new bindings.MojoCodecError( | 227 throw new bindings.MojoCodecError( |
225 'Object containing handles cannot be encoded to JSON.'); | 228 'Object containing handles cannot be encoded to JSON.'); |
226 } | 229 } |
227 } | 230 } |
228 | 231 |
| 232 mojom_types.MojomStruct _testStructsStructOfStructs() { |
| 233 return new mojom_types.MojomStruct() |
| 234 ..declData = (new mojom_types.DeclarationData() |
| 235 ..shortName = 'StructOfStructs' |
| 236 ..fullIdentifier = 'mojo.test.StructOfStructs') |
| 237 ..fields = <mojom_types.StructField>[ |
| 238 new mojom_types.StructField() |
| 239 ..declData = (new mojom_types.DeclarationData() |
| 240 ..shortName = 'Nr') |
| 241 ..type = (new mojom_types.Type() |
| 242 ..typeReference = (new mojom_types.TypeReference() |
| 243 ..identifier = 'test_structs_NamedRegion__' |
| 244 ..typeKey = 'test_structs_NamedRegion__' |
| 245 )), |
| 246 new mojom_types.StructField() |
| 247 ..declData = (new mojom_types.DeclarationData() |
| 248 ..shortName = 'ANr') |
| 249 ..type = (new mojom_types.Type() |
| 250 ..arrayType = (new mojom_types.ArrayType() |
| 251 ..elementType = (new mojom_types.Type() |
| 252 ..typeReference = (new mojom_types.TypeReference() |
| 253 ..identifier = 'test_structs_NamedRegion__' |
| 254 ..typeKey = 'test_structs_NamedRegion__' |
| 255 )))), |
| 256 new mojom_types.StructField() |
| 257 ..declData = (new mojom_types.DeclarationData() |
| 258 ..shortName = 'ARp') |
| 259 ..type = (new mojom_types.Type() |
| 260 ..arrayType = (new mojom_types.ArrayType() |
| 261 ..elementType = (new mojom_types.Type() |
| 262 ..typeReference = (new mojom_types.TypeReference() |
| 263 ..identifier = 'test_structs_RectPair__' |
| 264 ..typeKey = 'test_structs_RectPair__' |
| 265 )))), |
| 266 new mojom_types.StructField() |
| 267 ..declData = (new mojom_types.DeclarationData() |
| 268 ..shortName = 'MNdfv') |
| 269 ..type = (new mojom_types.Type() |
| 270 ..mapType = (new mojom_types.MapType() |
| 271 ..keyType = (new mojom_types.Type() |
| 272 ..simpleType = mojom_types.SimpleType.int64) |
| 273 ..valueType = (new mojom_types.Type() |
| 274 ..typeReference = (new mojom_types.TypeReference() |
| 275 ..identifier = 'test_structs_NoDefaultFieldValues__' |
| 276 ..typeKey = 'test_structs_NoDefaultFieldValues__' |
| 277 )))), |
| 278 new mojom_types.StructField() |
| 279 ..declData = (new mojom_types.DeclarationData() |
| 280 ..shortName = 'MHs') |
| 281 ..type = (new mojom_types.Type() |
| 282 ..mapType = (new mojom_types.MapType() |
| 283 ..keyType = (new mojom_types.Type() |
| 284 ..simpleType = mojom_types.SimpleType.int64) |
| 285 ..valueType = (new mojom_types.Type() |
| 286 ..typeReference = (new mojom_types.TypeReference() |
| 287 ..identifier = 'test_structs_HandleStruct__' |
| 288 ..typeKey = 'test_structs_HandleStruct__' |
| 289 )))),]; |
| 290 } |
| 291 |
229 | 292 |
230 class NamedRegion extends bindings.Struct { | 293 class NamedRegion extends bindings.Struct { |
231 static const List<bindings.StructDataHeader> kVersions = const [ | 294 static const List<bindings.StructDataHeader> kVersions = const [ |
232 const bindings.StructDataHeader(24, 0) | 295 const bindings.StructDataHeader(24, 0) |
233 ]; | 296 ]; |
234 String name = null; | 297 String name = null; |
235 List<rect_mojom.Rect> rects = null; | 298 List<rect_mojom.Rect> rects = null; |
236 | 299 |
237 NamedRegion() : super(kVersions.last.size); | 300 NamedRegion() : super(kVersions.last.size); |
238 | 301 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 } | 377 } |
315 | 378 |
316 Map toJson() { | 379 Map toJson() { |
317 Map map = new Map(); | 380 Map map = new Map(); |
318 map["name"] = name; | 381 map["name"] = name; |
319 map["rects"] = rects; | 382 map["rects"] = rects; |
320 return map; | 383 return map; |
321 } | 384 } |
322 } | 385 } |
323 | 386 |
| 387 mojom_types.MojomStruct _testStructsNamedRegion() { |
| 388 return new mojom_types.MojomStruct() |
| 389 ..declData = (new mojom_types.DeclarationData() |
| 390 ..shortName = 'NamedRegion' |
| 391 ..fullIdentifier = 'mojo.test.NamedRegion') |
| 392 ..fields = <mojom_types.StructField>[ |
| 393 new mojom_types.StructField() |
| 394 ..declData = (new mojom_types.DeclarationData() |
| 395 ..shortName = 'Name') |
| 396 ..type = (new mojom_types.Type() |
| 397 ..stringType = (new mojom_types.StringType() |
| 398 ..nullable = true |
| 399 )), |
| 400 new mojom_types.StructField() |
| 401 ..declData = (new mojom_types.DeclarationData() |
| 402 ..shortName = 'Rects') |
| 403 ..type = (new mojom_types.Type() |
| 404 ..arrayType = (new mojom_types.ArrayType() |
| 405 ..nullable = true |
| 406 ..elementType = (new mojom_types.Type() |
| 407 ..typeReference = (new mojom_types.TypeReference() |
| 408 ..identifier = 'rect_Rect__' |
| 409 ..typeKey = 'rect_Rect__' |
| 410 )))),]; |
| 411 } |
| 412 |
324 | 413 |
325 class RectPair extends bindings.Struct { | 414 class RectPair extends bindings.Struct { |
326 static const List<bindings.StructDataHeader> kVersions = const [ | 415 static const List<bindings.StructDataHeader> kVersions = const [ |
327 const bindings.StructDataHeader(24, 0) | 416 const bindings.StructDataHeader(24, 0) |
328 ]; | 417 ]; |
329 rect_mojom.Rect first = null; | 418 rect_mojom.Rect first = null; |
330 rect_mojom.Rect second = null; | 419 rect_mojom.Rect second = null; |
331 | 420 |
332 RectPair() : super(kVersions.last.size); | 421 RectPair() : super(kVersions.last.size); |
333 | 422 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
392 } | 481 } |
393 | 482 |
394 Map toJson() { | 483 Map toJson() { |
395 Map map = new Map(); | 484 Map map = new Map(); |
396 map["first"] = first; | 485 map["first"] = first; |
397 map["second"] = second; | 486 map["second"] = second; |
398 return map; | 487 return map; |
399 } | 488 } |
400 } | 489 } |
401 | 490 |
| 491 mojom_types.MojomStruct _testStructsRectPair() { |
| 492 return new mojom_types.MojomStruct() |
| 493 ..declData = (new mojom_types.DeclarationData() |
| 494 ..shortName = 'RectPair' |
| 495 ..fullIdentifier = 'mojo.test.RectPair') |
| 496 ..fields = <mojom_types.StructField>[ |
| 497 new mojom_types.StructField() |
| 498 ..declData = (new mojom_types.DeclarationData() |
| 499 ..shortName = 'First') |
| 500 ..type = (new mojom_types.Type() |
| 501 ..typeReference = (new mojom_types.TypeReference() |
| 502 ..nullable = true |
| 503 |
| 504 ..identifier = 'rect_Rect__' |
| 505 ..typeKey = 'rect_Rect__' |
| 506 )), |
| 507 new mojom_types.StructField() |
| 508 ..declData = (new mojom_types.DeclarationData() |
| 509 ..shortName = 'Second') |
| 510 ..type = (new mojom_types.Type() |
| 511 ..typeReference = (new mojom_types.TypeReference() |
| 512 ..nullable = true |
| 513 |
| 514 ..identifier = 'rect_Rect__' |
| 515 ..typeKey = 'rect_Rect__' |
| 516 )),]; |
| 517 } |
| 518 |
402 | 519 |
403 class EmptyStruct extends bindings.Struct { | 520 class EmptyStruct extends bindings.Struct { |
404 static const List<bindings.StructDataHeader> kVersions = const [ | 521 static const List<bindings.StructDataHeader> kVersions = const [ |
405 const bindings.StructDataHeader(8, 0) | 522 const bindings.StructDataHeader(8, 0) |
406 ]; | 523 ]; |
407 | 524 |
408 EmptyStruct() : super(kVersions.last.size); | 525 EmptyStruct() : super(kVersions.last.size); |
409 | 526 |
410 static EmptyStruct deserialize(bindings.Message message) { | 527 static EmptyStruct deserialize(bindings.Message message) { |
411 var decoder = new bindings.Decoder(message); | 528 var decoder = new bindings.Decoder(message); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 String toString() { | 567 String toString() { |
451 return "EmptyStruct("")"; | 568 return "EmptyStruct("")"; |
452 } | 569 } |
453 | 570 |
454 Map toJson() { | 571 Map toJson() { |
455 Map map = new Map(); | 572 Map map = new Map(); |
456 return map; | 573 return map; |
457 } | 574 } |
458 } | 575 } |
459 | 576 |
| 577 mojom_types.MojomStruct _testStructsEmptyStruct() { |
| 578 return new mojom_types.MojomStruct() |
| 579 ..declData = (new mojom_types.DeclarationData() |
| 580 ..shortName = 'EmptyStruct' |
| 581 ..fullIdentifier = 'mojo.test.EmptyStruct') |
| 582 ..fields = <mojom_types.StructField>[]; |
| 583 } |
| 584 |
460 | 585 |
461 class HandleStruct extends bindings.Struct { | 586 class HandleStruct extends bindings.Struct { |
462 static const List<bindings.StructDataHeader> kVersions = const [ | 587 static const List<bindings.StructDataHeader> kVersions = const [ |
463 const bindings.StructDataHeader(24, 0) | 588 const bindings.StructDataHeader(24, 0) |
464 ]; | 589 ]; |
465 core.MojoMessagePipeEndpoint h = null; | 590 core.MojoMessagePipeEndpoint h = null; |
466 List<core.MojoMessagePipeEndpoint> arrayH = null; | 591 List<core.MojoMessagePipeEndpoint> arrayH = null; |
467 | 592 |
468 HandleStruct() : super(kVersions.last.size); | 593 HandleStruct() : super(kVersions.last.size); |
469 | 594 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 "h: $h" ", " | 649 "h: $h" ", " |
525 "arrayH: $arrayH" ")"; | 650 "arrayH: $arrayH" ")"; |
526 } | 651 } |
527 | 652 |
528 Map toJson() { | 653 Map toJson() { |
529 throw new bindings.MojoCodecError( | 654 throw new bindings.MojoCodecError( |
530 'Object containing handles cannot be encoded to JSON.'); | 655 'Object containing handles cannot be encoded to JSON.'); |
531 } | 656 } |
532 } | 657 } |
533 | 658 |
| 659 mojom_types.MojomStruct _testStructsHandleStruct() { |
| 660 return new mojom_types.MojomStruct() |
| 661 ..declData = (new mojom_types.DeclarationData() |
| 662 ..shortName = 'HandleStruct' |
| 663 ..fullIdentifier = 'mojo.test.HandleStruct') |
| 664 ..fields = <mojom_types.StructField>[ |
| 665 new mojom_types.StructField() |
| 666 ..declData = (new mojom_types.DeclarationData() |
| 667 ..shortName = 'H') |
| 668 ..type = (new mojom_types.Type() |
| 669 ..handleType = (new mojom_types.HandleType() |
| 670 ..kind = mojom_types.HandleTypeKind.messagePipe |
| 671 ..nullable = true |
| 672 )), |
| 673 new mojom_types.StructField() |
| 674 ..declData = (new mojom_types.DeclarationData() |
| 675 ..shortName = 'ArrayH') |
| 676 ..type = (new mojom_types.Type() |
| 677 ..arrayType = (new mojom_types.ArrayType() |
| 678 ..elementType = (new mojom_types.Type() |
| 679 ..handleType = (new mojom_types.HandleType() |
| 680 ..kind = mojom_types.HandleTypeKind.messagePipe)))),]; |
| 681 } |
| 682 |
534 | 683 |
535 class NullableHandleStruct extends bindings.Struct { | 684 class NullableHandleStruct extends bindings.Struct { |
536 static const List<bindings.StructDataHeader> kVersions = const [ | 685 static const List<bindings.StructDataHeader> kVersions = const [ |
537 const bindings.StructDataHeader(16, 0) | 686 const bindings.StructDataHeader(16, 0) |
538 ]; | 687 ]; |
539 core.MojoMessagePipeEndpoint h = null; | 688 core.MojoMessagePipeEndpoint h = null; |
540 int data = 1234; | 689 int data = 1234; |
541 | 690 |
542 NullableHandleStruct() : super(kVersions.last.size); | 691 NullableHandleStruct() : super(kVersions.last.size); |
543 | 692 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 "h: $h" ", " | 747 "h: $h" ", " |
599 "data: $data" ")"; | 748 "data: $data" ")"; |
600 } | 749 } |
601 | 750 |
602 Map toJson() { | 751 Map toJson() { |
603 throw new bindings.MojoCodecError( | 752 throw new bindings.MojoCodecError( |
604 'Object containing handles cannot be encoded to JSON.'); | 753 'Object containing handles cannot be encoded to JSON.'); |
605 } | 754 } |
606 } | 755 } |
607 | 756 |
| 757 mojom_types.MojomStruct _testStructsNullableHandleStruct() { |
| 758 return new mojom_types.MojomStruct() |
| 759 ..declData = (new mojom_types.DeclarationData() |
| 760 ..shortName = 'NullableHandleStruct' |
| 761 ..fullIdentifier = 'mojo.test.NullableHandleStruct') |
| 762 ..fields = <mojom_types.StructField>[ |
| 763 new mojom_types.StructField() |
| 764 ..declData = (new mojom_types.DeclarationData() |
| 765 ..shortName = 'H') |
| 766 ..type = (new mojom_types.Type() |
| 767 ..handleType = (new mojom_types.HandleType() |
| 768 ..kind = mojom_types.HandleTypeKind.messagePipe |
| 769 ..nullable = true |
| 770 )), |
| 771 new mojom_types.StructField() |
| 772 ..declData = (new mojom_types.DeclarationData() |
| 773 ..shortName = 'Data') |
| 774 ..type = (new mojom_types.Type() |
| 775 ..simpleType = mojom_types.SimpleType.int32),]; |
| 776 } |
| 777 |
608 | 778 |
609 class NoDefaultFieldValues extends bindings.Struct { | 779 class NoDefaultFieldValues extends bindings.Struct { |
610 static const List<bindings.StructDataHeader> kVersions = const [ | 780 static const List<bindings.StructDataHeader> kVersions = const [ |
611 const bindings.StructDataHeader(160, 0) | 781 const bindings.StructDataHeader(160, 0) |
612 ]; | 782 ]; |
613 bool f0 = false; | 783 bool f0 = false; |
614 int f1 = 0; | 784 int f1 = 0; |
615 int f2 = 0; | 785 int f2 = 0; |
616 int f3 = 0; | 786 int f3 = 0; |
617 int f4 = 0; | 787 int f4 = 0; |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
958 "f27: $f27" ", " | 1128 "f27: $f27" ", " |
959 "f28: $f28" ")"; | 1129 "f28: $f28" ")"; |
960 } | 1130 } |
961 | 1131 |
962 Map toJson() { | 1132 Map toJson() { |
963 throw new bindings.MojoCodecError( | 1133 throw new bindings.MojoCodecError( |
964 'Object containing handles cannot be encoded to JSON.'); | 1134 'Object containing handles cannot be encoded to JSON.'); |
965 } | 1135 } |
966 } | 1136 } |
967 | 1137 |
| 1138 mojom_types.MojomStruct _testStructsNoDefaultFieldValues() { |
| 1139 return new mojom_types.MojomStruct() |
| 1140 ..declData = (new mojom_types.DeclarationData() |
| 1141 ..shortName = 'NoDefaultFieldValues' |
| 1142 ..fullIdentifier = 'mojo.test.NoDefaultFieldValues') |
| 1143 ..fields = <mojom_types.StructField>[ |
| 1144 new mojom_types.StructField() |
| 1145 ..declData = (new mojom_types.DeclarationData() |
| 1146 ..shortName = 'F0') |
| 1147 ..type = (new mojom_types.Type() |
| 1148 ..simpleType = mojom_types.SimpleType.bool), |
| 1149 new mojom_types.StructField() |
| 1150 ..declData = (new mojom_types.DeclarationData() |
| 1151 ..shortName = 'F1') |
| 1152 ..type = (new mojom_types.Type() |
| 1153 ..simpleType = mojom_types.SimpleType.int8), |
| 1154 new mojom_types.StructField() |
| 1155 ..declData = (new mojom_types.DeclarationData() |
| 1156 ..shortName = 'F2') |
| 1157 ..type = (new mojom_types.Type() |
| 1158 ..simpleType = mojom_types.SimpleType.uint8), |
| 1159 new mojom_types.StructField() |
| 1160 ..declData = (new mojom_types.DeclarationData() |
| 1161 ..shortName = 'F3') |
| 1162 ..type = (new mojom_types.Type() |
| 1163 ..simpleType = mojom_types.SimpleType.int16), |
| 1164 new mojom_types.StructField() |
| 1165 ..declData = (new mojom_types.DeclarationData() |
| 1166 ..shortName = 'F4') |
| 1167 ..type = (new mojom_types.Type() |
| 1168 ..simpleType = mojom_types.SimpleType.uint16), |
| 1169 new mojom_types.StructField() |
| 1170 ..declData = (new mojom_types.DeclarationData() |
| 1171 ..shortName = 'F5') |
| 1172 ..type = (new mojom_types.Type() |
| 1173 ..simpleType = mojom_types.SimpleType.int32), |
| 1174 new mojom_types.StructField() |
| 1175 ..declData = (new mojom_types.DeclarationData() |
| 1176 ..shortName = 'F6') |
| 1177 ..type = (new mojom_types.Type() |
| 1178 ..simpleType = mojom_types.SimpleType.uint32), |
| 1179 new mojom_types.StructField() |
| 1180 ..declData = (new mojom_types.DeclarationData() |
| 1181 ..shortName = 'F7') |
| 1182 ..type = (new mojom_types.Type() |
| 1183 ..simpleType = mojom_types.SimpleType.int64), |
| 1184 new mojom_types.StructField() |
| 1185 ..declData = (new mojom_types.DeclarationData() |
| 1186 ..shortName = 'F8') |
| 1187 ..type = (new mojom_types.Type() |
| 1188 ..simpleType = mojom_types.SimpleType.uint64), |
| 1189 new mojom_types.StructField() |
| 1190 ..declData = (new mojom_types.DeclarationData() |
| 1191 ..shortName = 'F9') |
| 1192 ..type = (new mojom_types.Type() |
| 1193 ..simpleType = mojom_types.SimpleType.float), |
| 1194 new mojom_types.StructField() |
| 1195 ..declData = (new mojom_types.DeclarationData() |
| 1196 ..shortName = 'F10') |
| 1197 ..type = (new mojom_types.Type() |
| 1198 ..simpleType = mojom_types.SimpleType.double), |
| 1199 new mojom_types.StructField() |
| 1200 ..declData = (new mojom_types.DeclarationData() |
| 1201 ..shortName = 'F11') |
| 1202 ..type = (new mojom_types.Type() |
| 1203 ..stringType = (new mojom_types.StringType())), |
| 1204 new mojom_types.StructField() |
| 1205 ..declData = (new mojom_types.DeclarationData() |
| 1206 ..shortName = 'F12') |
| 1207 ..type = (new mojom_types.Type() |
| 1208 ..stringType = (new mojom_types.StringType() |
| 1209 ..nullable = true |
| 1210 )), |
| 1211 new mojom_types.StructField() |
| 1212 ..declData = (new mojom_types.DeclarationData() |
| 1213 ..shortName = 'F13') |
| 1214 ..type = (new mojom_types.Type() |
| 1215 ..handleType = (new mojom_types.HandleType() |
| 1216 ..kind = mojom_types.HandleTypeKind.messagePipe)), |
| 1217 new mojom_types.StructField() |
| 1218 ..declData = (new mojom_types.DeclarationData() |
| 1219 ..shortName = 'F14') |
| 1220 ..type = (new mojom_types.Type() |
| 1221 ..handleType = (new mojom_types.HandleType() |
| 1222 ..kind = mojom_types.HandleTypeKind.dataPipeConsumer)), |
| 1223 new mojom_types.StructField() |
| 1224 ..declData = (new mojom_types.DeclarationData() |
| 1225 ..shortName = 'F15') |
| 1226 ..type = (new mojom_types.Type() |
| 1227 ..handleType = (new mojom_types.HandleType() |
| 1228 ..kind = mojom_types.HandleTypeKind.dataPipeProducer)), |
| 1229 new mojom_types.StructField() |
| 1230 ..declData = (new mojom_types.DeclarationData() |
| 1231 ..shortName = 'F16') |
| 1232 ..type = (new mojom_types.Type() |
| 1233 ..handleType = (new mojom_types.HandleType() |
| 1234 ..kind = mojom_types.HandleTypeKind.messagePipe |
| 1235 ..nullable = true |
| 1236 )), |
| 1237 new mojom_types.StructField() |
| 1238 ..declData = (new mojom_types.DeclarationData() |
| 1239 ..shortName = 'F17') |
| 1240 ..type = (new mojom_types.Type() |
| 1241 ..handleType = (new mojom_types.HandleType() |
| 1242 ..kind = mojom_types.HandleTypeKind.dataPipeConsumer |
| 1243 ..nullable = true |
| 1244 )), |
| 1245 new mojom_types.StructField() |
| 1246 ..declData = (new mojom_types.DeclarationData() |
| 1247 ..shortName = 'F18') |
| 1248 ..type = (new mojom_types.Type() |
| 1249 ..handleType = (new mojom_types.HandleType() |
| 1250 ..kind = mojom_types.HandleTypeKind.dataPipeProducer |
| 1251 ..nullable = true |
| 1252 )), |
| 1253 new mojom_types.StructField() |
| 1254 ..declData = (new mojom_types.DeclarationData() |
| 1255 ..shortName = 'F19') |
| 1256 ..type = (new mojom_types.Type() |
| 1257 ..handleType = (new mojom_types.HandleType() |
| 1258 ..kind = mojom_types.HandleTypeKind.unspecified)), |
| 1259 new mojom_types.StructField() |
| 1260 ..declData = (new mojom_types.DeclarationData() |
| 1261 ..shortName = 'F20') |
| 1262 ..type = (new mojom_types.Type() |
| 1263 ..handleType = (new mojom_types.HandleType() |
| 1264 ..kind = mojom_types.HandleTypeKind.unspecified |
| 1265 ..nullable = true |
| 1266 )), |
| 1267 new mojom_types.StructField() |
| 1268 ..declData = (new mojom_types.DeclarationData() |
| 1269 ..shortName = 'F21') |
| 1270 ..type = (new mojom_types.Type() |
| 1271 ..handleType = (new mojom_types.HandleType() |
| 1272 ..kind = mojom_types.HandleTypeKind.sharedBuffer)), |
| 1273 new mojom_types.StructField() |
| 1274 ..declData = (new mojom_types.DeclarationData() |
| 1275 ..shortName = 'F22') |
| 1276 ..type = (new mojom_types.Type() |
| 1277 ..handleType = (new mojom_types.HandleType() |
| 1278 ..kind = mojom_types.HandleTypeKind.sharedBuffer |
| 1279 ..nullable = true |
| 1280 )), |
| 1281 new mojom_types.StructField() |
| 1282 ..declData = (new mojom_types.DeclarationData() |
| 1283 ..shortName = 'F23') |
| 1284 ..type = (new mojom_types.Type() |
| 1285 ..arrayType = (new mojom_types.ArrayType() |
| 1286 ..elementType = (new mojom_types.Type() |
| 1287 ..stringType = (new mojom_types.StringType())))), |
| 1288 new mojom_types.StructField() |
| 1289 ..declData = (new mojom_types.DeclarationData() |
| 1290 ..shortName = 'F24') |
| 1291 ..type = (new mojom_types.Type() |
| 1292 ..arrayType = (new mojom_types.ArrayType() |
| 1293 ..elementType = (new mojom_types.Type() |
| 1294 ..stringType = (new mojom_types.StringType() |
| 1295 ..nullable = true |
| 1296 )))), |
| 1297 new mojom_types.StructField() |
| 1298 ..declData = (new mojom_types.DeclarationData() |
| 1299 ..shortName = 'F25') |
| 1300 ..type = (new mojom_types.Type() |
| 1301 ..arrayType = (new mojom_types.ArrayType() |
| 1302 ..nullable = true |
| 1303 ..elementType = (new mojom_types.Type() |
| 1304 ..stringType = (new mojom_types.StringType())))), |
| 1305 new mojom_types.StructField() |
| 1306 ..declData = (new mojom_types.DeclarationData() |
| 1307 ..shortName = 'F26') |
| 1308 ..type = (new mojom_types.Type() |
| 1309 ..arrayType = (new mojom_types.ArrayType() |
| 1310 ..nullable = true |
| 1311 ..elementType = (new mojom_types.Type() |
| 1312 ..stringType = (new mojom_types.StringType() |
| 1313 ..nullable = true |
| 1314 )))), |
| 1315 new mojom_types.StructField() |
| 1316 ..declData = (new mojom_types.DeclarationData() |
| 1317 ..shortName = 'F27') |
| 1318 ..type = (new mojom_types.Type() |
| 1319 ..typeReference = (new mojom_types.TypeReference() |
| 1320 ..identifier = 'test_structs_EmptyStruct__' |
| 1321 ..typeKey = 'test_structs_EmptyStruct__' |
| 1322 )), |
| 1323 new mojom_types.StructField() |
| 1324 ..declData = (new mojom_types.DeclarationData() |
| 1325 ..shortName = 'F28') |
| 1326 ..type = (new mojom_types.Type() |
| 1327 ..typeReference = (new mojom_types.TypeReference() |
| 1328 ..nullable = true |
| 1329 |
| 1330 ..identifier = 'test_structs_EmptyStruct__' |
| 1331 ..typeKey = 'test_structs_EmptyStruct__' |
| 1332 )),]; |
| 1333 } |
| 1334 |
968 | 1335 |
969 class DefaultFieldValues extends bindings.Struct { | 1336 class DefaultFieldValues extends bindings.Struct { |
970 static const List<bindings.StructDataHeader> kVersions = const [ | 1337 static const List<bindings.StructDataHeader> kVersions = const [ |
971 const bindings.StructDataHeader(96, 0) | 1338 const bindings.StructDataHeader(96, 0) |
972 ]; | 1339 ]; |
973 static const String kFoo = "foo"; | 1340 static const String kFoo = "foo"; |
974 bool f0 = true; | 1341 bool f0 = true; |
975 int f1 = 100; | 1342 int f1 = 100; |
976 int f2 = 100; | 1343 int f2 = 100; |
977 int f3 = 100; | 1344 int f3 = 100; |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1172 map["f11"] = f11; | 1539 map["f11"] = f11; |
1173 map["f12"] = f12; | 1540 map["f12"] = f12; |
1174 map["f13"] = f13; | 1541 map["f13"] = f13; |
1175 map["f14"] = f14; | 1542 map["f14"] = f14; |
1176 map["f15"] = f15; | 1543 map["f15"] = f15; |
1177 map["f16"] = f16; | 1544 map["f16"] = f16; |
1178 return map; | 1545 return map; |
1179 } | 1546 } |
1180 } | 1547 } |
1181 | 1548 |
| 1549 mojom_types.MojomStruct _testStructsDefaultFieldValues() { |
| 1550 return new mojom_types.MojomStruct() |
| 1551 ..declData = (new mojom_types.DeclarationData() |
| 1552 ..shortName = 'DefaultFieldValues' |
| 1553 ..fullIdentifier = 'mojo.test.DefaultFieldValues') |
| 1554 ..fields = <mojom_types.StructField>[ |
| 1555 new mojom_types.StructField() |
| 1556 ..declData = (new mojom_types.DeclarationData() |
| 1557 ..shortName = 'F0') |
| 1558 ..type = (new mojom_types.Type() |
| 1559 ..simpleType = mojom_types.SimpleType.bool), |
| 1560 new mojom_types.StructField() |
| 1561 ..declData = (new mojom_types.DeclarationData() |
| 1562 ..shortName = 'F1') |
| 1563 ..type = (new mojom_types.Type() |
| 1564 ..simpleType = mojom_types.SimpleType.int8), |
| 1565 new mojom_types.StructField() |
| 1566 ..declData = (new mojom_types.DeclarationData() |
| 1567 ..shortName = 'F2') |
| 1568 ..type = (new mojom_types.Type() |
| 1569 ..simpleType = mojom_types.SimpleType.uint8), |
| 1570 new mojom_types.StructField() |
| 1571 ..declData = (new mojom_types.DeclarationData() |
| 1572 ..shortName = 'F3') |
| 1573 ..type = (new mojom_types.Type() |
| 1574 ..simpleType = mojom_types.SimpleType.int16), |
| 1575 new mojom_types.StructField() |
| 1576 ..declData = (new mojom_types.DeclarationData() |
| 1577 ..shortName = 'F4') |
| 1578 ..type = (new mojom_types.Type() |
| 1579 ..simpleType = mojom_types.SimpleType.uint16), |
| 1580 new mojom_types.StructField() |
| 1581 ..declData = (new mojom_types.DeclarationData() |
| 1582 ..shortName = 'F5') |
| 1583 ..type = (new mojom_types.Type() |
| 1584 ..simpleType = mojom_types.SimpleType.int32), |
| 1585 new mojom_types.StructField() |
| 1586 ..declData = (new mojom_types.DeclarationData() |
| 1587 ..shortName = 'F6') |
| 1588 ..type = (new mojom_types.Type() |
| 1589 ..simpleType = mojom_types.SimpleType.uint32), |
| 1590 new mojom_types.StructField() |
| 1591 ..declData = (new mojom_types.DeclarationData() |
| 1592 ..shortName = 'F7') |
| 1593 ..type = (new mojom_types.Type() |
| 1594 ..simpleType = mojom_types.SimpleType.int64), |
| 1595 new mojom_types.StructField() |
| 1596 ..declData = (new mojom_types.DeclarationData() |
| 1597 ..shortName = 'F8') |
| 1598 ..type = (new mojom_types.Type() |
| 1599 ..simpleType = mojom_types.SimpleType.uint64), |
| 1600 new mojom_types.StructField() |
| 1601 ..declData = (new mojom_types.DeclarationData() |
| 1602 ..shortName = 'F9') |
| 1603 ..type = (new mojom_types.Type() |
| 1604 ..simpleType = mojom_types.SimpleType.float), |
| 1605 new mojom_types.StructField() |
| 1606 ..declData = (new mojom_types.DeclarationData() |
| 1607 ..shortName = 'F10') |
| 1608 ..type = (new mojom_types.Type() |
| 1609 ..simpleType = mojom_types.SimpleType.float), |
| 1610 new mojom_types.StructField() |
| 1611 ..declData = (new mojom_types.DeclarationData() |
| 1612 ..shortName = 'F11') |
| 1613 ..type = (new mojom_types.Type() |
| 1614 ..simpleType = mojom_types.SimpleType.double), |
| 1615 new mojom_types.StructField() |
| 1616 ..declData = (new mojom_types.DeclarationData() |
| 1617 ..shortName = 'F12') |
| 1618 ..type = (new mojom_types.Type() |
| 1619 ..simpleType = mojom_types.SimpleType.double), |
| 1620 new mojom_types.StructField() |
| 1621 ..declData = (new mojom_types.DeclarationData() |
| 1622 ..shortName = 'F13') |
| 1623 ..type = (new mojom_types.Type() |
| 1624 ..stringType = (new mojom_types.StringType())), |
| 1625 new mojom_types.StructField() |
| 1626 ..declData = (new mojom_types.DeclarationData() |
| 1627 ..shortName = 'F14') |
| 1628 ..type = (new mojom_types.Type() |
| 1629 ..stringType = (new mojom_types.StringType() |
| 1630 ..nullable = true |
| 1631 )), |
| 1632 new mojom_types.StructField() |
| 1633 ..declData = (new mojom_types.DeclarationData() |
| 1634 ..shortName = 'F15') |
| 1635 ..type = (new mojom_types.Type() |
| 1636 ..typeReference = (new mojom_types.TypeReference() |
| 1637 ..identifier = 'rect_Rect__' |
| 1638 ..typeKey = 'rect_Rect__' |
| 1639 )), |
| 1640 new mojom_types.StructField() |
| 1641 ..declData = (new mojom_types.DeclarationData() |
| 1642 ..shortName = 'F16') |
| 1643 ..type = (new mojom_types.Type() |
| 1644 ..typeReference = (new mojom_types.TypeReference() |
| 1645 ..nullable = true |
| 1646 |
| 1647 ..identifier = 'rect_Rect__' |
| 1648 ..typeKey = 'rect_Rect__' |
| 1649 )),]; |
| 1650 } |
| 1651 |
1182 | 1652 |
1183 class ScopedConstantsEType extends bindings.MojoEnum { | 1653 class ScopedConstantsEType extends bindings.MojoEnum { |
1184 static const ScopedConstantsEType e0 = const ScopedConstantsEType._(0); | 1654 static const ScopedConstantsEType e0 = const ScopedConstantsEType._(0); |
1185 static const ScopedConstantsEType e1 = const ScopedConstantsEType._(1); | 1655 static const ScopedConstantsEType e1 = const ScopedConstantsEType._(1); |
1186 static const ScopedConstantsEType e2 = const ScopedConstantsEType._(10); | 1656 static const ScopedConstantsEType e2 = const ScopedConstantsEType._(10); |
1187 static const ScopedConstantsEType e3 = const ScopedConstantsEType._(10); | 1657 static const ScopedConstantsEType e3 = const ScopedConstantsEType._(10); |
1188 static const ScopedConstantsEType e4 = const ScopedConstantsEType._(11); | 1658 static const ScopedConstantsEType e4 = const ScopedConstantsEType._(11); |
1189 | 1659 |
1190 const ScopedConstantsEType._(int v) : super(v); | 1660 const ScopedConstantsEType._(int v) : super(v); |
1191 | 1661 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1238 case e0: | 1708 case e0: |
1239 return 'ScopedConstantsEType.e0'; | 1709 return 'ScopedConstantsEType.e0'; |
1240 case e1: | 1710 case e1: |
1241 return 'ScopedConstantsEType.e1'; | 1711 return 'ScopedConstantsEType.e1'; |
1242 case e2: | 1712 case e2: |
1243 return 'ScopedConstantsEType.e2'; | 1713 return 'ScopedConstantsEType.e2'; |
1244 case e3: | 1714 case e3: |
1245 return 'ScopedConstantsEType.e3'; | 1715 return 'ScopedConstantsEType.e3'; |
1246 case e4: | 1716 case e4: |
1247 return 'ScopedConstantsEType.e4'; | 1717 return 'ScopedConstantsEType.e4'; |
| 1718 default: |
| 1719 return null; |
1248 } | 1720 } |
1249 } | 1721 } |
1250 | 1722 |
1251 int toJson() => mojoEnumValue; | 1723 int toJson() => mojoEnumValue; |
1252 } | 1724 } |
1253 | 1725 |
| 1726 mojom_types.MojomEnum _testStructsEType() { |
| 1727 return new mojom_types.MojomEnum() |
| 1728 ..declData = (new mojom_types.DeclarationData() |
| 1729 ..shortName = 'EType' |
| 1730 ..fullIdentifier = 'mojo.test.EType') |
| 1731 ..values = <mojom_types.EnumValue>[ |
| 1732 new mojom_types.EnumValue() |
| 1733 ..declData = (new mojom_types.DeclarationData() |
| 1734 ..shortName = 'E0') |
| 1735 ..enumTypeKey = 'test_structs_EType__' |
| 1736 ..intValue = 0, |
| 1737 new mojom_types.EnumValue() |
| 1738 ..declData = (new mojom_types.DeclarationData() |
| 1739 ..shortName = 'E1') |
| 1740 ..enumTypeKey = 'test_structs_EType__' |
| 1741 ..intValue = 1, |
| 1742 new mojom_types.EnumValue() |
| 1743 ..declData = (new mojom_types.DeclarationData() |
| 1744 ..shortName = 'E2') |
| 1745 ..enumTypeKey = 'test_structs_EType__' |
| 1746 ..intValue = 10, |
| 1747 new mojom_types.EnumValue() |
| 1748 ..declData = (new mojom_types.DeclarationData() |
| 1749 ..shortName = 'E3') |
| 1750 ..enumTypeKey = 'test_structs_EType__' |
| 1751 ..intValue = 10, |
| 1752 new mojom_types.EnumValue() |
| 1753 ..declData = (new mojom_types.DeclarationData() |
| 1754 ..shortName = 'E4') |
| 1755 ..enumTypeKey = 'test_structs_EType__' |
| 1756 ..intValue = 11,]; |
| 1757 } |
| 1758 |
1254 class ScopedConstants extends bindings.Struct { | 1759 class ScopedConstants extends bindings.Struct { |
1255 static const List<bindings.StructDataHeader> kVersions = const [ | 1760 static const List<bindings.StructDataHeader> kVersions = const [ |
1256 const bindings.StructDataHeader(40, 0) | 1761 const bindings.StructDataHeader(40, 0) |
1257 ]; | 1762 ]; |
1258 static const int ten = 10; | 1763 static const int ten = 10; |
1259 static const int alsoTen = 10; | 1764 static const int alsoTen = 10; |
1260 ScopedConstantsEType f0 = new ScopedConstantsEType(0); | 1765 ScopedConstantsEType f0 = new ScopedConstantsEType(0); |
1261 ScopedConstantsEType f1 = new ScopedConstantsEType(1); | 1766 ScopedConstantsEType f1 = new ScopedConstantsEType(1); |
1262 ScopedConstantsEType f2 = new ScopedConstantsEType(10); | 1767 ScopedConstantsEType f2 = new ScopedConstantsEType(10); |
1263 ScopedConstantsEType f3 = new ScopedConstantsEType(10); | 1768 ScopedConstantsEType f3 = new ScopedConstantsEType(10); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1386 map["f1"] = f1; | 1891 map["f1"] = f1; |
1387 map["f2"] = f2; | 1892 map["f2"] = f2; |
1388 map["f3"] = f3; | 1893 map["f3"] = f3; |
1389 map["f4"] = f4; | 1894 map["f4"] = f4; |
1390 map["f5"] = f5; | 1895 map["f5"] = f5; |
1391 map["f6"] = f6; | 1896 map["f6"] = f6; |
1392 return map; | 1897 return map; |
1393 } | 1898 } |
1394 } | 1899 } |
1395 | 1900 |
| 1901 mojom_types.MojomStruct _testStructsScopedConstants() { |
| 1902 return new mojom_types.MojomStruct() |
| 1903 ..declData = (new mojom_types.DeclarationData() |
| 1904 ..shortName = 'ScopedConstants' |
| 1905 ..fullIdentifier = 'mojo.test.ScopedConstants') |
| 1906 ..fields = <mojom_types.StructField>[ |
| 1907 new mojom_types.StructField() |
| 1908 ..declData = (new mojom_types.DeclarationData() |
| 1909 ..shortName = 'F0') |
| 1910 ..type = (new mojom_types.Type() |
| 1911 ..typeReference = (new mojom_types.TypeReference() |
| 1912 ..identifier = 'test_structs_EType__' |
| 1913 ..typeKey = 'test_structs_EType__' |
| 1914 )), |
| 1915 new mojom_types.StructField() |
| 1916 ..declData = (new mojom_types.DeclarationData() |
| 1917 ..shortName = 'F1') |
| 1918 ..type = (new mojom_types.Type() |
| 1919 ..typeReference = (new mojom_types.TypeReference() |
| 1920 ..identifier = 'test_structs_EType__' |
| 1921 ..typeKey = 'test_structs_EType__' |
| 1922 )), |
| 1923 new mojom_types.StructField() |
| 1924 ..declData = (new mojom_types.DeclarationData() |
| 1925 ..shortName = 'F2') |
| 1926 ..type = (new mojom_types.Type() |
| 1927 ..typeReference = (new mojom_types.TypeReference() |
| 1928 ..identifier = 'test_structs_EType__' |
| 1929 ..typeKey = 'test_structs_EType__' |
| 1930 )), |
| 1931 new mojom_types.StructField() |
| 1932 ..declData = (new mojom_types.DeclarationData() |
| 1933 ..shortName = 'F3') |
| 1934 ..type = (new mojom_types.Type() |
| 1935 ..typeReference = (new mojom_types.TypeReference() |
| 1936 ..identifier = 'test_structs_EType__' |
| 1937 ..typeKey = 'test_structs_EType__' |
| 1938 )), |
| 1939 new mojom_types.StructField() |
| 1940 ..declData = (new mojom_types.DeclarationData() |
| 1941 ..shortName = 'F4') |
| 1942 ..type = (new mojom_types.Type() |
| 1943 ..typeReference = (new mojom_types.TypeReference() |
| 1944 ..identifier = 'test_structs_EType__' |
| 1945 ..typeKey = 'test_structs_EType__' |
| 1946 )), |
| 1947 new mojom_types.StructField() |
| 1948 ..declData = (new mojom_types.DeclarationData() |
| 1949 ..shortName = 'F5') |
| 1950 ..type = (new mojom_types.Type() |
| 1951 ..simpleType = mojom_types.SimpleType.int32), |
| 1952 new mojom_types.StructField() |
| 1953 ..declData = (new mojom_types.DeclarationData() |
| 1954 ..shortName = 'F6') |
| 1955 ..type = (new mojom_types.Type() |
| 1956 ..simpleType = mojom_types.SimpleType.int32),]; |
| 1957 } |
| 1958 |
1396 | 1959 |
1397 class MapKeyTypes extends bindings.Struct { | 1960 class MapKeyTypes extends bindings.Struct { |
1398 static const List<bindings.StructDataHeader> kVersions = const [ | 1961 static const List<bindings.StructDataHeader> kVersions = const [ |
1399 const bindings.StructDataHeader(104, 0) | 1962 const bindings.StructDataHeader(104, 0) |
1400 ]; | 1963 ]; |
1401 Map<bool, bool> f0 = null; | 1964 Map<bool, bool> f0 = null; |
1402 Map<int, int> f1 = null; | 1965 Map<int, int> f1 = null; |
1403 Map<int, int> f2 = null; | 1966 Map<int, int> f2 = null; |
1404 Map<int, int> f3 = null; | 1967 Map<int, int> f3 = null; |
1405 Map<int, int> f4 = null; | 1968 Map<int, int> f4 = null; |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1892 map["f6"] = f6; | 2455 map["f6"] = f6; |
1893 map["f7"] = f7; | 2456 map["f7"] = f7; |
1894 map["f8"] = f8; | 2457 map["f8"] = f8; |
1895 map["f9"] = f9; | 2458 map["f9"] = f9; |
1896 map["f10"] = f10; | 2459 map["f10"] = f10; |
1897 map["f11"] = f11; | 2460 map["f11"] = f11; |
1898 return map; | 2461 return map; |
1899 } | 2462 } |
1900 } | 2463 } |
1901 | 2464 |
| 2465 mojom_types.MojomStruct _testStructsMapKeyTypes() { |
| 2466 return new mojom_types.MojomStruct() |
| 2467 ..declData = (new mojom_types.DeclarationData() |
| 2468 ..shortName = 'MapKeyTypes' |
| 2469 ..fullIdentifier = 'mojo.test.MapKeyTypes') |
| 2470 ..fields = <mojom_types.StructField>[ |
| 2471 new mojom_types.StructField() |
| 2472 ..declData = (new mojom_types.DeclarationData() |
| 2473 ..shortName = 'F0') |
| 2474 ..type = (new mojom_types.Type() |
| 2475 ..mapType = (new mojom_types.MapType() |
| 2476 ..keyType = (new mojom_types.Type() |
| 2477 ..simpleType = mojom_types.SimpleType.bool) |
| 2478 ..valueType = (new mojom_types.Type() |
| 2479 ..simpleType = mojom_types.SimpleType.bool))), |
| 2480 new mojom_types.StructField() |
| 2481 ..declData = (new mojom_types.DeclarationData() |
| 2482 ..shortName = 'F1') |
| 2483 ..type = (new mojom_types.Type() |
| 2484 ..mapType = (new mojom_types.MapType() |
| 2485 ..keyType = (new mojom_types.Type() |
| 2486 ..simpleType = mojom_types.SimpleType.int8) |
| 2487 ..valueType = (new mojom_types.Type() |
| 2488 ..simpleType = mojom_types.SimpleType.int8))), |
| 2489 new mojom_types.StructField() |
| 2490 ..declData = (new mojom_types.DeclarationData() |
| 2491 ..shortName = 'F2') |
| 2492 ..type = (new mojom_types.Type() |
| 2493 ..mapType = (new mojom_types.MapType() |
| 2494 ..keyType = (new mojom_types.Type() |
| 2495 ..simpleType = mojom_types.SimpleType.uint8) |
| 2496 ..valueType = (new mojom_types.Type() |
| 2497 ..simpleType = mojom_types.SimpleType.uint8))), |
| 2498 new mojom_types.StructField() |
| 2499 ..declData = (new mojom_types.DeclarationData() |
| 2500 ..shortName = 'F3') |
| 2501 ..type = (new mojom_types.Type() |
| 2502 ..mapType = (new mojom_types.MapType() |
| 2503 ..keyType = (new mojom_types.Type() |
| 2504 ..simpleType = mojom_types.SimpleType.int16) |
| 2505 ..valueType = (new mojom_types.Type() |
| 2506 ..simpleType = mojom_types.SimpleType.int16))), |
| 2507 new mojom_types.StructField() |
| 2508 ..declData = (new mojom_types.DeclarationData() |
| 2509 ..shortName = 'F4') |
| 2510 ..type = (new mojom_types.Type() |
| 2511 ..mapType = (new mojom_types.MapType() |
| 2512 ..keyType = (new mojom_types.Type() |
| 2513 ..simpleType = mojom_types.SimpleType.uint16) |
| 2514 ..valueType = (new mojom_types.Type() |
| 2515 ..simpleType = mojom_types.SimpleType.uint16))), |
| 2516 new mojom_types.StructField() |
| 2517 ..declData = (new mojom_types.DeclarationData() |
| 2518 ..shortName = 'F5') |
| 2519 ..type = (new mojom_types.Type() |
| 2520 ..mapType = (new mojom_types.MapType() |
| 2521 ..keyType = (new mojom_types.Type() |
| 2522 ..simpleType = mojom_types.SimpleType.int32) |
| 2523 ..valueType = (new mojom_types.Type() |
| 2524 ..simpleType = mojom_types.SimpleType.int32))), |
| 2525 new mojom_types.StructField() |
| 2526 ..declData = (new mojom_types.DeclarationData() |
| 2527 ..shortName = 'F6') |
| 2528 ..type = (new mojom_types.Type() |
| 2529 ..mapType = (new mojom_types.MapType() |
| 2530 ..keyType = (new mojom_types.Type() |
| 2531 ..simpleType = mojom_types.SimpleType.uint32) |
| 2532 ..valueType = (new mojom_types.Type() |
| 2533 ..simpleType = mojom_types.SimpleType.uint32))), |
| 2534 new mojom_types.StructField() |
| 2535 ..declData = (new mojom_types.DeclarationData() |
| 2536 ..shortName = 'F7') |
| 2537 ..type = (new mojom_types.Type() |
| 2538 ..mapType = (new mojom_types.MapType() |
| 2539 ..keyType = (new mojom_types.Type() |
| 2540 ..simpleType = mojom_types.SimpleType.int64) |
| 2541 ..valueType = (new mojom_types.Type() |
| 2542 ..simpleType = mojom_types.SimpleType.int64))), |
| 2543 new mojom_types.StructField() |
| 2544 ..declData = (new mojom_types.DeclarationData() |
| 2545 ..shortName = 'F8') |
| 2546 ..type = (new mojom_types.Type() |
| 2547 ..mapType = (new mojom_types.MapType() |
| 2548 ..keyType = (new mojom_types.Type() |
| 2549 ..simpleType = mojom_types.SimpleType.uint64) |
| 2550 ..valueType = (new mojom_types.Type() |
| 2551 ..simpleType = mojom_types.SimpleType.uint64))), |
| 2552 new mojom_types.StructField() |
| 2553 ..declData = (new mojom_types.DeclarationData() |
| 2554 ..shortName = 'F9') |
| 2555 ..type = (new mojom_types.Type() |
| 2556 ..mapType = (new mojom_types.MapType() |
| 2557 ..keyType = (new mojom_types.Type() |
| 2558 ..simpleType = mojom_types.SimpleType.float) |
| 2559 ..valueType = (new mojom_types.Type() |
| 2560 ..simpleType = mojom_types.SimpleType.float))), |
| 2561 new mojom_types.StructField() |
| 2562 ..declData = (new mojom_types.DeclarationData() |
| 2563 ..shortName = 'F10') |
| 2564 ..type = (new mojom_types.Type() |
| 2565 ..mapType = (new mojom_types.MapType() |
| 2566 ..keyType = (new mojom_types.Type() |
| 2567 ..simpleType = mojom_types.SimpleType.double) |
| 2568 ..valueType = (new mojom_types.Type() |
| 2569 ..simpleType = mojom_types.SimpleType.double))), |
| 2570 new mojom_types.StructField() |
| 2571 ..declData = (new mojom_types.DeclarationData() |
| 2572 ..shortName = 'F11') |
| 2573 ..type = (new mojom_types.Type() |
| 2574 ..mapType = (new mojom_types.MapType() |
| 2575 ..keyType = (new mojom_types.Type() |
| 2576 ..stringType = (new mojom_types.StringType())) |
| 2577 ..valueType = (new mojom_types.Type() |
| 2578 ..stringType = (new mojom_types.StringType())))),]; |
| 2579 } |
| 2580 |
1902 | 2581 |
1903 class MapValueTypes extends bindings.Struct { | 2582 class MapValueTypes extends bindings.Struct { |
1904 static const List<bindings.StructDataHeader> kVersions = const [ | 2583 static const List<bindings.StructDataHeader> kVersions = const [ |
1905 const bindings.StructDataHeader(104, 0) | 2584 const bindings.StructDataHeader(104, 0) |
1906 ]; | 2585 ]; |
1907 Map<String, List<String>> f0 = null; | 2586 Map<String, List<String>> f0 = null; |
1908 Map<String, List<String>> f1 = null; | 2587 Map<String, List<String>> f1 = null; |
1909 Map<String, List<String>> f2 = null; | 2588 Map<String, List<String>> f2 = null; |
1910 Map<String, List<String>> f3 = null; | 2589 Map<String, List<String>> f3 = null; |
1911 Map<String, List<List<String>>> f4 = null; | 2590 Map<String, List<List<String>>> f4 = null; |
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2977 "f10: $f10" ", " | 3656 "f10: $f10" ", " |
2978 "f11: $f11" ")"; | 3657 "f11: $f11" ")"; |
2979 } | 3658 } |
2980 | 3659 |
2981 Map toJson() { | 3660 Map toJson() { |
2982 throw new bindings.MojoCodecError( | 3661 throw new bindings.MojoCodecError( |
2983 'Object containing handles cannot be encoded to JSON.'); | 3662 'Object containing handles cannot be encoded to JSON.'); |
2984 } | 3663 } |
2985 } | 3664 } |
2986 | 3665 |
| 3666 mojom_types.MojomStruct _testStructsMapValueTypes() { |
| 3667 return new mojom_types.MojomStruct() |
| 3668 ..declData = (new mojom_types.DeclarationData() |
| 3669 ..shortName = 'MapValueTypes' |
| 3670 ..fullIdentifier = 'mojo.test.MapValueTypes') |
| 3671 ..fields = <mojom_types.StructField>[ |
| 3672 new mojom_types.StructField() |
| 3673 ..declData = (new mojom_types.DeclarationData() |
| 3674 ..shortName = 'F0') |
| 3675 ..type = (new mojom_types.Type() |
| 3676 ..mapType = (new mojom_types.MapType() |
| 3677 ..keyType = (new mojom_types.Type() |
| 3678 ..stringType = (new mojom_types.StringType())) |
| 3679 ..valueType = (new mojom_types.Type() |
| 3680 ..arrayType = (new mojom_types.ArrayType() |
| 3681 ..elementType = (new mojom_types.Type() |
| 3682 ..stringType = (new mojom_types.StringType()))))))
, |
| 3683 new mojom_types.StructField() |
| 3684 ..declData = (new mojom_types.DeclarationData() |
| 3685 ..shortName = 'F1') |
| 3686 ..type = (new mojom_types.Type() |
| 3687 ..mapType = (new mojom_types.MapType() |
| 3688 ..keyType = (new mojom_types.Type() |
| 3689 ..stringType = (new mojom_types.StringType())) |
| 3690 ..valueType = (new mojom_types.Type() |
| 3691 ..arrayType = (new mojom_types.ArrayType() |
| 3692 ..nullable = true |
| 3693 ..elementType = (new mojom_types.Type() |
| 3694 ..stringType = (new mojom_types.StringType()))))))
, |
| 3695 new mojom_types.StructField() |
| 3696 ..declData = (new mojom_types.DeclarationData() |
| 3697 ..shortName = 'F2') |
| 3698 ..type = (new mojom_types.Type() |
| 3699 ..mapType = (new mojom_types.MapType() |
| 3700 ..keyType = (new mojom_types.Type() |
| 3701 ..stringType = (new mojom_types.StringType())) |
| 3702 ..valueType = (new mojom_types.Type() |
| 3703 ..arrayType = (new mojom_types.ArrayType() |
| 3704 ..elementType = (new mojom_types.Type() |
| 3705 ..stringType = (new mojom_types.StringType() |
| 3706 ..nullable = true |
| 3707 )))))), |
| 3708 new mojom_types.StructField() |
| 3709 ..declData = (new mojom_types.DeclarationData() |
| 3710 ..shortName = 'F3') |
| 3711 ..type = (new mojom_types.Type() |
| 3712 ..mapType = (new mojom_types.MapType() |
| 3713 ..keyType = (new mojom_types.Type() |
| 3714 ..stringType = (new mojom_types.StringType())) |
| 3715 ..valueType = (new mojom_types.Type() |
| 3716 ..arrayType = (new mojom_types.ArrayType() |
| 3717 ..fixedLength = 2 |
| 3718 ..elementType = (new mojom_types.Type() |
| 3719 ..stringType = (new mojom_types.StringType()))))))
, |
| 3720 new mojom_types.StructField() |
| 3721 ..declData = (new mojom_types.DeclarationData() |
| 3722 ..shortName = 'F4') |
| 3723 ..type = (new mojom_types.Type() |
| 3724 ..mapType = (new mojom_types.MapType() |
| 3725 ..keyType = (new mojom_types.Type() |
| 3726 ..stringType = (new mojom_types.StringType())) |
| 3727 ..valueType = (new mojom_types.Type() |
| 3728 ..arrayType = (new mojom_types.ArrayType() |
| 3729 ..elementType = (new mojom_types.Type() |
| 3730 ..arrayType = (new mojom_types.ArrayType() |
| 3731 ..nullable = true |
| 3732 ..fixedLength = 2 |
| 3733 ..elementType = (new mojom_types.Type() |
| 3734 ..stringType = (new mojom_types.StringTy
pe())))))))), |
| 3735 new mojom_types.StructField() |
| 3736 ..declData = (new mojom_types.DeclarationData() |
| 3737 ..shortName = 'F5') |
| 3738 ..type = (new mojom_types.Type() |
| 3739 ..mapType = (new mojom_types.MapType() |
| 3740 ..keyType = (new mojom_types.Type() |
| 3741 ..stringType = (new mojom_types.StringType())) |
| 3742 ..valueType = (new mojom_types.Type() |
| 3743 ..arrayType = (new mojom_types.ArrayType() |
| 3744 ..fixedLength = 1 |
| 3745 ..elementType = (new mojom_types.Type() |
| 3746 ..arrayType = (new mojom_types.ArrayType() |
| 3747 ..fixedLength = 2 |
| 3748 ..elementType = (new mojom_types.Type() |
| 3749 ..stringType = (new mojom_types.StringTy
pe())))))))), |
| 3750 new mojom_types.StructField() |
| 3751 ..declData = (new mojom_types.DeclarationData() |
| 3752 ..shortName = 'F6') |
| 3753 ..type = (new mojom_types.Type() |
| 3754 ..mapType = (new mojom_types.MapType() |
| 3755 ..keyType = (new mojom_types.Type() |
| 3756 ..stringType = (new mojom_types.StringType())) |
| 3757 ..valueType = (new mojom_types.Type() |
| 3758 ..typeReference = (new mojom_types.TypeReference() |
| 3759 ..nullable = true |
| 3760 |
| 3761 ..identifier = 'rect_Rect__' |
| 3762 ..typeKey = 'rect_Rect__' |
| 3763 )))), |
| 3764 new mojom_types.StructField() |
| 3765 ..declData = (new mojom_types.DeclarationData() |
| 3766 ..shortName = 'F7') |
| 3767 ..type = (new mojom_types.Type() |
| 3768 ..mapType = (new mojom_types.MapType() |
| 3769 ..keyType = (new mojom_types.Type() |
| 3770 ..stringType = (new mojom_types.StringType())) |
| 3771 ..valueType = (new mojom_types.Type() |
| 3772 ..mapType = (new mojom_types.MapType() |
| 3773 ..keyType = (new mojom_types.Type() |
| 3774 ..stringType = (new mojom_types.StringType())) |
| 3775 ..valueType = (new mojom_types.Type() |
| 3776 ..stringType = (new mojom_types.StringType()))))))
, |
| 3777 new mojom_types.StructField() |
| 3778 ..declData = (new mojom_types.DeclarationData() |
| 3779 ..shortName = 'F8') |
| 3780 ..type = (new mojom_types.Type() |
| 3781 ..mapType = (new mojom_types.MapType() |
| 3782 ..keyType = (new mojom_types.Type() |
| 3783 ..stringType = (new mojom_types.StringType())) |
| 3784 ..valueType = (new mojom_types.Type() |
| 3785 ..arrayType = (new mojom_types.ArrayType() |
| 3786 ..elementType = (new mojom_types.Type() |
| 3787 ..mapType = (new mojom_types.MapType() |
| 3788 ..keyType = (new mojom_types.Type() |
| 3789 ..stringType = (new mojom_types.StringTy
pe())) |
| 3790 ..valueType = (new mojom_types.Type() |
| 3791 ..stringType = (new mojom_types.StringTy
pe())))))))), |
| 3792 new mojom_types.StructField() |
| 3793 ..declData = (new mojom_types.DeclarationData() |
| 3794 ..shortName = 'F9') |
| 3795 ..type = (new mojom_types.Type() |
| 3796 ..mapType = (new mojom_types.MapType() |
| 3797 ..keyType = (new mojom_types.Type() |
| 3798 ..stringType = (new mojom_types.StringType())) |
| 3799 ..valueType = (new mojom_types.Type() |
| 3800 ..handleType = (new mojom_types.HandleType() |
| 3801 ..kind = mojom_types.HandleTypeKind.unspecified)))), |
| 3802 new mojom_types.StructField() |
| 3803 ..declData = (new mojom_types.DeclarationData() |
| 3804 ..shortName = 'F10') |
| 3805 ..type = (new mojom_types.Type() |
| 3806 ..mapType = (new mojom_types.MapType() |
| 3807 ..keyType = (new mojom_types.Type() |
| 3808 ..stringType = (new mojom_types.StringType())) |
| 3809 ..valueType = (new mojom_types.Type() |
| 3810 ..arrayType = (new mojom_types.ArrayType() |
| 3811 ..elementType = (new mojom_types.Type() |
| 3812 ..handleType = (new mojom_types.HandleType() |
| 3813 ..kind = mojom_types.HandleTypeKind.unspecified)
))))), |
| 3814 new mojom_types.StructField() |
| 3815 ..declData = (new mojom_types.DeclarationData() |
| 3816 ..shortName = 'F11') |
| 3817 ..type = (new mojom_types.Type() |
| 3818 ..mapType = (new mojom_types.MapType() |
| 3819 ..keyType = (new mojom_types.Type() |
| 3820 ..stringType = (new mojom_types.StringType())) |
| 3821 ..valueType = (new mojom_types.Type() |
| 3822 ..mapType = (new mojom_types.MapType() |
| 3823 ..keyType = (new mojom_types.Type() |
| 3824 ..stringType = (new mojom_types.StringType())) |
| 3825 ..valueType = (new mojom_types.Type() |
| 3826 ..handleType = (new mojom_types.HandleType() |
| 3827 ..kind = mojom_types.HandleTypeKind.unspecified)
))))),]; |
| 3828 } |
| 3829 |
2987 | 3830 |
2988 class ArrayValueTypes extends bindings.Struct { | 3831 class ArrayValueTypes extends bindings.Struct { |
2989 static const List<bindings.StructDataHeader> kVersions = const [ | 3832 static const List<bindings.StructDataHeader> kVersions = const [ |
2990 const bindings.StructDataHeader(56, 0) | 3833 const bindings.StructDataHeader(56, 0) |
2991 ]; | 3834 ]; |
2992 List<int> f0 = null; | 3835 List<int> f0 = null; |
2993 List<int> f1 = null; | 3836 List<int> f1 = null; |
2994 List<int> f2 = null; | 3837 List<int> f2 = null; |
2995 List<int> f3 = null; | 3838 List<int> f3 = null; |
2996 List<double> f4 = null; | 3839 List<double> f4 = null; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3089 map["f0"] = f0; | 3932 map["f0"] = f0; |
3090 map["f1"] = f1; | 3933 map["f1"] = f1; |
3091 map["f2"] = f2; | 3934 map["f2"] = f2; |
3092 map["f3"] = f3; | 3935 map["f3"] = f3; |
3093 map["f4"] = f4; | 3936 map["f4"] = f4; |
3094 map["f5"] = f5; | 3937 map["f5"] = f5; |
3095 return map; | 3938 return map; |
3096 } | 3939 } |
3097 } | 3940 } |
3098 | 3941 |
| 3942 mojom_types.MojomStruct _testStructsArrayValueTypes() { |
| 3943 return new mojom_types.MojomStruct() |
| 3944 ..declData = (new mojom_types.DeclarationData() |
| 3945 ..shortName = 'ArrayValueTypes' |
| 3946 ..fullIdentifier = 'mojo.test.ArrayValueTypes') |
| 3947 ..fields = <mojom_types.StructField>[ |
| 3948 new mojom_types.StructField() |
| 3949 ..declData = (new mojom_types.DeclarationData() |
| 3950 ..shortName = 'F0') |
| 3951 ..type = (new mojom_types.Type() |
| 3952 ..arrayType = (new mojom_types.ArrayType() |
| 3953 ..elementType = (new mojom_types.Type() |
| 3954 ..simpleType = mojom_types.SimpleType.int8))), |
| 3955 new mojom_types.StructField() |
| 3956 ..declData = (new mojom_types.DeclarationData() |
| 3957 ..shortName = 'F1') |
| 3958 ..type = (new mojom_types.Type() |
| 3959 ..arrayType = (new mojom_types.ArrayType() |
| 3960 ..elementType = (new mojom_types.Type() |
| 3961 ..simpleType = mojom_types.SimpleType.int16))), |
| 3962 new mojom_types.StructField() |
| 3963 ..declData = (new mojom_types.DeclarationData() |
| 3964 ..shortName = 'F2') |
| 3965 ..type = (new mojom_types.Type() |
| 3966 ..arrayType = (new mojom_types.ArrayType() |
| 3967 ..elementType = (new mojom_types.Type() |
| 3968 ..simpleType = mojom_types.SimpleType.int32))), |
| 3969 new mojom_types.StructField() |
| 3970 ..declData = (new mojom_types.DeclarationData() |
| 3971 ..shortName = 'F3') |
| 3972 ..type = (new mojom_types.Type() |
| 3973 ..arrayType = (new mojom_types.ArrayType() |
| 3974 ..elementType = (new mojom_types.Type() |
| 3975 ..simpleType = mojom_types.SimpleType.int64))), |
| 3976 new mojom_types.StructField() |
| 3977 ..declData = (new mojom_types.DeclarationData() |
| 3978 ..shortName = 'F4') |
| 3979 ..type = (new mojom_types.Type() |
| 3980 ..arrayType = (new mojom_types.ArrayType() |
| 3981 ..elementType = (new mojom_types.Type() |
| 3982 ..simpleType = mojom_types.SimpleType.float))), |
| 3983 new mojom_types.StructField() |
| 3984 ..declData = (new mojom_types.DeclarationData() |
| 3985 ..shortName = 'F5') |
| 3986 ..type = (new mojom_types.Type() |
| 3987 ..arrayType = (new mojom_types.ArrayType() |
| 3988 ..elementType = (new mojom_types.Type() |
| 3989 ..simpleType = mojom_types.SimpleType.double))),]; |
| 3990 } |
| 3991 |
3099 | 3992 |
3100 class FloatNumberValues extends bindings.Struct { | 3993 class FloatNumberValues extends bindings.Struct { |
3101 static const List<bindings.StructDataHeader> kVersions = const [ | 3994 static const List<bindings.StructDataHeader> kVersions = const [ |
3102 const bindings.StructDataHeader(72, 0) | 3995 const bindings.StructDataHeader(72, 0) |
3103 ]; | 3996 ]; |
3104 static const double v0 = double.INFINITY; | 3997 static const double v0 = double.INFINITY; |
3105 static const double v1 = double.NEGATIVE_INFINITY; | 3998 static const double v1 = double.NEGATIVE_INFINITY; |
3106 static const double v2 = double.NAN; | 3999 static const double v2 = double.NAN; |
3107 static const double v3 = double.INFINITY; | 4000 static const double v3 = double.INFINITY; |
3108 static const double v4 = double.NEGATIVE_INFINITY; | 4001 static const double v4 = double.NEGATIVE_INFINITY; |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3247 map["f4"] = f4; | 4140 map["f4"] = f4; |
3248 map["f5"] = f5; | 4141 map["f5"] = f5; |
3249 map["f6"] = f6; | 4142 map["f6"] = f6; |
3250 map["f7"] = f7; | 4143 map["f7"] = f7; |
3251 map["f8"] = f8; | 4144 map["f8"] = f8; |
3252 map["f9"] = f9; | 4145 map["f9"] = f9; |
3253 return map; | 4146 return map; |
3254 } | 4147 } |
3255 } | 4148 } |
3256 | 4149 |
| 4150 mojom_types.MojomStruct _testStructsFloatNumberValues() { |
| 4151 return new mojom_types.MojomStruct() |
| 4152 ..declData = (new mojom_types.DeclarationData() |
| 4153 ..shortName = 'FloatNumberValues' |
| 4154 ..fullIdentifier = 'mojo.test.FloatNumberValues') |
| 4155 ..fields = <mojom_types.StructField>[ |
| 4156 new mojom_types.StructField() |
| 4157 ..declData = (new mojom_types.DeclarationData() |
| 4158 ..shortName = 'F0') |
| 4159 ..type = (new mojom_types.Type() |
| 4160 ..simpleType = mojom_types.SimpleType.double), |
| 4161 new mojom_types.StructField() |
| 4162 ..declData = (new mojom_types.DeclarationData() |
| 4163 ..shortName = 'F1') |
| 4164 ..type = (new mojom_types.Type() |
| 4165 ..simpleType = mojom_types.SimpleType.double), |
| 4166 new mojom_types.StructField() |
| 4167 ..declData = (new mojom_types.DeclarationData() |
| 4168 ..shortName = 'F2') |
| 4169 ..type = (new mojom_types.Type() |
| 4170 ..simpleType = mojom_types.SimpleType.double), |
| 4171 new mojom_types.StructField() |
| 4172 ..declData = (new mojom_types.DeclarationData() |
| 4173 ..shortName = 'F3') |
| 4174 ..type = (new mojom_types.Type() |
| 4175 ..simpleType = mojom_types.SimpleType.float), |
| 4176 new mojom_types.StructField() |
| 4177 ..declData = (new mojom_types.DeclarationData() |
| 4178 ..shortName = 'F4') |
| 4179 ..type = (new mojom_types.Type() |
| 4180 ..simpleType = mojom_types.SimpleType.float), |
| 4181 new mojom_types.StructField() |
| 4182 ..declData = (new mojom_types.DeclarationData() |
| 4183 ..shortName = 'F5') |
| 4184 ..type = (new mojom_types.Type() |
| 4185 ..simpleType = mojom_types.SimpleType.float), |
| 4186 new mojom_types.StructField() |
| 4187 ..declData = (new mojom_types.DeclarationData() |
| 4188 ..shortName = 'F6') |
| 4189 ..type = (new mojom_types.Type() |
| 4190 ..simpleType = mojom_types.SimpleType.float), |
| 4191 new mojom_types.StructField() |
| 4192 ..declData = (new mojom_types.DeclarationData() |
| 4193 ..shortName = 'F7') |
| 4194 ..type = (new mojom_types.Type() |
| 4195 ..simpleType = mojom_types.SimpleType.double), |
| 4196 new mojom_types.StructField() |
| 4197 ..declData = (new mojom_types.DeclarationData() |
| 4198 ..shortName = 'F8') |
| 4199 ..type = (new mojom_types.Type() |
| 4200 ..simpleType = mojom_types.SimpleType.double), |
| 4201 new mojom_types.StructField() |
| 4202 ..declData = (new mojom_types.DeclarationData() |
| 4203 ..shortName = 'F9') |
| 4204 ..type = (new mojom_types.Type() |
| 4205 ..simpleType = mojom_types.SimpleType.double),]; |
| 4206 } |
| 4207 |
3257 | 4208 |
3258 class IntegerNumberValues extends bindings.Struct { | 4209 class IntegerNumberValues extends bindings.Struct { |
3259 static const List<bindings.StructDataHeader> kVersions = const [ | 4210 static const List<bindings.StructDataHeader> kVersions = const [ |
3260 const bindings.StructDataHeader(88, 0) | 4211 const bindings.StructDataHeader(88, 0) |
3261 ]; | 4212 ]; |
3262 static const int v0 = -128; | 4213 static const int v0 = -128; |
3263 static const int v1 = -1; | 4214 static const int v1 = -1; |
3264 static const int v2 = 0; | 4215 static const int v2 = 0; |
3265 static const int v3 = 42; | 4216 static const int v3 = 42; |
3266 static const int v4 = 127; | 4217 static const int v4 = 127; |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3505 map["f14"] = f14; | 4456 map["f14"] = f14; |
3506 map["f15"] = f15; | 4457 map["f15"] = f15; |
3507 map["f16"] = f16; | 4458 map["f16"] = f16; |
3508 map["f17"] = f17; | 4459 map["f17"] = f17; |
3509 map["f18"] = f18; | 4460 map["f18"] = f18; |
3510 map["f19"] = f19; | 4461 map["f19"] = f19; |
3511 return map; | 4462 return map; |
3512 } | 4463 } |
3513 } | 4464 } |
3514 | 4465 |
| 4466 mojom_types.MojomStruct _testStructsIntegerNumberValues() { |
| 4467 return new mojom_types.MojomStruct() |
| 4468 ..declData = (new mojom_types.DeclarationData() |
| 4469 ..shortName = 'IntegerNumberValues' |
| 4470 ..fullIdentifier = 'mojo.test.IntegerNumberValues') |
| 4471 ..fields = <mojom_types.StructField>[ |
| 4472 new mojom_types.StructField() |
| 4473 ..declData = (new mojom_types.DeclarationData() |
| 4474 ..shortName = 'F0') |
| 4475 ..type = (new mojom_types.Type() |
| 4476 ..simpleType = mojom_types.SimpleType.int8), |
| 4477 new mojom_types.StructField() |
| 4478 ..declData = (new mojom_types.DeclarationData() |
| 4479 ..shortName = 'F1') |
| 4480 ..type = (new mojom_types.Type() |
| 4481 ..simpleType = mojom_types.SimpleType.int8), |
| 4482 new mojom_types.StructField() |
| 4483 ..declData = (new mojom_types.DeclarationData() |
| 4484 ..shortName = 'F2') |
| 4485 ..type = (new mojom_types.Type() |
| 4486 ..simpleType = mojom_types.SimpleType.int8), |
| 4487 new mojom_types.StructField() |
| 4488 ..declData = (new mojom_types.DeclarationData() |
| 4489 ..shortName = 'F3') |
| 4490 ..type = (new mojom_types.Type() |
| 4491 ..simpleType = mojom_types.SimpleType.int8), |
| 4492 new mojom_types.StructField() |
| 4493 ..declData = (new mojom_types.DeclarationData() |
| 4494 ..shortName = 'F4') |
| 4495 ..type = (new mojom_types.Type() |
| 4496 ..simpleType = mojom_types.SimpleType.int8), |
| 4497 new mojom_types.StructField() |
| 4498 ..declData = (new mojom_types.DeclarationData() |
| 4499 ..shortName = 'F5') |
| 4500 ..type = (new mojom_types.Type() |
| 4501 ..simpleType = mojom_types.SimpleType.int16), |
| 4502 new mojom_types.StructField() |
| 4503 ..declData = (new mojom_types.DeclarationData() |
| 4504 ..shortName = 'F6') |
| 4505 ..type = (new mojom_types.Type() |
| 4506 ..simpleType = mojom_types.SimpleType.int16), |
| 4507 new mojom_types.StructField() |
| 4508 ..declData = (new mojom_types.DeclarationData() |
| 4509 ..shortName = 'F7') |
| 4510 ..type = (new mojom_types.Type() |
| 4511 ..simpleType = mojom_types.SimpleType.int16), |
| 4512 new mojom_types.StructField() |
| 4513 ..declData = (new mojom_types.DeclarationData() |
| 4514 ..shortName = 'F8') |
| 4515 ..type = (new mojom_types.Type() |
| 4516 ..simpleType = mojom_types.SimpleType.int16), |
| 4517 new mojom_types.StructField() |
| 4518 ..declData = (new mojom_types.DeclarationData() |
| 4519 ..shortName = 'F9') |
| 4520 ..type = (new mojom_types.Type() |
| 4521 ..simpleType = mojom_types.SimpleType.int16), |
| 4522 new mojom_types.StructField() |
| 4523 ..declData = (new mojom_types.DeclarationData() |
| 4524 ..shortName = 'F10') |
| 4525 ..type = (new mojom_types.Type() |
| 4526 ..simpleType = mojom_types.SimpleType.int32), |
| 4527 new mojom_types.StructField() |
| 4528 ..declData = (new mojom_types.DeclarationData() |
| 4529 ..shortName = 'F11') |
| 4530 ..type = (new mojom_types.Type() |
| 4531 ..simpleType = mojom_types.SimpleType.int32), |
| 4532 new mojom_types.StructField() |
| 4533 ..declData = (new mojom_types.DeclarationData() |
| 4534 ..shortName = 'F12') |
| 4535 ..type = (new mojom_types.Type() |
| 4536 ..simpleType = mojom_types.SimpleType.int32), |
| 4537 new mojom_types.StructField() |
| 4538 ..declData = (new mojom_types.DeclarationData() |
| 4539 ..shortName = 'F13') |
| 4540 ..type = (new mojom_types.Type() |
| 4541 ..simpleType = mojom_types.SimpleType.int32), |
| 4542 new mojom_types.StructField() |
| 4543 ..declData = (new mojom_types.DeclarationData() |
| 4544 ..shortName = 'F14') |
| 4545 ..type = (new mojom_types.Type() |
| 4546 ..simpleType = mojom_types.SimpleType.int32), |
| 4547 new mojom_types.StructField() |
| 4548 ..declData = (new mojom_types.DeclarationData() |
| 4549 ..shortName = 'F15') |
| 4550 ..type = (new mojom_types.Type() |
| 4551 ..simpleType = mojom_types.SimpleType.int64), |
| 4552 new mojom_types.StructField() |
| 4553 ..declData = (new mojom_types.DeclarationData() |
| 4554 ..shortName = 'F16') |
| 4555 ..type = (new mojom_types.Type() |
| 4556 ..simpleType = mojom_types.SimpleType.int64), |
| 4557 new mojom_types.StructField() |
| 4558 ..declData = (new mojom_types.DeclarationData() |
| 4559 ..shortName = 'F17') |
| 4560 ..type = (new mojom_types.Type() |
| 4561 ..simpleType = mojom_types.SimpleType.int64), |
| 4562 new mojom_types.StructField() |
| 4563 ..declData = (new mojom_types.DeclarationData() |
| 4564 ..shortName = 'F18') |
| 4565 ..type = (new mojom_types.Type() |
| 4566 ..simpleType = mojom_types.SimpleType.int64), |
| 4567 new mojom_types.StructField() |
| 4568 ..declData = (new mojom_types.DeclarationData() |
| 4569 ..shortName = 'F19') |
| 4570 ..type = (new mojom_types.Type() |
| 4571 ..simpleType = mojom_types.SimpleType.int64),]; |
| 4572 } |
| 4573 |
3515 | 4574 |
3516 class UnsignedNumberValues extends bindings.Struct { | 4575 class UnsignedNumberValues extends bindings.Struct { |
3517 static const List<bindings.StructDataHeader> kVersions = const [ | 4576 static const List<bindings.StructDataHeader> kVersions = const [ |
3518 const bindings.StructDataHeader(56, 0) | 4577 const bindings.StructDataHeader(56, 0) |
3519 ]; | 4578 ]; |
3520 static const int v0 = 0; | 4579 static const int v0 = 0; |
3521 static const int v1 = 42; | 4580 static const int v1 = 42; |
3522 static const int v2 = 255; | 4581 static const int v2 = 255; |
3523 static const int v3 = 0; | 4582 static const int v3 = 0; |
3524 static const int v4 = 12345; | 4583 static const int v4 = 12345; |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3683 map["f6"] = f6; | 4742 map["f6"] = f6; |
3684 map["f7"] = f7; | 4743 map["f7"] = f7; |
3685 map["f8"] = f8; | 4744 map["f8"] = f8; |
3686 map["f9"] = f9; | 4745 map["f9"] = f9; |
3687 map["f10"] = f10; | 4746 map["f10"] = f10; |
3688 map["f11"] = f11; | 4747 map["f11"] = f11; |
3689 return map; | 4748 return map; |
3690 } | 4749 } |
3691 } | 4750 } |
3692 | 4751 |
| 4752 mojom_types.MojomStruct _testStructsUnsignedNumberValues() { |
| 4753 return new mojom_types.MojomStruct() |
| 4754 ..declData = (new mojom_types.DeclarationData() |
| 4755 ..shortName = 'UnsignedNumberValues' |
| 4756 ..fullIdentifier = 'mojo.test.UnsignedNumberValues') |
| 4757 ..fields = <mojom_types.StructField>[ |
| 4758 new mojom_types.StructField() |
| 4759 ..declData = (new mojom_types.DeclarationData() |
| 4760 ..shortName = 'F0') |
| 4761 ..type = (new mojom_types.Type() |
| 4762 ..simpleType = mojom_types.SimpleType.uint8), |
| 4763 new mojom_types.StructField() |
| 4764 ..declData = (new mojom_types.DeclarationData() |
| 4765 ..shortName = 'F1') |
| 4766 ..type = (new mojom_types.Type() |
| 4767 ..simpleType = mojom_types.SimpleType.uint8), |
| 4768 new mojom_types.StructField() |
| 4769 ..declData = (new mojom_types.DeclarationData() |
| 4770 ..shortName = 'F2') |
| 4771 ..type = (new mojom_types.Type() |
| 4772 ..simpleType = mojom_types.SimpleType.uint8), |
| 4773 new mojom_types.StructField() |
| 4774 ..declData = (new mojom_types.DeclarationData() |
| 4775 ..shortName = 'F3') |
| 4776 ..type = (new mojom_types.Type() |
| 4777 ..simpleType = mojom_types.SimpleType.uint16), |
| 4778 new mojom_types.StructField() |
| 4779 ..declData = (new mojom_types.DeclarationData() |
| 4780 ..shortName = 'F4') |
| 4781 ..type = (new mojom_types.Type() |
| 4782 ..simpleType = mojom_types.SimpleType.uint16), |
| 4783 new mojom_types.StructField() |
| 4784 ..declData = (new mojom_types.DeclarationData() |
| 4785 ..shortName = 'F5') |
| 4786 ..type = (new mojom_types.Type() |
| 4787 ..simpleType = mojom_types.SimpleType.uint16), |
| 4788 new mojom_types.StructField() |
| 4789 ..declData = (new mojom_types.DeclarationData() |
| 4790 ..shortName = 'F6') |
| 4791 ..type = (new mojom_types.Type() |
| 4792 ..simpleType = mojom_types.SimpleType.uint32), |
| 4793 new mojom_types.StructField() |
| 4794 ..declData = (new mojom_types.DeclarationData() |
| 4795 ..shortName = 'F7') |
| 4796 ..type = (new mojom_types.Type() |
| 4797 ..simpleType = mojom_types.SimpleType.uint32), |
| 4798 new mojom_types.StructField() |
| 4799 ..declData = (new mojom_types.DeclarationData() |
| 4800 ..shortName = 'F8') |
| 4801 ..type = (new mojom_types.Type() |
| 4802 ..simpleType = mojom_types.SimpleType.uint32), |
| 4803 new mojom_types.StructField() |
| 4804 ..declData = (new mojom_types.DeclarationData() |
| 4805 ..shortName = 'F9') |
| 4806 ..type = (new mojom_types.Type() |
| 4807 ..simpleType = mojom_types.SimpleType.uint64), |
| 4808 new mojom_types.StructField() |
| 4809 ..declData = (new mojom_types.DeclarationData() |
| 4810 ..shortName = 'F10') |
| 4811 ..type = (new mojom_types.Type() |
| 4812 ..simpleType = mojom_types.SimpleType.uint64), |
| 4813 new mojom_types.StructField() |
| 4814 ..declData = (new mojom_types.DeclarationData() |
| 4815 ..shortName = 'F11') |
| 4816 ..type = (new mojom_types.Type() |
| 4817 ..simpleType = mojom_types.SimpleType.uint64),]; |
| 4818 } |
| 4819 |
3693 | 4820 |
3694 class BitArrayValues extends bindings.Struct { | 4821 class BitArrayValues extends bindings.Struct { |
3695 static const List<bindings.StructDataHeader> kVersions = const [ | 4822 static const List<bindings.StructDataHeader> kVersions = const [ |
3696 const bindings.StructDataHeader(64, 0) | 4823 const bindings.StructDataHeader(64, 0) |
3697 ]; | 4824 ]; |
3698 List<bool> f0 = null; | 4825 List<bool> f0 = null; |
3699 List<bool> f1 = null; | 4826 List<bool> f1 = null; |
3700 List<bool> f2 = null; | 4827 List<bool> f2 = null; |
3701 List<bool> f3 = null; | 4828 List<bool> f3 = null; |
3702 List<List<bool>> f4 = null; | 4829 List<List<bool>> f4 = null; |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3852 map["f1"] = f1; | 4979 map["f1"] = f1; |
3853 map["f2"] = f2; | 4980 map["f2"] = f2; |
3854 map["f3"] = f3; | 4981 map["f3"] = f3; |
3855 map["f4"] = f4; | 4982 map["f4"] = f4; |
3856 map["f5"] = f5; | 4983 map["f5"] = f5; |
3857 map["f6"] = f6; | 4984 map["f6"] = f6; |
3858 return map; | 4985 return map; |
3859 } | 4986 } |
3860 } | 4987 } |
3861 | 4988 |
| 4989 mojom_types.MojomStruct _testStructsBitArrayValues() { |
| 4990 return new mojom_types.MojomStruct() |
| 4991 ..declData = (new mojom_types.DeclarationData() |
| 4992 ..shortName = 'BitArrayValues' |
| 4993 ..fullIdentifier = 'mojo.test.BitArrayValues') |
| 4994 ..fields = <mojom_types.StructField>[ |
| 4995 new mojom_types.StructField() |
| 4996 ..declData = (new mojom_types.DeclarationData() |
| 4997 ..shortName = 'F0') |
| 4998 ..type = (new mojom_types.Type() |
| 4999 ..arrayType = (new mojom_types.ArrayType() |
| 5000 ..fixedLength = 1 |
| 5001 ..elementType = (new mojom_types.Type() |
| 5002 ..simpleType = mojom_types.SimpleType.bool))), |
| 5003 new mojom_types.StructField() |
| 5004 ..declData = (new mojom_types.DeclarationData() |
| 5005 ..shortName = 'F1') |
| 5006 ..type = (new mojom_types.Type() |
| 5007 ..arrayType = (new mojom_types.ArrayType() |
| 5008 ..fixedLength = 7 |
| 5009 ..elementType = (new mojom_types.Type() |
| 5010 ..simpleType = mojom_types.SimpleType.bool))), |
| 5011 new mojom_types.StructField() |
| 5012 ..declData = (new mojom_types.DeclarationData() |
| 5013 ..shortName = 'F2') |
| 5014 ..type = (new mojom_types.Type() |
| 5015 ..arrayType = (new mojom_types.ArrayType() |
| 5016 ..fixedLength = 9 |
| 5017 ..elementType = (new mojom_types.Type() |
| 5018 ..simpleType = mojom_types.SimpleType.bool))), |
| 5019 new mojom_types.StructField() |
| 5020 ..declData = (new mojom_types.DeclarationData() |
| 5021 ..shortName = 'F3') |
| 5022 ..type = (new mojom_types.Type() |
| 5023 ..arrayType = (new mojom_types.ArrayType() |
| 5024 ..elementType = (new mojom_types.Type() |
| 5025 ..simpleType = mojom_types.SimpleType.bool))), |
| 5026 new mojom_types.StructField() |
| 5027 ..declData = (new mojom_types.DeclarationData() |
| 5028 ..shortName = 'F4') |
| 5029 ..type = (new mojom_types.Type() |
| 5030 ..arrayType = (new mojom_types.ArrayType() |
| 5031 ..elementType = (new mojom_types.Type() |
| 5032 ..arrayType = (new mojom_types.ArrayType() |
| 5033 ..elementType = (new mojom_types.Type() |
| 5034 ..simpleType = mojom_types.SimpleType.bool))))), |
| 5035 new mojom_types.StructField() |
| 5036 ..declData = (new mojom_types.DeclarationData() |
| 5037 ..shortName = 'F5') |
| 5038 ..type = (new mojom_types.Type() |
| 5039 ..arrayType = (new mojom_types.ArrayType() |
| 5040 ..elementType = (new mojom_types.Type() |
| 5041 ..arrayType = (new mojom_types.ArrayType() |
| 5042 ..nullable = true |
| 5043 ..elementType = (new mojom_types.Type() |
| 5044 ..simpleType = mojom_types.SimpleType.bool))))), |
| 5045 new mojom_types.StructField() |
| 5046 ..declData = (new mojom_types.DeclarationData() |
| 5047 ..shortName = 'F6') |
| 5048 ..type = (new mojom_types.Type() |
| 5049 ..arrayType = (new mojom_types.ArrayType() |
| 5050 ..elementType = (new mojom_types.Type() |
| 5051 ..arrayType = (new mojom_types.ArrayType() |
| 5052 ..nullable = true |
| 5053 ..fixedLength = 2 |
| 5054 ..elementType = (new mojom_types.Type() |
| 5055 ..simpleType = mojom_types.SimpleType.bool))))),]; |
| 5056 } |
| 5057 |
3862 | 5058 |
3863 class MultiVersionStruct extends bindings.Struct { | 5059 class MultiVersionStruct extends bindings.Struct { |
3864 static const List<bindings.StructDataHeader> kVersions = const [ | 5060 static const List<bindings.StructDataHeader> kVersions = const [ |
3865 const bindings.StructDataHeader(16, 0), | 5061 const bindings.StructDataHeader(16, 0), |
3866 const bindings.StructDataHeader(24, 1), | 5062 const bindings.StructDataHeader(24, 1), |
3867 const bindings.StructDataHeader(32, 3), | 5063 const bindings.StructDataHeader(32, 3), |
3868 const bindings.StructDataHeader(40, 5), | 5064 const bindings.StructDataHeader(40, 5), |
3869 const bindings.StructDataHeader(48, 7), | 5065 const bindings.StructDataHeader(48, 7), |
3870 const bindings.StructDataHeader(48, 9) | 5066 const bindings.StructDataHeader(48, 9) |
3871 ]; | 5067 ]; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3972 "fBool: $fBool" ", " | 5168 "fBool: $fBool" ", " |
3973 "fInt16: $fInt16" ")"; | 5169 "fInt16: $fInt16" ")"; |
3974 } | 5170 } |
3975 | 5171 |
3976 Map toJson() { | 5172 Map toJson() { |
3977 throw new bindings.MojoCodecError( | 5173 throw new bindings.MojoCodecError( |
3978 'Object containing handles cannot be encoded to JSON.'); | 5174 'Object containing handles cannot be encoded to JSON.'); |
3979 } | 5175 } |
3980 } | 5176 } |
3981 | 5177 |
| 5178 mojom_types.MojomStruct _testStructsMultiVersionStruct() { |
| 5179 return new mojom_types.MojomStruct() |
| 5180 ..declData = (new mojom_types.DeclarationData() |
| 5181 ..shortName = 'MultiVersionStruct' |
| 5182 ..fullIdentifier = 'mojo.test.MultiVersionStruct') |
| 5183 ..fields = <mojom_types.StructField>[ |
| 5184 new mojom_types.StructField() |
| 5185 ..declData = (new mojom_types.DeclarationData() |
| 5186 ..shortName = 'FInt32') |
| 5187 ..type = (new mojom_types.Type() |
| 5188 ..simpleType = mojom_types.SimpleType.int32), |
| 5189 new mojom_types.StructField() |
| 5190 ..declData = (new mojom_types.DeclarationData() |
| 5191 ..shortName = 'FRect') |
| 5192 ..type = (new mojom_types.Type() |
| 5193 ..typeReference = (new mojom_types.TypeReference() |
| 5194 ..nullable = true |
| 5195 |
| 5196 ..identifier = 'rect_Rect__' |
| 5197 ..typeKey = 'rect_Rect__' |
| 5198 )), |
| 5199 new mojom_types.StructField() |
| 5200 ..declData = (new mojom_types.DeclarationData() |
| 5201 ..shortName = 'FString') |
| 5202 ..type = (new mojom_types.Type() |
| 5203 ..stringType = (new mojom_types.StringType() |
| 5204 ..nullable = true |
| 5205 )), |
| 5206 new mojom_types.StructField() |
| 5207 ..declData = (new mojom_types.DeclarationData() |
| 5208 ..shortName = 'FArray') |
| 5209 ..type = (new mojom_types.Type() |
| 5210 ..arrayType = (new mojom_types.ArrayType() |
| 5211 ..nullable = true |
| 5212 ..elementType = (new mojom_types.Type() |
| 5213 ..simpleType = mojom_types.SimpleType.int8))), |
| 5214 new mojom_types.StructField() |
| 5215 ..declData = (new mojom_types.DeclarationData() |
| 5216 ..shortName = 'FMessagePipe') |
| 5217 ..type = (new mojom_types.Type() |
| 5218 ..handleType = (new mojom_types.HandleType() |
| 5219 ..kind = mojom_types.HandleTypeKind.messagePipe |
| 5220 ..nullable = true |
| 5221 )), |
| 5222 new mojom_types.StructField() |
| 5223 ..declData = (new mojom_types.DeclarationData() |
| 5224 ..shortName = 'FBool') |
| 5225 ..type = (new mojom_types.Type() |
| 5226 ..simpleType = mojom_types.SimpleType.bool), |
| 5227 new mojom_types.StructField() |
| 5228 ..declData = (new mojom_types.DeclarationData() |
| 5229 ..shortName = 'FInt16') |
| 5230 ..type = (new mojom_types.Type() |
| 5231 ..simpleType = mojom_types.SimpleType.int16),]; |
| 5232 } |
| 5233 |
3982 | 5234 |
3983 class MultiVersionStructV0 extends bindings.Struct { | 5235 class MultiVersionStructV0 extends bindings.Struct { |
3984 static const List<bindings.StructDataHeader> kVersions = const [ | 5236 static const List<bindings.StructDataHeader> kVersions = const [ |
3985 const bindings.StructDataHeader(16, 0) | 5237 const bindings.StructDataHeader(16, 0) |
3986 ]; | 5238 ]; |
3987 int fInt32 = 0; | 5239 int fInt32 = 0; |
3988 | 5240 |
3989 MultiVersionStructV0() : super(kVersions.last.size); | 5241 MultiVersionStructV0() : super(kVersions.last.size); |
3990 | 5242 |
3991 static MultiVersionStructV0 deserialize(bindings.Message message) { | 5243 static MultiVersionStructV0 deserialize(bindings.Message message) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4039 "fInt32: $fInt32" ")"; | 5291 "fInt32: $fInt32" ")"; |
4040 } | 5292 } |
4041 | 5293 |
4042 Map toJson() { | 5294 Map toJson() { |
4043 Map map = new Map(); | 5295 Map map = new Map(); |
4044 map["fInt32"] = fInt32; | 5296 map["fInt32"] = fInt32; |
4045 return map; | 5297 return map; |
4046 } | 5298 } |
4047 } | 5299 } |
4048 | 5300 |
| 5301 mojom_types.MojomStruct _testStructsMultiVersionStructV0() { |
| 5302 return new mojom_types.MojomStruct() |
| 5303 ..declData = (new mojom_types.DeclarationData() |
| 5304 ..shortName = 'MultiVersionStructV0' |
| 5305 ..fullIdentifier = 'mojo.test.MultiVersionStructV0') |
| 5306 ..fields = <mojom_types.StructField>[ |
| 5307 new mojom_types.StructField() |
| 5308 ..declData = (new mojom_types.DeclarationData() |
| 5309 ..shortName = 'FInt32') |
| 5310 ..type = (new mojom_types.Type() |
| 5311 ..simpleType = mojom_types.SimpleType.int32),]; |
| 5312 } |
| 5313 |
4049 | 5314 |
4050 class MultiVersionStructV1 extends bindings.Struct { | 5315 class MultiVersionStructV1 extends bindings.Struct { |
4051 static const List<bindings.StructDataHeader> kVersions = const [ | 5316 static const List<bindings.StructDataHeader> kVersions = const [ |
4052 const bindings.StructDataHeader(16, 0), | 5317 const bindings.StructDataHeader(16, 0), |
4053 const bindings.StructDataHeader(24, 1) | 5318 const bindings.StructDataHeader(24, 1) |
4054 ]; | 5319 ]; |
4055 int fInt32 = 0; | 5320 int fInt32 = 0; |
4056 rect_mojom.Rect fRect = null; | 5321 rect_mojom.Rect fRect = null; |
4057 | 5322 |
4058 MultiVersionStructV1() : super(kVersions.last.size); | 5323 MultiVersionStructV1() : super(kVersions.last.size); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4117 } | 5382 } |
4118 | 5383 |
4119 Map toJson() { | 5384 Map toJson() { |
4120 Map map = new Map(); | 5385 Map map = new Map(); |
4121 map["fInt32"] = fInt32; | 5386 map["fInt32"] = fInt32; |
4122 map["fRect"] = fRect; | 5387 map["fRect"] = fRect; |
4123 return map; | 5388 return map; |
4124 } | 5389 } |
4125 } | 5390 } |
4126 | 5391 |
| 5392 mojom_types.MojomStruct _testStructsMultiVersionStructV1() { |
| 5393 return new mojom_types.MojomStruct() |
| 5394 ..declData = (new mojom_types.DeclarationData() |
| 5395 ..shortName = 'MultiVersionStructV1' |
| 5396 ..fullIdentifier = 'mojo.test.MultiVersionStructV1') |
| 5397 ..fields = <mojom_types.StructField>[ |
| 5398 new mojom_types.StructField() |
| 5399 ..declData = (new mojom_types.DeclarationData() |
| 5400 ..shortName = 'FInt32') |
| 5401 ..type = (new mojom_types.Type() |
| 5402 ..simpleType = mojom_types.SimpleType.int32), |
| 5403 new mojom_types.StructField() |
| 5404 ..declData = (new mojom_types.DeclarationData() |
| 5405 ..shortName = 'FRect') |
| 5406 ..type = (new mojom_types.Type() |
| 5407 ..typeReference = (new mojom_types.TypeReference() |
| 5408 ..nullable = true |
| 5409 |
| 5410 ..identifier = 'rect_Rect__' |
| 5411 ..typeKey = 'rect_Rect__' |
| 5412 )),]; |
| 5413 } |
| 5414 |
4127 | 5415 |
4128 class MultiVersionStructV3 extends bindings.Struct { | 5416 class MultiVersionStructV3 extends bindings.Struct { |
4129 static const List<bindings.StructDataHeader> kVersions = const [ | 5417 static const List<bindings.StructDataHeader> kVersions = const [ |
4130 const bindings.StructDataHeader(16, 0), | 5418 const bindings.StructDataHeader(16, 0), |
4131 const bindings.StructDataHeader(24, 1), | 5419 const bindings.StructDataHeader(24, 1), |
4132 const bindings.StructDataHeader(32, 3) | 5420 const bindings.StructDataHeader(32, 3) |
4133 ]; | 5421 ]; |
4134 int fInt32 = 0; | 5422 int fInt32 = 0; |
4135 rect_mojom.Rect fRect = null; | 5423 rect_mojom.Rect fRect = null; |
4136 String fString = null; | 5424 String fString = null; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4205 | 5493 |
4206 Map toJson() { | 5494 Map toJson() { |
4207 Map map = new Map(); | 5495 Map map = new Map(); |
4208 map["fInt32"] = fInt32; | 5496 map["fInt32"] = fInt32; |
4209 map["fRect"] = fRect; | 5497 map["fRect"] = fRect; |
4210 map["fString"] = fString; | 5498 map["fString"] = fString; |
4211 return map; | 5499 return map; |
4212 } | 5500 } |
4213 } | 5501 } |
4214 | 5502 |
| 5503 mojom_types.MojomStruct _testStructsMultiVersionStructV3() { |
| 5504 return new mojom_types.MojomStruct() |
| 5505 ..declData = (new mojom_types.DeclarationData() |
| 5506 ..shortName = 'MultiVersionStructV3' |
| 5507 ..fullIdentifier = 'mojo.test.MultiVersionStructV3') |
| 5508 ..fields = <mojom_types.StructField>[ |
| 5509 new mojom_types.StructField() |
| 5510 ..declData = (new mojom_types.DeclarationData() |
| 5511 ..shortName = 'FInt32') |
| 5512 ..type = (new mojom_types.Type() |
| 5513 ..simpleType = mojom_types.SimpleType.int32), |
| 5514 new mojom_types.StructField() |
| 5515 ..declData = (new mojom_types.DeclarationData() |
| 5516 ..shortName = 'FRect') |
| 5517 ..type = (new mojom_types.Type() |
| 5518 ..typeReference = (new mojom_types.TypeReference() |
| 5519 ..nullable = true |
| 5520 |
| 5521 ..identifier = 'rect_Rect__' |
| 5522 ..typeKey = 'rect_Rect__' |
| 5523 )), |
| 5524 new mojom_types.StructField() |
| 5525 ..declData = (new mojom_types.DeclarationData() |
| 5526 ..shortName = 'FString') |
| 5527 ..type = (new mojom_types.Type() |
| 5528 ..stringType = (new mojom_types.StringType() |
| 5529 ..nullable = true |
| 5530 )),]; |
| 5531 } |
| 5532 |
4215 | 5533 |
4216 class MultiVersionStructV5 extends bindings.Struct { | 5534 class MultiVersionStructV5 extends bindings.Struct { |
4217 static const List<bindings.StructDataHeader> kVersions = const [ | 5535 static const List<bindings.StructDataHeader> kVersions = const [ |
4218 const bindings.StructDataHeader(16, 0), | 5536 const bindings.StructDataHeader(16, 0), |
4219 const bindings.StructDataHeader(24, 1), | 5537 const bindings.StructDataHeader(24, 1), |
4220 const bindings.StructDataHeader(32, 3), | 5538 const bindings.StructDataHeader(32, 3), |
4221 const bindings.StructDataHeader(40, 5) | 5539 const bindings.StructDataHeader(40, 5) |
4222 ]; | 5540 ]; |
4223 int fInt32 = 0; | 5541 int fInt32 = 0; |
4224 rect_mojom.Rect fRect = null; | 5542 rect_mojom.Rect fRect = null; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4303 Map toJson() { | 5621 Map toJson() { |
4304 Map map = new Map(); | 5622 Map map = new Map(); |
4305 map["fInt32"] = fInt32; | 5623 map["fInt32"] = fInt32; |
4306 map["fRect"] = fRect; | 5624 map["fRect"] = fRect; |
4307 map["fString"] = fString; | 5625 map["fString"] = fString; |
4308 map["fArray"] = fArray; | 5626 map["fArray"] = fArray; |
4309 return map; | 5627 return map; |
4310 } | 5628 } |
4311 } | 5629 } |
4312 | 5630 |
| 5631 mojom_types.MojomStruct _testStructsMultiVersionStructV5() { |
| 5632 return new mojom_types.MojomStruct() |
| 5633 ..declData = (new mojom_types.DeclarationData() |
| 5634 ..shortName = 'MultiVersionStructV5' |
| 5635 ..fullIdentifier = 'mojo.test.MultiVersionStructV5') |
| 5636 ..fields = <mojom_types.StructField>[ |
| 5637 new mojom_types.StructField() |
| 5638 ..declData = (new mojom_types.DeclarationData() |
| 5639 ..shortName = 'FInt32') |
| 5640 ..type = (new mojom_types.Type() |
| 5641 ..simpleType = mojom_types.SimpleType.int32), |
| 5642 new mojom_types.StructField() |
| 5643 ..declData = (new mojom_types.DeclarationData() |
| 5644 ..shortName = 'FRect') |
| 5645 ..type = (new mojom_types.Type() |
| 5646 ..typeReference = (new mojom_types.TypeReference() |
| 5647 ..nullable = true |
| 5648 |
| 5649 ..identifier = 'rect_Rect__' |
| 5650 ..typeKey = 'rect_Rect__' |
| 5651 )), |
| 5652 new mojom_types.StructField() |
| 5653 ..declData = (new mojom_types.DeclarationData() |
| 5654 ..shortName = 'FString') |
| 5655 ..type = (new mojom_types.Type() |
| 5656 ..stringType = (new mojom_types.StringType() |
| 5657 ..nullable = true |
| 5658 )), |
| 5659 new mojom_types.StructField() |
| 5660 ..declData = (new mojom_types.DeclarationData() |
| 5661 ..shortName = 'FArray') |
| 5662 ..type = (new mojom_types.Type() |
| 5663 ..arrayType = (new mojom_types.ArrayType() |
| 5664 ..nullable = true |
| 5665 ..elementType = (new mojom_types.Type() |
| 5666 ..simpleType = mojom_types.SimpleType.int8))),]; |
| 5667 } |
| 5668 |
4313 | 5669 |
4314 class MultiVersionStructV7 extends bindings.Struct { | 5670 class MultiVersionStructV7 extends bindings.Struct { |
4315 static const List<bindings.StructDataHeader> kVersions = const [ | 5671 static const List<bindings.StructDataHeader> kVersions = const [ |
4316 const bindings.StructDataHeader(16, 0), | 5672 const bindings.StructDataHeader(16, 0), |
4317 const bindings.StructDataHeader(24, 1), | 5673 const bindings.StructDataHeader(24, 1), |
4318 const bindings.StructDataHeader(32, 3), | 5674 const bindings.StructDataHeader(32, 3), |
4319 const bindings.StructDataHeader(40, 5), | 5675 const bindings.StructDataHeader(40, 5), |
4320 const bindings.StructDataHeader(48, 7) | 5676 const bindings.StructDataHeader(48, 7) |
4321 ]; | 5677 ]; |
4322 int fInt32 = 0; | 5678 int fInt32 = 0; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4414 "fArray: $fArray" ", " | 5770 "fArray: $fArray" ", " |
4415 "fBool: $fBool" ")"; | 5771 "fBool: $fBool" ")"; |
4416 } | 5772 } |
4417 | 5773 |
4418 Map toJson() { | 5774 Map toJson() { |
4419 throw new bindings.MojoCodecError( | 5775 throw new bindings.MojoCodecError( |
4420 'Object containing handles cannot be encoded to JSON.'); | 5776 'Object containing handles cannot be encoded to JSON.'); |
4421 } | 5777 } |
4422 } | 5778 } |
4423 | 5779 |
| 5780 mojom_types.MojomStruct _testStructsMultiVersionStructV7() { |
| 5781 return new mojom_types.MojomStruct() |
| 5782 ..declData = (new mojom_types.DeclarationData() |
| 5783 ..shortName = 'MultiVersionStructV7' |
| 5784 ..fullIdentifier = 'mojo.test.MultiVersionStructV7') |
| 5785 ..fields = <mojom_types.StructField>[ |
| 5786 new mojom_types.StructField() |
| 5787 ..declData = (new mojom_types.DeclarationData() |
| 5788 ..shortName = 'FInt32') |
| 5789 ..type = (new mojom_types.Type() |
| 5790 ..simpleType = mojom_types.SimpleType.int32), |
| 5791 new mojom_types.StructField() |
| 5792 ..declData = (new mojom_types.DeclarationData() |
| 5793 ..shortName = 'FRect') |
| 5794 ..type = (new mojom_types.Type() |
| 5795 ..typeReference = (new mojom_types.TypeReference() |
| 5796 ..nullable = true |
| 5797 |
| 5798 ..identifier = 'rect_Rect__' |
| 5799 ..typeKey = 'rect_Rect__' |
| 5800 )), |
| 5801 new mojom_types.StructField() |
| 5802 ..declData = (new mojom_types.DeclarationData() |
| 5803 ..shortName = 'FString') |
| 5804 ..type = (new mojom_types.Type() |
| 5805 ..stringType = (new mojom_types.StringType() |
| 5806 ..nullable = true |
| 5807 )), |
| 5808 new mojom_types.StructField() |
| 5809 ..declData = (new mojom_types.DeclarationData() |
| 5810 ..shortName = 'FArray') |
| 5811 ..type = (new mojom_types.Type() |
| 5812 ..arrayType = (new mojom_types.ArrayType() |
| 5813 ..nullable = true |
| 5814 ..elementType = (new mojom_types.Type() |
| 5815 ..simpleType = mojom_types.SimpleType.int8))), |
| 5816 new mojom_types.StructField() |
| 5817 ..declData = (new mojom_types.DeclarationData() |
| 5818 ..shortName = 'FMessagePipe') |
| 5819 ..type = (new mojom_types.Type() |
| 5820 ..handleType = (new mojom_types.HandleType() |
| 5821 ..kind = mojom_types.HandleTypeKind.messagePipe |
| 5822 ..nullable = true |
| 5823 )), |
| 5824 new mojom_types.StructField() |
| 5825 ..declData = (new mojom_types.DeclarationData() |
| 5826 ..shortName = 'FBool') |
| 5827 ..type = (new mojom_types.Type() |
| 5828 ..simpleType = mojom_types.SimpleType.bool),]; |
| 5829 } |
| 5830 |
4424 | 5831 |
4425 class ContainsInterface extends bindings.Struct { | 5832 class ContainsInterface extends bindings.Struct { |
4426 static const List<bindings.StructDataHeader> kVersions = const [ | 5833 static const List<bindings.StructDataHeader> kVersions = const [ |
4427 const bindings.StructDataHeader(16, 0) | 5834 const bindings.StructDataHeader(16, 0) |
4428 ]; | 5835 ]; |
4429 Object someInterface = null; | 5836 Object someInterface = null; |
4430 | 5837 |
4431 ContainsInterface() : super(kVersions.last.size); | 5838 ContainsInterface() : super(kVersions.last.size); |
4432 | 5839 |
4433 static ContainsInterface deserialize(bindings.Message message) { | 5840 static ContainsInterface deserialize(bindings.Message message) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4480 return "ContainsInterface(" | 5887 return "ContainsInterface(" |
4481 "someInterface: $someInterface" ")"; | 5888 "someInterface: $someInterface" ")"; |
4482 } | 5889 } |
4483 | 5890 |
4484 Map toJson() { | 5891 Map toJson() { |
4485 throw new bindings.MojoCodecError( | 5892 throw new bindings.MojoCodecError( |
4486 'Object containing handles cannot be encoded to JSON.'); | 5893 'Object containing handles cannot be encoded to JSON.'); |
4487 } | 5894 } |
4488 } | 5895 } |
4489 | 5896 |
| 5897 mojom_types.MojomStruct _testStructsContainsInterface() { |
| 5898 return new mojom_types.MojomStruct() |
| 5899 ..declData = (new mojom_types.DeclarationData() |
| 5900 ..shortName = 'ContainsInterface' |
| 5901 ..fullIdentifier = 'mojo.test.ContainsInterface') |
| 5902 ..fields = <mojom_types.StructField>[ |
| 5903 new mojom_types.StructField() |
| 5904 ..declData = (new mojom_types.DeclarationData() |
| 5905 ..shortName = 'SomeInterface') |
| 5906 ..type = (new mojom_types.Type() |
| 5907 ..typeReference = (new mojom_types.TypeReference() |
| 5908 ..identifier = 'test_structs_SomeInterface__' |
| 5909 ..typeKey = 'test_structs_SomeInterface__' |
| 5910 )),]; |
| 5911 } |
| 5912 |
4490 | 5913 |
4491 class ContainsOther extends bindings.Struct { | 5914 class ContainsOther extends bindings.Struct { |
4492 static const List<bindings.StructDataHeader> kVersions = const [ | 5915 static const List<bindings.StructDataHeader> kVersions = const [ |
4493 const bindings.StructDataHeader(16, 0) | 5916 const bindings.StructDataHeader(16, 0) |
4494 ]; | 5917 ]; |
4495 int other = 0; | 5918 int other = 0; |
4496 | 5919 |
4497 ContainsOther() : super(kVersions.last.size); | 5920 ContainsOther() : super(kVersions.last.size); |
4498 | 5921 |
4499 static ContainsOther deserialize(bindings.Message message) { | 5922 static ContainsOther deserialize(bindings.Message message) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4547 "other: $other" ")"; | 5970 "other: $other" ")"; |
4548 } | 5971 } |
4549 | 5972 |
4550 Map toJson() { | 5973 Map toJson() { |
4551 Map map = new Map(); | 5974 Map map = new Map(); |
4552 map["other"] = other; | 5975 map["other"] = other; |
4553 return map; | 5976 return map; |
4554 } | 5977 } |
4555 } | 5978 } |
4556 | 5979 |
| 5980 mojom_types.MojomStruct _testStructsContainsOther() { |
| 5981 return new mojom_types.MojomStruct() |
| 5982 ..declData = (new mojom_types.DeclarationData() |
| 5983 ..shortName = 'ContainsOther' |
| 5984 ..fullIdentifier = 'mojo.test.ContainsOther') |
| 5985 ..fields = <mojom_types.StructField>[ |
| 5986 new mojom_types.StructField() |
| 5987 ..declData = (new mojom_types.DeclarationData() |
| 5988 ..shortName = 'Other') |
| 5989 ..type = (new mojom_types.Type() |
| 5990 ..simpleType = mojom_types.SimpleType.int32),]; |
| 5991 } |
| 5992 |
4557 | 5993 |
4558 class ContainsInterfaceRequest extends bindings.Struct { | 5994 class ContainsInterfaceRequest extends bindings.Struct { |
4559 static const List<bindings.StructDataHeader> kVersions = const [ | 5995 static const List<bindings.StructDataHeader> kVersions = const [ |
4560 const bindings.StructDataHeader(16, 0) | 5996 const bindings.StructDataHeader(16, 0) |
4561 ]; | 5997 ]; |
4562 Object req = null; | 5998 Object req = null; |
4563 Object nullableReq = null; | 5999 Object nullableReq = null; |
4564 | 6000 |
4565 ContainsInterfaceRequest() : super(kVersions.last.size); | 6001 ContainsInterfaceRequest() : super(kVersions.last.size); |
4566 | 6002 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4621 "req: $req" ", " | 6057 "req: $req" ", " |
4622 "nullableReq: $nullableReq" ")"; | 6058 "nullableReq: $nullableReq" ")"; |
4623 } | 6059 } |
4624 | 6060 |
4625 Map toJson() { | 6061 Map toJson() { |
4626 throw new bindings.MojoCodecError( | 6062 throw new bindings.MojoCodecError( |
4627 'Object containing handles cannot be encoded to JSON.'); | 6063 'Object containing handles cannot be encoded to JSON.'); |
4628 } | 6064 } |
4629 } | 6065 } |
4630 | 6066 |
| 6067 mojom_types.MojomStruct _testStructsContainsInterfaceRequest() { |
| 6068 return new mojom_types.MojomStruct() |
| 6069 ..declData = (new mojom_types.DeclarationData() |
| 6070 ..shortName = 'ContainsInterfaceRequest' |
| 6071 ..fullIdentifier = 'mojo.test.ContainsInterfaceRequest') |
| 6072 ..fields = <mojom_types.StructField>[ |
| 6073 new mojom_types.StructField() |
| 6074 ..declData = (new mojom_types.DeclarationData() |
| 6075 ..shortName = 'Req') |
| 6076 ..type = (new mojom_types.Type() |
| 6077 ..typeReference = (new mojom_types.TypeReference() |
| 6078 ..isInterfaceRequest = true |
| 6079 ..identifier = 'test_structs_SomeInterface__' |
| 6080 ..typeKey = 'test_structs_SomeInterface__' |
| 6081 )), |
| 6082 new mojom_types.StructField() |
| 6083 ..declData = (new mojom_types.DeclarationData() |
| 6084 ..shortName = 'NullableReq') |
| 6085 ..type = (new mojom_types.Type() |
| 6086 ..typeReference = (new mojom_types.TypeReference() |
| 6087 ..nullable = true |
| 6088 |
| 6089 ..isInterfaceRequest = true |
| 6090 ..identifier = 'test_structs_SomeInterface__' |
| 6091 ..typeKey = 'test_structs_SomeInterface__' |
| 6092 )),]; |
| 6093 } |
| 6094 |
4631 | 6095 |
4632 class DartKeywordStructKeywords extends bindings.MojoEnum { | 6096 class DartKeywordStructKeywords extends bindings.MojoEnum { |
4633 static const DartKeywordStructKeywords await_ = const DartKeywordStructKeyword
s._(0); | 6097 static const DartKeywordStructKeywords await_ = const DartKeywordStructKeyword
s._(0); |
4634 static const DartKeywordStructKeywords is_ = const DartKeywordStructKeywords._
(1); | 6098 static const DartKeywordStructKeywords is_ = const DartKeywordStructKeywords._
(1); |
4635 static const DartKeywordStructKeywords rethrow_ = const DartKeywordStructKeywo
rds._(2); | 6099 static const DartKeywordStructKeywords rethrow_ = const DartKeywordStructKeywo
rds._(2); |
4636 | 6100 |
4637 const DartKeywordStructKeywords._(int v) : super(v); | 6101 const DartKeywordStructKeywords._(int v) : super(v); |
4638 | 6102 |
4639 static const Map<String, DartKeywordStructKeywords> valuesMap = const { | 6103 static const Map<String, DartKeywordStructKeywords> valuesMap = const { |
4640 "await_": await_, | 6104 "await_": await_, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4673 } | 6137 } |
4674 | 6138 |
4675 String toString() { | 6139 String toString() { |
4676 switch(this) { | 6140 switch(this) { |
4677 case await_: | 6141 case await_: |
4678 return 'DartKeywordStructKeywords.await_'; | 6142 return 'DartKeywordStructKeywords.await_'; |
4679 case is_: | 6143 case is_: |
4680 return 'DartKeywordStructKeywords.is_'; | 6144 return 'DartKeywordStructKeywords.is_'; |
4681 case rethrow_: | 6145 case rethrow_: |
4682 return 'DartKeywordStructKeywords.rethrow_'; | 6146 return 'DartKeywordStructKeywords.rethrow_'; |
| 6147 default: |
| 6148 return null; |
4683 } | 6149 } |
4684 } | 6150 } |
4685 | 6151 |
4686 int toJson() => mojoEnumValue; | 6152 int toJson() => mojoEnumValue; |
4687 } | 6153 } |
4688 | 6154 |
| 6155 mojom_types.MojomEnum _testStructsKeywords() { |
| 6156 return new mojom_types.MojomEnum() |
| 6157 ..declData = (new mojom_types.DeclarationData() |
| 6158 ..shortName = 'Keywords' |
| 6159 ..fullIdentifier = 'mojo.test.Keywords') |
| 6160 ..values = <mojom_types.EnumValue>[ |
| 6161 new mojom_types.EnumValue() |
| 6162 ..declData = (new mojom_types.DeclarationData() |
| 6163 ..shortName = 'Await') |
| 6164 ..enumTypeKey = 'test_structs_Keywords__' |
| 6165 ..intValue = 0, |
| 6166 new mojom_types.EnumValue() |
| 6167 ..declData = (new mojom_types.DeclarationData() |
| 6168 ..shortName = 'Is') |
| 6169 ..enumTypeKey = 'test_structs_Keywords__' |
| 6170 ..intValue = 1, |
| 6171 new mojom_types.EnumValue() |
| 6172 ..declData = (new mojom_types.DeclarationData() |
| 6173 ..shortName = 'Rethrow') |
| 6174 ..enumTypeKey = 'test_structs_Keywords__' |
| 6175 ..intValue = 2,]; |
| 6176 } |
| 6177 |
4689 class DartKeywordStruct extends bindings.Struct { | 6178 class DartKeywordStruct extends bindings.Struct { |
4690 static const List<bindings.StructDataHeader> kVersions = const [ | 6179 static const List<bindings.StructDataHeader> kVersions = const [ |
4691 const bindings.StructDataHeader(24, 0) | 6180 const bindings.StructDataHeader(24, 0) |
4692 ]; | 6181 ]; |
4693 DartKeywordStructKeywords await_ = null; | 6182 DartKeywordStructKeywords await_ = null; |
4694 DartKeywordStructKeywords is_ = null; | 6183 DartKeywordStructKeywords is_ = null; |
4695 DartKeywordStructKeywords rethrow_ = null; | 6184 DartKeywordStructKeywords rethrow_ = null; |
4696 | 6185 |
4697 DartKeywordStruct() : super(kVersions.last.size); | 6186 DartKeywordStruct() : super(kVersions.last.size); |
4698 | 6187 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4775 | 6264 |
4776 Map toJson() { | 6265 Map toJson() { |
4777 Map map = new Map(); | 6266 Map map = new Map(); |
4778 map["await_"] = await_; | 6267 map["await_"] = await_; |
4779 map["is_"] = is_; | 6268 map["is_"] = is_; |
4780 map["rethrow_"] = rethrow_; | 6269 map["rethrow_"] = rethrow_; |
4781 return map; | 6270 return map; |
4782 } | 6271 } |
4783 } | 6272 } |
4784 | 6273 |
| 6274 mojom_types.MojomStruct _testStructsDartKeywordStruct() { |
| 6275 return new mojom_types.MojomStruct() |
| 6276 ..declData = (new mojom_types.DeclarationData() |
| 6277 ..shortName = 'DartKeywordStruct' |
| 6278 ..fullIdentifier = 'mojo.test.DartKeywordStruct') |
| 6279 ..fields = <mojom_types.StructField>[ |
| 6280 new mojom_types.StructField() |
| 6281 ..declData = (new mojom_types.DeclarationData() |
| 6282 ..shortName = 'Await') |
| 6283 ..type = (new mojom_types.Type() |
| 6284 ..typeReference = (new mojom_types.TypeReference() |
| 6285 ..identifier = 'test_structs_Keywords__' |
| 6286 ..typeKey = 'test_structs_Keywords__' |
| 6287 )), |
| 6288 new mojom_types.StructField() |
| 6289 ..declData = (new mojom_types.DeclarationData() |
| 6290 ..shortName = 'Is') |
| 6291 ..type = (new mojom_types.Type() |
| 6292 ..typeReference = (new mojom_types.TypeReference() |
| 6293 ..identifier = 'test_structs_Keywords__' |
| 6294 ..typeKey = 'test_structs_Keywords__' |
| 6295 )), |
| 6296 new mojom_types.StructField() |
| 6297 ..declData = (new mojom_types.DeclarationData() |
| 6298 ..shortName = 'Rethrow') |
| 6299 ..type = (new mojom_types.Type() |
| 6300 ..typeReference = (new mojom_types.TypeReference() |
| 6301 ..identifier = 'test_structs_Keywords__' |
| 6302 ..typeKey = 'test_structs_Keywords__' |
| 6303 )),]; |
| 6304 } |
| 6305 |
4785 | 6306 |
4786 class _SomeInterfaceSomeMethodParams extends bindings.Struct { | 6307 class _SomeInterfaceSomeMethodParams extends bindings.Struct { |
4787 static const List<bindings.StructDataHeader> kVersions = const [ | 6308 static const List<bindings.StructDataHeader> kVersions = const [ |
4788 const bindings.StructDataHeader(16, 0) | 6309 const bindings.StructDataHeader(16, 0) |
4789 ]; | 6310 ]; |
4790 RectPair pair = null; | 6311 RectPair pair = null; |
4791 | 6312 |
4792 _SomeInterfaceSomeMethodParams() : super(kVersions.last.size); | 6313 _SomeInterfaceSomeMethodParams() : super(kVersions.last.size); |
4793 | 6314 |
4794 static _SomeInterfaceSomeMethodParams deserialize(bindings.Message message) { | 6315 static _SomeInterfaceSomeMethodParams deserialize(bindings.Message message) { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4843 "pair: $pair" ")"; | 6364 "pair: $pair" ")"; |
4844 } | 6365 } |
4845 | 6366 |
4846 Map toJson() { | 6367 Map toJson() { |
4847 Map map = new Map(); | 6368 Map map = new Map(); |
4848 map["pair"] = pair; | 6369 map["pair"] = pair; |
4849 return map; | 6370 return map; |
4850 } | 6371 } |
4851 } | 6372 } |
4852 | 6373 |
| 6374 mojom_types.MojomStruct _testStructsSomeInterfaceSomeMethodParams() { |
| 6375 return new mojom_types.MojomStruct() |
| 6376 ..declData = (new mojom_types.DeclarationData() |
| 6377 ..shortName = 'SomeInterfaceSomeMethodParams' |
| 6378 ..fullIdentifier = 'mojo.test.SomeInterface_SomeMethod_Params') |
| 6379 ..fields = <mojom_types.StructField>[ |
| 6380 new mojom_types.StructField() |
| 6381 ..declData = (new mojom_types.DeclarationData() |
| 6382 ..shortName = 'Pair') |
| 6383 ..type = (new mojom_types.Type() |
| 6384 ..typeReference = (new mojom_types.TypeReference() |
| 6385 ..identifier = 'test_structs_RectPair__' |
| 6386 ..typeKey = 'test_structs_RectPair__' |
| 6387 )),]; |
| 6388 } |
| 6389 |
4853 | 6390 |
4854 class SomeInterfaceSomeMethodResponseParams extends bindings.Struct { | 6391 class SomeInterfaceSomeMethodResponseParams extends bindings.Struct { |
4855 static const List<bindings.StructDataHeader> kVersions = const [ | 6392 static const List<bindings.StructDataHeader> kVersions = const [ |
4856 const bindings.StructDataHeader(16, 0) | 6393 const bindings.StructDataHeader(16, 0) |
4857 ]; | 6394 ]; |
4858 RectPair otherPair = null; | 6395 RectPair otherPair = null; |
4859 | 6396 |
4860 SomeInterfaceSomeMethodResponseParams() : super(kVersions.last.size); | 6397 SomeInterfaceSomeMethodResponseParams() : super(kVersions.last.size); |
4861 | 6398 |
4862 static SomeInterfaceSomeMethodResponseParams deserialize(bindings.Message mess
age) { | 6399 static SomeInterfaceSomeMethodResponseParams deserialize(bindings.Message mess
age) { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4911 "otherPair: $otherPair" ")"; | 6448 "otherPair: $otherPair" ")"; |
4912 } | 6449 } |
4913 | 6450 |
4914 Map toJson() { | 6451 Map toJson() { |
4915 Map map = new Map(); | 6452 Map map = new Map(); |
4916 map["otherPair"] = otherPair; | 6453 map["otherPair"] = otherPair; |
4917 return map; | 6454 return map; |
4918 } | 6455 } |
4919 } | 6456 } |
4920 | 6457 |
| 6458 mojom_types.MojomStruct _testStructsSomeInterfaceSomeMethodResponseParams() { |
| 6459 return new mojom_types.MojomStruct() |
| 6460 ..declData = (new mojom_types.DeclarationData() |
| 6461 ..shortName = 'SomeInterfaceSomeMethodResponseParams' |
| 6462 ..fullIdentifier = 'mojo.test.SomeInterface_SomeMethod_ResponseParams') |
| 6463 ..fields = <mojom_types.StructField>[ |
| 6464 new mojom_types.StructField() |
| 6465 ..declData = (new mojom_types.DeclarationData() |
| 6466 ..shortName = 'OtherPair') |
| 6467 ..type = (new mojom_types.Type() |
| 6468 ..typeReference = (new mojom_types.TypeReference() |
| 6469 ..identifier = 'test_structs_RectPair__' |
| 6470 ..typeKey = 'test_structs_RectPair__' |
| 6471 )),]; |
| 6472 } |
| 6473 |
4921 | 6474 |
4922 | 6475 |
4923 enum UnionOfStructsTag { | 6476 enum UnionOfStructsTag { |
4924 nr, | 6477 nr, |
4925 aNr, | 6478 aNr, |
4926 aRp, | 6479 aRp, |
4927 mNdfv, | 6480 mNdfv, |
4928 mHs, | 6481 mHs, |
4929 unknown | 6482 unknown |
4930 } | 6483 } |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5208 case UnionOfStructsTag.mHs: | 6761 case UnionOfStructsTag.mHs: |
5209 result += "mHs"; | 6762 result += "mHs"; |
5210 break; | 6763 break; |
5211 default: | 6764 default: |
5212 result += "unknown"; | 6765 result += "unknown"; |
5213 } | 6766 } |
5214 result += ": $_data)"; | 6767 result += ": $_data)"; |
5215 return result; | 6768 return result; |
5216 } | 6769 } |
5217 } | 6770 } |
| 6771 |
| 6772 mojom_types.MojomUnion _testStructsUnionOfStructs() { |
| 6773 return new mojom_types.MojomUnion() |
| 6774 ..declData = (new mojom_types.DeclarationData() |
| 6775 ..shortName = 'UnionOfStructs' |
| 6776 ..fullIdentifier = 'mojo.test.UnionOfStructs') |
| 6777 ..fields = <mojom_types.UnionField>[ |
| 6778 new mojom_types.UnionField() |
| 6779 ..declData = (new mojom_types.DeclarationData() |
| 6780 ..shortName = 'Nr') |
| 6781 ..type = (new mojom_types.Type() |
| 6782 ..typeReference = (new mojom_types.TypeReference() |
| 6783 ..identifier = 'test_structs_NamedRegion__' |
| 6784 ..typeKey = 'test_structs_NamedRegion__' |
| 6785 )) |
| 6786 ..tag = 0, |
| 6787 new mojom_types.UnionField() |
| 6788 ..declData = (new mojom_types.DeclarationData() |
| 6789 ..shortName = 'ANr') |
| 6790 ..type = (new mojom_types.Type() |
| 6791 ..arrayType = (new mojom_types.ArrayType() |
| 6792 ..elementType = (new mojom_types.Type() |
| 6793 ..typeReference = (new mojom_types.TypeReference() |
| 6794 ..identifier = 'test_structs_NamedRegion__' |
| 6795 ..typeKey = 'test_structs_NamedRegion__' |
| 6796 )))) |
| 6797 ..tag = 1, |
| 6798 new mojom_types.UnionField() |
| 6799 ..declData = (new mojom_types.DeclarationData() |
| 6800 ..shortName = 'ARp') |
| 6801 ..type = (new mojom_types.Type() |
| 6802 ..arrayType = (new mojom_types.ArrayType() |
| 6803 ..elementType = (new mojom_types.Type() |
| 6804 ..typeReference = (new mojom_types.TypeReference() |
| 6805 ..identifier = 'test_structs_RectPair__' |
| 6806 ..typeKey = 'test_structs_RectPair__' |
| 6807 )))) |
| 6808 ..tag = 2, |
| 6809 new mojom_types.UnionField() |
| 6810 ..declData = (new mojom_types.DeclarationData() |
| 6811 ..shortName = 'MNdfv') |
| 6812 ..type = (new mojom_types.Type() |
| 6813 ..mapType = (new mojom_types.MapType() |
| 6814 ..keyType = (new mojom_types.Type() |
| 6815 ..simpleType = mojom_types.SimpleType.int64) |
| 6816 ..valueType = (new mojom_types.Type() |
| 6817 ..typeReference = (new mojom_types.TypeReference() |
| 6818 ..identifier = 'test_structs_NoDefaultFieldValues__' |
| 6819 ..typeKey = 'test_structs_NoDefaultFieldValues__' |
| 6820 )))) |
| 6821 ..tag = 3, |
| 6822 new mojom_types.UnionField() |
| 6823 ..declData = (new mojom_types.DeclarationData() |
| 6824 ..shortName = 'MHs') |
| 6825 ..type = (new mojom_types.Type() |
| 6826 ..mapType = (new mojom_types.MapType() |
| 6827 ..keyType = (new mojom_types.Type() |
| 6828 ..simpleType = mojom_types.SimpleType.int64) |
| 6829 ..valueType = (new mojom_types.Type() |
| 6830 ..typeReference = (new mojom_types.TypeReference() |
| 6831 ..identifier = 'test_structs_HandleStruct__' |
| 6832 ..typeKey = 'test_structs_HandleStruct__' |
| 6833 )))) |
| 6834 ..tag = 4,]; |
| 6835 } |
| 6836 |
5218 const int _SomeInterface_someMethodName = 0; | 6837 const int _SomeInterface_someMethodName = 0; |
5219 | 6838 |
| 6839 mojom_types.MojomInterface _testStructsSomeInterface() { |
| 6840 return new mojom_types.MojomInterface() |
| 6841 ..declData = (new mojom_types.DeclarationData() |
| 6842 ..shortName = 'SomeInterface' |
| 6843 ..fullIdentifier = 'mojo.test.SomeInterface') |
| 6844 ..interfaceName = 'SomeInterface' |
| 6845 ..methods = <int, mojom_types.MojomMethod>{ |
| 6846 _SomeInterface_someMethodName: new mojom_types.MojomMethod() |
| 6847 ..declData = (new mojom_types.DeclarationData() |
| 6848 ..shortName = 'SomeMethod') |
| 6849 ..ordinal = _SomeInterface_someMethodName |
| 6850 ..responseParams = _testStructsSomeInterfaceSomeMethodResponseParams() |
| 6851 ..parameters = _testStructsSomeInterfaceSomeMethodParams(), |
| 6852 }; |
| 6853 } |
| 6854 |
| 6855 class _SomeInterfaceServiceDescription implements service_describer.ServiceDescr
iption { |
| 6856 dynamic getTopLevelInterface([Function responseFactory]) => |
| 6857 _testStructsSomeInterface(); |
| 6858 |
| 6859 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 6860 getAllMojomTypeDefinitions()[typeKey]; |
| 6861 |
| 6862 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 6863 getAllMojomTypeDefinitions(); |
| 6864 } |
| 6865 |
5220 abstract class SomeInterface { | 6866 abstract class SomeInterface { |
5221 static const String serviceName = null; | 6867 static const String serviceName = null; |
5222 dynamic someMethod(RectPair pair,[Function responseFactory = null]); | 6868 dynamic someMethod(RectPair pair,[Function responseFactory = null]); |
5223 } | 6869 } |
5224 | 6870 |
5225 | 6871 |
5226 class _SomeInterfaceProxyImpl extends bindings.Proxy { | 6872 class _SomeInterfaceProxyImpl extends bindings.Proxy { |
5227 _SomeInterfaceProxyImpl.fromEndpoint( | 6873 _SomeInterfaceProxyImpl.fromEndpoint( |
5228 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 6874 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
5229 | 6875 |
5230 _SomeInterfaceProxyImpl.fromHandle(core.MojoHandle handle) : | 6876 _SomeInterfaceProxyImpl.fromHandle(core.MojoHandle handle) : |
5231 super.fromHandle(handle); | 6877 super.fromHandle(handle); |
5232 | 6878 |
5233 _SomeInterfaceProxyImpl.unbound() : super.unbound(); | 6879 _SomeInterfaceProxyImpl.unbound() : super.unbound(); |
5234 | 6880 |
5235 static _SomeInterfaceProxyImpl newFromEndpoint( | 6881 static _SomeInterfaceProxyImpl newFromEndpoint( |
5236 core.MojoMessagePipeEndpoint endpoint) { | 6882 core.MojoMessagePipeEndpoint endpoint) { |
5237 assert(endpoint.setDescription("For _SomeInterfaceProxyImpl")); | 6883 assert(endpoint.setDescription("For _SomeInterfaceProxyImpl")); |
5238 return new _SomeInterfaceProxyImpl.fromEndpoint(endpoint); | 6884 return new _SomeInterfaceProxyImpl.fromEndpoint(endpoint); |
5239 } | 6885 } |
5240 | 6886 |
| 6887 service_describer.ServiceDescription get serviceDescription => |
| 6888 new _SomeInterfaceServiceDescription(); |
| 6889 |
5241 void handleResponse(bindings.ServiceMessage message) { | 6890 void handleResponse(bindings.ServiceMessage message) { |
5242 switch (message.header.type) { | 6891 switch (message.header.type) { |
5243 case _SomeInterface_someMethodName: | 6892 case _SomeInterface_someMethodName: |
5244 var r = SomeInterfaceSomeMethodResponseParams.deserialize( | 6893 var r = SomeInterfaceSomeMethodResponseParams.deserialize( |
5245 message.payload); | 6894 message.payload); |
5246 if (!message.header.hasRequestId) { | 6895 if (!message.header.hasRequestId) { |
5247 proxyError("Expected a message with a valid request Id."); | 6896 proxyError("Expected a message with a valid request Id."); |
5248 return; | 6897 return; |
5249 } | 6898 } |
5250 Completer c = completerMap[message.header.requestId]; | 6899 Completer c = completerMap[message.header.requestId]; |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5416 assert(_impl == null); | 7065 assert(_impl == null); |
5417 _impl = d; | 7066 _impl = d; |
5418 } | 7067 } |
5419 | 7068 |
5420 String toString() { | 7069 String toString() { |
5421 var superString = super.toString(); | 7070 var superString = super.toString(); |
5422 return "SomeInterfaceStub($superString)"; | 7071 return "SomeInterfaceStub($superString)"; |
5423 } | 7072 } |
5424 | 7073 |
5425 int get version => 0; | 7074 int get version => 0; |
| 7075 |
| 7076 service_describer.ServiceDescription get serviceDescription => |
| 7077 new _SomeInterfaceServiceDescription(); |
5426 } | 7078 } |
5427 | 7079 |
5428 | 7080 |
| 7081 Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
| 7082 var map = new HashMap<String, mojom_types.UserDefinedType>(); |
| 7083 map["test_structs_StructOfStructs__"] = |
| 7084 new mojom_types.UserDefinedType() |
| 7085 ..structType = _testStructsStructOfStructs(); |
| 7086 map["test_structs_NamedRegion__"] = |
| 7087 new mojom_types.UserDefinedType() |
| 7088 ..structType = _testStructsNamedRegion(); |
| 7089 map["test_structs_RectPair__"] = |
| 7090 new mojom_types.UserDefinedType() |
| 7091 ..structType = _testStructsRectPair(); |
| 7092 map["test_structs_EmptyStruct__"] = |
| 7093 new mojom_types.UserDefinedType() |
| 7094 ..structType = _testStructsEmptyStruct(); |
| 7095 map["test_structs_HandleStruct__"] = |
| 7096 new mojom_types.UserDefinedType() |
| 7097 ..structType = _testStructsHandleStruct(); |
| 7098 map["test_structs_NullableHandleStruct__"] = |
| 7099 new mojom_types.UserDefinedType() |
| 7100 ..structType = _testStructsNullableHandleStruct(); |
| 7101 map["test_structs_NoDefaultFieldValues__"] = |
| 7102 new mojom_types.UserDefinedType() |
| 7103 ..structType = _testStructsNoDefaultFieldValues(); |
| 7104 map["test_structs_DefaultFieldValues__"] = |
| 7105 new mojom_types.UserDefinedType() |
| 7106 ..structType = _testStructsDefaultFieldValues(); |
| 7107 map["test_structs_ScopedConstants__"] = |
| 7108 new mojom_types.UserDefinedType() |
| 7109 ..structType = _testStructsScopedConstants(); |
| 7110 map["test_structs_EType__"] = |
| 7111 new mojom_types.UserDefinedType() |
| 7112 ..enumType = _testStructsEType(); |
| 7113 map["test_structs_MapKeyTypes__"] = |
| 7114 new mojom_types.UserDefinedType() |
| 7115 ..structType = _testStructsMapKeyTypes(); |
| 7116 map["test_structs_MapValueTypes__"] = |
| 7117 new mojom_types.UserDefinedType() |
| 7118 ..structType = _testStructsMapValueTypes(); |
| 7119 map["test_structs_ArrayValueTypes__"] = |
| 7120 new mojom_types.UserDefinedType() |
| 7121 ..structType = _testStructsArrayValueTypes(); |
| 7122 map["test_structs_FloatNumberValues__"] = |
| 7123 new mojom_types.UserDefinedType() |
| 7124 ..structType = _testStructsFloatNumberValues(); |
| 7125 map["test_structs_IntegerNumberValues__"] = |
| 7126 new mojom_types.UserDefinedType() |
| 7127 ..structType = _testStructsIntegerNumberValues(); |
| 7128 map["test_structs_UnsignedNumberValues__"] = |
| 7129 new mojom_types.UserDefinedType() |
| 7130 ..structType = _testStructsUnsignedNumberValues(); |
| 7131 map["test_structs_BitArrayValues__"] = |
| 7132 new mojom_types.UserDefinedType() |
| 7133 ..structType = _testStructsBitArrayValues(); |
| 7134 map["test_structs_MultiVersionStruct__"] = |
| 7135 new mojom_types.UserDefinedType() |
| 7136 ..structType = _testStructsMultiVersionStruct(); |
| 7137 map["test_structs_MultiVersionStructV0__"] = |
| 7138 new mojom_types.UserDefinedType() |
| 7139 ..structType = _testStructsMultiVersionStructV0(); |
| 7140 map["test_structs_MultiVersionStructV1__"] = |
| 7141 new mojom_types.UserDefinedType() |
| 7142 ..structType = _testStructsMultiVersionStructV1(); |
| 7143 map["test_structs_MultiVersionStructV3__"] = |
| 7144 new mojom_types.UserDefinedType() |
| 7145 ..structType = _testStructsMultiVersionStructV3(); |
| 7146 map["test_structs_MultiVersionStructV5__"] = |
| 7147 new mojom_types.UserDefinedType() |
| 7148 ..structType = _testStructsMultiVersionStructV5(); |
| 7149 map["test_structs_MultiVersionStructV7__"] = |
| 7150 new mojom_types.UserDefinedType() |
| 7151 ..structType = _testStructsMultiVersionStructV7(); |
| 7152 map["test_structs_ContainsInterface__"] = |
| 7153 new mojom_types.UserDefinedType() |
| 7154 ..structType = _testStructsContainsInterface(); |
| 7155 map["test_structs_ContainsOther__"] = |
| 7156 new mojom_types.UserDefinedType() |
| 7157 ..structType = _testStructsContainsOther(); |
| 7158 map["test_structs_ContainsInterfaceRequest__"] = |
| 7159 new mojom_types.UserDefinedType() |
| 7160 ..structType = _testStructsContainsInterfaceRequest(); |
| 7161 map["test_structs_DartKeywordStruct__"] = |
| 7162 new mojom_types.UserDefinedType() |
| 7163 ..structType = _testStructsDartKeywordStruct(); |
| 7164 map["test_structs_Keywords__"] = |
| 7165 new mojom_types.UserDefinedType() |
| 7166 ..enumType = _testStructsKeywords(); |
| 7167 map["test_structs_SomeInterface_SomeMethod_Params__"] = |
| 7168 new mojom_types.UserDefinedType() |
| 7169 ..structType = _testStructsSomeInterfaceSomeMethodParams(); |
| 7170 map["test_structs_SomeInterface_SomeMethod_ResponseParams__"] = |
| 7171 new mojom_types.UserDefinedType() |
| 7172 ..structType = _testStructsSomeInterfaceSomeMethodResponseParams(); |
| 7173 map["test_structs_UnionOfStructs__"] = |
| 7174 new mojom_types.UserDefinedType() |
| 7175 ..unionType = _testStructsUnionOfStructs(); |
| 7176 map["test_structs_SomeInterface__"] = |
| 7177 new mojom_types.UserDefinedType() |
| 7178 ..interfaceType = _testStructsSomeInterface(); |
| 7179 rect_mojom.getAllMojomTypeDefinitions() |
| 7180 .forEach((String s, mojom_types.UserDefinedType udt) { |
| 7181 map[s] = udt; |
| 7182 }); |
| 7183 |
| 7184 return map; |
| 7185 } |
| 7186 |
| 7187 var _mojomDesc; |
| 7188 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
| 7189 if (_mojomDesc == null) { |
| 7190 _mojomDesc = _initDescriptions(); |
| 7191 } |
| 7192 return _mojomDesc; |
| 7193 } |
| 7194 |
OLD | NEW |