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

Side by Side Diff: mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/validation_test_interfaces.mojom.dart

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Merge with master Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // 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 validation_test_interfaces_mojom; 5 library validation_test_interfaces_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 14
12 class BasicEnum extends bindings.MojoEnum { 15 class BasicEnum extends bindings.MojoEnum {
13 static const BasicEnum a = const BasicEnum._(0); 16 static const BasicEnum a = const BasicEnum._(0);
14 static const BasicEnum b = const BasicEnum._(1); 17 static const BasicEnum b = const BasicEnum._(1);
15 static const BasicEnum c = const BasicEnum._(0); 18 static const BasicEnum c = const BasicEnum._(0);
16 static const BasicEnum d = const BasicEnum._(-3); 19 static const BasicEnum d = const BasicEnum._(-3);
17 static const BasicEnum e = const BasicEnum._(10); 20 static const BasicEnum e = const BasicEnum._(10);
18 21
19 const BasicEnum._(int v) : super(v); 22 const BasicEnum._(int v) : super(v);
20 23
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 case a: 70 case a:
68 return 'BasicEnum.a'; 71 return 'BasicEnum.a';
69 case b: 72 case b:
70 return 'BasicEnum.b'; 73 return 'BasicEnum.b';
71 case c: 74 case c:
72 return 'BasicEnum.c'; 75 return 'BasicEnum.c';
73 case d: 76 case d:
74 return 'BasicEnum.d'; 77 return 'BasicEnum.d';
75 case e: 78 case e:
76 return 'BasicEnum.e'; 79 return 'BasicEnum.e';
80 default:
81 return null;
77 } 82 }
78 } 83 }
79 84
80 int toJson() => mojoEnumValue; 85 int toJson() => mojoEnumValue;
81 } 86 }
82 87
88 mojom_types.MojomEnum _validationTestInterfacesBasicEnum() {
89 return new mojom_types.MojomEnum()
90 ..declData = (new mojom_types.DeclarationData()
91 ..shortName = 'BasicEnum'
92 ..fullIdentifier = 'mojo.test.BasicEnum')
93 ..values = <mojom_types.EnumValue>[
94 new mojom_types.EnumValue()
95 ..declData = (new mojom_types.DeclarationData()
96 ..shortName = 'A')
97 ..enumTypeKey = 'validation_test_interfaces_BasicEnum__'
98 ..intValue = 0,
99 new mojom_types.EnumValue()
100 ..declData = (new mojom_types.DeclarationData()
101 ..shortName = 'B')
102 ..enumTypeKey = 'validation_test_interfaces_BasicEnum__'
103 ..intValue = 1,
104 new mojom_types.EnumValue()
105 ..declData = (new mojom_types.DeclarationData()
106 ..shortName = 'C')
107 ..enumTypeKey = 'validation_test_interfaces_BasicEnum__'
108 ..intValue = 0,
109 new mojom_types.EnumValue()
110 ..declData = (new mojom_types.DeclarationData()
111 ..shortName = 'D')
112 ..enumTypeKey = 'validation_test_interfaces_BasicEnum__'
113 ..intValue = -3,
114 new mojom_types.EnumValue()
115 ..declData = (new mojom_types.DeclarationData()
116 ..shortName = 'E')
117 ..enumTypeKey = 'validation_test_interfaces_BasicEnum__'
118 ..intValue = 10,];
119 }
120
83 121
84 122
85 class StructA extends bindings.Struct { 123 class StructA extends bindings.Struct {
86 static const List<bindings.StructDataHeader> kVersions = const [ 124 static const List<bindings.StructDataHeader> kVersions = const [
87 const bindings.StructDataHeader(16, 0) 125 const bindings.StructDataHeader(16, 0)
88 ]; 126 ];
89 int i = 0; 127 int i = 0;
90 128
91 StructA() : super(kVersions.last.size); 129 StructA() : super(kVersions.last.size);
92 130
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 "i: $i" ")"; 179 "i: $i" ")";
142 } 180 }
143 181
144 Map toJson() { 182 Map toJson() {
145 Map map = new Map(); 183 Map map = new Map();
146 map["i"] = i; 184 map["i"] = i;
147 return map; 185 return map;
148 } 186 }
149 } 187 }
150 188
189 mojom_types.MojomStruct _validationTestInterfacesStructA() {
190 return new mojom_types.MojomStruct()
191 ..declData = (new mojom_types.DeclarationData()
192 ..shortName = 'StructA'
193 ..fullIdentifier = 'mojo.test.StructA')
194 ..fields = <mojom_types.StructField>[
195 new mojom_types.StructField()
196 ..declData = (new mojom_types.DeclarationData()
197 ..shortName = 'I')
198 ..type = (new mojom_types.Type()
199 ..simpleType = mojom_types.SimpleType.uint64),];
200 }
201
151 202
152 class StructB extends bindings.Struct { 203 class StructB extends bindings.Struct {
153 static const List<bindings.StructDataHeader> kVersions = const [ 204 static const List<bindings.StructDataHeader> kVersions = const [
154 const bindings.StructDataHeader(16, 0) 205 const bindings.StructDataHeader(16, 0)
155 ]; 206 ];
156 StructA structA = null; 207 StructA structA = null;
157 208
158 StructB() : super(kVersions.last.size); 209 StructB() : super(kVersions.last.size);
159 210
160 static StructB deserialize(bindings.Message message) { 211 static StructB deserialize(bindings.Message message) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 "structA: $structA" ")"; 260 "structA: $structA" ")";
210 } 261 }
211 262
212 Map toJson() { 263 Map toJson() {
213 Map map = new Map(); 264 Map map = new Map();
214 map["structA"] = structA; 265 map["structA"] = structA;
215 return map; 266 return map;
216 } 267 }
217 } 268 }
218 269
270 mojom_types.MojomStruct _validationTestInterfacesStructB() {
271 return new mojom_types.MojomStruct()
272 ..declData = (new mojom_types.DeclarationData()
273 ..shortName = 'StructB'
274 ..fullIdentifier = 'mojo.test.StructB')
275 ..fields = <mojom_types.StructField>[
276 new mojom_types.StructField()
277 ..declData = (new mojom_types.DeclarationData()
278 ..shortName = 'StructA')
279 ..type = (new mojom_types.Type()
280 ..typeReference = (new mojom_types.TypeReference()
281 ..identifier = 'validation_test_interfaces_StructA__'
282 ..typeKey = 'validation_test_interfaces_StructA__'
283 )),];
284 }
285
219 286
220 class StructC extends bindings.Struct { 287 class StructC extends bindings.Struct {
221 static const List<bindings.StructDataHeader> kVersions = const [ 288 static const List<bindings.StructDataHeader> kVersions = const [
222 const bindings.StructDataHeader(16, 0) 289 const bindings.StructDataHeader(16, 0)
223 ]; 290 ];
224 List<int> data = null; 291 List<int> data = null;
225 292
226 StructC() : super(kVersions.last.size); 293 StructC() : super(kVersions.last.size);
227 294
228 static StructC deserialize(bindings.Message message) { 295 static StructC deserialize(bindings.Message message) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 "data: $data" ")"; 343 "data: $data" ")";
277 } 344 }
278 345
279 Map toJson() { 346 Map toJson() {
280 Map map = new Map(); 347 Map map = new Map();
281 map["data"] = data; 348 map["data"] = data;
282 return map; 349 return map;
283 } 350 }
284 } 351 }
285 352
353 mojom_types.MojomStruct _validationTestInterfacesStructC() {
354 return new mojom_types.MojomStruct()
355 ..declData = (new mojom_types.DeclarationData()
356 ..shortName = 'StructC'
357 ..fullIdentifier = 'mojo.test.StructC')
358 ..fields = <mojom_types.StructField>[
359 new mojom_types.StructField()
360 ..declData = (new mojom_types.DeclarationData()
361 ..shortName = 'Data')
362 ..type = (new mojom_types.Type()
363 ..arrayType = (new mojom_types.ArrayType()
364 ..elementType = (new mojom_types.Type()
365 ..simpleType = mojom_types.SimpleType.uint8))),];
366 }
367
286 368
287 class StructD extends bindings.Struct { 369 class StructD extends bindings.Struct {
288 static const List<bindings.StructDataHeader> kVersions = const [ 370 static const List<bindings.StructDataHeader> kVersions = const [
289 const bindings.StructDataHeader(16, 0) 371 const bindings.StructDataHeader(16, 0)
290 ]; 372 ];
291 List<core.MojoMessagePipeEndpoint> messagePipes = null; 373 List<core.MojoMessagePipeEndpoint> messagePipes = null;
292 374
293 StructD() : super(kVersions.last.size); 375 StructD() : super(kVersions.last.size);
294 376
295 static StructD deserialize(bindings.Message message) { 377 static StructD deserialize(bindings.Message message) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 return "StructD(" 424 return "StructD("
343 "messagePipes: $messagePipes" ")"; 425 "messagePipes: $messagePipes" ")";
344 } 426 }
345 427
346 Map toJson() { 428 Map toJson() {
347 throw new bindings.MojoCodecError( 429 throw new bindings.MojoCodecError(
348 'Object containing handles cannot be encoded to JSON.'); 430 'Object containing handles cannot be encoded to JSON.');
349 } 431 }
350 } 432 }
351 433
434 mojom_types.MojomStruct _validationTestInterfacesStructD() {
435 return new mojom_types.MojomStruct()
436 ..declData = (new mojom_types.DeclarationData()
437 ..shortName = 'StructD'
438 ..fullIdentifier = 'mojo.test.StructD')
439 ..fields = <mojom_types.StructField>[
440 new mojom_types.StructField()
441 ..declData = (new mojom_types.DeclarationData()
442 ..shortName = 'MessagePipes')
443 ..type = (new mojom_types.Type()
444 ..arrayType = (new mojom_types.ArrayType()
445 ..elementType = (new mojom_types.Type()
446 ..handleType = (new mojom_types.HandleType()
447 ..kind = mojom_types.HandleTypeKind.messagePipe)))),];
448 }
449
352 450
353 class StructE extends bindings.Struct { 451 class StructE extends bindings.Struct {
354 static const List<bindings.StructDataHeader> kVersions = const [ 452 static const List<bindings.StructDataHeader> kVersions = const [
355 const bindings.StructDataHeader(24, 0) 453 const bindings.StructDataHeader(24, 0)
356 ]; 454 ];
357 StructD structD = null; 455 StructD structD = null;
358 core.MojoDataPipeConsumer dataPipeConsumer = null; 456 core.MojoDataPipeConsumer dataPipeConsumer = null;
359 457
360 StructE() : super(kVersions.last.size); 458 StructE() : super(kVersions.last.size);
361 459
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 "structD: $structD" ", " 515 "structD: $structD" ", "
418 "dataPipeConsumer: $dataPipeConsumer" ")"; 516 "dataPipeConsumer: $dataPipeConsumer" ")";
419 } 517 }
420 518
421 Map toJson() { 519 Map toJson() {
422 throw new bindings.MojoCodecError( 520 throw new bindings.MojoCodecError(
423 'Object containing handles cannot be encoded to JSON.'); 521 'Object containing handles cannot be encoded to JSON.');
424 } 522 }
425 } 523 }
426 524
525 mojom_types.MojomStruct _validationTestInterfacesStructE() {
526 return new mojom_types.MojomStruct()
527 ..declData = (new mojom_types.DeclarationData()
528 ..shortName = 'StructE'
529 ..fullIdentifier = 'mojo.test.StructE')
530 ..fields = <mojom_types.StructField>[
531 new mojom_types.StructField()
532 ..declData = (new mojom_types.DeclarationData()
533 ..shortName = 'StructD')
534 ..type = (new mojom_types.Type()
535 ..typeReference = (new mojom_types.TypeReference()
536 ..identifier = 'validation_test_interfaces_StructD__'
537 ..typeKey = 'validation_test_interfaces_StructD__'
538 )),
539 new mojom_types.StructField()
540 ..declData = (new mojom_types.DeclarationData()
541 ..shortName = 'DataPipeConsumer')
542 ..type = (new mojom_types.Type()
543 ..handleType = (new mojom_types.HandleType()
544 ..kind = mojom_types.HandleTypeKind.dataPipeConsumer)),];
545 }
546
427 547
428 class StructF extends bindings.Struct { 548 class StructF extends bindings.Struct {
429 static const List<bindings.StructDataHeader> kVersions = const [ 549 static const List<bindings.StructDataHeader> kVersions = const [
430 const bindings.StructDataHeader(16, 0) 550 const bindings.StructDataHeader(16, 0)
431 ]; 551 ];
432 List<int> fixedSizeArray = null; 552 List<int> fixedSizeArray = null;
433 553
434 StructF() : super(kVersions.last.size); 554 StructF() : super(kVersions.last.size);
435 555
436 static StructF deserialize(bindings.Message message) { 556 static StructF deserialize(bindings.Message message) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 "fixedSizeArray: $fixedSizeArray" ")"; 604 "fixedSizeArray: $fixedSizeArray" ")";
485 } 605 }
486 606
487 Map toJson() { 607 Map toJson() {
488 Map map = new Map(); 608 Map map = new Map();
489 map["fixedSizeArray"] = fixedSizeArray; 609 map["fixedSizeArray"] = fixedSizeArray;
490 return map; 610 return map;
491 } 611 }
492 } 612 }
493 613
614 mojom_types.MojomStruct _validationTestInterfacesStructF() {
615 return new mojom_types.MojomStruct()
616 ..declData = (new mojom_types.DeclarationData()
617 ..shortName = 'StructF'
618 ..fullIdentifier = 'mojo.test.StructF')
619 ..fields = <mojom_types.StructField>[
620 new mojom_types.StructField()
621 ..declData = (new mojom_types.DeclarationData()
622 ..shortName = 'FixedSizeArray')
623 ..type = (new mojom_types.Type()
624 ..arrayType = (new mojom_types.ArrayType()
625 ..fixedLength = 3
626 ..elementType = (new mojom_types.Type()
627 ..simpleType = mojom_types.SimpleType.uint8))),];
628 }
629
494 630
495 class StructG extends bindings.Struct { 631 class StructG extends bindings.Struct {
496 static const List<bindings.StructDataHeader> kVersions = const [ 632 static const List<bindings.StructDataHeader> kVersions = const [
497 const bindings.StructDataHeader(16, 0), 633 const bindings.StructDataHeader(16, 0),
498 const bindings.StructDataHeader(24, 1), 634 const bindings.StructDataHeader(24, 1),
499 const bindings.StructDataHeader(32, 3) 635 const bindings.StructDataHeader(32, 3)
500 ]; 636 ];
501 int i = 0; 637 int i = 0;
502 bool b = false; 638 bool b = false;
503 StructA structA = null; 639 StructA structA = null;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 Map toJson() { 717 Map toJson() {
582 Map map = new Map(); 718 Map map = new Map();
583 map["i"] = i; 719 map["i"] = i;
584 map["b"] = b; 720 map["b"] = b;
585 map["structA"] = structA; 721 map["structA"] = structA;
586 map["str"] = str; 722 map["str"] = str;
587 return map; 723 return map;
588 } 724 }
589 } 725 }
590 726
727 mojom_types.MojomStruct _validationTestInterfacesStructG() {
728 return new mojom_types.MojomStruct()
729 ..declData = (new mojom_types.DeclarationData()
730 ..shortName = 'StructG'
731 ..fullIdentifier = 'mojo.test.StructG')
732 ..fields = <mojom_types.StructField>[
733 new mojom_types.StructField()
734 ..declData = (new mojom_types.DeclarationData()
735 ..shortName = 'I')
736 ..type = (new mojom_types.Type()
737 ..simpleType = mojom_types.SimpleType.int32),
738 new mojom_types.StructField()
739 ..declData = (new mojom_types.DeclarationData()
740 ..shortName = 'StructA')
741 ..type = (new mojom_types.Type()
742 ..typeReference = (new mojom_types.TypeReference()
743 ..nullable = true
744
745 ..identifier = 'validation_test_interfaces_StructA__'
746 ..typeKey = 'validation_test_interfaces_StructA__'
747 )),
748 new mojom_types.StructField()
749 ..declData = (new mojom_types.DeclarationData()
750 ..shortName = 'Str')
751 ..type = (new mojom_types.Type()
752 ..stringType = (new mojom_types.StringType()
753 ..nullable = true
754 )),
755 new mojom_types.StructField()
756 ..declData = (new mojom_types.DeclarationData()
757 ..shortName = 'B')
758 ..type = (new mojom_types.Type()
759 ..simpleType = mojom_types.SimpleType.bool),];
760 }
761
591 762
592 class StructH extends bindings.Struct { 763 class StructH extends bindings.Struct {
593 static const List<bindings.StructDataHeader> kVersions = const [ 764 static const List<bindings.StructDataHeader> kVersions = const [
594 const bindings.StructDataHeader(48, 0) 765 const bindings.StructDataHeader(48, 0)
595 ]; 766 ];
596 bool a = false; 767 bool a = false;
597 int b = 0; 768 int b = 0;
598 UnionA c = null; 769 UnionA c = null;
599 List<UnionA> d = null; 770 List<UnionA> d = null;
600 Map<int, UnionA> e = null; 771 Map<int, UnionA> e = null;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 Map map = new Map(); 923 Map map = new Map();
753 map["a"] = a; 924 map["a"] = a;
754 map["b"] = b; 925 map["b"] = b;
755 map["c"] = c; 926 map["c"] = c;
756 map["d"] = d; 927 map["d"] = d;
757 map["e"] = e; 928 map["e"] = e;
758 return map; 929 return map;
759 } 930 }
760 } 931 }
761 932
933 mojom_types.MojomStruct _validationTestInterfacesStructH() {
934 return new mojom_types.MojomStruct()
935 ..declData = (new mojom_types.DeclarationData()
936 ..shortName = 'StructH'
937 ..fullIdentifier = 'mojo.test.StructH')
938 ..fields = <mojom_types.StructField>[
939 new mojom_types.StructField()
940 ..declData = (new mojom_types.DeclarationData()
941 ..shortName = 'A')
942 ..type = (new mojom_types.Type()
943 ..simpleType = mojom_types.SimpleType.bool),
944 new mojom_types.StructField()
945 ..declData = (new mojom_types.DeclarationData()
946 ..shortName = 'B')
947 ..type = (new mojom_types.Type()
948 ..simpleType = mojom_types.SimpleType.uint8),
949 new mojom_types.StructField()
950 ..declData = (new mojom_types.DeclarationData()
951 ..shortName = 'C')
952 ..type = (new mojom_types.Type()
953 ..typeReference = (new mojom_types.TypeReference()
954 ..nullable = true
955
956 ..identifier = 'validation_test_interfaces_UnionA__'
957 ..typeKey = 'validation_test_interfaces_UnionA__'
958 )),
959 new mojom_types.StructField()
960 ..declData = (new mojom_types.DeclarationData()
961 ..shortName = 'D')
962 ..type = (new mojom_types.Type()
963 ..arrayType = (new mojom_types.ArrayType()
964 ..nullable = true
965 ..elementType = (new mojom_types.Type()
966 ..typeReference = (new mojom_types.TypeReference()
967 ..identifier = 'validation_test_interfaces_UnionA__'
968 ..typeKey = 'validation_test_interfaces_UnionA__'
969 )))),
970 new mojom_types.StructField()
971 ..declData = (new mojom_types.DeclarationData()
972 ..shortName = 'E')
973 ..type = (new mojom_types.Type()
974 ..mapType = (new mojom_types.MapType()
975 ..nullable = true
976
977 ..keyType = (new mojom_types.Type()
978 ..simpleType = mojom_types.SimpleType.uint8)
979 ..valueType = (new mojom_types.Type()
980 ..typeReference = (new mojom_types.TypeReference()
981 ..identifier = 'validation_test_interfaces_UnionA__'
982 ..typeKey = 'validation_test_interfaces_UnionA__'
983 )))),];
984 }
985
762 986
763 class BasicStruct extends bindings.Struct { 987 class BasicStruct extends bindings.Struct {
764 static const List<bindings.StructDataHeader> kVersions = const [ 988 static const List<bindings.StructDataHeader> kVersions = const [
765 const bindings.StructDataHeader(16, 0) 989 const bindings.StructDataHeader(16, 0)
766 ]; 990 ];
767 int a = 0; 991 int a = 0;
768 992
769 BasicStruct() : super(kVersions.last.size); 993 BasicStruct() : super(kVersions.last.size);
770 994
771 static BasicStruct deserialize(bindings.Message message) { 995 static BasicStruct deserialize(bindings.Message message) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 "a: $a" ")"; 1043 "a: $a" ")";
820 } 1044 }
821 1045
822 Map toJson() { 1046 Map toJson() {
823 Map map = new Map(); 1047 Map map = new Map();
824 map["a"] = a; 1048 map["a"] = a;
825 return map; 1049 return map;
826 } 1050 }
827 } 1051 }
828 1052
1053 mojom_types.MojomStruct _validationTestInterfacesBasicStruct() {
1054 return new mojom_types.MojomStruct()
1055 ..declData = (new mojom_types.DeclarationData()
1056 ..shortName = 'BasicStruct'
1057 ..fullIdentifier = 'mojo.test.BasicStruct')
1058 ..fields = <mojom_types.StructField>[
1059 new mojom_types.StructField()
1060 ..declData = (new mojom_types.DeclarationData()
1061 ..shortName = 'A')
1062 ..type = (new mojom_types.Type()
1063 ..simpleType = mojom_types.SimpleType.int32),];
1064 }
1065
829 1066
830 class StructWithEnumEnumWithin extends bindings.MojoEnum { 1067 class StructWithEnumEnumWithin extends bindings.MojoEnum {
831 static const StructWithEnumEnumWithin a = const StructWithEnumEnumWithin._(0); 1068 static const StructWithEnumEnumWithin a = const StructWithEnumEnumWithin._(0);
832 static const StructWithEnumEnumWithin b = const StructWithEnumEnumWithin._(1); 1069 static const StructWithEnumEnumWithin b = const StructWithEnumEnumWithin._(1);
833 static const StructWithEnumEnumWithin c = const StructWithEnumEnumWithin._(2); 1070 static const StructWithEnumEnumWithin c = const StructWithEnumEnumWithin._(2);
834 static const StructWithEnumEnumWithin d = const StructWithEnumEnumWithin._(3); 1071 static const StructWithEnumEnumWithin d = const StructWithEnumEnumWithin._(3);
835 1072
836 const StructWithEnumEnumWithin._(int v) : super(v); 1073 const StructWithEnumEnumWithin._(int v) : super(v);
837 1074
838 static const Map<String, StructWithEnumEnumWithin> valuesMap = const { 1075 static const Map<String, StructWithEnumEnumWithin> valuesMap = const {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 String toString() { 1115 String toString() {
879 switch(this) { 1116 switch(this) {
880 case a: 1117 case a:
881 return 'StructWithEnumEnumWithin.a'; 1118 return 'StructWithEnumEnumWithin.a';
882 case b: 1119 case b:
883 return 'StructWithEnumEnumWithin.b'; 1120 return 'StructWithEnumEnumWithin.b';
884 case c: 1121 case c:
885 return 'StructWithEnumEnumWithin.c'; 1122 return 'StructWithEnumEnumWithin.c';
886 case d: 1123 case d:
887 return 'StructWithEnumEnumWithin.d'; 1124 return 'StructWithEnumEnumWithin.d';
1125 default:
1126 return null;
888 } 1127 }
889 } 1128 }
890 1129
891 int toJson() => mojoEnumValue; 1130 int toJson() => mojoEnumValue;
892 } 1131 }
893 1132
1133 mojom_types.MojomEnum _validationTestInterfacesEnumWithin() {
1134 return new mojom_types.MojomEnum()
1135 ..declData = (new mojom_types.DeclarationData()
1136 ..shortName = 'EnumWithin'
1137 ..fullIdentifier = 'mojo.test.EnumWithin')
1138 ..values = <mojom_types.EnumValue>[
1139 new mojom_types.EnumValue()
1140 ..declData = (new mojom_types.DeclarationData()
1141 ..shortName = 'A')
1142 ..enumTypeKey = 'validation_test_interfaces_EnumWithin__'
1143 ..intValue = 0,
1144 new mojom_types.EnumValue()
1145 ..declData = (new mojom_types.DeclarationData()
1146 ..shortName = 'B')
1147 ..enumTypeKey = 'validation_test_interfaces_EnumWithin__'
1148 ..intValue = 1,
1149 new mojom_types.EnumValue()
1150 ..declData = (new mojom_types.DeclarationData()
1151 ..shortName = 'C')
1152 ..enumTypeKey = 'validation_test_interfaces_EnumWithin__'
1153 ..intValue = 2,
1154 new mojom_types.EnumValue()
1155 ..declData = (new mojom_types.DeclarationData()
1156 ..shortName = 'D')
1157 ..enumTypeKey = 'validation_test_interfaces_EnumWithin__'
1158 ..intValue = 3,];
1159 }
1160
894 class StructWithEnum extends bindings.Struct { 1161 class StructWithEnum extends bindings.Struct {
895 static const List<bindings.StructDataHeader> kVersions = const [ 1162 static const List<bindings.StructDataHeader> kVersions = const [
896 const bindings.StructDataHeader(8, 0) 1163 const bindings.StructDataHeader(8, 0)
897 ]; 1164 ];
898 1165
899 StructWithEnum() : super(kVersions.last.size); 1166 StructWithEnum() : super(kVersions.last.size);
900 1167
901 static StructWithEnum deserialize(bindings.Message message) { 1168 static StructWithEnum deserialize(bindings.Message message) {
902 var decoder = new bindings.Decoder(message); 1169 var decoder = new bindings.Decoder(message);
903 var result = decode(decoder); 1170 var result = decode(decoder);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 String toString() { 1208 String toString() {
942 return "StructWithEnum("")"; 1209 return "StructWithEnum("")";
943 } 1210 }
944 1211
945 Map toJson() { 1212 Map toJson() {
946 Map map = new Map(); 1213 Map map = new Map();
947 return map; 1214 return map;
948 } 1215 }
949 } 1216 }
950 1217
1218 mojom_types.MojomStruct _validationTestInterfacesStructWithEnum() {
1219 return new mojom_types.MojomStruct()
1220 ..declData = (new mojom_types.DeclarationData()
1221 ..shortName = 'StructWithEnum'
1222 ..fullIdentifier = 'mojo.test.StructWithEnum')
1223 ..fields = <mojom_types.StructField>[];
1224 }
1225
951 1226
952 class _BoundsCheckTestInterfaceMethod0Params extends bindings.Struct { 1227 class _BoundsCheckTestInterfaceMethod0Params extends bindings.Struct {
953 static const List<bindings.StructDataHeader> kVersions = const [ 1228 static const List<bindings.StructDataHeader> kVersions = const [
954 const bindings.StructDataHeader(16, 0) 1229 const bindings.StructDataHeader(16, 0)
955 ]; 1230 ];
956 int param0 = 0; 1231 int param0 = 0;
957 1232
958 _BoundsCheckTestInterfaceMethod0Params() : super(kVersions.last.size); 1233 _BoundsCheckTestInterfaceMethod0Params() : super(kVersions.last.size);
959 1234
960 static _BoundsCheckTestInterfaceMethod0Params deserialize(bindings.Message mes sage) { 1235 static _BoundsCheckTestInterfaceMethod0Params deserialize(bindings.Message mes sage) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 "param0: $param0" ")"; 1283 "param0: $param0" ")";
1009 } 1284 }
1010 1285
1011 Map toJson() { 1286 Map toJson() {
1012 Map map = new Map(); 1287 Map map = new Map();
1013 map["param0"] = param0; 1288 map["param0"] = param0;
1014 return map; 1289 return map;
1015 } 1290 }
1016 } 1291 }
1017 1292
1293 mojom_types.MojomStruct _validationTestInterfacesBoundsCheckTestInterfaceMethod0 Params() {
1294 return new mojom_types.MojomStruct()
1295 ..declData = (new mojom_types.DeclarationData()
1296 ..shortName = 'BoundsCheckTestInterfaceMethod0Params'
1297 ..fullIdentifier = 'mojo.test.BoundsCheckTestInterface_Method0_Params')
1298 ..fields = <mojom_types.StructField>[
1299 new mojom_types.StructField()
1300 ..declData = (new mojom_types.DeclarationData()
1301 ..shortName = 'Param0')
1302 ..type = (new mojom_types.Type()
1303 ..simpleType = mojom_types.SimpleType.uint8),];
1304 }
1305
1018 1306
1019 class BoundsCheckTestInterfaceMethod0ResponseParams extends bindings.Struct { 1307 class BoundsCheckTestInterfaceMethod0ResponseParams extends bindings.Struct {
1020 static const List<bindings.StructDataHeader> kVersions = const [ 1308 static const List<bindings.StructDataHeader> kVersions = const [
1021 const bindings.StructDataHeader(16, 0) 1309 const bindings.StructDataHeader(16, 0)
1022 ]; 1310 ];
1023 int param0 = 0; 1311 int param0 = 0;
1024 1312
1025 BoundsCheckTestInterfaceMethod0ResponseParams() : super(kVersions.last.size); 1313 BoundsCheckTestInterfaceMethod0ResponseParams() : super(kVersions.last.size);
1026 1314
1027 static BoundsCheckTestInterfaceMethod0ResponseParams deserialize(bindings.Mess age message) { 1315 static BoundsCheckTestInterfaceMethod0ResponseParams deserialize(bindings.Mess age message) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 "param0: $param0" ")"; 1363 "param0: $param0" ")";
1076 } 1364 }
1077 1365
1078 Map toJson() { 1366 Map toJson() {
1079 Map map = new Map(); 1367 Map map = new Map();
1080 map["param0"] = param0; 1368 map["param0"] = param0;
1081 return map; 1369 return map;
1082 } 1370 }
1083 } 1371 }
1084 1372
1373 mojom_types.MojomStruct _validationTestInterfacesBoundsCheckTestInterfaceMethod0 ResponseParams() {
1374 return new mojom_types.MojomStruct()
1375 ..declData = (new mojom_types.DeclarationData()
1376 ..shortName = 'BoundsCheckTestInterfaceMethod0ResponseParams'
1377 ..fullIdentifier = 'mojo.test.BoundsCheckTestInterface_Method0_ResponsePar ams')
1378 ..fields = <mojom_types.StructField>[
1379 new mojom_types.StructField()
1380 ..declData = (new mojom_types.DeclarationData()
1381 ..shortName = 'Param0')
1382 ..type = (new mojom_types.Type()
1383 ..simpleType = mojom_types.SimpleType.uint8),];
1384 }
1385
1085 1386
1086 class _BoundsCheckTestInterfaceMethod1Params extends bindings.Struct { 1387 class _BoundsCheckTestInterfaceMethod1Params extends bindings.Struct {
1087 static const List<bindings.StructDataHeader> kVersions = const [ 1388 static const List<bindings.StructDataHeader> kVersions = const [
1088 const bindings.StructDataHeader(16, 0) 1389 const bindings.StructDataHeader(16, 0)
1089 ]; 1390 ];
1090 int param0 = 0; 1391 int param0 = 0;
1091 1392
1092 _BoundsCheckTestInterfaceMethod1Params() : super(kVersions.last.size); 1393 _BoundsCheckTestInterfaceMethod1Params() : super(kVersions.last.size);
1093 1394
1094 static _BoundsCheckTestInterfaceMethod1Params deserialize(bindings.Message mes sage) { 1395 static _BoundsCheckTestInterfaceMethod1Params deserialize(bindings.Message mes sage) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 "param0: $param0" ")"; 1443 "param0: $param0" ")";
1143 } 1444 }
1144 1445
1145 Map toJson() { 1446 Map toJson() {
1146 Map map = new Map(); 1447 Map map = new Map();
1147 map["param0"] = param0; 1448 map["param0"] = param0;
1148 return map; 1449 return map;
1149 } 1450 }
1150 } 1451 }
1151 1452
1453 mojom_types.MojomStruct _validationTestInterfacesBoundsCheckTestInterfaceMethod1 Params() {
1454 return new mojom_types.MojomStruct()
1455 ..declData = (new mojom_types.DeclarationData()
1456 ..shortName = 'BoundsCheckTestInterfaceMethod1Params'
1457 ..fullIdentifier = 'mojo.test.BoundsCheckTestInterface_Method1_Params')
1458 ..fields = <mojom_types.StructField>[
1459 new mojom_types.StructField()
1460 ..declData = (new mojom_types.DeclarationData()
1461 ..shortName = 'Param0')
1462 ..type = (new mojom_types.Type()
1463 ..simpleType = mojom_types.SimpleType.uint8),];
1464 }
1465
1152 1466
1153 class _ConformanceTestInterfaceMethod0Params extends bindings.Struct { 1467 class _ConformanceTestInterfaceMethod0Params extends bindings.Struct {
1154 static const List<bindings.StructDataHeader> kVersions = const [ 1468 static const List<bindings.StructDataHeader> kVersions = const [
1155 const bindings.StructDataHeader(16, 0) 1469 const bindings.StructDataHeader(16, 0)
1156 ]; 1470 ];
1157 double param0 = 0.0; 1471 double param0 = 0.0;
1158 1472
1159 _ConformanceTestInterfaceMethod0Params() : super(kVersions.last.size); 1473 _ConformanceTestInterfaceMethod0Params() : super(kVersions.last.size);
1160 1474
1161 static _ConformanceTestInterfaceMethod0Params deserialize(bindings.Message mes sage) { 1475 static _ConformanceTestInterfaceMethod0Params deserialize(bindings.Message mes sage) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1209 "param0: $param0" ")"; 1523 "param0: $param0" ")";
1210 } 1524 }
1211 1525
1212 Map toJson() { 1526 Map toJson() {
1213 Map map = new Map(); 1527 Map map = new Map();
1214 map["param0"] = param0; 1528 map["param0"] = param0;
1215 return map; 1529 return map;
1216 } 1530 }
1217 } 1531 }
1218 1532
1533 mojom_types.MojomStruct _validationTestInterfacesConformanceTestInterfaceMethod0 Params() {
1534 return new mojom_types.MojomStruct()
1535 ..declData = (new mojom_types.DeclarationData()
1536 ..shortName = 'ConformanceTestInterfaceMethod0Params'
1537 ..fullIdentifier = 'mojo.test.ConformanceTestInterface_Method0_Params')
1538 ..fields = <mojom_types.StructField>[
1539 new mojom_types.StructField()
1540 ..declData = (new mojom_types.DeclarationData()
1541 ..shortName = 'Param0')
1542 ..type = (new mojom_types.Type()
1543 ..simpleType = mojom_types.SimpleType.float),];
1544 }
1545
1219 1546
1220 class _ConformanceTestInterfaceMethod1Params extends bindings.Struct { 1547 class _ConformanceTestInterfaceMethod1Params extends bindings.Struct {
1221 static const List<bindings.StructDataHeader> kVersions = const [ 1548 static const List<bindings.StructDataHeader> kVersions = const [
1222 const bindings.StructDataHeader(16, 0) 1549 const bindings.StructDataHeader(16, 0)
1223 ]; 1550 ];
1224 StructA param0 = null; 1551 StructA param0 = null;
1225 1552
1226 _ConformanceTestInterfaceMethod1Params() : super(kVersions.last.size); 1553 _ConformanceTestInterfaceMethod1Params() : super(kVersions.last.size);
1227 1554
1228 static _ConformanceTestInterfaceMethod1Params deserialize(bindings.Message mes sage) { 1555 static _ConformanceTestInterfaceMethod1Params deserialize(bindings.Message mes sage) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 "param0: $param0" ")"; 1604 "param0: $param0" ")";
1278 } 1605 }
1279 1606
1280 Map toJson() { 1607 Map toJson() {
1281 Map map = new Map(); 1608 Map map = new Map();
1282 map["param0"] = param0; 1609 map["param0"] = param0;
1283 return map; 1610 return map;
1284 } 1611 }
1285 } 1612 }
1286 1613
1614 mojom_types.MojomStruct _validationTestInterfacesConformanceTestInterfaceMethod1 Params() {
1615 return new mojom_types.MojomStruct()
1616 ..declData = (new mojom_types.DeclarationData()
1617 ..shortName = 'ConformanceTestInterfaceMethod1Params'
1618 ..fullIdentifier = 'mojo.test.ConformanceTestInterface_Method1_Params')
1619 ..fields = <mojom_types.StructField>[
1620 new mojom_types.StructField()
1621 ..declData = (new mojom_types.DeclarationData()
1622 ..shortName = 'Param0')
1623 ..type = (new mojom_types.Type()
1624 ..typeReference = (new mojom_types.TypeReference()
1625 ..identifier = 'validation_test_interfaces_StructA__'
1626 ..typeKey = 'validation_test_interfaces_StructA__'
1627 )),];
1628 }
1629
1287 1630
1288 class _ConformanceTestInterfaceMethod2Params extends bindings.Struct { 1631 class _ConformanceTestInterfaceMethod2Params extends bindings.Struct {
1289 static const List<bindings.StructDataHeader> kVersions = const [ 1632 static const List<bindings.StructDataHeader> kVersions = const [
1290 const bindings.StructDataHeader(24, 0) 1633 const bindings.StructDataHeader(24, 0)
1291 ]; 1634 ];
1292 StructB param0 = null; 1635 StructB param0 = null;
1293 StructA param1 = null; 1636 StructA param1 = null;
1294 1637
1295 _ConformanceTestInterfaceMethod2Params() : super(kVersions.last.size); 1638 _ConformanceTestInterfaceMethod2Params() : super(kVersions.last.size);
1296 1639
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
1355 } 1698 }
1356 1699
1357 Map toJson() { 1700 Map toJson() {
1358 Map map = new Map(); 1701 Map map = new Map();
1359 map["param0"] = param0; 1702 map["param0"] = param0;
1360 map["param1"] = param1; 1703 map["param1"] = param1;
1361 return map; 1704 return map;
1362 } 1705 }
1363 } 1706 }
1364 1707
1708 mojom_types.MojomStruct _validationTestInterfacesConformanceTestInterfaceMethod2 Params() {
1709 return new mojom_types.MojomStruct()
1710 ..declData = (new mojom_types.DeclarationData()
1711 ..shortName = 'ConformanceTestInterfaceMethod2Params'
1712 ..fullIdentifier = 'mojo.test.ConformanceTestInterface_Method2_Params')
1713 ..fields = <mojom_types.StructField>[
1714 new mojom_types.StructField()
1715 ..declData = (new mojom_types.DeclarationData()
1716 ..shortName = 'Param0')
1717 ..type = (new mojom_types.Type()
1718 ..typeReference = (new mojom_types.TypeReference()
1719 ..identifier = 'validation_test_interfaces_StructB__'
1720 ..typeKey = 'validation_test_interfaces_StructB__'
1721 )),
1722 new mojom_types.StructField()
1723 ..declData = (new mojom_types.DeclarationData()
1724 ..shortName = 'Param1')
1725 ..type = (new mojom_types.Type()
1726 ..typeReference = (new mojom_types.TypeReference()
1727 ..identifier = 'validation_test_interfaces_StructA__'
1728 ..typeKey = 'validation_test_interfaces_StructA__'
1729 )),];
1730 }
1731
1365 1732
1366 class _ConformanceTestInterfaceMethod3Params extends bindings.Struct { 1733 class _ConformanceTestInterfaceMethod3Params extends bindings.Struct {
1367 static const List<bindings.StructDataHeader> kVersions = const [ 1734 static const List<bindings.StructDataHeader> kVersions = const [
1368 const bindings.StructDataHeader(16, 0) 1735 const bindings.StructDataHeader(16, 0)
1369 ]; 1736 ];
1370 List<bool> param0 = null; 1737 List<bool> param0 = null;
1371 1738
1372 _ConformanceTestInterfaceMethod3Params() : super(kVersions.last.size); 1739 _ConformanceTestInterfaceMethod3Params() : super(kVersions.last.size);
1373 1740
1374 static _ConformanceTestInterfaceMethod3Params deserialize(bindings.Message mes sage) { 1741 static _ConformanceTestInterfaceMethod3Params deserialize(bindings.Message mes sage) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1422 "param0: $param0" ")"; 1789 "param0: $param0" ")";
1423 } 1790 }
1424 1791
1425 Map toJson() { 1792 Map toJson() {
1426 Map map = new Map(); 1793 Map map = new Map();
1427 map["param0"] = param0; 1794 map["param0"] = param0;
1428 return map; 1795 return map;
1429 } 1796 }
1430 } 1797 }
1431 1798
1799 mojom_types.MojomStruct _validationTestInterfacesConformanceTestInterfaceMethod3 Params() {
1800 return new mojom_types.MojomStruct()
1801 ..declData = (new mojom_types.DeclarationData()
1802 ..shortName = 'ConformanceTestInterfaceMethod3Params'
1803 ..fullIdentifier = 'mojo.test.ConformanceTestInterface_Method3_Params')
1804 ..fields = <mojom_types.StructField>[
1805 new mojom_types.StructField()
1806 ..declData = (new mojom_types.DeclarationData()
1807 ..shortName = 'Param0')
1808 ..type = (new mojom_types.Type()
1809 ..arrayType = (new mojom_types.ArrayType()
1810 ..elementType = (new mojom_types.Type()
1811 ..simpleType = mojom_types.SimpleType.bool))),];
1812 }
1813
1432 1814
1433 class _ConformanceTestInterfaceMethod4Params extends bindings.Struct { 1815 class _ConformanceTestInterfaceMethod4Params extends bindings.Struct {
1434 static const List<bindings.StructDataHeader> kVersions = const [ 1816 static const List<bindings.StructDataHeader> kVersions = const [
1435 const bindings.StructDataHeader(24, 0) 1817 const bindings.StructDataHeader(24, 0)
1436 ]; 1818 ];
1437 StructC param0 = null; 1819 StructC param0 = null;
1438 List<int> param1 = null; 1820 List<int> param1 = null;
1439 1821
1440 _ConformanceTestInterfaceMethod4Params() : super(kVersions.last.size); 1822 _ConformanceTestInterfaceMethod4Params() : super(kVersions.last.size);
1441 1823
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
1499 } 1881 }
1500 1882
1501 Map toJson() { 1883 Map toJson() {
1502 Map map = new Map(); 1884 Map map = new Map();
1503 map["param0"] = param0; 1885 map["param0"] = param0;
1504 map["param1"] = param1; 1886 map["param1"] = param1;
1505 return map; 1887 return map;
1506 } 1888 }
1507 } 1889 }
1508 1890
1891 mojom_types.MojomStruct _validationTestInterfacesConformanceTestInterfaceMethod4 Params() {
1892 return new mojom_types.MojomStruct()
1893 ..declData = (new mojom_types.DeclarationData()
1894 ..shortName = 'ConformanceTestInterfaceMethod4Params'
1895 ..fullIdentifier = 'mojo.test.ConformanceTestInterface_Method4_Params')
1896 ..fields = <mojom_types.StructField>[
1897 new mojom_types.StructField()
1898 ..declData = (new mojom_types.DeclarationData()
1899 ..shortName = 'Param0')
1900 ..type = (new mojom_types.Type()
1901 ..typeReference = (new mojom_types.TypeReference()
1902 ..identifier = 'validation_test_interfaces_StructC__'
1903 ..typeKey = 'validation_test_interfaces_StructC__'
1904 )),
1905 new mojom_types.StructField()
1906 ..declData = (new mojom_types.DeclarationData()
1907 ..shortName = 'Param1')
1908 ..type = (new mojom_types.Type()
1909 ..arrayType = (new mojom_types.ArrayType()
1910 ..elementType = (new mojom_types.Type()
1911 ..simpleType = mojom_types.SimpleType.uint8))),];
1912 }
1913
1509 1914
1510 class _ConformanceTestInterfaceMethod5Params extends bindings.Struct { 1915 class _ConformanceTestInterfaceMethod5Params extends bindings.Struct {
1511 static const List<bindings.StructDataHeader> kVersions = const [ 1916 static const List<bindings.StructDataHeader> kVersions = const [
1512 const bindings.StructDataHeader(24, 0) 1917 const bindings.StructDataHeader(24, 0)
1513 ]; 1918 ];
1514 StructE param0 = null; 1919 StructE param0 = null;
1515 core.MojoDataPipeProducer param1 = null; 1920 core.MojoDataPipeProducer param1 = null;
1516 1921
1517 _ConformanceTestInterfaceMethod5Params() : super(kVersions.last.size); 1922 _ConformanceTestInterfaceMethod5Params() : super(kVersions.last.size);
1518 1923
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
1574 "param0: $param0" ", " 1979 "param0: $param0" ", "
1575 "param1: $param1" ")"; 1980 "param1: $param1" ")";
1576 } 1981 }
1577 1982
1578 Map toJson() { 1983 Map toJson() {
1579 throw new bindings.MojoCodecError( 1984 throw new bindings.MojoCodecError(
1580 'Object containing handles cannot be encoded to JSON.'); 1985 'Object containing handles cannot be encoded to JSON.');
1581 } 1986 }
1582 } 1987 }
1583 1988
1989 mojom_types.MojomStruct _validationTestInterfacesConformanceTestInterfaceMethod5 Params() {
1990 return new mojom_types.MojomStruct()
1991 ..declData = (new mojom_types.DeclarationData()
1992 ..shortName = 'ConformanceTestInterfaceMethod5Params'
1993 ..fullIdentifier = 'mojo.test.ConformanceTestInterface_Method5_Params')
1994 ..fields = <mojom_types.StructField>[
1995 new mojom_types.StructField()
1996 ..declData = (new mojom_types.DeclarationData()
1997 ..shortName = 'Param0')
1998 ..type = (new mojom_types.Type()
1999 ..typeReference = (new mojom_types.TypeReference()
2000 ..identifier = 'validation_test_interfaces_StructE__'
2001 ..typeKey = 'validation_test_interfaces_StructE__'
2002 )),
2003 new mojom_types.StructField()
2004 ..declData = (new mojom_types.DeclarationData()
2005 ..shortName = 'Param1')
2006 ..type = (new mojom_types.Type()
2007 ..handleType = (new mojom_types.HandleType()
2008 ..kind = mojom_types.HandleTypeKind.dataPipeProducer)),];
2009 }
2010
1584 2011
1585 class _ConformanceTestInterfaceMethod6Params extends bindings.Struct { 2012 class _ConformanceTestInterfaceMethod6Params extends bindings.Struct {
1586 static const List<bindings.StructDataHeader> kVersions = const [ 2013 static const List<bindings.StructDataHeader> kVersions = const [
1587 const bindings.StructDataHeader(16, 0) 2014 const bindings.StructDataHeader(16, 0)
1588 ]; 2015 ];
1589 List<List<int>> param0 = null; 2016 List<List<int>> param0 = null;
1590 2017
1591 _ConformanceTestInterfaceMethod6Params() : super(kVersions.last.size); 2018 _ConformanceTestInterfaceMethod6Params() : super(kVersions.last.size);
1592 2019
1593 static _ConformanceTestInterfaceMethod6Params deserialize(bindings.Message mes sage) { 2020 static _ConformanceTestInterfaceMethod6Params deserialize(bindings.Message mes sage) {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
1657 "param0: $param0" ")"; 2084 "param0: $param0" ")";
1658 } 2085 }
1659 2086
1660 Map toJson() { 2087 Map toJson() {
1661 Map map = new Map(); 2088 Map map = new Map();
1662 map["param0"] = param0; 2089 map["param0"] = param0;
1663 return map; 2090 return map;
1664 } 2091 }
1665 } 2092 }
1666 2093
2094 mojom_types.MojomStruct _validationTestInterfacesConformanceTestInterfaceMethod6 Params() {
2095 return new mojom_types.MojomStruct()
2096 ..declData = (new mojom_types.DeclarationData()
2097 ..shortName = 'ConformanceTestInterfaceMethod6Params'
2098 ..fullIdentifier = 'mojo.test.ConformanceTestInterface_Method6_Params')
2099 ..fields = <mojom_types.StructField>[
2100 new mojom_types.StructField()
2101 ..declData = (new mojom_types.DeclarationData()
2102 ..shortName = 'Param0')
2103 ..type = (new mojom_types.Type()
2104 ..arrayType = (new mojom_types.ArrayType()
2105 ..elementType = (new mojom_types.Type()
2106 ..arrayType = (new mojom_types.ArrayType()
2107 ..elementType = (new mojom_types.Type()
2108 ..simpleType = mojom_types.SimpleType.uint8))))),] ;
2109 }
2110
1667 2111
1668 class _ConformanceTestInterfaceMethod7Params extends bindings.Struct { 2112 class _ConformanceTestInterfaceMethod7Params extends bindings.Struct {
1669 static const List<bindings.StructDataHeader> kVersions = const [ 2113 static const List<bindings.StructDataHeader> kVersions = const [
1670 const bindings.StructDataHeader(24, 0) 2114 const bindings.StructDataHeader(24, 0)
1671 ]; 2115 ];
1672 StructF param0 = null; 2116 StructF param0 = null;
1673 List<List<int>> param1 = null; 2117 List<List<int>> param1 = null;
1674 2118
1675 _ConformanceTestInterfaceMethod7Params() : super(kVersions.last.size); 2119 _ConformanceTestInterfaceMethod7Params() : super(kVersions.last.size);
1676 2120
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
1750 } 2194 }
1751 2195
1752 Map toJson() { 2196 Map toJson() {
1753 Map map = new Map(); 2197 Map map = new Map();
1754 map["param0"] = param0; 2198 map["param0"] = param0;
1755 map["param1"] = param1; 2199 map["param1"] = param1;
1756 return map; 2200 return map;
1757 } 2201 }
1758 } 2202 }
1759 2203
2204 mojom_types.MojomStruct _validationTestInterfacesConformanceTestInterfaceMethod7 Params() {
2205 return new mojom_types.MojomStruct()
2206 ..declData = (new mojom_types.DeclarationData()
2207 ..shortName = 'ConformanceTestInterfaceMethod7Params'
2208 ..fullIdentifier = 'mojo.test.ConformanceTestInterface_Method7_Params')
2209 ..fields = <mojom_types.StructField>[
2210 new mojom_types.StructField()
2211 ..declData = (new mojom_types.DeclarationData()
2212 ..shortName = 'Param0')
2213 ..type = (new mojom_types.Type()
2214 ..typeReference = (new mojom_types.TypeReference()
2215 ..identifier = 'validation_test_interfaces_StructF__'
2216 ..typeKey = 'validation_test_interfaces_StructF__'
2217 )),
2218 new mojom_types.StructField()
2219 ..declData = (new mojom_types.DeclarationData()
2220 ..shortName = 'Param1')
2221 ..type = (new mojom_types.Type()
2222 ..arrayType = (new mojom_types.ArrayType()
2223 ..fixedLength = 2
2224 ..elementType = (new mojom_types.Type()
2225 ..arrayType = (new mojom_types.ArrayType()
2226 ..nullable = true
2227 ..fixedLength = 3
2228 ..elementType = (new mojom_types.Type()
2229 ..simpleType = mojom_types.SimpleType.uint8))))),] ;
2230 }
2231
1760 2232
1761 class _ConformanceTestInterfaceMethod8Params extends bindings.Struct { 2233 class _ConformanceTestInterfaceMethod8Params extends bindings.Struct {
1762 static const List<bindings.StructDataHeader> kVersions = const [ 2234 static const List<bindings.StructDataHeader> kVersions = const [
1763 const bindings.StructDataHeader(16, 0) 2235 const bindings.StructDataHeader(16, 0)
1764 ]; 2236 ];
1765 List<List<String>> param0 = null; 2237 List<List<String>> param0 = null;
1766 2238
1767 _ConformanceTestInterfaceMethod8Params() : super(kVersions.last.size); 2239 _ConformanceTestInterfaceMethod8Params() : super(kVersions.last.size);
1768 2240
1769 static _ConformanceTestInterfaceMethod8Params deserialize(bindings.Message mes sage) { 2241 static _ConformanceTestInterfaceMethod8Params deserialize(bindings.Message mes sage) {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
1851 "param0: $param0" ")"; 2323 "param0: $param0" ")";
1852 } 2324 }
1853 2325
1854 Map toJson() { 2326 Map toJson() {
1855 Map map = new Map(); 2327 Map map = new Map();
1856 map["param0"] = param0; 2328 map["param0"] = param0;
1857 return map; 2329 return map;
1858 } 2330 }
1859 } 2331 }
1860 2332
2333 mojom_types.MojomStruct _validationTestInterfacesConformanceTestInterfaceMethod8 Params() {
2334 return new mojom_types.MojomStruct()
2335 ..declData = (new mojom_types.DeclarationData()
2336 ..shortName = 'ConformanceTestInterfaceMethod8Params'
2337 ..fullIdentifier = 'mojo.test.ConformanceTestInterface_Method8_Params')
2338 ..fields = <mojom_types.StructField>[
2339 new mojom_types.StructField()
2340 ..declData = (new mojom_types.DeclarationData()
2341 ..shortName = 'Param0')
2342 ..type = (new mojom_types.Type()
2343 ..arrayType = (new mojom_types.ArrayType()
2344 ..elementType = (new mojom_types.Type()
2345 ..arrayType = (new mojom_types.ArrayType()
2346 ..nullable = true
2347 ..elementType = (new mojom_types.Type()
2348 ..stringType = (new mojom_types.StringType())))))) ,];
2349 }
2350
1861 2351
1862 class _ConformanceTestInterfaceMethod9Params extends bindings.Struct { 2352 class _ConformanceTestInterfaceMethod9Params extends bindings.Struct {
1863 static const List<bindings.StructDataHeader> kVersions = const [ 2353 static const List<bindings.StructDataHeader> kVersions = const [
1864 const bindings.StructDataHeader(16, 0) 2354 const bindings.StructDataHeader(16, 0)
1865 ]; 2355 ];
1866 List<List<core.MojoHandle>> param0 = null; 2356 List<List<core.MojoHandle>> param0 = null;
1867 2357
1868 _ConformanceTestInterfaceMethod9Params() : super(kVersions.last.size); 2358 _ConformanceTestInterfaceMethod9Params() : super(kVersions.last.size);
1869 2359
1870 static _ConformanceTestInterfaceMethod9Params deserialize(bindings.Message mes sage) { 2360 static _ConformanceTestInterfaceMethod9Params deserialize(bindings.Message mes sage) {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
1935 return "_ConformanceTestInterfaceMethod9Params(" 2425 return "_ConformanceTestInterfaceMethod9Params("
1936 "param0: $param0" ")"; 2426 "param0: $param0" ")";
1937 } 2427 }
1938 2428
1939 Map toJson() { 2429 Map toJson() {
1940 throw new bindings.MojoCodecError( 2430 throw new bindings.MojoCodecError(
1941 'Object containing handles cannot be encoded to JSON.'); 2431 'Object containing handles cannot be encoded to JSON.');
1942 } 2432 }
1943 } 2433 }
1944 2434
2435 mojom_types.MojomStruct _validationTestInterfacesConformanceTestInterfaceMethod9 Params() {
2436 return new mojom_types.MojomStruct()
2437 ..declData = (new mojom_types.DeclarationData()
2438 ..shortName = 'ConformanceTestInterfaceMethod9Params'
2439 ..fullIdentifier = 'mojo.test.ConformanceTestInterface_Method9_Params')
2440 ..fields = <mojom_types.StructField>[
2441 new mojom_types.StructField()
2442 ..declData = (new mojom_types.DeclarationData()
2443 ..shortName = 'Param0')
2444 ..type = (new mojom_types.Type()
2445 ..arrayType = (new mojom_types.ArrayType()
2446 ..nullable = true
2447 ..elementType = (new mojom_types.Type()
2448 ..arrayType = (new mojom_types.ArrayType()
2449 ..elementType = (new mojom_types.Type()
2450 ..handleType = (new mojom_types.HandleType()
2451 ..kind = mojom_types.HandleTypeKind.unspecified
2452 ..nullable = true
2453 )))))),];
2454 }
2455
1945 2456
1946 class _ConformanceTestInterfaceMethod10Params extends bindings.Struct { 2457 class _ConformanceTestInterfaceMethod10Params extends bindings.Struct {
1947 static const List<bindings.StructDataHeader> kVersions = const [ 2458 static const List<bindings.StructDataHeader> kVersions = const [
1948 const bindings.StructDataHeader(16, 0) 2459 const bindings.StructDataHeader(16, 0)
1949 ]; 2460 ];
1950 Map<String, int> param0 = null; 2461 Map<String, int> param0 = null;
1951 2462
1952 _ConformanceTestInterfaceMethod10Params() : super(kVersions.last.size); 2463 _ConformanceTestInterfaceMethod10Params() : super(kVersions.last.size);
1953 2464
1954 static _ConformanceTestInterfaceMethod10Params deserialize(bindings.Message me ssage) { 2465 static _ConformanceTestInterfaceMethod10Params deserialize(bindings.Message me ssage) {
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
2042 "param0: $param0" ")"; 2553 "param0: $param0" ")";
2043 } 2554 }
2044 2555
2045 Map toJson() { 2556 Map toJson() {
2046 Map map = new Map(); 2557 Map map = new Map();
2047 map["param0"] = param0; 2558 map["param0"] = param0;
2048 return map; 2559 return map;
2049 } 2560 }
2050 } 2561 }
2051 2562
2563 mojom_types.MojomStruct _validationTestInterfacesConformanceTestInterfaceMethod1 0Params() {
2564 return new mojom_types.MojomStruct()
2565 ..declData = (new mojom_types.DeclarationData()
2566 ..shortName = 'ConformanceTestInterfaceMethod10Params'
2567 ..fullIdentifier = 'mojo.test.ConformanceTestInterface_Method10_Params')
2568 ..fields = <mojom_types.StructField>[
2569 new mojom_types.StructField()
2570 ..declData = (new mojom_types.DeclarationData()
2571 ..shortName = 'Param0')
2572 ..type = (new mojom_types.Type()
2573 ..mapType = (new mojom_types.MapType()
2574 ..keyType = (new mojom_types.Type()
2575 ..stringType = (new mojom_types.StringType()))
2576 ..valueType = (new mojom_types.Type()
2577 ..simpleType = mojom_types.SimpleType.uint8))),];
2578 }
2579
2052 2580
2053 class _ConformanceTestInterfaceMethod11Params extends bindings.Struct { 2581 class _ConformanceTestInterfaceMethod11Params extends bindings.Struct {
2054 static const List<bindings.StructDataHeader> kVersions = const [ 2582 static const List<bindings.StructDataHeader> kVersions = const [
2055 const bindings.StructDataHeader(16, 0) 2583 const bindings.StructDataHeader(16, 0)
2056 ]; 2584 ];
2057 StructG param0 = null; 2585 StructG param0 = null;
2058 2586
2059 _ConformanceTestInterfaceMethod11Params() : super(kVersions.last.size); 2587 _ConformanceTestInterfaceMethod11Params() : super(kVersions.last.size);
2060 2588
2061 static _ConformanceTestInterfaceMethod11Params deserialize(bindings.Message me ssage) { 2589 static _ConformanceTestInterfaceMethod11Params deserialize(bindings.Message me ssage) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
2110 "param0: $param0" ")"; 2638 "param0: $param0" ")";
2111 } 2639 }
2112 2640
2113 Map toJson() { 2641 Map toJson() {
2114 Map map = new Map(); 2642 Map map = new Map();
2115 map["param0"] = param0; 2643 map["param0"] = param0;
2116 return map; 2644 return map;
2117 } 2645 }
2118 } 2646 }
2119 2647
2648 mojom_types.MojomStruct _validationTestInterfacesConformanceTestInterfaceMethod1 1Params() {
2649 return new mojom_types.MojomStruct()
2650 ..declData = (new mojom_types.DeclarationData()
2651 ..shortName = 'ConformanceTestInterfaceMethod11Params'
2652 ..fullIdentifier = 'mojo.test.ConformanceTestInterface_Method11_Params')
2653 ..fields = <mojom_types.StructField>[
2654 new mojom_types.StructField()
2655 ..declData = (new mojom_types.DeclarationData()
2656 ..shortName = 'Param0')
2657 ..type = (new mojom_types.Type()
2658 ..typeReference = (new mojom_types.TypeReference()
2659 ..identifier = 'validation_test_interfaces_StructG__'
2660 ..typeKey = 'validation_test_interfaces_StructG__'
2661 )),];
2662 }
2663
2120 2664
2121 class _ConformanceTestInterfaceMethod12Params extends bindings.Struct { 2665 class _ConformanceTestInterfaceMethod12Params extends bindings.Struct {
2122 static const List<bindings.StructDataHeader> kVersions = const [ 2666 static const List<bindings.StructDataHeader> kVersions = const [
2123 const bindings.StructDataHeader(16, 0) 2667 const bindings.StructDataHeader(16, 0)
2124 ]; 2668 ];
2125 double param0 = 0.0; 2669 double param0 = 0.0;
2126 2670
2127 _ConformanceTestInterfaceMethod12Params() : super(kVersions.last.size); 2671 _ConformanceTestInterfaceMethod12Params() : super(kVersions.last.size);
2128 2672
2129 static _ConformanceTestInterfaceMethod12Params deserialize(bindings.Message me ssage) { 2673 static _ConformanceTestInterfaceMethod12Params deserialize(bindings.Message me ssage) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
2177 "param0: $param0" ")"; 2721 "param0: $param0" ")";
2178 } 2722 }
2179 2723
2180 Map toJson() { 2724 Map toJson() {
2181 Map map = new Map(); 2725 Map map = new Map();
2182 map["param0"] = param0; 2726 map["param0"] = param0;
2183 return map; 2727 return map;
2184 } 2728 }
2185 } 2729 }
2186 2730
2731 mojom_types.MojomStruct _validationTestInterfacesConformanceTestInterfaceMethod1 2Params() {
2732 return new mojom_types.MojomStruct()
2733 ..declData = (new mojom_types.DeclarationData()
2734 ..shortName = 'ConformanceTestInterfaceMethod12Params'
2735 ..fullIdentifier = 'mojo.test.ConformanceTestInterface_Method12_Params')
2736 ..fields = <mojom_types.StructField>[
2737 new mojom_types.StructField()
2738 ..declData = (new mojom_types.DeclarationData()
2739 ..shortName = 'Param0')
2740 ..type = (new mojom_types.Type()
2741 ..simpleType = mojom_types.SimpleType.float),];
2742 }
2743
2187 2744
2188 class ConformanceTestInterfaceMethod12ResponseParams extends bindings.Struct { 2745 class ConformanceTestInterfaceMethod12ResponseParams extends bindings.Struct {
2189 static const List<bindings.StructDataHeader> kVersions = const [ 2746 static const List<bindings.StructDataHeader> kVersions = const [
2190 const bindings.StructDataHeader(16, 0) 2747 const bindings.StructDataHeader(16, 0)
2191 ]; 2748 ];
2192 double param0 = 0.0; 2749 double param0 = 0.0;
2193 2750
2194 ConformanceTestInterfaceMethod12ResponseParams() : super(kVersions.last.size); 2751 ConformanceTestInterfaceMethod12ResponseParams() : super(kVersions.last.size);
2195 2752
2196 static ConformanceTestInterfaceMethod12ResponseParams deserialize(bindings.Mes sage message) { 2753 static ConformanceTestInterfaceMethod12ResponseParams deserialize(bindings.Mes sage message) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
2244 "param0: $param0" ")"; 2801 "param0: $param0" ")";
2245 } 2802 }
2246 2803
2247 Map toJson() { 2804 Map toJson() {
2248 Map map = new Map(); 2805 Map map = new Map();
2249 map["param0"] = param0; 2806 map["param0"] = param0;
2250 return map; 2807 return map;
2251 } 2808 }
2252 } 2809 }
2253 2810
2811 mojom_types.MojomStruct _validationTestInterfacesConformanceTestInterfaceMethod1 2ResponseParams() {
2812 return new mojom_types.MojomStruct()
2813 ..declData = (new mojom_types.DeclarationData()
2814 ..shortName = 'ConformanceTestInterfaceMethod12ResponseParams'
2815 ..fullIdentifier = 'mojo.test.ConformanceTestInterface_Method12_ResponsePa rams')
2816 ..fields = <mojom_types.StructField>[
2817 new mojom_types.StructField()
2818 ..declData = (new mojom_types.DeclarationData()
2819 ..shortName = 'Param0')
2820 ..type = (new mojom_types.Type()
2821 ..simpleType = mojom_types.SimpleType.float),];
2822 }
2823
2254 2824
2255 class _ConformanceTestInterfaceMethod13Params extends bindings.Struct { 2825 class _ConformanceTestInterfaceMethod13Params extends bindings.Struct {
2256 static const List<bindings.StructDataHeader> kVersions = const [ 2826 static const List<bindings.StructDataHeader> kVersions = const [
2257 const bindings.StructDataHeader(32, 0) 2827 const bindings.StructDataHeader(32, 0)
2258 ]; 2828 ];
2259 Object param0 = null; 2829 Object param0 = null;
2260 int param1 = 0; 2830 int param1 = 0;
2261 Object param2 = null; 2831 Object param2 = null;
2262 2832
2263 _ConformanceTestInterfaceMethod13Params() : super(kVersions.last.size); 2833 _ConformanceTestInterfaceMethod13Params() : super(kVersions.last.size);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
2326 "param1: $param1" ", " 2896 "param1: $param1" ", "
2327 "param2: $param2" ")"; 2897 "param2: $param2" ")";
2328 } 2898 }
2329 2899
2330 Map toJson() { 2900 Map toJson() {
2331 throw new bindings.MojoCodecError( 2901 throw new bindings.MojoCodecError(
2332 'Object containing handles cannot be encoded to JSON.'); 2902 'Object containing handles cannot be encoded to JSON.');
2333 } 2903 }
2334 } 2904 }
2335 2905
2906 mojom_types.MojomStruct _validationTestInterfacesConformanceTestInterfaceMethod1 3Params() {
2907 return new mojom_types.MojomStruct()
2908 ..declData = (new mojom_types.DeclarationData()
2909 ..shortName = 'ConformanceTestInterfaceMethod13Params'
2910 ..fullIdentifier = 'mojo.test.ConformanceTestInterface_Method13_Params')
2911 ..fields = <mojom_types.StructField>[
2912 new mojom_types.StructField()
2913 ..declData = (new mojom_types.DeclarationData()
2914 ..shortName = 'Param0')
2915 ..type = (new mojom_types.Type()
2916 ..typeReference = (new mojom_types.TypeReference()
2917 ..nullable = true
2918
2919 ..identifier = 'validation_test_interfaces_InterfaceA__'
2920 ..typeKey = 'validation_test_interfaces_InterfaceA__'
2921 )),
2922 new mojom_types.StructField()
2923 ..declData = (new mojom_types.DeclarationData()
2924 ..shortName = 'Param1')
2925 ..type = (new mojom_types.Type()
2926 ..simpleType = mojom_types.SimpleType.uint32),
2927 new mojom_types.StructField()
2928 ..declData = (new mojom_types.DeclarationData()
2929 ..shortName = 'Param2')
2930 ..type = (new mojom_types.Type()
2931 ..typeReference = (new mojom_types.TypeReference()
2932 ..nullable = true
2933
2934 ..identifier = 'validation_test_interfaces_InterfaceA__'
2935 ..typeKey = 'validation_test_interfaces_InterfaceA__'
2936 )),];
2937 }
2938
2336 2939
2337 class _ConformanceTestInterfaceMethod14Params extends bindings.Struct { 2940 class _ConformanceTestInterfaceMethod14Params extends bindings.Struct {
2338 static const List<bindings.StructDataHeader> kVersions = const [ 2941 static const List<bindings.StructDataHeader> kVersions = const [
2339 const bindings.StructDataHeader(24, 0) 2942 const bindings.StructDataHeader(24, 0)
2340 ]; 2943 ];
2341 UnionA param0 = null; 2944 UnionA param0 = null;
2342 2945
2343 _ConformanceTestInterfaceMethod14Params() : super(kVersions.last.size); 2946 _ConformanceTestInterfaceMethod14Params() : super(kVersions.last.size);
2344 2947
2345 static _ConformanceTestInterfaceMethod14Params deserialize(bindings.Message me ssage) { 2948 static _ConformanceTestInterfaceMethod14Params deserialize(bindings.Message me ssage) {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
2397 "param0: $param0" ")"; 3000 "param0: $param0" ")";
2398 } 3001 }
2399 3002
2400 Map toJson() { 3003 Map toJson() {
2401 Map map = new Map(); 3004 Map map = new Map();
2402 map["param0"] = param0; 3005 map["param0"] = param0;
2403 return map; 3006 return map;
2404 } 3007 }
2405 } 3008 }
2406 3009
3010 mojom_types.MojomStruct _validationTestInterfacesConformanceTestInterfaceMethod1 4Params() {
3011 return new mojom_types.MojomStruct()
3012 ..declData = (new mojom_types.DeclarationData()
3013 ..shortName = 'ConformanceTestInterfaceMethod14Params'
3014 ..fullIdentifier = 'mojo.test.ConformanceTestInterface_Method14_Params')
3015 ..fields = <mojom_types.StructField>[
3016 new mojom_types.StructField()
3017 ..declData = (new mojom_types.DeclarationData()
3018 ..shortName = 'Param0')
3019 ..type = (new mojom_types.Type()
3020 ..typeReference = (new mojom_types.TypeReference()
3021 ..identifier = 'validation_test_interfaces_UnionA__'
3022 ..typeKey = 'validation_test_interfaces_UnionA__'
3023 )),];
3024 }
3025
2407 3026
2408 class _ConformanceTestInterfaceMethod15Params extends bindings.Struct { 3027 class _ConformanceTestInterfaceMethod15Params extends bindings.Struct {
2409 static const List<bindings.StructDataHeader> kVersions = const [ 3028 static const List<bindings.StructDataHeader> kVersions = const [
2410 const bindings.StructDataHeader(16, 0) 3029 const bindings.StructDataHeader(16, 0)
2411 ]; 3030 ];
2412 StructH param0 = null; 3031 StructH param0 = null;
2413 3032
2414 _ConformanceTestInterfaceMethod15Params() : super(kVersions.last.size); 3033 _ConformanceTestInterfaceMethod15Params() : super(kVersions.last.size);
2415 3034
2416 static _ConformanceTestInterfaceMethod15Params deserialize(bindings.Message me ssage) { 3035 static _ConformanceTestInterfaceMethod15Params deserialize(bindings.Message me ssage) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
2465 "param0: $param0" ")"; 3084 "param0: $param0" ")";
2466 } 3085 }
2467 3086
2468 Map toJson() { 3087 Map toJson() {
2469 Map map = new Map(); 3088 Map map = new Map();
2470 map["param0"] = param0; 3089 map["param0"] = param0;
2471 return map; 3090 return map;
2472 } 3091 }
2473 } 3092 }
2474 3093
3094 mojom_types.MojomStruct _validationTestInterfacesConformanceTestInterfaceMethod1 5Params() {
3095 return new mojom_types.MojomStruct()
3096 ..declData = (new mojom_types.DeclarationData()
3097 ..shortName = 'ConformanceTestInterfaceMethod15Params'
3098 ..fullIdentifier = 'mojo.test.ConformanceTestInterface_Method15_Params')
3099 ..fields = <mojom_types.StructField>[
3100 new mojom_types.StructField()
3101 ..declData = (new mojom_types.DeclarationData()
3102 ..shortName = 'Param0')
3103 ..type = (new mojom_types.Type()
3104 ..typeReference = (new mojom_types.TypeReference()
3105 ..identifier = 'validation_test_interfaces_StructH__'
3106 ..typeKey = 'validation_test_interfaces_StructH__'
3107 )),];
3108 }
3109
2475 3110
2476 class _IntegrationTestInterfaceMethod0Params extends bindings.Struct { 3111 class _IntegrationTestInterfaceMethod0Params extends bindings.Struct {
2477 static const List<bindings.StructDataHeader> kVersions = const [ 3112 static const List<bindings.StructDataHeader> kVersions = const [
2478 const bindings.StructDataHeader(16, 0) 3113 const bindings.StructDataHeader(16, 0)
2479 ]; 3114 ];
2480 BasicStruct param0 = null; 3115 BasicStruct param0 = null;
2481 3116
2482 _IntegrationTestInterfaceMethod0Params() : super(kVersions.last.size); 3117 _IntegrationTestInterfaceMethod0Params() : super(kVersions.last.size);
2483 3118
2484 static _IntegrationTestInterfaceMethod0Params deserialize(bindings.Message mes sage) { 3119 static _IntegrationTestInterfaceMethod0Params deserialize(bindings.Message mes sage) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
2533 "param0: $param0" ")"; 3168 "param0: $param0" ")";
2534 } 3169 }
2535 3170
2536 Map toJson() { 3171 Map toJson() {
2537 Map map = new Map(); 3172 Map map = new Map();
2538 map["param0"] = param0; 3173 map["param0"] = param0;
2539 return map; 3174 return map;
2540 } 3175 }
2541 } 3176 }
2542 3177
3178 mojom_types.MojomStruct _validationTestInterfacesIntegrationTestInterfaceMethod0 Params() {
3179 return new mojom_types.MojomStruct()
3180 ..declData = (new mojom_types.DeclarationData()
3181 ..shortName = 'IntegrationTestInterfaceMethod0Params'
3182 ..fullIdentifier = 'mojo.test.IntegrationTestInterface_Method0_Params')
3183 ..fields = <mojom_types.StructField>[
3184 new mojom_types.StructField()
3185 ..declData = (new mojom_types.DeclarationData()
3186 ..shortName = 'Param0')
3187 ..type = (new mojom_types.Type()
3188 ..typeReference = (new mojom_types.TypeReference()
3189 ..identifier = 'validation_test_interfaces_BasicStruct__'
3190 ..typeKey = 'validation_test_interfaces_BasicStruct__'
3191 )),];
3192 }
3193
2543 3194
2544 class IntegrationTestInterfaceMethod0ResponseParams extends bindings.Struct { 3195 class IntegrationTestInterfaceMethod0ResponseParams extends bindings.Struct {
2545 static const List<bindings.StructDataHeader> kVersions = const [ 3196 static const List<bindings.StructDataHeader> kVersions = const [
2546 const bindings.StructDataHeader(16, 0) 3197 const bindings.StructDataHeader(16, 0)
2547 ]; 3198 ];
2548 List<int> param0 = null; 3199 List<int> param0 = null;
2549 3200
2550 IntegrationTestInterfaceMethod0ResponseParams() : super(kVersions.last.size); 3201 IntegrationTestInterfaceMethod0ResponseParams() : super(kVersions.last.size);
2551 3202
2552 static IntegrationTestInterfaceMethod0ResponseParams deserialize(bindings.Mess age message) { 3203 static IntegrationTestInterfaceMethod0ResponseParams deserialize(bindings.Mess age message) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
2600 "param0: $param0" ")"; 3251 "param0: $param0" ")";
2601 } 3252 }
2602 3253
2603 Map toJson() { 3254 Map toJson() {
2604 Map map = new Map(); 3255 Map map = new Map();
2605 map["param0"] = param0; 3256 map["param0"] = param0;
2606 return map; 3257 return map;
2607 } 3258 }
2608 } 3259 }
2609 3260
3261 mojom_types.MojomStruct _validationTestInterfacesIntegrationTestInterfaceMethod0 ResponseParams() {
3262 return new mojom_types.MojomStruct()
3263 ..declData = (new mojom_types.DeclarationData()
3264 ..shortName = 'IntegrationTestInterfaceMethod0ResponseParams'
3265 ..fullIdentifier = 'mojo.test.IntegrationTestInterface_Method0_ResponsePar ams')
3266 ..fields = <mojom_types.StructField>[
3267 new mojom_types.StructField()
3268 ..declData = (new mojom_types.DeclarationData()
3269 ..shortName = 'Param0')
3270 ..type = (new mojom_types.Type()
3271 ..arrayType = (new mojom_types.ArrayType()
3272 ..elementType = (new mojom_types.Type()
3273 ..simpleType = mojom_types.SimpleType.uint8))),];
3274 }
3275
2610 3276
2611 3277
2612 enum UnionATag { 3278 enum UnionATag {
2613 a, 3279 a,
2614 b, 3280 b,
2615 c, 3281 c,
2616 d, 3282 d,
2617 e, 3283 e,
2618 f, 3284 f,
2619 g, 3285 g,
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
2988 result += "j"; 3654 result += "j";
2989 break; 3655 break;
2990 default: 3656 default:
2991 result += "unknown"; 3657 result += "unknown";
2992 } 3658 }
2993 result += ": $_data)"; 3659 result += ": $_data)";
2994 return result; 3660 return result;
2995 } 3661 }
2996 } 3662 }
2997 3663
3664 mojom_types.MojomUnion _validationTestInterfacesUnionA() {
3665 return new mojom_types.MojomUnion()
3666 ..declData = (new mojom_types.DeclarationData()
3667 ..shortName = 'UnionA'
3668 ..fullIdentifier = 'mojo.test.UnionA')
3669 ..fields = <mojom_types.UnionField>[
3670 new mojom_types.UnionField()
3671 ..declData = (new mojom_types.DeclarationData()
3672 ..shortName = 'A')
3673 ..type = (new mojom_types.Type()
3674 ..simpleType = mojom_types.SimpleType.uint16)
3675 ..tag = 0,
3676 new mojom_types.UnionField()
3677 ..declData = (new mojom_types.DeclarationData()
3678 ..shortName = 'B')
3679 ..type = (new mojom_types.Type()
3680 ..simpleType = mojom_types.SimpleType.uint32)
3681 ..tag = 1,
3682 new mojom_types.UnionField()
3683 ..declData = (new mojom_types.DeclarationData()
3684 ..shortName = 'C')
3685 ..type = (new mojom_types.Type()
3686 ..typeReference = (new mojom_types.TypeReference()
3687 ..nullable = true
3688
3689 ..identifier = 'validation_test_interfaces_StructA__'
3690 ..typeKey = 'validation_test_interfaces_StructA__'
3691 ))
3692 ..tag = 2,
3693 new mojom_types.UnionField()
3694 ..declData = (new mojom_types.DeclarationData()
3695 ..shortName = 'D')
3696 ..type = (new mojom_types.Type()
3697 ..arrayType = (new mojom_types.ArrayType()
3698 ..nullable = true
3699 ..elementType = (new mojom_types.Type()
3700 ..simpleType = mojom_types.SimpleType.uint8)))
3701 ..tag = 3,
3702 new mojom_types.UnionField()
3703 ..declData = (new mojom_types.DeclarationData()
3704 ..shortName = 'E')
3705 ..type = (new mojom_types.Type()
3706 ..mapType = (new mojom_types.MapType()
3707 ..nullable = true
3708
3709 ..keyType = (new mojom_types.Type()
3710 ..stringType = (new mojom_types.StringType()))
3711 ..valueType = (new mojom_types.Type()
3712 ..simpleType = mojom_types.SimpleType.uint8)))
3713 ..tag = 4,
3714 new mojom_types.UnionField()
3715 ..declData = (new mojom_types.DeclarationData()
3716 ..shortName = 'F')
3717 ..type = (new mojom_types.Type()
3718 ..typeReference = (new mojom_types.TypeReference()
3719 ..nullable = true
3720
3721 ..identifier = 'validation_test_interfaces_UnionB__'
3722 ..typeKey = 'validation_test_interfaces_UnionB__'
3723 ))
3724 ..tag = 5,
3725 new mojom_types.UnionField()
3726 ..declData = (new mojom_types.DeclarationData()
3727 ..shortName = 'G')
3728 ..type = (new mojom_types.Type()
3729 ..typeReference = (new mojom_types.TypeReference()
3730 ..identifier = 'validation_test_interfaces_StructA__'
3731 ..typeKey = 'validation_test_interfaces_StructA__'
3732 ))
3733 ..tag = 6,
3734 new mojom_types.UnionField()
3735 ..declData = (new mojom_types.DeclarationData()
3736 ..shortName = 'H')
3737 ..type = (new mojom_types.Type()
3738 ..arrayType = (new mojom_types.ArrayType()
3739 ..elementType = (new mojom_types.Type()
3740 ..simpleType = mojom_types.SimpleType.uint8)))
3741 ..tag = 7,
3742 new mojom_types.UnionField()
3743 ..declData = (new mojom_types.DeclarationData()
3744 ..shortName = 'I')
3745 ..type = (new mojom_types.Type()
3746 ..mapType = (new mojom_types.MapType()
3747 ..keyType = (new mojom_types.Type()
3748 ..stringType = (new mojom_types.StringType()))
3749 ..valueType = (new mojom_types.Type()
3750 ..simpleType = mojom_types.SimpleType.uint8)))
3751 ..tag = 8,
3752 new mojom_types.UnionField()
3753 ..declData = (new mojom_types.DeclarationData()
3754 ..shortName = 'J')
3755 ..type = (new mojom_types.Type()
3756 ..typeReference = (new mojom_types.TypeReference()
3757 ..identifier = 'validation_test_interfaces_UnionB__'
3758 ..typeKey = 'validation_test_interfaces_UnionB__'
3759 ))
3760 ..tag = 9,];
3761 }
3762
2998 3763
2999 enum UnionBTag { 3764 enum UnionBTag {
3000 a, 3765 a,
3001 b, 3766 b,
3002 c, 3767 c,
3003 d, 3768 d,
3004 unknown 3769 unknown
3005 } 3770 }
3006 3771
3007 class UnionB extends bindings.Union { 3772 class UnionB extends bindings.Union {
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
3143 result += "d"; 3908 result += "d";
3144 break; 3909 break;
3145 default: 3910 default:
3146 result += "unknown"; 3911 result += "unknown";
3147 } 3912 }
3148 result += ": $_data)"; 3913 result += ": $_data)";
3149 return result; 3914 return result;
3150 } 3915 }
3151 } 3916 }
3152 3917
3918 mojom_types.MojomUnion _validationTestInterfacesUnionB() {
3919 return new mojom_types.MojomUnion()
3920 ..declData = (new mojom_types.DeclarationData()
3921 ..shortName = 'UnionB'
3922 ..fullIdentifier = 'mojo.test.UnionB')
3923 ..fields = <mojom_types.UnionField>[
3924 new mojom_types.UnionField()
3925 ..declData = (new mojom_types.DeclarationData()
3926 ..shortName = 'A')
3927 ..type = (new mojom_types.Type()
3928 ..simpleType = mojom_types.SimpleType.uint16)
3929 ..tag = 0,
3930 new mojom_types.UnionField()
3931 ..declData = (new mojom_types.DeclarationData()
3932 ..shortName = 'B')
3933 ..type = (new mojom_types.Type()
3934 ..simpleType = mojom_types.SimpleType.uint32)
3935 ..tag = 1,
3936 new mojom_types.UnionField()
3937 ..declData = (new mojom_types.DeclarationData()
3938 ..shortName = 'C')
3939 ..type = (new mojom_types.Type()
3940 ..simpleType = mojom_types.SimpleType.uint64)
3941 ..tag = 2,
3942 new mojom_types.UnionField()
3943 ..declData = (new mojom_types.DeclarationData()
3944 ..shortName = 'D')
3945 ..type = (new mojom_types.Type()
3946 ..simpleType = mojom_types.SimpleType.uint32)
3947 ..tag = 3,];
3948 }
3949
3950
3951 mojom_types.MojomInterface _validationTestInterfacesInterfaceA() {
3952 return new mojom_types.MojomInterface()
3953 ..declData = (new mojom_types.DeclarationData()
3954 ..shortName = 'InterfaceA'
3955 ..fullIdentifier = 'mojo.test.InterfaceA')
3956 ..interfaceName = 'InterfaceA'
3957 ..methods = <int, mojom_types.MojomMethod>{
3958 };
3959 }
3960
3961 class _InterfaceAServiceDescription implements service_describer.ServiceDescript ion {
3962 dynamic getTopLevelInterface([Function responseFactory]) =>
3963 _validationTestInterfacesInterfaceA();
3964
3965 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
3966 getAllMojomTypeDefinitions()[typeKey];
3967
3968 dynamic getAllTypeDefinitions([Function responseFactory]) =>
3969 getAllMojomTypeDefinitions();
3970 }
3971
3153 abstract class InterfaceA { 3972 abstract class InterfaceA {
3154 static const String serviceName = null; 3973 static const String serviceName = null;
3155 } 3974 }
3156 3975
3157 3976
3158 class _InterfaceAProxyImpl extends bindings.Proxy { 3977 class _InterfaceAProxyImpl extends bindings.Proxy {
3159 _InterfaceAProxyImpl.fromEndpoint( 3978 _InterfaceAProxyImpl.fromEndpoint(
3160 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 3979 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
3161 3980
3162 _InterfaceAProxyImpl.fromHandle(core.MojoHandle handle) : 3981 _InterfaceAProxyImpl.fromHandle(core.MojoHandle handle) :
3163 super.fromHandle(handle); 3982 super.fromHandle(handle);
3164 3983
3165 _InterfaceAProxyImpl.unbound() : super.unbound(); 3984 _InterfaceAProxyImpl.unbound() : super.unbound();
3166 3985
3167 static _InterfaceAProxyImpl newFromEndpoint( 3986 static _InterfaceAProxyImpl newFromEndpoint(
3168 core.MojoMessagePipeEndpoint endpoint) { 3987 core.MojoMessagePipeEndpoint endpoint) {
3169 assert(endpoint.setDescription("For _InterfaceAProxyImpl")); 3988 assert(endpoint.setDescription("For _InterfaceAProxyImpl"));
3170 return new _InterfaceAProxyImpl.fromEndpoint(endpoint); 3989 return new _InterfaceAProxyImpl.fromEndpoint(endpoint);
3171 } 3990 }
3172 3991
3992 service_describer.ServiceDescription get serviceDescription =>
3993 new _InterfaceAServiceDescription();
3994
3173 void handleResponse(bindings.ServiceMessage message) { 3995 void handleResponse(bindings.ServiceMessage message) {
3174 switch (message.header.type) { 3996 switch (message.header.type) {
3175 default: 3997 default:
3176 proxyError("Unexpected message type: ${message.header.type}"); 3998 proxyError("Unexpected message type: ${message.header.type}");
3177 close(immediate: true); 3999 close(immediate: true);
3178 break; 4000 break;
3179 } 4001 }
3180 } 4002 }
3181 4003
3182 String toString() { 4004 String toString() {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
3292 assert(_impl == null); 4114 assert(_impl == null);
3293 _impl = d; 4115 _impl = d;
3294 } 4116 }
3295 4117
3296 String toString() { 4118 String toString() {
3297 var superString = super.toString(); 4119 var superString = super.toString();
3298 return "InterfaceAStub($superString)"; 4120 return "InterfaceAStub($superString)";
3299 } 4121 }
3300 4122
3301 int get version => 0; 4123 int get version => 0;
4124
4125 service_describer.ServiceDescription get serviceDescription =>
4126 new _InterfaceAServiceDescription();
3302 } 4127 }
3303 4128
3304 const int _BoundsCheckTestInterface_method0Name = 0; 4129 const int _BoundsCheckTestInterface_method0Name = 0;
3305 const int _BoundsCheckTestInterface_method1Name = 1; 4130 const int _BoundsCheckTestInterface_method1Name = 1;
3306 4131
4132 mojom_types.MojomInterface _validationTestInterfacesBoundsCheckTestInterface() {
4133 return new mojom_types.MojomInterface()
4134 ..declData = (new mojom_types.DeclarationData()
4135 ..shortName = 'BoundsCheckTestInterface'
4136 ..fullIdentifier = 'mojo.test.BoundsCheckTestInterface')
4137 ..interfaceName = 'BoundsCheckTestInterface'
4138 ..methods = <int, mojom_types.MojomMethod>{
4139 _BoundsCheckTestInterface_method0Name: new mojom_types.MojomMethod()
4140 ..declData = (new mojom_types.DeclarationData()
4141 ..shortName = 'Method0')
4142 ..ordinal = _BoundsCheckTestInterface_method0Name
4143 ..responseParams = _validationTestInterfacesBoundsCheckTestInterfaceMeth od0ResponseParams()
4144 ..parameters = _validationTestInterfacesBoundsCheckTestInterfaceMethod0P arams(),
4145 _BoundsCheckTestInterface_method1Name: new mojom_types.MojomMethod()
4146 ..declData = (new mojom_types.DeclarationData()
4147 ..shortName = 'Method1')
4148 ..ordinal = _BoundsCheckTestInterface_method1Name
4149 ..parameters = _validationTestInterfacesBoundsCheckTestInterfaceMethod1P arams(),
4150 };
4151 }
4152
4153 class _BoundsCheckTestInterfaceServiceDescription implements service_describer.S erviceDescription {
4154 dynamic getTopLevelInterface([Function responseFactory]) =>
4155 _validationTestInterfacesBoundsCheckTestInterface();
4156
4157 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
4158 getAllMojomTypeDefinitions()[typeKey];
4159
4160 dynamic getAllTypeDefinitions([Function responseFactory]) =>
4161 getAllMojomTypeDefinitions();
4162 }
4163
3307 abstract class BoundsCheckTestInterface { 4164 abstract class BoundsCheckTestInterface {
3308 static const String serviceName = null; 4165 static const String serviceName = null;
3309 dynamic method0(int param0,[Function responseFactory = null]); 4166 dynamic method0(int param0,[Function responseFactory = null]);
3310 void method1(int param0); 4167 void method1(int param0);
3311 } 4168 }
3312 4169
3313 4170
3314 class _BoundsCheckTestInterfaceProxyImpl extends bindings.Proxy { 4171 class _BoundsCheckTestInterfaceProxyImpl extends bindings.Proxy {
3315 _BoundsCheckTestInterfaceProxyImpl.fromEndpoint( 4172 _BoundsCheckTestInterfaceProxyImpl.fromEndpoint(
3316 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 4173 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
3317 4174
3318 _BoundsCheckTestInterfaceProxyImpl.fromHandle(core.MojoHandle handle) : 4175 _BoundsCheckTestInterfaceProxyImpl.fromHandle(core.MojoHandle handle) :
3319 super.fromHandle(handle); 4176 super.fromHandle(handle);
3320 4177
3321 _BoundsCheckTestInterfaceProxyImpl.unbound() : super.unbound(); 4178 _BoundsCheckTestInterfaceProxyImpl.unbound() : super.unbound();
3322 4179
3323 static _BoundsCheckTestInterfaceProxyImpl newFromEndpoint( 4180 static _BoundsCheckTestInterfaceProxyImpl newFromEndpoint(
3324 core.MojoMessagePipeEndpoint endpoint) { 4181 core.MojoMessagePipeEndpoint endpoint) {
3325 assert(endpoint.setDescription("For _BoundsCheckTestInterfaceProxyImpl")); 4182 assert(endpoint.setDescription("For _BoundsCheckTestInterfaceProxyImpl"));
3326 return new _BoundsCheckTestInterfaceProxyImpl.fromEndpoint(endpoint); 4183 return new _BoundsCheckTestInterfaceProxyImpl.fromEndpoint(endpoint);
3327 } 4184 }
3328 4185
4186 service_describer.ServiceDescription get serviceDescription =>
4187 new _BoundsCheckTestInterfaceServiceDescription();
4188
3329 void handleResponse(bindings.ServiceMessage message) { 4189 void handleResponse(bindings.ServiceMessage message) {
3330 switch (message.header.type) { 4190 switch (message.header.type) {
3331 case _BoundsCheckTestInterface_method0Name: 4191 case _BoundsCheckTestInterface_method0Name:
3332 var r = BoundsCheckTestInterfaceMethod0ResponseParams.deserialize( 4192 var r = BoundsCheckTestInterfaceMethod0ResponseParams.deserialize(
3333 message.payload); 4193 message.payload);
3334 if (!message.header.hasRequestId) { 4194 if (!message.header.hasRequestId) {
3335 proxyError("Expected a message with a valid request Id."); 4195 proxyError("Expected a message with a valid request Id.");
3336 return; 4196 return;
3337 } 4197 }
3338 Completer c = completerMap[message.header.requestId]; 4198 Completer c = completerMap[message.header.requestId];
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
3518 assert(_impl == null); 4378 assert(_impl == null);
3519 _impl = d; 4379 _impl = d;
3520 } 4380 }
3521 4381
3522 String toString() { 4382 String toString() {
3523 var superString = super.toString(); 4383 var superString = super.toString();
3524 return "BoundsCheckTestInterfaceStub($superString)"; 4384 return "BoundsCheckTestInterfaceStub($superString)";
3525 } 4385 }
3526 4386
3527 int get version => 0; 4387 int get version => 0;
4388
4389 service_describer.ServiceDescription get serviceDescription =>
4390 new _BoundsCheckTestInterfaceServiceDescription();
3528 } 4391 }
3529 4392
3530 const int _ConformanceTestInterface_method0Name = 0; 4393 const int _ConformanceTestInterface_method0Name = 0;
3531 const int _ConformanceTestInterface_method1Name = 1; 4394 const int _ConformanceTestInterface_method1Name = 1;
3532 const int _ConformanceTestInterface_method2Name = 2; 4395 const int _ConformanceTestInterface_method2Name = 2;
3533 const int _ConformanceTestInterface_method3Name = 3; 4396 const int _ConformanceTestInterface_method3Name = 3;
3534 const int _ConformanceTestInterface_method4Name = 4; 4397 const int _ConformanceTestInterface_method4Name = 4;
3535 const int _ConformanceTestInterface_method5Name = 5; 4398 const int _ConformanceTestInterface_method5Name = 5;
3536 const int _ConformanceTestInterface_method6Name = 6; 4399 const int _ConformanceTestInterface_method6Name = 6;
3537 const int _ConformanceTestInterface_method7Name = 7; 4400 const int _ConformanceTestInterface_method7Name = 7;
3538 const int _ConformanceTestInterface_method8Name = 8; 4401 const int _ConformanceTestInterface_method8Name = 8;
3539 const int _ConformanceTestInterface_method9Name = 9; 4402 const int _ConformanceTestInterface_method9Name = 9;
3540 const int _ConformanceTestInterface_method10Name = 10; 4403 const int _ConformanceTestInterface_method10Name = 10;
3541 const int _ConformanceTestInterface_method11Name = 11; 4404 const int _ConformanceTestInterface_method11Name = 11;
3542 const int _ConformanceTestInterface_method12Name = 12; 4405 const int _ConformanceTestInterface_method12Name = 12;
3543 const int _ConformanceTestInterface_method13Name = 13; 4406 const int _ConformanceTestInterface_method13Name = 13;
3544 const int _ConformanceTestInterface_method14Name = 14; 4407 const int _ConformanceTestInterface_method14Name = 14;
3545 const int _ConformanceTestInterface_method15Name = 15; 4408 const int _ConformanceTestInterface_method15Name = 15;
3546 4409
4410 mojom_types.MojomInterface _validationTestInterfacesConformanceTestInterface() {
4411 return new mojom_types.MojomInterface()
4412 ..declData = (new mojom_types.DeclarationData()
4413 ..shortName = 'ConformanceTestInterface'
4414 ..fullIdentifier = 'mojo.test.ConformanceTestInterface')
4415 ..interfaceName = 'ConformanceTestInterface'
4416 ..methods = <int, mojom_types.MojomMethod>{
4417 _ConformanceTestInterface_method0Name: new mojom_types.MojomMethod()
4418 ..declData = (new mojom_types.DeclarationData()
4419 ..shortName = 'Method0')
4420 ..ordinal = _ConformanceTestInterface_method0Name
4421 ..parameters = _validationTestInterfacesConformanceTestInterfaceMethod0P arams(),
4422 _ConformanceTestInterface_method1Name: new mojom_types.MojomMethod()
4423 ..declData = (new mojom_types.DeclarationData()
4424 ..shortName = 'Method1')
4425 ..ordinal = _ConformanceTestInterface_method1Name
4426 ..parameters = _validationTestInterfacesConformanceTestInterfaceMethod1P arams(),
4427 _ConformanceTestInterface_method2Name: new mojom_types.MojomMethod()
4428 ..declData = (new mojom_types.DeclarationData()
4429 ..shortName = 'Method2')
4430 ..ordinal = _ConformanceTestInterface_method2Name
4431 ..parameters = _validationTestInterfacesConformanceTestInterfaceMethod2P arams(),
4432 _ConformanceTestInterface_method3Name: new mojom_types.MojomMethod()
4433 ..declData = (new mojom_types.DeclarationData()
4434 ..shortName = 'Method3')
4435 ..ordinal = _ConformanceTestInterface_method3Name
4436 ..parameters = _validationTestInterfacesConformanceTestInterfaceMethod3P arams(),
4437 _ConformanceTestInterface_method4Name: new mojom_types.MojomMethod()
4438 ..declData = (new mojom_types.DeclarationData()
4439 ..shortName = 'Method4')
4440 ..ordinal = _ConformanceTestInterface_method4Name
4441 ..parameters = _validationTestInterfacesConformanceTestInterfaceMethod4P arams(),
4442 _ConformanceTestInterface_method5Name: new mojom_types.MojomMethod()
4443 ..declData = (new mojom_types.DeclarationData()
4444 ..shortName = 'Method5')
4445 ..ordinal = _ConformanceTestInterface_method5Name
4446 ..parameters = _validationTestInterfacesConformanceTestInterfaceMethod5P arams(),
4447 _ConformanceTestInterface_method6Name: new mojom_types.MojomMethod()
4448 ..declData = (new mojom_types.DeclarationData()
4449 ..shortName = 'Method6')
4450 ..ordinal = _ConformanceTestInterface_method6Name
4451 ..parameters = _validationTestInterfacesConformanceTestInterfaceMethod6P arams(),
4452 _ConformanceTestInterface_method7Name: new mojom_types.MojomMethod()
4453 ..declData = (new mojom_types.DeclarationData()
4454 ..shortName = 'Method7')
4455 ..ordinal = _ConformanceTestInterface_method7Name
4456 ..parameters = _validationTestInterfacesConformanceTestInterfaceMethod7P arams(),
4457 _ConformanceTestInterface_method8Name: new mojom_types.MojomMethod()
4458 ..declData = (new mojom_types.DeclarationData()
4459 ..shortName = 'Method8')
4460 ..ordinal = _ConformanceTestInterface_method8Name
4461 ..parameters = _validationTestInterfacesConformanceTestInterfaceMethod8P arams(),
4462 _ConformanceTestInterface_method9Name: new mojom_types.MojomMethod()
4463 ..declData = (new mojom_types.DeclarationData()
4464 ..shortName = 'Method9')
4465 ..ordinal = _ConformanceTestInterface_method9Name
4466 ..parameters = _validationTestInterfacesConformanceTestInterfaceMethod9P arams(),
4467 _ConformanceTestInterface_method10Name: new mojom_types.MojomMethod()
4468 ..declData = (new mojom_types.DeclarationData()
4469 ..shortName = 'Method10')
4470 ..ordinal = _ConformanceTestInterface_method10Name
4471 ..parameters = _validationTestInterfacesConformanceTestInterfaceMethod10 Params(),
4472 _ConformanceTestInterface_method11Name: new mojom_types.MojomMethod()
4473 ..declData = (new mojom_types.DeclarationData()
4474 ..shortName = 'Method11')
4475 ..ordinal = _ConformanceTestInterface_method11Name
4476 ..parameters = _validationTestInterfacesConformanceTestInterfaceMethod11 Params(),
4477 _ConformanceTestInterface_method12Name: new mojom_types.MojomMethod()
4478 ..declData = (new mojom_types.DeclarationData()
4479 ..shortName = 'Method12')
4480 ..ordinal = _ConformanceTestInterface_method12Name
4481 ..responseParams = _validationTestInterfacesConformanceTestInterfaceMeth od12ResponseParams()
4482 ..parameters = _validationTestInterfacesConformanceTestInterfaceMethod12 Params(),
4483 _ConformanceTestInterface_method13Name: new mojom_types.MojomMethod()
4484 ..declData = (new mojom_types.DeclarationData()
4485 ..shortName = 'Method13')
4486 ..ordinal = _ConformanceTestInterface_method13Name
4487 ..parameters = _validationTestInterfacesConformanceTestInterfaceMethod13 Params(),
4488 _ConformanceTestInterface_method14Name: new mojom_types.MojomMethod()
4489 ..declData = (new mojom_types.DeclarationData()
4490 ..shortName = 'Method14')
4491 ..ordinal = _ConformanceTestInterface_method14Name
4492 ..parameters = _validationTestInterfacesConformanceTestInterfaceMethod14 Params(),
4493 _ConformanceTestInterface_method15Name: new mojom_types.MojomMethod()
4494 ..declData = (new mojom_types.DeclarationData()
4495 ..shortName = 'Method15')
4496 ..ordinal = _ConformanceTestInterface_method15Name
4497 ..parameters = _validationTestInterfacesConformanceTestInterfaceMethod15 Params(),
4498 };
4499 }
4500
4501 class _ConformanceTestInterfaceServiceDescription implements service_describer.S erviceDescription {
4502 dynamic getTopLevelInterface([Function responseFactory]) =>
4503 _validationTestInterfacesConformanceTestInterface();
4504
4505 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
4506 getAllMojomTypeDefinitions()[typeKey];
4507
4508 dynamic getAllTypeDefinitions([Function responseFactory]) =>
4509 getAllMojomTypeDefinitions();
4510 }
4511
3547 abstract class ConformanceTestInterface { 4512 abstract class ConformanceTestInterface {
3548 static const String serviceName = null; 4513 static const String serviceName = null;
3549 void method0(double param0); 4514 void method0(double param0);
3550 void method1(StructA param0); 4515 void method1(StructA param0);
3551 void method2(StructB param0, StructA param1); 4516 void method2(StructB param0, StructA param1);
3552 void method3(List<bool> param0); 4517 void method3(List<bool> param0);
3553 void method4(StructC param0, List<int> param1); 4518 void method4(StructC param0, List<int> param1);
3554 void method5(StructE param0, core.MojoDataPipeProducer param1); 4519 void method5(StructE param0, core.MojoDataPipeProducer param1);
3555 void method6(List<List<int>> param0); 4520 void method6(List<List<int>> param0);
3556 void method7(StructF param0, List<List<int>> param1); 4521 void method7(StructF param0, List<List<int>> param1);
(...skipping 16 matching lines...) Expand all
3573 super.fromHandle(handle); 4538 super.fromHandle(handle);
3574 4539
3575 _ConformanceTestInterfaceProxyImpl.unbound() : super.unbound(); 4540 _ConformanceTestInterfaceProxyImpl.unbound() : super.unbound();
3576 4541
3577 static _ConformanceTestInterfaceProxyImpl newFromEndpoint( 4542 static _ConformanceTestInterfaceProxyImpl newFromEndpoint(
3578 core.MojoMessagePipeEndpoint endpoint) { 4543 core.MojoMessagePipeEndpoint endpoint) {
3579 assert(endpoint.setDescription("For _ConformanceTestInterfaceProxyImpl")); 4544 assert(endpoint.setDescription("For _ConformanceTestInterfaceProxyImpl"));
3580 return new _ConformanceTestInterfaceProxyImpl.fromEndpoint(endpoint); 4545 return new _ConformanceTestInterfaceProxyImpl.fromEndpoint(endpoint);
3581 } 4546 }
3582 4547
4548 service_describer.ServiceDescription get serviceDescription =>
4549 new _ConformanceTestInterfaceServiceDescription();
4550
3583 void handleResponse(bindings.ServiceMessage message) { 4551 void handleResponse(bindings.ServiceMessage message) {
3584 switch (message.header.type) { 4552 switch (message.header.type) {
3585 case _ConformanceTestInterface_method12Name: 4553 case _ConformanceTestInterface_method12Name:
3586 var r = ConformanceTestInterfaceMethod12ResponseParams.deserialize( 4554 var r = ConformanceTestInterfaceMethod12ResponseParams.deserialize(
3587 message.payload); 4555 message.payload);
3588 if (!message.header.hasRequestId) { 4556 if (!message.header.hasRequestId) {
3589 proxyError("Expected a message with a valid request Id."); 4557 proxyError("Expected a message with a valid request Id.");
3590 return; 4558 return;
3591 } 4559 }
3592 Completer c = completerMap[message.header.requestId]; 4560 Completer c = completerMap[message.header.requestId];
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
3974 assert(_impl == null); 4942 assert(_impl == null);
3975 _impl = d; 4943 _impl = d;
3976 } 4944 }
3977 4945
3978 String toString() { 4946 String toString() {
3979 var superString = super.toString(); 4947 var superString = super.toString();
3980 return "ConformanceTestInterfaceStub($superString)"; 4948 return "ConformanceTestInterfaceStub($superString)";
3981 } 4949 }
3982 4950
3983 int get version => 0; 4951 int get version => 0;
4952
4953 service_describer.ServiceDescription get serviceDescription =>
4954 new _ConformanceTestInterfaceServiceDescription();
3984 } 4955 }
3985 4956
3986 const int _IntegrationTestInterface_method0Name = 0; 4957 const int _IntegrationTestInterface_method0Name = 0;
3987 4958
4959 mojom_types.MojomInterface _validationTestInterfacesIntegrationTestInterface() {
4960 return new mojom_types.MojomInterface()
4961 ..declData = (new mojom_types.DeclarationData()
4962 ..shortName = 'IntegrationTestInterface'
4963 ..fullIdentifier = 'mojo.test.IntegrationTestInterface')
4964 ..interfaceName = 'IntegrationTestInterface'
4965 ..methods = <int, mojom_types.MojomMethod>{
4966 _IntegrationTestInterface_method0Name: new mojom_types.MojomMethod()
4967 ..declData = (new mojom_types.DeclarationData()
4968 ..shortName = 'Method0')
4969 ..ordinal = _IntegrationTestInterface_method0Name
4970 ..responseParams = _validationTestInterfacesIntegrationTestInterfaceMeth od0ResponseParams()
4971 ..parameters = _validationTestInterfacesIntegrationTestInterfaceMethod0P arams(),
4972 };
4973 }
4974
4975 class _IntegrationTestInterfaceServiceDescription implements service_describer.S erviceDescription {
4976 dynamic getTopLevelInterface([Function responseFactory]) =>
4977 _validationTestInterfacesIntegrationTestInterface();
4978
4979 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
4980 getAllMojomTypeDefinitions()[typeKey];
4981
4982 dynamic getAllTypeDefinitions([Function responseFactory]) =>
4983 getAllMojomTypeDefinitions();
4984 }
4985
3988 abstract class IntegrationTestInterface { 4986 abstract class IntegrationTestInterface {
3989 static const String serviceName = null; 4987 static const String serviceName = null;
3990 dynamic method0(BasicStruct param0,[Function responseFactory = null]); 4988 dynamic method0(BasicStruct param0,[Function responseFactory = null]);
3991 } 4989 }
3992 4990
3993 4991
3994 class _IntegrationTestInterfaceProxyImpl extends bindings.Proxy { 4992 class _IntegrationTestInterfaceProxyImpl extends bindings.Proxy {
3995 _IntegrationTestInterfaceProxyImpl.fromEndpoint( 4993 _IntegrationTestInterfaceProxyImpl.fromEndpoint(
3996 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 4994 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
3997 4995
3998 _IntegrationTestInterfaceProxyImpl.fromHandle(core.MojoHandle handle) : 4996 _IntegrationTestInterfaceProxyImpl.fromHandle(core.MojoHandle handle) :
3999 super.fromHandle(handle); 4997 super.fromHandle(handle);
4000 4998
4001 _IntegrationTestInterfaceProxyImpl.unbound() : super.unbound(); 4999 _IntegrationTestInterfaceProxyImpl.unbound() : super.unbound();
4002 5000
4003 static _IntegrationTestInterfaceProxyImpl newFromEndpoint( 5001 static _IntegrationTestInterfaceProxyImpl newFromEndpoint(
4004 core.MojoMessagePipeEndpoint endpoint) { 5002 core.MojoMessagePipeEndpoint endpoint) {
4005 assert(endpoint.setDescription("For _IntegrationTestInterfaceProxyImpl")); 5003 assert(endpoint.setDescription("For _IntegrationTestInterfaceProxyImpl"));
4006 return new _IntegrationTestInterfaceProxyImpl.fromEndpoint(endpoint); 5004 return new _IntegrationTestInterfaceProxyImpl.fromEndpoint(endpoint);
4007 } 5005 }
4008 5006
5007 service_describer.ServiceDescription get serviceDescription =>
5008 new _IntegrationTestInterfaceServiceDescription();
5009
4009 void handleResponse(bindings.ServiceMessage message) { 5010 void handleResponse(bindings.ServiceMessage message) {
4010 switch (message.header.type) { 5011 switch (message.header.type) {
4011 case _IntegrationTestInterface_method0Name: 5012 case _IntegrationTestInterface_method0Name:
4012 var r = IntegrationTestInterfaceMethod0ResponseParams.deserialize( 5013 var r = IntegrationTestInterfaceMethod0ResponseParams.deserialize(
4013 message.payload); 5014 message.payload);
4014 if (!message.header.hasRequestId) { 5015 if (!message.header.hasRequestId) {
4015 proxyError("Expected a message with a valid request Id."); 5016 proxyError("Expected a message with a valid request Id.");
4016 return; 5017 return;
4017 } 5018 }
4018 Completer c = completerMap[message.header.requestId]; 5019 Completer c = completerMap[message.header.requestId];
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
4184 assert(_impl == null); 5185 assert(_impl == null);
4185 _impl = d; 5186 _impl = d;
4186 } 5187 }
4187 5188
4188 String toString() { 5189 String toString() {
4189 var superString = super.toString(); 5190 var superString = super.toString();
4190 return "IntegrationTestInterfaceStub($superString)"; 5191 return "IntegrationTestInterfaceStub($superString)";
4191 } 5192 }
4192 5193
4193 int get version => 0; 5194 int get version => 0;
5195
5196 service_describer.ServiceDescription get serviceDescription =>
5197 new _IntegrationTestInterfaceServiceDescription();
4194 } 5198 }
4195 5199
4196 5200
5201 Map<String, mojom_types.UserDefinedType> _initDescriptions() {
5202 var map = new HashMap<String, mojom_types.UserDefinedType>();
5203 map["validation_test_interfaces_BasicEnum__"] =
5204 new mojom_types.UserDefinedType()
5205 ..enumType = _validationTestInterfacesBasicEnum();
5206 map["validation_test_interfaces_StructA__"] =
5207 new mojom_types.UserDefinedType()
5208 ..structType = _validationTestInterfacesStructA();
5209 map["validation_test_interfaces_StructB__"] =
5210 new mojom_types.UserDefinedType()
5211 ..structType = _validationTestInterfacesStructB();
5212 map["validation_test_interfaces_StructC__"] =
5213 new mojom_types.UserDefinedType()
5214 ..structType = _validationTestInterfacesStructC();
5215 map["validation_test_interfaces_StructD__"] =
5216 new mojom_types.UserDefinedType()
5217 ..structType = _validationTestInterfacesStructD();
5218 map["validation_test_interfaces_StructE__"] =
5219 new mojom_types.UserDefinedType()
5220 ..structType = _validationTestInterfacesStructE();
5221 map["validation_test_interfaces_StructF__"] =
5222 new mojom_types.UserDefinedType()
5223 ..structType = _validationTestInterfacesStructF();
5224 map["validation_test_interfaces_StructG__"] =
5225 new mojom_types.UserDefinedType()
5226 ..structType = _validationTestInterfacesStructG();
5227 map["validation_test_interfaces_StructH__"] =
5228 new mojom_types.UserDefinedType()
5229 ..structType = _validationTestInterfacesStructH();
5230 map["validation_test_interfaces_BasicStruct__"] =
5231 new mojom_types.UserDefinedType()
5232 ..structType = _validationTestInterfacesBasicStruct();
5233 map["validation_test_interfaces_StructWithEnum__"] =
5234 new mojom_types.UserDefinedType()
5235 ..structType = _validationTestInterfacesStructWithEnum();
5236 map["validation_test_interfaces_EnumWithin__"] =
5237 new mojom_types.UserDefinedType()
5238 ..enumType = _validationTestInterfacesEnumWithin();
5239 map["validation_test_interfaces_BoundsCheckTestInterface_Method0_Params__"] =
5240 new mojom_types.UserDefinedType()
5241 ..structType = _validationTestInterfacesBoundsCheckTestInterfaceMethod0Par ams();
5242 map["validation_test_interfaces_BoundsCheckTestInterface_Method0_ResponseParam s__"] =
5243 new mojom_types.UserDefinedType()
5244 ..structType = _validationTestInterfacesBoundsCheckTestInterfaceMethod0Res ponseParams();
5245 map["validation_test_interfaces_BoundsCheckTestInterface_Method1_Params__"] =
5246 new mojom_types.UserDefinedType()
5247 ..structType = _validationTestInterfacesBoundsCheckTestInterfaceMethod1Par ams();
5248 map["validation_test_interfaces_ConformanceTestInterface_Method0_Params__"] =
5249 new mojom_types.UserDefinedType()
5250 ..structType = _validationTestInterfacesConformanceTestInterfaceMethod0Par ams();
5251 map["validation_test_interfaces_ConformanceTestInterface_Method1_Params__"] =
5252 new mojom_types.UserDefinedType()
5253 ..structType = _validationTestInterfacesConformanceTestInterfaceMethod1Par ams();
5254 map["validation_test_interfaces_ConformanceTestInterface_Method2_Params__"] =
5255 new mojom_types.UserDefinedType()
5256 ..structType = _validationTestInterfacesConformanceTestInterfaceMethod2Par ams();
5257 map["validation_test_interfaces_ConformanceTestInterface_Method3_Params__"] =
5258 new mojom_types.UserDefinedType()
5259 ..structType = _validationTestInterfacesConformanceTestInterfaceMethod3Par ams();
5260 map["validation_test_interfaces_ConformanceTestInterface_Method4_Params__"] =
5261 new mojom_types.UserDefinedType()
5262 ..structType = _validationTestInterfacesConformanceTestInterfaceMethod4Par ams();
5263 map["validation_test_interfaces_ConformanceTestInterface_Method5_Params__"] =
5264 new mojom_types.UserDefinedType()
5265 ..structType = _validationTestInterfacesConformanceTestInterfaceMethod5Par ams();
5266 map["validation_test_interfaces_ConformanceTestInterface_Method6_Params__"] =
5267 new mojom_types.UserDefinedType()
5268 ..structType = _validationTestInterfacesConformanceTestInterfaceMethod6Par ams();
5269 map["validation_test_interfaces_ConformanceTestInterface_Method7_Params__"] =
5270 new mojom_types.UserDefinedType()
5271 ..structType = _validationTestInterfacesConformanceTestInterfaceMethod7Par ams();
5272 map["validation_test_interfaces_ConformanceTestInterface_Method8_Params__"] =
5273 new mojom_types.UserDefinedType()
5274 ..structType = _validationTestInterfacesConformanceTestInterfaceMethod8Par ams();
5275 map["validation_test_interfaces_ConformanceTestInterface_Method9_Params__"] =
5276 new mojom_types.UserDefinedType()
5277 ..structType = _validationTestInterfacesConformanceTestInterfaceMethod9Par ams();
5278 map["validation_test_interfaces_ConformanceTestInterface_Method10_Params__"] =
5279 new mojom_types.UserDefinedType()
5280 ..structType = _validationTestInterfacesConformanceTestInterfaceMethod10Pa rams();
5281 map["validation_test_interfaces_ConformanceTestInterface_Method11_Params__"] =
5282 new mojom_types.UserDefinedType()
5283 ..structType = _validationTestInterfacesConformanceTestInterfaceMethod11Pa rams();
5284 map["validation_test_interfaces_ConformanceTestInterface_Method12_Params__"] =
5285 new mojom_types.UserDefinedType()
5286 ..structType = _validationTestInterfacesConformanceTestInterfaceMethod12Pa rams();
5287 map["validation_test_interfaces_ConformanceTestInterface_Method12_ResponsePara ms__"] =
5288 new mojom_types.UserDefinedType()
5289 ..structType = _validationTestInterfacesConformanceTestInterfaceMethod12Re sponseParams();
5290 map["validation_test_interfaces_ConformanceTestInterface_Method13_Params__"] =
5291 new mojom_types.UserDefinedType()
5292 ..structType = _validationTestInterfacesConformanceTestInterfaceMethod13Pa rams();
5293 map["validation_test_interfaces_ConformanceTestInterface_Method14_Params__"] =
5294 new mojom_types.UserDefinedType()
5295 ..structType = _validationTestInterfacesConformanceTestInterfaceMethod14Pa rams();
5296 map["validation_test_interfaces_ConformanceTestInterface_Method15_Params__"] =
5297 new mojom_types.UserDefinedType()
5298 ..structType = _validationTestInterfacesConformanceTestInterfaceMethod15Pa rams();
5299 map["validation_test_interfaces_IntegrationTestInterface_Method0_Params__"] =
5300 new mojom_types.UserDefinedType()
5301 ..structType = _validationTestInterfacesIntegrationTestInterfaceMethod0Par ams();
5302 map["validation_test_interfaces_IntegrationTestInterface_Method0_ResponseParam s__"] =
5303 new mojom_types.UserDefinedType()
5304 ..structType = _validationTestInterfacesIntegrationTestInterfaceMethod0Res ponseParams();
5305 map["validation_test_interfaces_UnionA__"] =
5306 new mojom_types.UserDefinedType()
5307 ..unionType = _validationTestInterfacesUnionA();
5308 map["validation_test_interfaces_UnionB__"] =
5309 new mojom_types.UserDefinedType()
5310 ..unionType = _validationTestInterfacesUnionB();
5311 map["validation_test_interfaces_InterfaceA__"] =
5312 new mojom_types.UserDefinedType()
5313 ..interfaceType = _validationTestInterfacesInterfaceA();
5314 map["validation_test_interfaces_BoundsCheckTestInterface__"] =
5315 new mojom_types.UserDefinedType()
5316 ..interfaceType = _validationTestInterfacesBoundsCheckTestInterface();
5317 map["validation_test_interfaces_ConformanceTestInterface__"] =
5318 new mojom_types.UserDefinedType()
5319 ..interfaceType = _validationTestInterfacesConformanceTestInterface();
5320 map["validation_test_interfaces_IntegrationTestInterface__"] =
5321 new mojom_types.UserDefinedType()
5322 ..interfaceType = _validationTestInterfacesIntegrationTestInterface();
5323 return map;
5324 }
5325
5326 var _mojomDesc;
5327 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
5328 if (_mojomDesc == null) {
5329 _mojomDesc = _initDescriptions();
5330 }
5331 return _mojomDesc;
5332 }
5333
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698