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

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

Issue 1753013002: Mojom runtime type info: New implementation for Dart. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: No changes to sha1s Created 4 years, 9 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 serialization_test_structs_mojom; 5 library serialization_test_structs_mojom;
6 import 'dart:collection'; 6 import 'dart:collection';
7 import 'dart:typed_data';
7 import 'package:mojo/bindings.dart' as bindings; 8 import 'package:mojo/bindings.dart' as bindings;
8 import 'package:mojo/core.dart' as core; 9 import 'package:mojo/core.dart' as core;
9 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; 10 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types;
10 11
11 12
12 13
13 14
14 class Struct1 extends bindings.Struct { 15 class Struct1 extends bindings.Struct {
15 static const List<bindings.StructDataHeader> kVersions = const [ 16 static const List<bindings.StructDataHeader> kVersions = const [
16 const bindings.StructDataHeader(16, 0) 17 const bindings.StructDataHeader(16, 0)
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 "i: $i" ")"; 76 "i: $i" ")";
76 } 77 }
77 78
78 Map toJson() { 79 Map toJson() {
79 Map map = new Map(); 80 Map map = new Map();
80 map["i"] = i; 81 map["i"] = i;
81 return map; 82 return map;
82 } 83 }
83 } 84 }
84 85
85 mojom_types.MojomStruct _serializationTestStructsStruct1() {
86 return new mojom_types.MojomStruct()
87 ..declData = (new mojom_types.DeclarationData()
88 ..shortName = 'Struct1'
89 ..fullIdentifier = 'mojo.test.Struct1')
90 ..fields = <mojom_types.StructField>[
91 new mojom_types.StructField()
92 ..declData = (new mojom_types.DeclarationData()
93 ..shortName = 'I')
94 ..type = (new mojom_types.Type()
95 ..simpleType = mojom_types.SimpleType.uint8),];
96 }
97
98 86
99 class Struct2 extends bindings.Struct { 87 class Struct2 extends bindings.Struct {
100 static const List<bindings.StructDataHeader> kVersions = const [ 88 static const List<bindings.StructDataHeader> kVersions = const [
101 const bindings.StructDataHeader(16, 0) 89 const bindings.StructDataHeader(16, 0)
102 ]; 90 ];
103 core.MojoHandle hdl = null; 91 core.MojoHandle hdl = null;
104 92
105 Struct2() : super(kVersions.last.size); 93 Struct2() : super(kVersions.last.size);
106 94
107 static Struct2 deserialize(bindings.Message message) { 95 static Struct2 deserialize(bindings.Message message) {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 return "Struct2(" 147 return "Struct2("
160 "hdl: $hdl" ")"; 148 "hdl: $hdl" ")";
161 } 149 }
162 150
163 Map toJson() { 151 Map toJson() {
164 throw new bindings.MojoCodecError( 152 throw new bindings.MojoCodecError(
165 'Object containing handles cannot be encoded to JSON.'); 153 'Object containing handles cannot be encoded to JSON.');
166 } 154 }
167 } 155 }
168 156
169 mojom_types.MojomStruct _serializationTestStructsStruct2() {
170 return new mojom_types.MojomStruct()
171 ..declData = (new mojom_types.DeclarationData()
172 ..shortName = 'Struct2'
173 ..fullIdentifier = 'mojo.test.Struct2')
174 ..fields = <mojom_types.StructField>[
175 new mojom_types.StructField()
176 ..declData = (new mojom_types.DeclarationData()
177 ..shortName = 'Hdl')
178 ..type = (new mojom_types.Type()
179 ..handleType = (new mojom_types.HandleType()
180 ..kind = mojom_types.HandleTypeKind.unspecified)),];
181 }
182
183 157
184 class Struct3 extends bindings.Struct { 158 class Struct3 extends bindings.Struct {
185 static const List<bindings.StructDataHeader> kVersions = const [ 159 static const List<bindings.StructDataHeader> kVersions = const [
186 const bindings.StructDataHeader(16, 0) 160 const bindings.StructDataHeader(16, 0)
187 ]; 161 ];
188 Struct1 struct1 = null; 162 Struct1 struct1 = null;
189 163
190 Struct3() : super(kVersions.last.size); 164 Struct3() : super(kVersions.last.size);
191 165
192 static Struct3 deserialize(bindings.Message message) { 166 static Struct3 deserialize(bindings.Message message) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 "struct1: $struct1" ")"; 220 "struct1: $struct1" ")";
247 } 221 }
248 222
249 Map toJson() { 223 Map toJson() {
250 Map map = new Map(); 224 Map map = new Map();
251 map["struct1"] = struct1; 225 map["struct1"] = struct1;
252 return map; 226 return map;
253 } 227 }
254 } 228 }
255 229
256 mojom_types.MojomStruct _serializationTestStructsStruct3() {
257 return new mojom_types.MojomStruct()
258 ..declData = (new mojom_types.DeclarationData()
259 ..shortName = 'Struct3'
260 ..fullIdentifier = 'mojo.test.Struct3')
261 ..fields = <mojom_types.StructField>[
262 new mojom_types.StructField()
263 ..declData = (new mojom_types.DeclarationData()
264 ..shortName = 'Struct1')
265 ..type = (new mojom_types.Type()
266 ..typeReference = (new mojom_types.TypeReference()
267 ..identifier = 'serialization_test_structs_Struct1__'
268 ..typeKey = 'serialization_test_structs_Struct1__'
269 )),];
270 }
271
272 230
273 class Struct4 extends bindings.Struct { 231 class Struct4 extends bindings.Struct {
274 static const List<bindings.StructDataHeader> kVersions = const [ 232 static const List<bindings.StructDataHeader> kVersions = const [
275 const bindings.StructDataHeader(16, 0) 233 const bindings.StructDataHeader(16, 0)
276 ]; 234 ];
277 List<Struct1> data = null; 235 List<Struct1> data = null;
278 236
279 Struct4() : super(kVersions.last.size); 237 Struct4() : super(kVersions.last.size);
280 238
281 static Struct4 deserialize(bindings.Message message) { 239 static Struct4 deserialize(bindings.Message message) {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 "data: $data" ")"; 308 "data: $data" ")";
351 } 309 }
352 310
353 Map toJson() { 311 Map toJson() {
354 Map map = new Map(); 312 Map map = new Map();
355 map["data"] = data; 313 map["data"] = data;
356 return map; 314 return map;
357 } 315 }
358 } 316 }
359 317
360 mojom_types.MojomStruct _serializationTestStructsStruct4() {
361 return new mojom_types.MojomStruct()
362 ..declData = (new mojom_types.DeclarationData()
363 ..shortName = 'Struct4'
364 ..fullIdentifier = 'mojo.test.Struct4')
365 ..fields = <mojom_types.StructField>[
366 new mojom_types.StructField()
367 ..declData = (new mojom_types.DeclarationData()
368 ..shortName = 'Data')
369 ..type = (new mojom_types.Type()
370 ..arrayType = (new mojom_types.ArrayType()
371 ..elementType = (new mojom_types.Type()
372 ..typeReference = (new mojom_types.TypeReference()
373 ..identifier = 'serialization_test_structs_Struct1__'
374 ..typeKey = 'serialization_test_structs_Struct1__'
375 )))),];
376 }
377
378 318
379 class Struct5 extends bindings.Struct { 319 class Struct5 extends bindings.Struct {
380 static const List<bindings.StructDataHeader> kVersions = const [ 320 static const List<bindings.StructDataHeader> kVersions = const [
381 const bindings.StructDataHeader(16, 0) 321 const bindings.StructDataHeader(16, 0)
382 ]; 322 ];
383 List<Struct1> pair = null; 323 List<Struct1> pair = null;
384 324
385 Struct5() : super(kVersions.last.size); 325 Struct5() : super(kVersions.last.size);
386 326
387 static Struct5 deserialize(bindings.Message message) { 327 static Struct5 deserialize(bindings.Message message) {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 "pair: $pair" ")"; 396 "pair: $pair" ")";
457 } 397 }
458 398
459 Map toJson() { 399 Map toJson() {
460 Map map = new Map(); 400 Map map = new Map();
461 map["pair"] = pair; 401 map["pair"] = pair;
462 return map; 402 return map;
463 } 403 }
464 } 404 }
465 405
466 mojom_types.MojomStruct _serializationTestStructsStruct5() {
467 return new mojom_types.MojomStruct()
468 ..declData = (new mojom_types.DeclarationData()
469 ..shortName = 'Struct5'
470 ..fullIdentifier = 'mojo.test.Struct5')
471 ..fields = <mojom_types.StructField>[
472 new mojom_types.StructField()
473 ..declData = (new mojom_types.DeclarationData()
474 ..shortName = 'Pair')
475 ..type = (new mojom_types.Type()
476 ..arrayType = (new mojom_types.ArrayType()
477 ..fixedLength = 2
478 ..elementType = (new mojom_types.Type()
479 ..typeReference = (new mojom_types.TypeReference()
480 ..identifier = 'serialization_test_structs_Struct1__'
481 ..typeKey = 'serialization_test_structs_Struct1__'
482 )))),];
483 }
484
485 406
486 class Struct6 extends bindings.Struct { 407 class Struct6 extends bindings.Struct {
487 static const List<bindings.StructDataHeader> kVersions = const [ 408 static const List<bindings.StructDataHeader> kVersions = const [
488 const bindings.StructDataHeader(16, 0) 409 const bindings.StructDataHeader(16, 0)
489 ]; 410 ];
490 String str = null; 411 String str = null;
491 412
492 Struct6() : super(kVersions.last.size); 413 Struct6() : super(kVersions.last.size);
493 414
494 static Struct6 deserialize(bindings.Message message) { 415 static Struct6 deserialize(bindings.Message message) {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 "str: $str" ")"; 468 "str: $str" ")";
548 } 469 }
549 470
550 Map toJson() { 471 Map toJson() {
551 Map map = new Map(); 472 Map map = new Map();
552 map["str"] = str; 473 map["str"] = str;
553 return map; 474 return map;
554 } 475 }
555 } 476 }
556 477
557 mojom_types.MojomStruct _serializationTestStructsStruct6() {
558 return new mojom_types.MojomStruct()
559 ..declData = (new mojom_types.DeclarationData()
560 ..shortName = 'Struct6'
561 ..fullIdentifier = 'mojo.test.Struct6')
562 ..fields = <mojom_types.StructField>[
563 new mojom_types.StructField()
564 ..declData = (new mojom_types.DeclarationData()
565 ..shortName = 'Str')
566 ..type = (new mojom_types.Type()
567 ..stringType = (new mojom_types.StringType())),];
568 }
569
570 478
571 class StructOfNullables extends bindings.Struct { 479 class StructOfNullables extends bindings.Struct {
572 static const List<bindings.StructDataHeader> kVersions = const [ 480 static const List<bindings.StructDataHeader> kVersions = const [
573 const bindings.StructDataHeader(32, 0) 481 const bindings.StructDataHeader(32, 0)
574 ]; 482 ];
575 core.MojoHandle hdl = null; 483 core.MojoHandle hdl = null;
576 Struct1 struct1 = null; 484 Struct1 struct1 = null;
577 String str = null; 485 String str = null;
578 486
579 StructOfNullables() : super(kVersions.last.size); 487 StructOfNullables() : super(kVersions.last.size);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 "struct1: $struct1" ", " 566 "struct1: $struct1" ", "
659 "str: $str" ")"; 567 "str: $str" ")";
660 } 568 }
661 569
662 Map toJson() { 570 Map toJson() {
663 throw new bindings.MojoCodecError( 571 throw new bindings.MojoCodecError(
664 'Object containing handles cannot be encoded to JSON.'); 572 'Object containing handles cannot be encoded to JSON.');
665 } 573 }
666 } 574 }
667 575
668 mojom_types.MojomStruct _serializationTestStructsStructOfNullables() { 576
669 return new mojom_types.MojomStruct() 577 mojom_types.RuntimeTypeInfo getRuntimeTypeInfo() => _runtimeTypeInfo ??
670 ..declData = (new mojom_types.DeclarationData() 578 _initRuntimeTypeInfo();
671 ..shortName = 'StructOfNullables' 579
672 ..fullIdentifier = 'mojo.test.StructOfNullables') 580 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
673 ..fields = <mojom_types.StructField>[ 581 return getRuntimeTypeInfo().typeMap;
674 new mojom_types.StructField()
675 ..declData = (new mojom_types.DeclarationData()
676 ..shortName = 'Hdl')
677 ..type = (new mojom_types.Type()
678 ..handleType = (new mojom_types.HandleType()
679 ..kind = mojom_types.HandleTypeKind.unspecified
680 ..nullable = true
681 )),
682 new mojom_types.StructField()
683 ..declData = (new mojom_types.DeclarationData()
684 ..shortName = 'Struct1')
685 ..type = (new mojom_types.Type()
686 ..typeReference = (new mojom_types.TypeReference()
687 ..nullable = true
688
689 ..identifier = 'serialization_test_structs_Struct1__'
690 ..typeKey = 'serialization_test_structs_Struct1__'
691 )),
692 new mojom_types.StructField()
693 ..declData = (new mojom_types.DeclarationData()
694 ..shortName = 'Str')
695 ..type = (new mojom_types.Type()
696 ..stringType = (new mojom_types.StringType()
697 ..nullable = true
698 )),];
699 } 582 }
700 583
584 var _runtimeTypeInfo;
585 mojom_types.RuntimeTypeInfo _initRuntimeTypeInfo() {
586 // serializedRuntimeTypeInfo contains the bytes of the Mojo serialization of
587 // a mojom_types.RuntimeTypeInfo struct describing the Mojom types in this
588 // file.
589 var serializedRuntimeTypeInfo = new Uint8List.fromList(const [24,0,0,0,0,0,0,0 ,16,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0, 0,0,0,8,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,104,1,0, 0,0,0,0,0,64,0,0,0,7,0,0,0,56,0,0,0,0,0,0,0,88,0,0,0,0,0,0,0,120,0,0,0,0,0,0,0,1 52,0,0,0,0,0,0,0,184,0,0,0,0,0,0,0,216,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,34,0,0,0,26 ,0,0,0,84,89,80,69,95,75,69,89,58,109,111,106,111,46,116,101,115,116,46,83,116,1 14,117,99,116,50,0,0,0,0,0,0,34,0,0,0,26,0,0,0,84,89,80,69,95,75,69,89,58,109,11 1,106,111,46,116,101,115,116,46,83,116,114,117,99,116,51,0,0,0,0,0,0,34,0,0,0,26 ,0,0,0,84,89,80,69,95,75,69,89,58,109,111,106,111,46,116,101,115,116,46,83,116,1 14,117,99,116,52,0,0,0,0,0,0,34,0,0,0,26,0,0,0,84,89,80,69,95,75,69,89,58,109,11 1,106,111,46,116,101,115,116,46,83,116,114,117,99,116,53,0,0,0,0,0,0,34,0,0,0,26 ,0,0,0,84,89,80,69,95,75,69,89,58,109,111,106,111,46,116,101,115,116,46,83,116,1 14,117,99,116,54,0,0,0,0,0,0,44,0,0,0,36,0,0,0,84,89,80,69,95,75,69,89,58,109,11 1,106,111,46,116,101,115,116,46,83,116,114,117,99,116,79,102,78,117,108,108,97,9 8,108,101,115,0,0,0,0,34,0,0,0,26,0,0,0,84,89,80,69,95,75,69,89,58,109,111,106,1 11,46,116,101,115,116,46,83,116,114,117,99,116,49,0,0,0,0,0,0,120,0,0,0,7,0,0,0, 16,0,0,0,1,0,0,0,104,0,0,0,0,0,0,0,16,0,0,0,1,0,0,0,160,2,0,0,0,0,0,0,16,0,0,0,1 ,0,0,0,32,5,0,0,0,0,0,0,16,0,0,0,1,0,0,0,192,7,0,0,0,0,0,0,16,0,0,0,1,0,0,0,96,1 0,0,0,0,0,0,0,16,0,0,0,1,0,0,0,152,12,0,0,0,0,0,0,16,0,0,0,1,0,0,0,128,17,0,0,0, 0,0,0,32,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,8,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72,0,0,0 ,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,48,0,0,0,0,0,0,0,56,0,0,0,0,0,0 ,0,255,255,255,255,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,0 ,0,0,7,0,0,0,83,116,114,117,99,116,50,0,25,0,0,0,17,0,0,0,109,111,106,111,46,116 ,101,115,116,46,83,116,114,117,99,116,50,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,16,0,0,0 ,0,0,0,0,11,0,0,0,7,0,0,0,103,0,0,0,95,0,0,0,47,104,111,109,101,47,114,117,100,1 11,109,105,110,101,114,47,109,111,106,111,47,115,114,99,47,109,111,106,111,47,11 2,117,98,108,105,99,47,105,110,116,101,114,102,97,99,101,115,47,98,105,110,100,1 05,110,103,115,47,116,101,115,116,115,47,115,101,114,105,97,108,105,122,97,116,1 05,111,110,95,116,101,115,116,95,115,116,114,117,99,116,115,46,109,111,106,111,1 09,0,16,0,0,0,1,0,0,0,8,0,0,0,0,0,0,0,56,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,16,0,0,0 ,4,0,0,0,248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,48,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0,0,255,255,255,255,0,0,0,0,40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11 ,0,0,0,3,0,0,0,104,100,108,0,0,0,0,0,
590 24,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,12,0,0,0,9,0,0,0,103,0,0,0,95,0,0,0,47,104,111 ,109,101,47,114,117,100,111,109,105,110,101,114,47,109,111,106,111,47,115,114,99 ,47,109,111,106,111,47,112,117,98,108,105,99,47,105,110,116,101,114,102,97,99,10 1,115,47,98,105,110,100,105,110,103,115,47,116,101,115,116,115,47,115,101,114,10 5,97,108,105,122,97,116,105,111,110,95,116,101,115,116,95,115,116,114,117,99,116 ,115,46,109,111,106,111,109,0,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,0,0,0,0,0, 24,0,0,0,0,0,0,0,8,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,255,255,255,255,48,0,0,0,0,0,0,0,56,0,0,0,0,0,0,0,255,255,255,255,0,0, 0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,7,0,0,0,83,116,114 ,117,99,116,51,0,25,0,0,0,17,0,0,0,109,111,106,111,46,116,101,115,116,46,83,116, 114,117,99,116,51,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,15,0,0,0,7,0,0 ,0,103,0,0,0,95,0,0,0,47,104,111,109,101,47,114,117,100,111,109,105,110,101,114, 47,109,111,106,111,47,115,114,99,47,109,111,106,111,47,112,117,98,108,105,99,47, 105,110,116,101,114,102,97,99,101,115,47,98,105,110,100,105,110,103,115,47,116,1 01,115,116,115,47,115,101,114,105,97,108,105,122,97,116,105,111,110,95,116,101,1 15,116,95,115,116,114,117,99,116,115,46,109,111,106,111,109,0,16,0,0,0,1,0,0,0,8 ,0,0,0,0,0,0,0,56,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,16,0,0,0,5,0,0,0,248,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0,0,0,0,0,0,255,255,255,255,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,0, 0,0,0,40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,8,0,0,0,115,116, 114,117,99,116,95,49,24,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,10,0,0,0,103,0,0 ,0,95,0,0,0,47,104,111,109,101,47,114,117,100,111,109,105,110,101,114,47,109,111 ,106,111,47,115,114,99,47,109,111,106,111,47,112,117,98,108,105,99,47,105,110,11 6,101,114,102,97,99,101,115,47,98,105,110,100,105,110,103,115,47,116,101,115,116 ,115,47,115,101,114,105,97,108,105,122,97,116,105,111,110,95,116,101,115,116,95, 115,116,114,117,99,116,115,46,109,111,106,111,109,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0,0,16,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,15,0,0,0,7,0,0,0,83,116,114,117,99,116,49 ,0,34,0,0,0,26,0,0,0,84,89,80,69,95,75,69,89,58,109,111,106,111,46,116,101,115,1 16,46,83,116,114,117,99,116,49,0,0,0,0,0,0,32,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,8,1 ,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,25 5,255,48,0,0,0,0,0,0,0,56,0,0,0,0,0,0,0,255,255,255,255,0,0,0,0,72,0,0,0,0,0,0,0 ,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,7,0,0,0,83,116,114,117,99,116,52,0,25, 0,0,0,17,0,0,0,109,111,106,111,46,116,101,115,116,46,83,116,114,117,99,116,52,0, 0,0,0,0,0,0,24,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,19,0,0,0,7,0,0,0,103,0,0,0,95,0,0, 0,47,104,111,109,101,47,114,117,100,111,109,105,110,101,114,47,
591 109,111,106,111,47,115,114,99,47,109,111,106,111,47,112,117,98,108,105,99,47,105 ,110,116,101,114,102,97,99,101,115,47,98,105,110,100,105,110,103,115,47,116,101, 115,116,115,47,115,101,114,105,97,108,105,122,97,116,105,111,110,95,116,101,115, 116,95,115,116,114,117,99,116,115,46,109,111,106,111,109,0,16,0,0,0,1,0,0,0,8,0, 0,0,0,0,0,0,56,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,16,0,0,0,2,0,0,0,248,0,0,0,0,0,0,0 ,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,255,255,255,255,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,0,0,0 ,0,40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,4,0,0,0,100,97,116, 97,0,0,0,0,24,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,20,0,0,0,17,0,0,0,103,0,0,0,95,0,0, 0,47,104,111,109,101,47,114,117,100,111,109,105,110,101,114,47,109,111,106,111,4 7,115,114,99,47,109,111,106,111,47,112,117,98,108,105,99,47,105,110,116,101,114, 102,97,99,101,115,47,98,105,110,100,105,110,103,115,47,116,101,115,116,115,47,11 5,101,114,105,97,108,105,122,97,116,105,111,110,95,116,101,115,116,95,115,116,11 4,117,99,116,115,46,109,111,106,111,109,0,32,0,0,0,0,0,0,0,0,0,0,0,255,255,255,2 55,16,0,0,0,5,0,0,0,8,0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0, 0,0,0,24,0,0,0,0,0,0,0,15,0,0,0,7,0,0,0,83,116,114,117,99,116,49,0,34,0,0,0,26,0 ,0,0,84,89,80,69,95,75,69,89,58,109,111,106,111,46,116,101,115,116,46,83,116,114 ,117,99,116,49,0,0,0,0,0,0,32,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,8,1,0,0,0,0,0,0,0,0 ,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,48,0,0,0,0 ,0,0,0,56,0,0,0,0,0,0,0,255,255,255,255,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0,0,0,0,0,0,0,0,15,0,0,0,7,0,0,0,83,116,114,117,99,116,53,0,25,0,0,0,17,0,0,0,1 09,111,106,111,46,116,101,115,116,46,83,116,114,117,99,116,53,0,0,0,0,0,0,0,24,0 ,0,0,0,0,0,0,16,0,0,0,0,0,0,0,23,0,0,0,7,0,0,0,103,0,0,0,95,0,0,0,47,104,111,109 ,101,47,114,117,100,111,109,105,110,101,114,47,109,111,106,111,47,115,114,99,47, 109,111,106,111,47,112,117,98,108,105,99,47,105,110,116,101,114,102,97,99,101,11 5,47,98,105,110,100,105,110,103,115,47,116,101,115,116,115,47,115,101,114,105,97 ,108,105,122,97,116,105,111,110,95,116,101,115,116,95,115,116,114,117,99,116,115 ,46,109,111,106,111,109,0,16,0,0,0,1,0,0,0,8,0,0,0,0,0,0,0,56,0,0,0,0,0,0,0,48,0 ,0,0,0,0,0,0,16,0,0,0,2,0,0,0,248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,48,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,0,0,0,0,40,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0,0,0,0,0,0,0,0,0,12,0,0,0,4,0,0,0,112,97,105,114,0,0,0,0,24,0,0,0,0,0,0,0,16,0 ,0,0,0,0,0,0,24,0,0,0,20,0,0,0,103,0,0,0,95,0,0,0,47,104,111,109,101,47,114,117, 100,111,109,105,110,101,114,47,109,111,106,111,47,115,114,99,47,109,111,106,111, 47,112,117,98,108,105,99,47,105,110,116,
592 101,114,102,97,99,101,115,47,98,105,110,100,105,110,103,115,47,116,101,115,116,1 15,47,115,101,114,105,97,108,105,122,97,116,105,111,110,95,116,101,115,116,95,11 5,116,114,117,99,116,115,46,109,111,106,111,109,0,32,0,0,0,0,0,0,0,0,0,0,0,2,0,0 ,0,16,0,0,0,5,0,0,0,8,0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0, 0,0,0,24,0,0,0,0,0,0,0,15,0,0,0,7,0,0,0,83,116,114,117,99,116,49,0,34,0,0,0,26,0 ,0,0,84,89,80,69,95,75,69,89,58,109,111,106,111,46,116,101,115,116,46,83,116,114 ,117,99,116,49,0,0,0,0,0,0,32,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,8,1,0,0,0,0,0,0,0,0 ,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,48,0,0,0,0 ,0,0,0,56,0,0,0,0,0,0,0,255,255,255,255,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0,0,0,0,0,0,0,0,15,0,0,0,7,0,0,0,83,116,114,117,99,116,54,0,25,0,0,0,17,0,0,0,1 09,111,106,111,46,116,101,115,116,46,83,116,114,117,99,116,54,0,0,0,0,0,0,0,24,0 ,0,0,0,0,0,0,16,0,0,0,0,0,0,0,27,0,0,0,7,0,0,0,103,0,0,0,95,0,0,0,47,104,111,109 ,101,47,114,117,100,111,109,105,110,101,114,47,109,111,106,111,47,115,114,99,47, 109,111,106,111,47,112,117,98,108,105,99,47,105,110,116,101,114,102,97,99,101,11 5,47,98,105,110,100,105,110,103,115,47,116,101,115,116,115,47,115,101,114,105,97 ,108,105,122,97,116,105,111,110,95,116,101,115,116,95,115,116,114,117,99,116,115 ,46,109,111,106,111,109,0,16,0,0,0,1,0,0,0,8,0,0,0,0,0,0,0,56,0,0,0,0,0,0,0,48,0 ,0,0,0,0,0,0,16,0,0,0,1,0,0,0,248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,48,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,0,0,0,0,40,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0,0,0,0,0,0,0,0,0,11,0,0,0,3,0,0,0,115,116,114,0,0,0,0,0,24,0,0,0,0,0,0,0,16,0, 0,0,0,0,0,0,28,0,0,0,9,0,0,0,103,0,0,0,95,0,0,0,47,104,111,109,101,47,114,117,10 0,111,109,105,110,101,114,47,109,111,106,111,47,115,114,99,47,109,111,106,111,47 ,112,117,98,108,105,99,47,105,110,116,101,114,102,97,99,101,115,47,98,105,110,10 0,105,110,103,115,47,116,101,115,116,115,47,115,101,114,105,97,108,105,122,97,11 6,105,111,110,95,116,101,115,116,95,115,116,114,117,99,116,115,46,109,111,106,11 1,109,0,16,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,32,1, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255 ,255,48,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,255,255,255,255,0,0,0,0,96,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,25,0,0,0,17,0,0,0,83,116,114,117,99,116,79,102,7 8,117,108,108,97,98,108,101,115,0,0,0,0,0,0,0,35,0,0,0,27,0,0,0,109,111,106,111, 46,116,101,115,116,46,83,116,114,117,99,116,79,102,78,117,108,108,97,98,108,101, 115,0,0,0,0,0,24,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,31,0,0,0,7,0,0,0,103,0,0,0,95,0, 0,0,47,104,111,109,101,47,114,117,100,111,109,105,110,101,114,47,109,111,106,111 ,47,115,114,99,47,109,111,106,111,47,112,117,
593 98,108,105,99,47,105,110,116,101,114,102,97,99,101,115,47,98,105,110,100,105,110 ,103,115,47,116,101,115,116,115,47,115,101,114,105,97,108,105,122,97,116,105,111 ,110,95,116,101,115,116,95,115,116,114,117,99,116,115,46,109,111,106,111,109,0,3 2,0,0,0,3,0,0,0,24,0,0,0,0,0,0,0,48,1,0,0,0,0,0,0,144,2,0,0,0,0,0,0,56,0,0,0,0,0 ,0,0,48,0,0,0,0,0,0,0,16,0,0,0,4,0,0,0,248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0,0,0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,25 5,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,0,0,0,0,40,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,3,0,0,0,104,100,108,0,0,0,0,0,24,0,0,0,0,0, 0,0,16,0,0,0,0,0,0,0,32,0,0,0,10,0,0,0,103,0,0,0,95,0,0,0,47,104,111,109,101,47, 114,117,100,111,109,105,110,101,114,47,109,111,106,111,47,115,114,99,47,109,111, 106,111,47,112,117,98,108,105,99,47,105,110,116,101,114,102,97,99,101,115,47,98, 105,110,100,105,110,103,115,47,116,101,115,116,115,47,115,101,114,105,97,108,105 ,122,97,116,105,111,110,95,116,101,115,116,95,115,116,114,117,99,116,115,46,109, 111,106,111,109,0,16,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,56,0,0,0,0,0,0,0,48,0,0,0,0,0 ,0,0,16,0,0,0,5,0,0,0,248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,48,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,255,255,255,255,0,0,0,0,40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0,0,0,0,0,16,0,0,0,8,0,0,0,115,116,114,117,99,116,95,49,24,0,0,0,0,0,0,0,16,0,0 ,0,0,0,0,0,33,0,0,0,11,0,0,0,103,0,0,0,95,0,0,0,47,104,111,109,101,47,114,117,10 0,111,109,105,110,101,114,47,109,111,106,111,47,115,114,99,47,109,111,106,111,47 ,112,117,98,108,105,99,47,105,110,116,101,114,102,97,99,101,115,47,98,105,110,10 0,105,110,103,115,47,116,101,115,116,115,47,115,101,114,105,97,108,105,122,97,11 6,105,111,110,95,116,101,115,116,95,115,116,114,117,99,116,115,46,109,111,106,11 1,109,0,32,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,15,0, 0,0,7,0,0,0,83,116,114,117,99,116,49,0,34,0,0,0,26,0,0,0,84,89,80,69,95,75,69,89 ,58,109,111,106,111,46,116,101,115,116,46,83,116,114,117,99,116,49,0,0,0,0,0,0,5 6,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,16,0,0,0,1,0,0,0,248,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255 ,255,255,255,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,0,0,0,0,40,0,0,0,0 ,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,3,0,0,0,115,116,114,0,0,0,0,0,24 ,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,34,0,0,0,10,0,0,0,103,0,0,0,95,0,0,0,47,104,111, 109,101,47,114,117,100,111,109,105,110,101,114,47,109,111,106,111,47,115,114,99, 47,109,111,106,111,47,112,117,98,108,105,99,47,105,110,116,101,114,102,97,99,101 ,115,47,98,105,110,100,105,110,103,115,47,116,101,115,116,115,47,115,101,114,105 ,97,108,105,122,97,116,105,111,110,95,116,101,115,
594 116,95,115,116,114,117,99,116,115,46,109,111,106,111,109,0,16,0,0,0,0,0,0,0,1,0, 0,0,0,0,0,0,32,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,8,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72 ,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,48,0,0,0,0,0,0,0,56,0,0,0 ,0,0,0,0,255,255,255,255,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,15,0,0,0,7,0,0,0,83,116,114,117,99,116,49,0,25,0,0,0,17,0,0,0,109,111,106,111, 46,116,101,115,116,46,83,116,114,117,99,116,49,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,16 ,0,0,0,0,0,0,0,7,0,0,0,7,0,0,0,103,0,0,0,95,0,0,0,47,104,111,109,101,47,114,117, 100,111,109,105,110,101,114,47,109,111,106,111,47,115,114,99,47,109,111,106,111, 47,112,117,98,108,105,99,47,105,110,116,101,114,102,97,99,101,115,47,98,105,110, 100,105,110,103,115,47,116,101,115,116,115,47,115,101,114,105,97,108,105,122,97, 116,105,111,110,95,116,101,115,116,95,115,116,114,117,99,116,115,46,109,111,106, 111,109,0,16,0,0,0,1,0,0,0,8,0,0,0,0,0,0,0,56,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,16, 0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72 ,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,48,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,255,255,255,255,0,0,0,0,40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ,9,0,0,0,1,0,0,0,105,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,8,0,0,0,8,0 ,0,0,103,0,0,0,95,0,0,0,47,104,111,109,101,47,114,117,100,111,109,105,110,101,11 4,47,109,111,106,111,47,115,114,99,47,109,111,106,111,47,112,117,98,108,105,99,4 7,105,110,116,101,114,102,97,99,101,115,47,98,105,110,100,105,110,103,115,47,116 ,101,115,116,115,47,115,101,114,105,97,108,105,122,97,116,105,111,110,95,116,101 ,115,116,95,115,116,114,117,99,116,115,46,109,111,106,111,109,0]);
701 595
702 596 // Deserialize RuntimeTypeInfo
703 Map<String, mojom_types.UserDefinedType> _initDescriptions() { 597 var bdata = new ByteData.view(serializedRuntimeTypeInfo.buffer);
704 var map = new HashMap<String, mojom_types.UserDefinedType>(); 598 var message = new bindings.Message(bdata, null, serializedRuntimeTypeInfo.leng th, 0);
705 map["serialization_test_structs_Struct1__"] = 599 _runtimeTypeInfo = mojom_types.RuntimeTypeInfo.deserialize(message);
706 new mojom_types.UserDefinedType() 600 return _runtimeTypeInfo;
707 ..structType = _serializationTestStructsStruct1();
708 map["serialization_test_structs_Struct2__"] =
709 new mojom_types.UserDefinedType()
710 ..structType = _serializationTestStructsStruct2();
711 map["serialization_test_structs_Struct3__"] =
712 new mojom_types.UserDefinedType()
713 ..structType = _serializationTestStructsStruct3();
714 map["serialization_test_structs_Struct4__"] =
715 new mojom_types.UserDefinedType()
716 ..structType = _serializationTestStructsStruct4();
717 map["serialization_test_structs_Struct5__"] =
718 new mojom_types.UserDefinedType()
719 ..structType = _serializationTestStructsStruct5();
720 map["serialization_test_structs_Struct6__"] =
721 new mojom_types.UserDefinedType()
722 ..structType = _serializationTestStructsStruct6();
723 map["serialization_test_structs_StructOfNullables__"] =
724 new mojom_types.UserDefinedType()
725 ..structType = _serializationTestStructsStructOfNullables();
726 return map;
727 } 601 }
728
729 var _mojomDesc;
730 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
731 if (_mojomDesc == null) {
732 _mojomDesc = _initDescriptions();
733 }
734 return _mojomDesc;
735 }
736
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698