OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 library sample_factory_mojom; | 5 library sample_factory_mojom; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; |
8 | 9 |
9 import 'package:mojo/bindings.dart' as bindings; | 10 import 'package:mojo/bindings.dart' as bindings; |
10 import 'package:mojo/core.dart' as core; | 11 import 'package:mojo/core.dart' as core; |
| 12 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; |
| 13 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic
e_describer; |
11 import 'package:_mojo_for_test_only/imported/sample_import.mojom.dart' as sample
_import_mojom; | 14 import 'package:_mojo_for_test_only/imported/sample_import.mojom.dart' as sample
_import_mojom; |
12 | 15 |
13 | 16 |
14 | 17 |
15 class Request extends bindings.Struct { | 18 class Request extends bindings.Struct { |
16 static const List<bindings.StructDataHeader> kVersions = const [ | 19 static const List<bindings.StructDataHeader> kVersions = const [ |
17 const bindings.StructDataHeader(32, 0) | 20 const bindings.StructDataHeader(32, 0) |
18 ]; | 21 ]; |
19 int x = 0; | 22 int x = 0; |
20 core.MojoMessagePipeEndpoint pipe = null; | 23 core.MojoMessagePipeEndpoint pipe = null; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 "morePipes: $morePipes" ", " | 97 "morePipes: $morePipes" ", " |
95 "obj: $obj" ")"; | 98 "obj: $obj" ")"; |
96 } | 99 } |
97 | 100 |
98 Map toJson() { | 101 Map toJson() { |
99 throw new bindings.MojoCodecError( | 102 throw new bindings.MojoCodecError( |
100 'Object containing handles cannot be encoded to JSON.'); | 103 'Object containing handles cannot be encoded to JSON.'); |
101 } | 104 } |
102 } | 105 } |
103 | 106 |
| 107 mojom_types.MojomStruct _sampleFactoryRequest() { |
| 108 return new mojom_types.MojomStruct() |
| 109 ..declData = (new mojom_types.DeclarationData() |
| 110 ..shortName = 'Request' |
| 111 ..fullIdentifier = 'sample.Request') |
| 112 ..fields = <mojom_types.StructField>[ |
| 113 new mojom_types.StructField() |
| 114 ..declData = (new mojom_types.DeclarationData() |
| 115 ..shortName = 'X') |
| 116 ..type = (new mojom_types.Type() |
| 117 ..simpleType = mojom_types.SimpleType.int32), |
| 118 new mojom_types.StructField() |
| 119 ..declData = (new mojom_types.DeclarationData() |
| 120 ..shortName = 'Pipe') |
| 121 ..type = (new mojom_types.Type() |
| 122 ..handleType = (new mojom_types.HandleType() |
| 123 ..kind = mojom_types.HandleTypeKind.messagePipe |
| 124 ..nullable = true |
| 125 )), |
| 126 new mojom_types.StructField() |
| 127 ..declData = (new mojom_types.DeclarationData() |
| 128 ..shortName = 'MorePipes') |
| 129 ..type = (new mojom_types.Type() |
| 130 ..arrayType = (new mojom_types.ArrayType() |
| 131 ..nullable = true |
| 132 ..elementType = (new mojom_types.Type() |
| 133 ..handleType = (new mojom_types.HandleType() |
| 134 ..kind = mojom_types.HandleTypeKind.messagePipe)))), |
| 135 new mojom_types.StructField() |
| 136 ..declData = (new mojom_types.DeclarationData() |
| 137 ..shortName = 'Obj') |
| 138 ..type = (new mojom_types.Type() |
| 139 ..typeReference = (new mojom_types.TypeReference() |
| 140 ..nullable = true |
| 141 |
| 142 ..identifier = 'sample_import_ImportedInterface__' |
| 143 ..typeKey = 'sample_import_ImportedInterface__' |
| 144 )),]; |
| 145 } |
| 146 |
104 | 147 |
105 class Response extends bindings.Struct { | 148 class Response extends bindings.Struct { |
106 static const List<bindings.StructDataHeader> kVersions = const [ | 149 static const List<bindings.StructDataHeader> kVersions = const [ |
107 const bindings.StructDataHeader(16, 0) | 150 const bindings.StructDataHeader(16, 0) |
108 ]; | 151 ]; |
109 int x = 0; | 152 int x = 0; |
110 core.MojoMessagePipeEndpoint pipe = null; | 153 core.MojoMessagePipeEndpoint pipe = null; |
111 | 154 |
112 Response() : super(kVersions.last.size); | 155 Response() : super(kVersions.last.size); |
113 | 156 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 "x: $x" ", " | 211 "x: $x" ", " |
169 "pipe: $pipe" ")"; | 212 "pipe: $pipe" ")"; |
170 } | 213 } |
171 | 214 |
172 Map toJson() { | 215 Map toJson() { |
173 throw new bindings.MojoCodecError( | 216 throw new bindings.MojoCodecError( |
174 'Object containing handles cannot be encoded to JSON.'); | 217 'Object containing handles cannot be encoded to JSON.'); |
175 } | 218 } |
176 } | 219 } |
177 | 220 |
| 221 mojom_types.MojomStruct _sampleFactoryResponse() { |
| 222 return new mojom_types.MojomStruct() |
| 223 ..declData = (new mojom_types.DeclarationData() |
| 224 ..shortName = 'Response' |
| 225 ..fullIdentifier = 'sample.Response') |
| 226 ..fields = <mojom_types.StructField>[ |
| 227 new mojom_types.StructField() |
| 228 ..declData = (new mojom_types.DeclarationData() |
| 229 ..shortName = 'X') |
| 230 ..type = (new mojom_types.Type() |
| 231 ..simpleType = mojom_types.SimpleType.int32), |
| 232 new mojom_types.StructField() |
| 233 ..declData = (new mojom_types.DeclarationData() |
| 234 ..shortName = 'Pipe') |
| 235 ..type = (new mojom_types.Type() |
| 236 ..handleType = (new mojom_types.HandleType() |
| 237 ..kind = mojom_types.HandleTypeKind.messagePipe |
| 238 ..nullable = true |
| 239 )),]; |
| 240 } |
| 241 |
178 | 242 |
179 class _NamedObjectSetNameParams extends bindings.Struct { | 243 class _NamedObjectSetNameParams extends bindings.Struct { |
180 static const List<bindings.StructDataHeader> kVersions = const [ | 244 static const List<bindings.StructDataHeader> kVersions = const [ |
181 const bindings.StructDataHeader(16, 0) | 245 const bindings.StructDataHeader(16, 0) |
182 ]; | 246 ]; |
183 String name = null; | 247 String name = null; |
184 | 248 |
185 _NamedObjectSetNameParams() : super(kVersions.last.size); | 249 _NamedObjectSetNameParams() : super(kVersions.last.size); |
186 | 250 |
187 static _NamedObjectSetNameParams deserialize(bindings.Message message) { | 251 static _NamedObjectSetNameParams deserialize(bindings.Message message) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 "name: $name" ")"; | 299 "name: $name" ")"; |
236 } | 300 } |
237 | 301 |
238 Map toJson() { | 302 Map toJson() { |
239 Map map = new Map(); | 303 Map map = new Map(); |
240 map["name"] = name; | 304 map["name"] = name; |
241 return map; | 305 return map; |
242 } | 306 } |
243 } | 307 } |
244 | 308 |
| 309 mojom_types.MojomStruct _sampleFactoryNamedObjectSetNameParams() { |
| 310 return new mojom_types.MojomStruct() |
| 311 ..declData = (new mojom_types.DeclarationData() |
| 312 ..shortName = 'NamedObjectSetNameParams' |
| 313 ..fullIdentifier = 'sample.NamedObject_SetName_Params') |
| 314 ..fields = <mojom_types.StructField>[ |
| 315 new mojom_types.StructField() |
| 316 ..declData = (new mojom_types.DeclarationData() |
| 317 ..shortName = 'Name') |
| 318 ..type = (new mojom_types.Type() |
| 319 ..stringType = (new mojom_types.StringType())),]; |
| 320 } |
| 321 |
245 | 322 |
246 class _NamedObjectGetNameParams extends bindings.Struct { | 323 class _NamedObjectGetNameParams extends bindings.Struct { |
247 static const List<bindings.StructDataHeader> kVersions = const [ | 324 static const List<bindings.StructDataHeader> kVersions = const [ |
248 const bindings.StructDataHeader(8, 0) | 325 const bindings.StructDataHeader(8, 0) |
249 ]; | 326 ]; |
250 | 327 |
251 _NamedObjectGetNameParams() : super(kVersions.last.size); | 328 _NamedObjectGetNameParams() : super(kVersions.last.size); |
252 | 329 |
253 static _NamedObjectGetNameParams deserialize(bindings.Message message) { | 330 static _NamedObjectGetNameParams deserialize(bindings.Message message) { |
254 var decoder = new bindings.Decoder(message); | 331 var decoder = new bindings.Decoder(message); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 String toString() { | 370 String toString() { |
294 return "_NamedObjectGetNameParams("")"; | 371 return "_NamedObjectGetNameParams("")"; |
295 } | 372 } |
296 | 373 |
297 Map toJson() { | 374 Map toJson() { |
298 Map map = new Map(); | 375 Map map = new Map(); |
299 return map; | 376 return map; |
300 } | 377 } |
301 } | 378 } |
302 | 379 |
| 380 mojom_types.MojomStruct _sampleFactoryNamedObjectGetNameParams() { |
| 381 return new mojom_types.MojomStruct() |
| 382 ..declData = (new mojom_types.DeclarationData() |
| 383 ..shortName = 'NamedObjectGetNameParams' |
| 384 ..fullIdentifier = 'sample.NamedObject_GetName_Params') |
| 385 ..fields = <mojom_types.StructField>[]; |
| 386 } |
| 387 |
303 | 388 |
304 class NamedObjectGetNameResponseParams extends bindings.Struct { | 389 class NamedObjectGetNameResponseParams extends bindings.Struct { |
305 static const List<bindings.StructDataHeader> kVersions = const [ | 390 static const List<bindings.StructDataHeader> kVersions = const [ |
306 const bindings.StructDataHeader(16, 0) | 391 const bindings.StructDataHeader(16, 0) |
307 ]; | 392 ]; |
308 String name = null; | 393 String name = null; |
309 | 394 |
310 NamedObjectGetNameResponseParams() : super(kVersions.last.size); | 395 NamedObjectGetNameResponseParams() : super(kVersions.last.size); |
311 | 396 |
312 static NamedObjectGetNameResponseParams deserialize(bindings.Message message)
{ | 397 static NamedObjectGetNameResponseParams deserialize(bindings.Message message)
{ |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 "name: $name" ")"; | 445 "name: $name" ")"; |
361 } | 446 } |
362 | 447 |
363 Map toJson() { | 448 Map toJson() { |
364 Map map = new Map(); | 449 Map map = new Map(); |
365 map["name"] = name; | 450 map["name"] = name; |
366 return map; | 451 return map; |
367 } | 452 } |
368 } | 453 } |
369 | 454 |
| 455 mojom_types.MojomStruct _sampleFactoryNamedObjectGetNameResponseParams() { |
| 456 return new mojom_types.MojomStruct() |
| 457 ..declData = (new mojom_types.DeclarationData() |
| 458 ..shortName = 'NamedObjectGetNameResponseParams' |
| 459 ..fullIdentifier = 'sample.NamedObject_GetName_ResponseParams') |
| 460 ..fields = <mojom_types.StructField>[ |
| 461 new mojom_types.StructField() |
| 462 ..declData = (new mojom_types.DeclarationData() |
| 463 ..shortName = 'Name') |
| 464 ..type = (new mojom_types.Type() |
| 465 ..stringType = (new mojom_types.StringType())),]; |
| 466 } |
| 467 |
370 | 468 |
371 class _FactoryDoStuffParams extends bindings.Struct { | 469 class _FactoryDoStuffParams extends bindings.Struct { |
372 static const List<bindings.StructDataHeader> kVersions = const [ | 470 static const List<bindings.StructDataHeader> kVersions = const [ |
373 const bindings.StructDataHeader(24, 0) | 471 const bindings.StructDataHeader(24, 0) |
374 ]; | 472 ]; |
375 Request request = null; | 473 Request request = null; |
376 core.MojoMessagePipeEndpoint pipe = null; | 474 core.MojoMessagePipeEndpoint pipe = null; |
377 | 475 |
378 _FactoryDoStuffParams() : super(kVersions.last.size); | 476 _FactoryDoStuffParams() : super(kVersions.last.size); |
379 | 477 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 "request: $request" ", " | 533 "request: $request" ", " |
436 "pipe: $pipe" ")"; | 534 "pipe: $pipe" ")"; |
437 } | 535 } |
438 | 536 |
439 Map toJson() { | 537 Map toJson() { |
440 throw new bindings.MojoCodecError( | 538 throw new bindings.MojoCodecError( |
441 'Object containing handles cannot be encoded to JSON.'); | 539 'Object containing handles cannot be encoded to JSON.'); |
442 } | 540 } |
443 } | 541 } |
444 | 542 |
| 543 mojom_types.MojomStruct _sampleFactoryFactoryDoStuffParams() { |
| 544 return new mojom_types.MojomStruct() |
| 545 ..declData = (new mojom_types.DeclarationData() |
| 546 ..shortName = 'FactoryDoStuffParams' |
| 547 ..fullIdentifier = 'sample.Factory_DoStuff_Params') |
| 548 ..fields = <mojom_types.StructField>[ |
| 549 new mojom_types.StructField() |
| 550 ..declData = (new mojom_types.DeclarationData() |
| 551 ..shortName = 'Request') |
| 552 ..type = (new mojom_types.Type() |
| 553 ..typeReference = (new mojom_types.TypeReference() |
| 554 ..identifier = 'sample_factory_Request__' |
| 555 ..typeKey = 'sample_factory_Request__' |
| 556 )), |
| 557 new mojom_types.StructField() |
| 558 ..declData = (new mojom_types.DeclarationData() |
| 559 ..shortName = 'Pipe') |
| 560 ..type = (new mojom_types.Type() |
| 561 ..handleType = (new mojom_types.HandleType() |
| 562 ..kind = mojom_types.HandleTypeKind.messagePipe |
| 563 ..nullable = true |
| 564 )),]; |
| 565 } |
| 566 |
445 | 567 |
446 class FactoryDoStuffResponseParams extends bindings.Struct { | 568 class FactoryDoStuffResponseParams extends bindings.Struct { |
447 static const List<bindings.StructDataHeader> kVersions = const [ | 569 static const List<bindings.StructDataHeader> kVersions = const [ |
448 const bindings.StructDataHeader(24, 0) | 570 const bindings.StructDataHeader(24, 0) |
449 ]; | 571 ]; |
450 Response response = null; | 572 Response response = null; |
451 String text = null; | 573 String text = null; |
452 | 574 |
453 FactoryDoStuffResponseParams() : super(kVersions.last.size); | 575 FactoryDoStuffResponseParams() : super(kVersions.last.size); |
454 | 576 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 "response: $response" ", " | 632 "response: $response" ", " |
511 "text: $text" ")"; | 633 "text: $text" ")"; |
512 } | 634 } |
513 | 635 |
514 Map toJson() { | 636 Map toJson() { |
515 throw new bindings.MojoCodecError( | 637 throw new bindings.MojoCodecError( |
516 'Object containing handles cannot be encoded to JSON.'); | 638 'Object containing handles cannot be encoded to JSON.'); |
517 } | 639 } |
518 } | 640 } |
519 | 641 |
| 642 mojom_types.MojomStruct _sampleFactoryFactoryDoStuffResponseParams() { |
| 643 return new mojom_types.MojomStruct() |
| 644 ..declData = (new mojom_types.DeclarationData() |
| 645 ..shortName = 'FactoryDoStuffResponseParams' |
| 646 ..fullIdentifier = 'sample.Factory_DoStuff_ResponseParams') |
| 647 ..fields = <mojom_types.StructField>[ |
| 648 new mojom_types.StructField() |
| 649 ..declData = (new mojom_types.DeclarationData() |
| 650 ..shortName = 'Response') |
| 651 ..type = (new mojom_types.Type() |
| 652 ..typeReference = (new mojom_types.TypeReference() |
| 653 ..identifier = 'sample_factory_Response__' |
| 654 ..typeKey = 'sample_factory_Response__' |
| 655 )), |
| 656 new mojom_types.StructField() |
| 657 ..declData = (new mojom_types.DeclarationData() |
| 658 ..shortName = 'Text') |
| 659 ..type = (new mojom_types.Type() |
| 660 ..stringType = (new mojom_types.StringType())),]; |
| 661 } |
| 662 |
520 | 663 |
521 class _FactoryDoStuff2Params extends bindings.Struct { | 664 class _FactoryDoStuff2Params extends bindings.Struct { |
522 static const List<bindings.StructDataHeader> kVersions = const [ | 665 static const List<bindings.StructDataHeader> kVersions = const [ |
523 const bindings.StructDataHeader(16, 0) | 666 const bindings.StructDataHeader(16, 0) |
524 ]; | 667 ]; |
525 core.MojoDataPipeConsumer pipe = null; | 668 core.MojoDataPipeConsumer pipe = null; |
526 | 669 |
527 _FactoryDoStuff2Params() : super(kVersions.last.size); | 670 _FactoryDoStuff2Params() : super(kVersions.last.size); |
528 | 671 |
529 static _FactoryDoStuff2Params deserialize(bindings.Message message) { | 672 static _FactoryDoStuff2Params deserialize(bindings.Message message) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 return "_FactoryDoStuff2Params(" | 719 return "_FactoryDoStuff2Params(" |
577 "pipe: $pipe" ")"; | 720 "pipe: $pipe" ")"; |
578 } | 721 } |
579 | 722 |
580 Map toJson() { | 723 Map toJson() { |
581 throw new bindings.MojoCodecError( | 724 throw new bindings.MojoCodecError( |
582 'Object containing handles cannot be encoded to JSON.'); | 725 'Object containing handles cannot be encoded to JSON.'); |
583 } | 726 } |
584 } | 727 } |
585 | 728 |
| 729 mojom_types.MojomStruct _sampleFactoryFactoryDoStuff2Params() { |
| 730 return new mojom_types.MojomStruct() |
| 731 ..declData = (new mojom_types.DeclarationData() |
| 732 ..shortName = 'FactoryDoStuff2Params' |
| 733 ..fullIdentifier = 'sample.Factory_DoStuff2_Params') |
| 734 ..fields = <mojom_types.StructField>[ |
| 735 new mojom_types.StructField() |
| 736 ..declData = (new mojom_types.DeclarationData() |
| 737 ..shortName = 'Pipe') |
| 738 ..type = (new mojom_types.Type() |
| 739 ..handleType = (new mojom_types.HandleType() |
| 740 ..kind = mojom_types.HandleTypeKind.dataPipeConsumer)),]; |
| 741 } |
| 742 |
586 | 743 |
587 class FactoryDoStuff2ResponseParams extends bindings.Struct { | 744 class FactoryDoStuff2ResponseParams extends bindings.Struct { |
588 static const List<bindings.StructDataHeader> kVersions = const [ | 745 static const List<bindings.StructDataHeader> kVersions = const [ |
589 const bindings.StructDataHeader(16, 0) | 746 const bindings.StructDataHeader(16, 0) |
590 ]; | 747 ]; |
591 String text = null; | 748 String text = null; |
592 | 749 |
593 FactoryDoStuff2ResponseParams() : super(kVersions.last.size); | 750 FactoryDoStuff2ResponseParams() : super(kVersions.last.size); |
594 | 751 |
595 static FactoryDoStuff2ResponseParams deserialize(bindings.Message message) { | 752 static FactoryDoStuff2ResponseParams deserialize(bindings.Message message) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 "text: $text" ")"; | 800 "text: $text" ")"; |
644 } | 801 } |
645 | 802 |
646 Map toJson() { | 803 Map toJson() { |
647 Map map = new Map(); | 804 Map map = new Map(); |
648 map["text"] = text; | 805 map["text"] = text; |
649 return map; | 806 return map; |
650 } | 807 } |
651 } | 808 } |
652 | 809 |
| 810 mojom_types.MojomStruct _sampleFactoryFactoryDoStuff2ResponseParams() { |
| 811 return new mojom_types.MojomStruct() |
| 812 ..declData = (new mojom_types.DeclarationData() |
| 813 ..shortName = 'FactoryDoStuff2ResponseParams' |
| 814 ..fullIdentifier = 'sample.Factory_DoStuff2_ResponseParams') |
| 815 ..fields = <mojom_types.StructField>[ |
| 816 new mojom_types.StructField() |
| 817 ..declData = (new mojom_types.DeclarationData() |
| 818 ..shortName = 'Text') |
| 819 ..type = (new mojom_types.Type() |
| 820 ..stringType = (new mojom_types.StringType())),]; |
| 821 } |
| 822 |
653 | 823 |
654 class _FactoryCreateNamedObjectParams extends bindings.Struct { | 824 class _FactoryCreateNamedObjectParams extends bindings.Struct { |
655 static const List<bindings.StructDataHeader> kVersions = const [ | 825 static const List<bindings.StructDataHeader> kVersions = const [ |
656 const bindings.StructDataHeader(16, 0) | 826 const bindings.StructDataHeader(16, 0) |
657 ]; | 827 ]; |
658 Object obj = null; | 828 Object obj = null; |
659 | 829 |
660 _FactoryCreateNamedObjectParams() : super(kVersions.last.size); | 830 _FactoryCreateNamedObjectParams() : super(kVersions.last.size); |
661 | 831 |
662 static _FactoryCreateNamedObjectParams deserialize(bindings.Message message) { | 832 static _FactoryCreateNamedObjectParams deserialize(bindings.Message message) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 return "_FactoryCreateNamedObjectParams(" | 879 return "_FactoryCreateNamedObjectParams(" |
710 "obj: $obj" ")"; | 880 "obj: $obj" ")"; |
711 } | 881 } |
712 | 882 |
713 Map toJson() { | 883 Map toJson() { |
714 throw new bindings.MojoCodecError( | 884 throw new bindings.MojoCodecError( |
715 'Object containing handles cannot be encoded to JSON.'); | 885 'Object containing handles cannot be encoded to JSON.'); |
716 } | 886 } |
717 } | 887 } |
718 | 888 |
| 889 mojom_types.MojomStruct _sampleFactoryFactoryCreateNamedObjectParams() { |
| 890 return new mojom_types.MojomStruct() |
| 891 ..declData = (new mojom_types.DeclarationData() |
| 892 ..shortName = 'FactoryCreateNamedObjectParams' |
| 893 ..fullIdentifier = 'sample.Factory_CreateNamedObject_Params') |
| 894 ..fields = <mojom_types.StructField>[ |
| 895 new mojom_types.StructField() |
| 896 ..declData = (new mojom_types.DeclarationData() |
| 897 ..shortName = 'Obj') |
| 898 ..type = (new mojom_types.Type() |
| 899 ..typeReference = (new mojom_types.TypeReference() |
| 900 ..isInterfaceRequest = true |
| 901 ..identifier = 'sample_factory_NamedObject__' |
| 902 ..typeKey = 'sample_factory_NamedObject__' |
| 903 )),]; |
| 904 } |
| 905 |
719 | 906 |
720 class _FactoryRequestImportedInterfaceParams extends bindings.Struct { | 907 class _FactoryRequestImportedInterfaceParams extends bindings.Struct { |
721 static const List<bindings.StructDataHeader> kVersions = const [ | 908 static const List<bindings.StructDataHeader> kVersions = const [ |
722 const bindings.StructDataHeader(16, 0) | 909 const bindings.StructDataHeader(16, 0) |
723 ]; | 910 ]; |
724 Object obj = null; | 911 Object obj = null; |
725 | 912 |
726 _FactoryRequestImportedInterfaceParams() : super(kVersions.last.size); | 913 _FactoryRequestImportedInterfaceParams() : super(kVersions.last.size); |
727 | 914 |
728 static _FactoryRequestImportedInterfaceParams deserialize(bindings.Message mes
sage) { | 915 static _FactoryRequestImportedInterfaceParams deserialize(bindings.Message mes
sage) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
775 return "_FactoryRequestImportedInterfaceParams(" | 962 return "_FactoryRequestImportedInterfaceParams(" |
776 "obj: $obj" ")"; | 963 "obj: $obj" ")"; |
777 } | 964 } |
778 | 965 |
779 Map toJson() { | 966 Map toJson() { |
780 throw new bindings.MojoCodecError( | 967 throw new bindings.MojoCodecError( |
781 'Object containing handles cannot be encoded to JSON.'); | 968 'Object containing handles cannot be encoded to JSON.'); |
782 } | 969 } |
783 } | 970 } |
784 | 971 |
| 972 mojom_types.MojomStruct _sampleFactoryFactoryRequestImportedInterfaceParams() { |
| 973 return new mojom_types.MojomStruct() |
| 974 ..declData = (new mojom_types.DeclarationData() |
| 975 ..shortName = 'FactoryRequestImportedInterfaceParams' |
| 976 ..fullIdentifier = 'sample.Factory_RequestImportedInterface_Params') |
| 977 ..fields = <mojom_types.StructField>[ |
| 978 new mojom_types.StructField() |
| 979 ..declData = (new mojom_types.DeclarationData() |
| 980 ..shortName = 'Obj') |
| 981 ..type = (new mojom_types.Type() |
| 982 ..typeReference = (new mojom_types.TypeReference() |
| 983 ..isInterfaceRequest = true |
| 984 ..identifier = 'sample_import_ImportedInterface__' |
| 985 ..typeKey = 'sample_import_ImportedInterface__' |
| 986 )),]; |
| 987 } |
| 988 |
785 | 989 |
786 class FactoryRequestImportedInterfaceResponseParams extends bindings.Struct { | 990 class FactoryRequestImportedInterfaceResponseParams extends bindings.Struct { |
787 static const List<bindings.StructDataHeader> kVersions = const [ | 991 static const List<bindings.StructDataHeader> kVersions = const [ |
788 const bindings.StructDataHeader(16, 0) | 992 const bindings.StructDataHeader(16, 0) |
789 ]; | 993 ]; |
790 Object obj = null; | 994 Object obj = null; |
791 | 995 |
792 FactoryRequestImportedInterfaceResponseParams() : super(kVersions.last.size); | 996 FactoryRequestImportedInterfaceResponseParams() : super(kVersions.last.size); |
793 | 997 |
794 static FactoryRequestImportedInterfaceResponseParams deserialize(bindings.Mess
age message) { | 998 static FactoryRequestImportedInterfaceResponseParams deserialize(bindings.Mess
age message) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
841 return "FactoryRequestImportedInterfaceResponseParams(" | 1045 return "FactoryRequestImportedInterfaceResponseParams(" |
842 "obj: $obj" ")"; | 1046 "obj: $obj" ")"; |
843 } | 1047 } |
844 | 1048 |
845 Map toJson() { | 1049 Map toJson() { |
846 throw new bindings.MojoCodecError( | 1050 throw new bindings.MojoCodecError( |
847 'Object containing handles cannot be encoded to JSON.'); | 1051 'Object containing handles cannot be encoded to JSON.'); |
848 } | 1052 } |
849 } | 1053 } |
850 | 1054 |
| 1055 mojom_types.MojomStruct _sampleFactoryFactoryRequestImportedInterfaceResponsePar
ams() { |
| 1056 return new mojom_types.MojomStruct() |
| 1057 ..declData = (new mojom_types.DeclarationData() |
| 1058 ..shortName = 'FactoryRequestImportedInterfaceResponseParams' |
| 1059 ..fullIdentifier = 'sample.Factory_RequestImportedInterface_ResponseParams
') |
| 1060 ..fields = <mojom_types.StructField>[ |
| 1061 new mojom_types.StructField() |
| 1062 ..declData = (new mojom_types.DeclarationData() |
| 1063 ..shortName = 'Obj') |
| 1064 ..type = (new mojom_types.Type() |
| 1065 ..typeReference = (new mojom_types.TypeReference() |
| 1066 ..isInterfaceRequest = true |
| 1067 ..identifier = 'sample_import_ImportedInterface__' |
| 1068 ..typeKey = 'sample_import_ImportedInterface__' |
| 1069 )),]; |
| 1070 } |
| 1071 |
851 | 1072 |
852 class _FactoryTakeImportedInterfaceParams extends bindings.Struct { | 1073 class _FactoryTakeImportedInterfaceParams extends bindings.Struct { |
853 static const List<bindings.StructDataHeader> kVersions = const [ | 1074 static const List<bindings.StructDataHeader> kVersions = const [ |
854 const bindings.StructDataHeader(16, 0) | 1075 const bindings.StructDataHeader(16, 0) |
855 ]; | 1076 ]; |
856 Object obj = null; | 1077 Object obj = null; |
857 | 1078 |
858 _FactoryTakeImportedInterfaceParams() : super(kVersions.last.size); | 1079 _FactoryTakeImportedInterfaceParams() : super(kVersions.last.size); |
859 | 1080 |
860 static _FactoryTakeImportedInterfaceParams deserialize(bindings.Message messag
e) { | 1081 static _FactoryTakeImportedInterfaceParams deserialize(bindings.Message messag
e) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 return "_FactoryTakeImportedInterfaceParams(" | 1128 return "_FactoryTakeImportedInterfaceParams(" |
908 "obj: $obj" ")"; | 1129 "obj: $obj" ")"; |
909 } | 1130 } |
910 | 1131 |
911 Map toJson() { | 1132 Map toJson() { |
912 throw new bindings.MojoCodecError( | 1133 throw new bindings.MojoCodecError( |
913 'Object containing handles cannot be encoded to JSON.'); | 1134 'Object containing handles cannot be encoded to JSON.'); |
914 } | 1135 } |
915 } | 1136 } |
916 | 1137 |
| 1138 mojom_types.MojomStruct _sampleFactoryFactoryTakeImportedInterfaceParams() { |
| 1139 return new mojom_types.MojomStruct() |
| 1140 ..declData = (new mojom_types.DeclarationData() |
| 1141 ..shortName = 'FactoryTakeImportedInterfaceParams' |
| 1142 ..fullIdentifier = 'sample.Factory_TakeImportedInterface_Params') |
| 1143 ..fields = <mojom_types.StructField>[ |
| 1144 new mojom_types.StructField() |
| 1145 ..declData = (new mojom_types.DeclarationData() |
| 1146 ..shortName = 'Obj') |
| 1147 ..type = (new mojom_types.Type() |
| 1148 ..typeReference = (new mojom_types.TypeReference() |
| 1149 ..identifier = 'sample_import_ImportedInterface__' |
| 1150 ..typeKey = 'sample_import_ImportedInterface__' |
| 1151 )),]; |
| 1152 } |
| 1153 |
917 | 1154 |
918 class FactoryTakeImportedInterfaceResponseParams extends bindings.Struct { | 1155 class FactoryTakeImportedInterfaceResponseParams extends bindings.Struct { |
919 static const List<bindings.StructDataHeader> kVersions = const [ | 1156 static const List<bindings.StructDataHeader> kVersions = const [ |
920 const bindings.StructDataHeader(16, 0) | 1157 const bindings.StructDataHeader(16, 0) |
921 ]; | 1158 ]; |
922 Object obj = null; | 1159 Object obj = null; |
923 | 1160 |
924 FactoryTakeImportedInterfaceResponseParams() : super(kVersions.last.size); | 1161 FactoryTakeImportedInterfaceResponseParams() : super(kVersions.last.size); |
925 | 1162 |
926 static FactoryTakeImportedInterfaceResponseParams deserialize(bindings.Message
message) { | 1163 static FactoryTakeImportedInterfaceResponseParams deserialize(bindings.Message
message) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 return "FactoryTakeImportedInterfaceResponseParams(" | 1210 return "FactoryTakeImportedInterfaceResponseParams(" |
974 "obj: $obj" ")"; | 1211 "obj: $obj" ")"; |
975 } | 1212 } |
976 | 1213 |
977 Map toJson() { | 1214 Map toJson() { |
978 throw new bindings.MojoCodecError( | 1215 throw new bindings.MojoCodecError( |
979 'Object containing handles cannot be encoded to JSON.'); | 1216 'Object containing handles cannot be encoded to JSON.'); |
980 } | 1217 } |
981 } | 1218 } |
982 | 1219 |
| 1220 mojom_types.MojomStruct _sampleFactoryFactoryTakeImportedInterfaceResponseParams
() { |
| 1221 return new mojom_types.MojomStruct() |
| 1222 ..declData = (new mojom_types.DeclarationData() |
| 1223 ..shortName = 'FactoryTakeImportedInterfaceResponseParams' |
| 1224 ..fullIdentifier = 'sample.Factory_TakeImportedInterface_ResponseParams') |
| 1225 ..fields = <mojom_types.StructField>[ |
| 1226 new mojom_types.StructField() |
| 1227 ..declData = (new mojom_types.DeclarationData() |
| 1228 ..shortName = 'Obj') |
| 1229 ..type = (new mojom_types.Type() |
| 1230 ..typeReference = (new mojom_types.TypeReference() |
| 1231 ..identifier = 'sample_import_ImportedInterface__' |
| 1232 ..typeKey = 'sample_import_ImportedInterface__' |
| 1233 )),]; |
| 1234 } |
| 1235 |
| 1236 |
983 const int _NamedObject_setNameName = 0; | 1237 const int _NamedObject_setNameName = 0; |
984 const int _NamedObject_getNameName = 1; | 1238 const int _NamedObject_getNameName = 1; |
985 | 1239 |
| 1240 mojom_types.MojomInterface _sampleFactoryNamedObject() { |
| 1241 return new mojom_types.MojomInterface() |
| 1242 ..declData = (new mojom_types.DeclarationData() |
| 1243 ..shortName = 'NamedObject' |
| 1244 ..fullIdentifier = 'sample.NamedObject') |
| 1245 ..interfaceName = 'NamedObject' |
| 1246 ..methods = <int, mojom_types.MojomMethod>{ |
| 1247 _NamedObject_setNameName: new mojom_types.MojomMethod() |
| 1248 ..declData = (new mojom_types.DeclarationData() |
| 1249 ..shortName = 'SetName') |
| 1250 ..ordinal = _NamedObject_setNameName |
| 1251 ..parameters = _sampleFactoryNamedObjectSetNameParams(), |
| 1252 _NamedObject_getNameName: new mojom_types.MojomMethod() |
| 1253 ..declData = (new mojom_types.DeclarationData() |
| 1254 ..shortName = 'GetName') |
| 1255 ..ordinal = _NamedObject_getNameName |
| 1256 ..responseParams = _sampleFactoryNamedObjectGetNameResponseParams() |
| 1257 ..parameters = _sampleFactoryNamedObjectGetNameParams(), |
| 1258 }; |
| 1259 } |
| 1260 |
| 1261 class _NamedObjectServiceDescription implements service_describer.ServiceDescrip
tion { |
| 1262 dynamic getTopLevelInterface([Function responseFactory]) => |
| 1263 _sampleFactoryNamedObject(); |
| 1264 |
| 1265 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 1266 getAllMojomTypeDefinitions()[typeKey]; |
| 1267 |
| 1268 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 1269 getAllMojomTypeDefinitions(); |
| 1270 } |
| 1271 |
986 abstract class NamedObject { | 1272 abstract class NamedObject { |
987 static const String serviceName = "sample::NamedObject"; | 1273 static const String serviceName = "sample::NamedObject"; |
988 void setName(String name); | 1274 void setName(String name); |
989 dynamic getName([Function responseFactory = null]); | 1275 dynamic getName([Function responseFactory = null]); |
990 } | 1276 } |
991 | 1277 |
992 | 1278 |
993 class _NamedObjectProxyImpl extends bindings.Proxy { | 1279 class _NamedObjectProxyImpl extends bindings.Proxy { |
994 _NamedObjectProxyImpl.fromEndpoint( | 1280 _NamedObjectProxyImpl.fromEndpoint( |
995 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1281 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
996 | 1282 |
997 _NamedObjectProxyImpl.fromHandle(core.MojoHandle handle) : | 1283 _NamedObjectProxyImpl.fromHandle(core.MojoHandle handle) : |
998 super.fromHandle(handle); | 1284 super.fromHandle(handle); |
999 | 1285 |
1000 _NamedObjectProxyImpl.unbound() : super.unbound(); | 1286 _NamedObjectProxyImpl.unbound() : super.unbound(); |
1001 | 1287 |
1002 static _NamedObjectProxyImpl newFromEndpoint( | 1288 static _NamedObjectProxyImpl newFromEndpoint( |
1003 core.MojoMessagePipeEndpoint endpoint) { | 1289 core.MojoMessagePipeEndpoint endpoint) { |
1004 assert(endpoint.setDescription("For _NamedObjectProxyImpl")); | 1290 assert(endpoint.setDescription("For _NamedObjectProxyImpl")); |
1005 return new _NamedObjectProxyImpl.fromEndpoint(endpoint); | 1291 return new _NamedObjectProxyImpl.fromEndpoint(endpoint); |
1006 } | 1292 } |
1007 | 1293 |
| 1294 service_describer.ServiceDescription get serviceDescription => |
| 1295 new _NamedObjectServiceDescription(); |
| 1296 |
1008 void handleResponse(bindings.ServiceMessage message) { | 1297 void handleResponse(bindings.ServiceMessage message) { |
1009 switch (message.header.type) { | 1298 switch (message.header.type) { |
1010 case _NamedObject_getNameName: | 1299 case _NamedObject_getNameName: |
1011 var r = NamedObjectGetNameResponseParams.deserialize( | 1300 var r = NamedObjectGetNameResponseParams.deserialize( |
1012 message.payload); | 1301 message.payload); |
1013 if (!message.header.hasRequestId) { | 1302 if (!message.header.hasRequestId) { |
1014 proxyError("Expected a message with a valid request Id."); | 1303 proxyError("Expected a message with a valid request Id."); |
1015 return; | 1304 return; |
1016 } | 1305 } |
1017 Completer c = completerMap[message.header.requestId]; | 1306 Completer c = completerMap[message.header.requestId]; |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1196 assert(_impl == null); | 1485 assert(_impl == null); |
1197 _impl = d; | 1486 _impl = d; |
1198 } | 1487 } |
1199 | 1488 |
1200 String toString() { | 1489 String toString() { |
1201 var superString = super.toString(); | 1490 var superString = super.toString(); |
1202 return "NamedObjectStub($superString)"; | 1491 return "NamedObjectStub($superString)"; |
1203 } | 1492 } |
1204 | 1493 |
1205 int get version => 0; | 1494 int get version => 0; |
| 1495 |
| 1496 service_describer.ServiceDescription get serviceDescription => |
| 1497 new _NamedObjectServiceDescription(); |
1206 } | 1498 } |
1207 | 1499 |
1208 const int _Factory_doStuffName = 0; | 1500 const int _Factory_doStuffName = 0; |
1209 const int _Factory_doStuff2Name = 1; | 1501 const int _Factory_doStuff2Name = 1; |
1210 const int _Factory_createNamedObjectName = 2; | 1502 const int _Factory_createNamedObjectName = 2; |
1211 const int _Factory_requestImportedInterfaceName = 3; | 1503 const int _Factory_requestImportedInterfaceName = 3; |
1212 const int _Factory_takeImportedInterfaceName = 4; | 1504 const int _Factory_takeImportedInterfaceName = 4; |
1213 | 1505 |
| 1506 mojom_types.MojomInterface _sampleFactoryFactory() { |
| 1507 return new mojom_types.MojomInterface() |
| 1508 ..declData = (new mojom_types.DeclarationData() |
| 1509 ..shortName = 'Factory' |
| 1510 ..fullIdentifier = 'sample.Factory') |
| 1511 ..interfaceName = 'Factory' |
| 1512 ..methods = <int, mojom_types.MojomMethod>{ |
| 1513 _Factory_doStuffName: new mojom_types.MojomMethod() |
| 1514 ..declData = (new mojom_types.DeclarationData() |
| 1515 ..shortName = 'DoStuff') |
| 1516 ..ordinal = _Factory_doStuffName |
| 1517 ..responseParams = _sampleFactoryFactoryDoStuffResponseParams() |
| 1518 ..parameters = _sampleFactoryFactoryDoStuffParams(), |
| 1519 _Factory_doStuff2Name: new mojom_types.MojomMethod() |
| 1520 ..declData = (new mojom_types.DeclarationData() |
| 1521 ..shortName = 'DoStuff2') |
| 1522 ..ordinal = _Factory_doStuff2Name |
| 1523 ..responseParams = _sampleFactoryFactoryDoStuff2ResponseParams() |
| 1524 ..parameters = _sampleFactoryFactoryDoStuff2Params(), |
| 1525 _Factory_createNamedObjectName: new mojom_types.MojomMethod() |
| 1526 ..declData = (new mojom_types.DeclarationData() |
| 1527 ..shortName = 'CreateNamedObject') |
| 1528 ..ordinal = _Factory_createNamedObjectName |
| 1529 ..parameters = _sampleFactoryFactoryCreateNamedObjectParams(), |
| 1530 _Factory_requestImportedInterfaceName: new mojom_types.MojomMethod() |
| 1531 ..declData = (new mojom_types.DeclarationData() |
| 1532 ..shortName = 'RequestImportedInterface') |
| 1533 ..ordinal = _Factory_requestImportedInterfaceName |
| 1534 ..responseParams = _sampleFactoryFactoryRequestImportedInterfaceResponse
Params() |
| 1535 ..parameters = _sampleFactoryFactoryRequestImportedInterfaceParams(), |
| 1536 _Factory_takeImportedInterfaceName: new mojom_types.MojomMethod() |
| 1537 ..declData = (new mojom_types.DeclarationData() |
| 1538 ..shortName = 'TakeImportedInterface') |
| 1539 ..ordinal = _Factory_takeImportedInterfaceName |
| 1540 ..responseParams = _sampleFactoryFactoryTakeImportedInterfaceResponsePar
ams() |
| 1541 ..parameters = _sampleFactoryFactoryTakeImportedInterfaceParams(), |
| 1542 }; |
| 1543 } |
| 1544 |
| 1545 class _FactoryServiceDescription implements service_describer.ServiceDescription
{ |
| 1546 dynamic getTopLevelInterface([Function responseFactory]) => |
| 1547 _sampleFactoryFactory(); |
| 1548 |
| 1549 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 1550 getAllMojomTypeDefinitions()[typeKey]; |
| 1551 |
| 1552 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 1553 getAllMojomTypeDefinitions(); |
| 1554 } |
| 1555 |
1214 abstract class Factory { | 1556 abstract class Factory { |
1215 static const String serviceName = null; | 1557 static const String serviceName = null; |
1216 dynamic doStuff(Request request,core.MojoMessagePipeEndpoint pipe,[Function re
sponseFactory = null]); | 1558 dynamic doStuff(Request request,core.MojoMessagePipeEndpoint pipe,[Function re
sponseFactory = null]); |
1217 dynamic doStuff2(core.MojoDataPipeConsumer pipe,[Function responseFactory = nu
ll]); | 1559 dynamic doStuff2(core.MojoDataPipeConsumer pipe,[Function responseFactory = nu
ll]); |
1218 void createNamedObject(Object obj); | 1560 void createNamedObject(Object obj); |
1219 dynamic requestImportedInterface(Object obj,[Function responseFactory = null])
; | 1561 dynamic requestImportedInterface(Object obj,[Function responseFactory = null])
; |
1220 dynamic takeImportedInterface(Object obj,[Function responseFactory = null]); | 1562 dynamic takeImportedInterface(Object obj,[Function responseFactory = null]); |
1221 } | 1563 } |
1222 | 1564 |
1223 | 1565 |
1224 class _FactoryProxyImpl extends bindings.Proxy { | 1566 class _FactoryProxyImpl extends bindings.Proxy { |
1225 _FactoryProxyImpl.fromEndpoint( | 1567 _FactoryProxyImpl.fromEndpoint( |
1226 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1568 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
1227 | 1569 |
1228 _FactoryProxyImpl.fromHandle(core.MojoHandle handle) : | 1570 _FactoryProxyImpl.fromHandle(core.MojoHandle handle) : |
1229 super.fromHandle(handle); | 1571 super.fromHandle(handle); |
1230 | 1572 |
1231 _FactoryProxyImpl.unbound() : super.unbound(); | 1573 _FactoryProxyImpl.unbound() : super.unbound(); |
1232 | 1574 |
1233 static _FactoryProxyImpl newFromEndpoint( | 1575 static _FactoryProxyImpl newFromEndpoint( |
1234 core.MojoMessagePipeEndpoint endpoint) { | 1576 core.MojoMessagePipeEndpoint endpoint) { |
1235 assert(endpoint.setDescription("For _FactoryProxyImpl")); | 1577 assert(endpoint.setDescription("For _FactoryProxyImpl")); |
1236 return new _FactoryProxyImpl.fromEndpoint(endpoint); | 1578 return new _FactoryProxyImpl.fromEndpoint(endpoint); |
1237 } | 1579 } |
1238 | 1580 |
| 1581 service_describer.ServiceDescription get serviceDescription => |
| 1582 new _FactoryServiceDescription(); |
| 1583 |
1239 void handleResponse(bindings.ServiceMessage message) { | 1584 void handleResponse(bindings.ServiceMessage message) { |
1240 switch (message.header.type) { | 1585 switch (message.header.type) { |
1241 case _Factory_doStuffName: | 1586 case _Factory_doStuffName: |
1242 var r = FactoryDoStuffResponseParams.deserialize( | 1587 var r = FactoryDoStuffResponseParams.deserialize( |
1243 message.payload); | 1588 message.payload); |
1244 if (!message.header.hasRequestId) { | 1589 if (!message.header.hasRequestId) { |
1245 proxyError("Expected a message with a valid request Id."); | 1590 proxyError("Expected a message with a valid request Id."); |
1246 return; | 1591 return; |
1247 } | 1592 } |
1248 Completer c = completerMap[message.header.requestId]; | 1593 Completer c = completerMap[message.header.requestId]; |
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1598 assert(_impl == null); | 1943 assert(_impl == null); |
1599 _impl = d; | 1944 _impl = d; |
1600 } | 1945 } |
1601 | 1946 |
1602 String toString() { | 1947 String toString() { |
1603 var superString = super.toString(); | 1948 var superString = super.toString(); |
1604 return "FactoryStub($superString)"; | 1949 return "FactoryStub($superString)"; |
1605 } | 1950 } |
1606 | 1951 |
1607 int get version => 0; | 1952 int get version => 0; |
| 1953 |
| 1954 service_describer.ServiceDescription get serviceDescription => |
| 1955 new _FactoryServiceDescription(); |
1608 } | 1956 } |
1609 | 1957 |
1610 | 1958 |
| 1959 Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
| 1960 var map = new HashMap<String, mojom_types.UserDefinedType>(); |
| 1961 map["sample_factory_Request__"] = |
| 1962 new mojom_types.UserDefinedType() |
| 1963 ..structType = _sampleFactoryRequest(); |
| 1964 map["sample_factory_Response__"] = |
| 1965 new mojom_types.UserDefinedType() |
| 1966 ..structType = _sampleFactoryResponse(); |
| 1967 map["sample_factory_NamedObject_SetName_Params__"] = |
| 1968 new mojom_types.UserDefinedType() |
| 1969 ..structType = _sampleFactoryNamedObjectSetNameParams(); |
| 1970 map["sample_factory_NamedObject_GetName_Params__"] = |
| 1971 new mojom_types.UserDefinedType() |
| 1972 ..structType = _sampleFactoryNamedObjectGetNameParams(); |
| 1973 map["sample_factory_NamedObject_GetName_ResponseParams__"] = |
| 1974 new mojom_types.UserDefinedType() |
| 1975 ..structType = _sampleFactoryNamedObjectGetNameResponseParams(); |
| 1976 map["sample_factory_Factory_DoStuff_Params__"] = |
| 1977 new mojom_types.UserDefinedType() |
| 1978 ..structType = _sampleFactoryFactoryDoStuffParams(); |
| 1979 map["sample_factory_Factory_DoStuff_ResponseParams__"] = |
| 1980 new mojom_types.UserDefinedType() |
| 1981 ..structType = _sampleFactoryFactoryDoStuffResponseParams(); |
| 1982 map["sample_factory_Factory_DoStuff2_Params__"] = |
| 1983 new mojom_types.UserDefinedType() |
| 1984 ..structType = _sampleFactoryFactoryDoStuff2Params(); |
| 1985 map["sample_factory_Factory_DoStuff2_ResponseParams__"] = |
| 1986 new mojom_types.UserDefinedType() |
| 1987 ..structType = _sampleFactoryFactoryDoStuff2ResponseParams(); |
| 1988 map["sample_factory_Factory_CreateNamedObject_Params__"] = |
| 1989 new mojom_types.UserDefinedType() |
| 1990 ..structType = _sampleFactoryFactoryCreateNamedObjectParams(); |
| 1991 map["sample_factory_Factory_RequestImportedInterface_Params__"] = |
| 1992 new mojom_types.UserDefinedType() |
| 1993 ..structType = _sampleFactoryFactoryRequestImportedInterfaceParams(); |
| 1994 map["sample_factory_Factory_RequestImportedInterface_ResponseParams__"] = |
| 1995 new mojom_types.UserDefinedType() |
| 1996 ..structType = _sampleFactoryFactoryRequestImportedInterfaceResponseParams
(); |
| 1997 map["sample_factory_Factory_TakeImportedInterface_Params__"] = |
| 1998 new mojom_types.UserDefinedType() |
| 1999 ..structType = _sampleFactoryFactoryTakeImportedInterfaceParams(); |
| 2000 map["sample_factory_Factory_TakeImportedInterface_ResponseParams__"] = |
| 2001 new mojom_types.UserDefinedType() |
| 2002 ..structType = _sampleFactoryFactoryTakeImportedInterfaceResponseParams(); |
| 2003 map["sample_factory_NamedObject__"] = |
| 2004 new mojom_types.UserDefinedType() |
| 2005 ..interfaceType = _sampleFactoryNamedObject(); |
| 2006 map["sample_factory_Factory__"] = |
| 2007 new mojom_types.UserDefinedType() |
| 2008 ..interfaceType = _sampleFactoryFactory(); |
| 2009 sample_import_mojom.getAllMojomTypeDefinitions() |
| 2010 .forEach((String s, mojom_types.UserDefinedType udt) { |
| 2011 map[s] = udt; |
| 2012 }); |
| 2013 |
| 2014 return map; |
| 2015 } |
| 2016 |
| 2017 var _mojomDesc; |
| 2018 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
| 2019 if (_mojomDesc == null) { |
| 2020 _mojomDesc = _initDescriptions(); |
| 2021 } |
| 2022 return _mojomDesc; |
| 2023 } |
| 2024 |
OLD | NEW |