OLD | NEW |
1 // WARNING: DO NOT EDIT. This file was generated by a program. | 1 // WARNING: DO NOT EDIT. This file was generated by a program. |
2 // See $MOJO_SDK/tools/bindings/mojom_bindings_generator.py. | 2 // See $MOJO_SDK/tools/bindings/mojom_bindings_generator.py. |
3 | 3 |
4 library pingpong_service_mojom; | 4 library pingpong_service_mojom; |
5 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:collection'; | 6 import 'dart:collection'; |
7 import 'dart:convert'; | 7 import 'dart:convert'; |
8 import 'dart:io'; | 8 import 'dart:io'; |
9 import 'dart:typed_data'; | 9 import 'dart:typed_data'; |
10 import 'package:mojo/bindings.dart' as bindings; | 10 import 'package:mojo/bindings.dart' as bindings; |
11 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; | 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; | 13 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic
e_describer; |
14 | 14 |
15 | 15 |
16 | 16 |
17 class _PingPongServiceSetClientParams extends bindings.Struct { | 17 class _PingPongServiceSetClientParams extends bindings.Struct { |
18 static const List<bindings.StructDataHeader> kVersions = const [ | 18 static const List<bindings.StructDataHeader> kVersions = const [ |
19 const bindings.StructDataHeader(16, 0) | 19 const bindings.StructDataHeader(16, 0) |
20 ]; | 20 ]; |
21 PingPongClientInterface client = null; | 21 PingPongClientInterface client = null; |
22 | 22 |
23 _PingPongServiceSetClientParams() : super(kVersions.last.size); | 23 _PingPongServiceSetClientParams() : super(kVersions.last.size); |
24 | 24 |
| 25 _PingPongServiceSetClientParams.init( |
| 26 PingPongClientInterface this.client |
| 27 ) : super(kVersions.last.size); |
| 28 |
25 static _PingPongServiceSetClientParams deserialize(bindings.Message message) { | 29 static _PingPongServiceSetClientParams deserialize(bindings.Message message) { |
26 var decoder = new bindings.Decoder(message); | 30 var decoder = new bindings.Decoder(message); |
27 var result = decode(decoder); | 31 var result = decode(decoder); |
28 if (decoder.excessHandles != null) { | 32 if (decoder.excessHandles != null) { |
29 decoder.excessHandles.forEach((h) => h.close()); | 33 decoder.excessHandles.forEach((h) => h.close()); |
30 } | 34 } |
31 return result; | 35 return result; |
32 } | 36 } |
33 | 37 |
34 static _PingPongServiceSetClientParams decode(bindings.Decoder decoder0) { | 38 static _PingPongServiceSetClientParams decode(bindings.Decoder decoder0) { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 90 |
87 | 91 |
88 class _PingPongServicePingParams extends bindings.Struct { | 92 class _PingPongServicePingParams extends bindings.Struct { |
89 static const List<bindings.StructDataHeader> kVersions = const [ | 93 static const List<bindings.StructDataHeader> kVersions = const [ |
90 const bindings.StructDataHeader(16, 0) | 94 const bindings.StructDataHeader(16, 0) |
91 ]; | 95 ]; |
92 int pingValue = 0; | 96 int pingValue = 0; |
93 | 97 |
94 _PingPongServicePingParams() : super(kVersions.last.size); | 98 _PingPongServicePingParams() : super(kVersions.last.size); |
95 | 99 |
| 100 _PingPongServicePingParams.init( |
| 101 int this.pingValue |
| 102 ) : super(kVersions.last.size); |
| 103 |
96 static _PingPongServicePingParams deserialize(bindings.Message message) { | 104 static _PingPongServicePingParams deserialize(bindings.Message message) { |
97 var decoder = new bindings.Decoder(message); | 105 var decoder = new bindings.Decoder(message); |
98 var result = decode(decoder); | 106 var result = decode(decoder); |
99 if (decoder.excessHandles != null) { | 107 if (decoder.excessHandles != null) { |
100 decoder.excessHandles.forEach((h) => h.close()); | 108 decoder.excessHandles.forEach((h) => h.close()); |
101 } | 109 } |
102 return result; | 110 return result; |
103 } | 111 } |
104 | 112 |
105 static _PingPongServicePingParams decode(bindings.Decoder decoder0) { | 113 static _PingPongServicePingParams decode(bindings.Decoder decoder0) { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 | 167 |
160 class _PingPongServicePingTargetUrlParams extends bindings.Struct { | 168 class _PingPongServicePingTargetUrlParams extends bindings.Struct { |
161 static const List<bindings.StructDataHeader> kVersions = const [ | 169 static const List<bindings.StructDataHeader> kVersions = const [ |
162 const bindings.StructDataHeader(24, 0) | 170 const bindings.StructDataHeader(24, 0) |
163 ]; | 171 ]; |
164 String url = null; | 172 String url = null; |
165 int count = 0; | 173 int count = 0; |
166 | 174 |
167 _PingPongServicePingTargetUrlParams() : super(kVersions.last.size); | 175 _PingPongServicePingTargetUrlParams() : super(kVersions.last.size); |
168 | 176 |
| 177 _PingPongServicePingTargetUrlParams.init( |
| 178 String this.url, |
| 179 int this.count |
| 180 ) : super(kVersions.last.size); |
| 181 |
169 static _PingPongServicePingTargetUrlParams deserialize(bindings.Message messag
e) { | 182 static _PingPongServicePingTargetUrlParams deserialize(bindings.Message messag
e) { |
170 var decoder = new bindings.Decoder(message); | 183 var decoder = new bindings.Decoder(message); |
171 var result = decode(decoder); | 184 var result = decode(decoder); |
172 if (decoder.excessHandles != null) { | 185 if (decoder.excessHandles != null) { |
173 decoder.excessHandles.forEach((h) => h.close()); | 186 decoder.excessHandles.forEach((h) => h.close()); |
174 } | 187 } |
175 return result; | 188 return result; |
176 } | 189 } |
177 | 190 |
178 static _PingPongServicePingTargetUrlParams decode(bindings.Decoder decoder0) { | 191 static _PingPongServicePingTargetUrlParams decode(bindings.Decoder decoder0) { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 | 257 |
245 | 258 |
246 class PingPongServicePingTargetUrlResponseParams extends bindings.Struct { | 259 class PingPongServicePingTargetUrlResponseParams extends bindings.Struct { |
247 static const List<bindings.StructDataHeader> kVersions = const [ | 260 static const List<bindings.StructDataHeader> kVersions = const [ |
248 const bindings.StructDataHeader(16, 0) | 261 const bindings.StructDataHeader(16, 0) |
249 ]; | 262 ]; |
250 bool ok = false; | 263 bool ok = false; |
251 | 264 |
252 PingPongServicePingTargetUrlResponseParams() : super(kVersions.last.size); | 265 PingPongServicePingTargetUrlResponseParams() : super(kVersions.last.size); |
253 | 266 |
| 267 PingPongServicePingTargetUrlResponseParams.init( |
| 268 bool this.ok |
| 269 ) : super(kVersions.last.size); |
| 270 |
254 static PingPongServicePingTargetUrlResponseParams deserialize(bindings.Message
message) { | 271 static PingPongServicePingTargetUrlResponseParams deserialize(bindings.Message
message) { |
255 var decoder = new bindings.Decoder(message); | 272 var decoder = new bindings.Decoder(message); |
256 var result = decode(decoder); | 273 var result = decode(decoder); |
257 if (decoder.excessHandles != null) { | 274 if (decoder.excessHandles != null) { |
258 decoder.excessHandles.forEach((h) => h.close()); | 275 decoder.excessHandles.forEach((h) => h.close()); |
259 } | 276 } |
260 return result; | 277 return result; |
261 } | 278 } |
262 | 279 |
263 static PingPongServicePingTargetUrlResponseParams decode(bindings.Decoder deco
der0) { | 280 static PingPongServicePingTargetUrlResponseParams decode(bindings.Decoder deco
der0) { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 | 334 |
318 class _PingPongServicePingTargetServiceParams extends bindings.Struct { | 335 class _PingPongServicePingTargetServiceParams extends bindings.Struct { |
319 static const List<bindings.StructDataHeader> kVersions = const [ | 336 static const List<bindings.StructDataHeader> kVersions = const [ |
320 const bindings.StructDataHeader(24, 0) | 337 const bindings.StructDataHeader(24, 0) |
321 ]; | 338 ]; |
322 PingPongServiceInterface service = null; | 339 PingPongServiceInterface service = null; |
323 int count = 0; | 340 int count = 0; |
324 | 341 |
325 _PingPongServicePingTargetServiceParams() : super(kVersions.last.size); | 342 _PingPongServicePingTargetServiceParams() : super(kVersions.last.size); |
326 | 343 |
| 344 _PingPongServicePingTargetServiceParams.init( |
| 345 PingPongServiceInterface this.service, |
| 346 int this.count |
| 347 ) : super(kVersions.last.size); |
| 348 |
327 static _PingPongServicePingTargetServiceParams deserialize(bindings.Message me
ssage) { | 349 static _PingPongServicePingTargetServiceParams deserialize(bindings.Message me
ssage) { |
328 var decoder = new bindings.Decoder(message); | 350 var decoder = new bindings.Decoder(message); |
329 var result = decode(decoder); | 351 var result = decode(decoder); |
330 if (decoder.excessHandles != null) { | 352 if (decoder.excessHandles != null) { |
331 decoder.excessHandles.forEach((h) => h.close()); | 353 decoder.excessHandles.forEach((h) => h.close()); |
332 } | 354 } |
333 return result; | 355 return result; |
334 } | 356 } |
335 | 357 |
336 static _PingPongServicePingTargetServiceParams decode(bindings.Decoder decoder
0) { | 358 static _PingPongServicePingTargetServiceParams decode(bindings.Decoder decoder
0) { |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 | 422 |
401 | 423 |
402 class PingPongServicePingTargetServiceResponseParams extends bindings.Struct { | 424 class PingPongServicePingTargetServiceResponseParams extends bindings.Struct { |
403 static const List<bindings.StructDataHeader> kVersions = const [ | 425 static const List<bindings.StructDataHeader> kVersions = const [ |
404 const bindings.StructDataHeader(16, 0) | 426 const bindings.StructDataHeader(16, 0) |
405 ]; | 427 ]; |
406 bool ok = false; | 428 bool ok = false; |
407 | 429 |
408 PingPongServicePingTargetServiceResponseParams() : super(kVersions.last.size); | 430 PingPongServicePingTargetServiceResponseParams() : super(kVersions.last.size); |
409 | 431 |
| 432 PingPongServicePingTargetServiceResponseParams.init( |
| 433 bool this.ok |
| 434 ) : super(kVersions.last.size); |
| 435 |
410 static PingPongServicePingTargetServiceResponseParams deserialize(bindings.Mes
sage message) { | 436 static PingPongServicePingTargetServiceResponseParams deserialize(bindings.Mes
sage message) { |
411 var decoder = new bindings.Decoder(message); | 437 var decoder = new bindings.Decoder(message); |
412 var result = decode(decoder); | 438 var result = decode(decoder); |
413 if (decoder.excessHandles != null) { | 439 if (decoder.excessHandles != null) { |
414 decoder.excessHandles.forEach((h) => h.close()); | 440 decoder.excessHandles.forEach((h) => h.close()); |
415 } | 441 } |
416 return result; | 442 return result; |
417 } | 443 } |
418 | 444 |
419 static PingPongServicePingTargetServiceResponseParams decode(bindings.Decoder
decoder0) { | 445 static PingPongServicePingTargetServiceResponseParams decode(bindings.Decoder
decoder0) { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 | 498 |
473 | 499 |
474 class _PingPongServiceGetPingPongServiceParams extends bindings.Struct { | 500 class _PingPongServiceGetPingPongServiceParams extends bindings.Struct { |
475 static const List<bindings.StructDataHeader> kVersions = const [ | 501 static const List<bindings.StructDataHeader> kVersions = const [ |
476 const bindings.StructDataHeader(16, 0) | 502 const bindings.StructDataHeader(16, 0) |
477 ]; | 503 ]; |
478 PingPongServiceInterfaceRequest service = null; | 504 PingPongServiceInterfaceRequest service = null; |
479 | 505 |
480 _PingPongServiceGetPingPongServiceParams() : super(kVersions.last.size); | 506 _PingPongServiceGetPingPongServiceParams() : super(kVersions.last.size); |
481 | 507 |
| 508 _PingPongServiceGetPingPongServiceParams.init( |
| 509 PingPongServiceInterfaceRequest this.service |
| 510 ) : super(kVersions.last.size); |
| 511 |
482 static _PingPongServiceGetPingPongServiceParams deserialize(bindings.Message m
essage) { | 512 static _PingPongServiceGetPingPongServiceParams deserialize(bindings.Message m
essage) { |
483 var decoder = new bindings.Decoder(message); | 513 var decoder = new bindings.Decoder(message); |
484 var result = decode(decoder); | 514 var result = decode(decoder); |
485 if (decoder.excessHandles != null) { | 515 if (decoder.excessHandles != null) { |
486 decoder.excessHandles.forEach((h) => h.close()); | 516 decoder.excessHandles.forEach((h) => h.close()); |
487 } | 517 } |
488 return result; | 518 return result; |
489 } | 519 } |
490 | 520 |
491 static _PingPongServiceGetPingPongServiceParams decode(bindings.Decoder decode
r0) { | 521 static _PingPongServiceGetPingPongServiceParams decode(bindings.Decoder decode
r0) { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 | 573 |
544 | 574 |
545 class _PingPongServiceGetPingPongServiceDelayedParams extends bindings.Struct { | 575 class _PingPongServiceGetPingPongServiceDelayedParams extends bindings.Struct { |
546 static const List<bindings.StructDataHeader> kVersions = const [ | 576 static const List<bindings.StructDataHeader> kVersions = const [ |
547 const bindings.StructDataHeader(16, 0) | 577 const bindings.StructDataHeader(16, 0) |
548 ]; | 578 ]; |
549 PingPongServiceInterfaceRequest service = null; | 579 PingPongServiceInterfaceRequest service = null; |
550 | 580 |
551 _PingPongServiceGetPingPongServiceDelayedParams() : super(kVersions.last.size)
; | 581 _PingPongServiceGetPingPongServiceDelayedParams() : super(kVersions.last.size)
; |
552 | 582 |
| 583 _PingPongServiceGetPingPongServiceDelayedParams.init( |
| 584 PingPongServiceInterfaceRequest this.service |
| 585 ) : super(kVersions.last.size); |
| 586 |
553 static _PingPongServiceGetPingPongServiceDelayedParams deserialize(bindings.Me
ssage message) { | 587 static _PingPongServiceGetPingPongServiceDelayedParams deserialize(bindings.Me
ssage message) { |
554 var decoder = new bindings.Decoder(message); | 588 var decoder = new bindings.Decoder(message); |
555 var result = decode(decoder); | 589 var result = decode(decoder); |
556 if (decoder.excessHandles != null) { | 590 if (decoder.excessHandles != null) { |
557 decoder.excessHandles.forEach((h) => h.close()); | 591 decoder.excessHandles.forEach((h) => h.close()); |
558 } | 592 } |
559 return result; | 593 return result; |
560 } | 594 } |
561 | 595 |
562 static _PingPongServiceGetPingPongServiceDelayedParams decode(bindings.Decoder
decoder0) { | 596 static _PingPongServiceGetPingPongServiceDelayedParams decode(bindings.Decoder
decoder0) { |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 } | 647 } |
614 | 648 |
615 | 649 |
616 class _PingPongServiceQuitParams extends bindings.Struct { | 650 class _PingPongServiceQuitParams extends bindings.Struct { |
617 static const List<bindings.StructDataHeader> kVersions = const [ | 651 static const List<bindings.StructDataHeader> kVersions = const [ |
618 const bindings.StructDataHeader(8, 0) | 652 const bindings.StructDataHeader(8, 0) |
619 ]; | 653 ]; |
620 | 654 |
621 _PingPongServiceQuitParams() : super(kVersions.last.size); | 655 _PingPongServiceQuitParams() : super(kVersions.last.size); |
622 | 656 |
| 657 _PingPongServiceQuitParams.init( |
| 658 ) : super(kVersions.last.size); |
| 659 |
623 static _PingPongServiceQuitParams deserialize(bindings.Message message) { | 660 static _PingPongServiceQuitParams deserialize(bindings.Message message) { |
624 var decoder = new bindings.Decoder(message); | 661 var decoder = new bindings.Decoder(message); |
625 var result = decode(decoder); | 662 var result = decode(decoder); |
626 if (decoder.excessHandles != null) { | 663 if (decoder.excessHandles != null) { |
627 decoder.excessHandles.forEach((h) => h.close()); | 664 decoder.excessHandles.forEach((h) => h.close()); |
628 } | 665 } |
629 return result; | 666 return result; |
630 } | 667 } |
631 | 668 |
632 static _PingPongServiceQuitParams decode(bindings.Decoder decoder0) { | 669 static _PingPongServiceQuitParams decode(bindings.Decoder decoder0) { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 | 709 |
673 | 710 |
674 class _PingPongClientPongParams extends bindings.Struct { | 711 class _PingPongClientPongParams extends bindings.Struct { |
675 static const List<bindings.StructDataHeader> kVersions = const [ | 712 static const List<bindings.StructDataHeader> kVersions = const [ |
676 const bindings.StructDataHeader(16, 0) | 713 const bindings.StructDataHeader(16, 0) |
677 ]; | 714 ]; |
678 int pongValue = 0; | 715 int pongValue = 0; |
679 | 716 |
680 _PingPongClientPongParams() : super(kVersions.last.size); | 717 _PingPongClientPongParams() : super(kVersions.last.size); |
681 | 718 |
| 719 _PingPongClientPongParams.init( |
| 720 int this.pongValue |
| 721 ) : super(kVersions.last.size); |
| 722 |
682 static _PingPongClientPongParams deserialize(bindings.Message message) { | 723 static _PingPongClientPongParams deserialize(bindings.Message message) { |
683 var decoder = new bindings.Decoder(message); | 724 var decoder = new bindings.Decoder(message); |
684 var result = decode(decoder); | 725 var result = decode(decoder); |
685 if (decoder.excessHandles != null) { | 726 if (decoder.excessHandles != null) { |
686 decoder.excessHandles.forEach((h) => h.close()); | 727 decoder.excessHandles.forEach((h) => h.close()); |
687 } | 728 } |
688 return result; | 729 return result; |
689 } | 730 } |
690 | 731 |
691 static _PingPongClientPongParams decode(bindings.Decoder decoder0) { | 732 static _PingPongClientPongParams decode(bindings.Decoder decoder0) { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
744 | 785 |
745 const int _pingPongServiceMethodSetClientName = 0; | 786 const int _pingPongServiceMethodSetClientName = 0; |
746 const int _pingPongServiceMethodPingName = 1; | 787 const int _pingPongServiceMethodPingName = 1; |
747 const int _pingPongServiceMethodPingTargetUrlName = 2; | 788 const int _pingPongServiceMethodPingTargetUrlName = 2; |
748 const int _pingPongServiceMethodPingTargetServiceName = 3; | 789 const int _pingPongServiceMethodPingTargetServiceName = 3; |
749 const int _pingPongServiceMethodGetPingPongServiceName = 4; | 790 const int _pingPongServiceMethodGetPingPongServiceName = 4; |
750 const int _pingPongServiceMethodGetPingPongServiceDelayedName = 5; | 791 const int _pingPongServiceMethodGetPingPongServiceDelayedName = 5; |
751 const int _pingPongServiceMethodQuitName = 6; | 792 const int _pingPongServiceMethodQuitName = 6; |
752 | 793 |
753 class _PingPongServiceServiceDescription implements service_describer.ServiceDes
cription { | 794 class _PingPongServiceServiceDescription implements service_describer.ServiceDes
cription { |
754 dynamic getTopLevelInterface([Function responseFactory]){ | 795 void getTopLevelInterface(Function responder){ |
755 var interfaceTypeKey = getRuntimeTypeInfo().services["test::PingPongService"
]; | 796 var interfaceTypeKey = getRuntimeTypeInfo().services["test::PingPongService"
]; |
756 var userDefinedType = getAllMojomTypeDefinitions()[interfaceTypeKey]; | 797 var userDefinedType = getAllMojomTypeDefinitions()[interfaceTypeKey]; |
757 return responseFactory(userDefinedType.interfaceType); | 798 responder(userDefinedType.interfaceType); |
758 } | 799 } |
759 | 800 |
760 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 801 void getTypeDefinition(String typeKey, Function responder) { |
761 responseFactory(getAllMojomTypeDefinitions()[typeKey]); | 802 responder(getAllMojomTypeDefinitions()[typeKey]); |
| 803 } |
762 | 804 |
763 dynamic getAllTypeDefinitions([Function responseFactory]) => | 805 void getAllTypeDefinitions(Function responder) { |
764 responseFactory(getAllMojomTypeDefinitions()); | 806 responder(getAllMojomTypeDefinitions()); |
| 807 } |
765 } | 808 } |
766 | 809 |
767 abstract class PingPongService { | 810 abstract class PingPongService { |
768 static const String serviceName = "test::PingPongService"; | 811 static const String serviceName = "test::PingPongService"; |
769 | 812 |
770 static service_describer.ServiceDescription _cachedServiceDescription; | 813 static service_describer.ServiceDescription _cachedServiceDescription; |
771 static service_describer.ServiceDescription get serviceDescription { | 814 static service_describer.ServiceDescription get serviceDescription { |
772 if (_cachedServiceDescription == null) { | 815 if (_cachedServiceDescription == null) { |
773 _cachedServiceDescription = new _PingPongServiceServiceDescription(); | 816 _cachedServiceDescription = new _PingPongServiceServiceDescription(); |
774 } | 817 } |
775 return _cachedServiceDescription; | 818 return _cachedServiceDescription; |
776 } | 819 } |
777 | 820 |
778 static PingPongServiceProxy connectToService( | 821 static PingPongServiceProxy connectToService( |
779 bindings.ServiceConnector s, String url, [String serviceName]) { | 822 bindings.ServiceConnector s, String url, [String serviceName]) { |
780 PingPongServiceProxy p = new PingPongServiceProxy.unbound(); | 823 PingPongServiceProxy p = new PingPongServiceProxy.unbound(); |
781 String name = serviceName ?? PingPongService.serviceName; | 824 String name = serviceName ?? PingPongService.serviceName; |
782 if ((name == null) || name.isEmpty) { | 825 if ((name == null) || name.isEmpty) { |
783 throw new core.MojoApiError( | 826 throw new core.MojoApiError( |
784 "If an interface has no ServiceName, then one must be provided."); | 827 "If an interface has no ServiceName, then one must be provided."); |
785 } | 828 } |
786 s.connectToService(url, p, name); | 829 s.connectToService(url, p, name); |
787 return p; | 830 return p; |
788 } | 831 } |
789 void setClient(PingPongClientInterface client); | 832 void setClient(PingPongClientInterface client); |
790 void ping(int pingValue); | 833 void ping(int pingValue); |
791 dynamic pingTargetUrl(String url,int count,[Function responseFactory = null]); | 834 void pingTargetUrl(String url,int count,void callback(bool ok)); |
792 dynamic pingTargetService(PingPongServiceInterface service,int count,[Function
responseFactory = null]); | 835 void pingTargetService(PingPongServiceInterface service,int count,void callbac
k(bool ok)); |
793 void getPingPongService(PingPongServiceInterfaceRequest service); | 836 void getPingPongService(PingPongServiceInterfaceRequest service); |
794 void getPingPongServiceDelayed(PingPongServiceInterfaceRequest service); | 837 void getPingPongServiceDelayed(PingPongServiceInterfaceRequest service); |
795 void quit(); | 838 void quit(); |
796 } | 839 } |
797 | 840 |
798 abstract class PingPongServiceInterface | 841 abstract class PingPongServiceInterface |
799 implements bindings.MojoInterface<PingPongService>, | 842 implements bindings.MojoInterface<PingPongService>, |
800 PingPongService { | 843 PingPongService { |
801 factory PingPongServiceInterface([PingPongService impl]) => | 844 factory PingPongServiceInterface([PingPongService impl]) => |
802 new PingPongServiceStub.unbound(impl); | 845 new PingPongServiceStub.unbound(impl); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 | 878 |
836 void handleResponse(bindings.ServiceMessage message) { | 879 void handleResponse(bindings.ServiceMessage message) { |
837 switch (message.header.type) { | 880 switch (message.header.type) { |
838 case _pingPongServiceMethodPingTargetUrlName: | 881 case _pingPongServiceMethodPingTargetUrlName: |
839 var r = PingPongServicePingTargetUrlResponseParams.deserialize( | 882 var r = PingPongServicePingTargetUrlResponseParams.deserialize( |
840 message.payload); | 883 message.payload); |
841 if (!message.header.hasRequestId) { | 884 if (!message.header.hasRequestId) { |
842 proxyError("Expected a message with a valid request Id."); | 885 proxyError("Expected a message with a valid request Id."); |
843 return; | 886 return; |
844 } | 887 } |
845 Completer c = completerMap[message.header.requestId]; | 888 Function callback = callbackMap[message.header.requestId]; |
846 if (c == null) { | 889 if (callback == null) { |
847 proxyError( | 890 proxyError( |
848 "Message had unknown request Id: ${message.header.requestId}"); | 891 "Message had unknown request Id: ${message.header.requestId}"); |
849 return; | 892 return; |
850 } | 893 } |
851 completerMap.remove(message.header.requestId); | 894 callbackMap.remove(message.header.requestId); |
852 if (c.isCompleted) { | 895 callback(r.ok ); |
853 proxyError("Response completer already completed"); | |
854 return; | |
855 } | |
856 c.complete(r); | |
857 break; | 896 break; |
858 case _pingPongServiceMethodPingTargetServiceName: | 897 case _pingPongServiceMethodPingTargetServiceName: |
859 var r = PingPongServicePingTargetServiceResponseParams.deserialize( | 898 var r = PingPongServicePingTargetServiceResponseParams.deserialize( |
860 message.payload); | 899 message.payload); |
861 if (!message.header.hasRequestId) { | 900 if (!message.header.hasRequestId) { |
862 proxyError("Expected a message with a valid request Id."); | 901 proxyError("Expected a message with a valid request Id."); |
863 return; | 902 return; |
864 } | 903 } |
865 Completer c = completerMap[message.header.requestId]; | 904 Function callback = callbackMap[message.header.requestId]; |
866 if (c == null) { | 905 if (callback == null) { |
867 proxyError( | 906 proxyError( |
868 "Message had unknown request Id: ${message.header.requestId}"); | 907 "Message had unknown request Id: ${message.header.requestId}"); |
869 return; | 908 return; |
870 } | 909 } |
871 completerMap.remove(message.header.requestId); | 910 callbackMap.remove(message.header.requestId); |
872 if (c.isCompleted) { | 911 callback(r.ok ); |
873 proxyError("Response completer already completed"); | |
874 return; | |
875 } | |
876 c.complete(r); | |
877 break; | 912 break; |
878 default: | 913 default: |
879 proxyError("Unexpected message type: ${message.header.type}"); | 914 proxyError("Unexpected message type: ${message.header.type}"); |
880 close(immediate: true); | 915 close(immediate: true); |
881 break; | 916 break; |
882 } | 917 } |
883 } | 918 } |
884 | 919 |
885 @override | 920 @override |
886 String toString() { | 921 String toString() { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
939 } | 974 } |
940 if (!ctrl.isBound) { | 975 if (!ctrl.isBound) { |
941 ctrl.proxyError("The Proxy is closed."); | 976 ctrl.proxyError("The Proxy is closed."); |
942 return; | 977 return; |
943 } | 978 } |
944 var params = new _PingPongServicePingParams(); | 979 var params = new _PingPongServicePingParams(); |
945 params.pingValue = pingValue; | 980 params.pingValue = pingValue; |
946 ctrl.sendMessage(params, | 981 ctrl.sendMessage(params, |
947 _pingPongServiceMethodPingName); | 982 _pingPongServiceMethodPingName); |
948 } | 983 } |
949 dynamic pingTargetUrl(String url,int count,[Function responseFactory = null])
{ | 984 void pingTargetUrl(String url,int count,void callback(bool ok)) { |
950 if (impl != null) { | 985 if (impl != null) { |
951 return new Future(() => impl.pingTargetUrl(url,count,_PingPongServiceStubC
ontrol._pingPongServicePingTargetUrlResponseParamsFactory)); | 986 impl.pingTargetUrl(url,count,callback); |
| 987 return; |
952 } | 988 } |
953 var params = new _PingPongServicePingTargetUrlParams(); | 989 var params = new _PingPongServicePingTargetUrlParams(); |
954 params.url = url; | 990 params.url = url; |
955 params.count = count; | 991 params.count = count; |
956 return ctrl.sendMessageWithRequestId( | 992 ctrl.sendMessageWithRequestId( |
957 params, | 993 params, |
958 _pingPongServiceMethodPingTargetUrlName, | 994 _pingPongServiceMethodPingTargetUrlName, |
959 -1, | 995 -1, |
960 bindings.MessageHeader.kMessageExpectsResponse); | 996 bindings.MessageHeader.kMessageExpectsResponse, |
| 997 callback); |
961 } | 998 } |
962 dynamic pingTargetService(PingPongServiceInterface service,int count,[Function
responseFactory = null]) { | 999 void pingTargetService(PingPongServiceInterface service,int count,void callbac
k(bool ok)) { |
963 if (impl != null) { | 1000 if (impl != null) { |
964 return new Future(() => impl.pingTargetService(service,count,_PingPongServ
iceStubControl._pingPongServicePingTargetServiceResponseParamsFactory)); | 1001 impl.pingTargetService(service,count,callback); |
| 1002 return; |
965 } | 1003 } |
966 var params = new _PingPongServicePingTargetServiceParams(); | 1004 var params = new _PingPongServicePingTargetServiceParams(); |
967 params.service = service; | 1005 params.service = service; |
968 params.count = count; | 1006 params.count = count; |
969 return ctrl.sendMessageWithRequestId( | 1007 ctrl.sendMessageWithRequestId( |
970 params, | 1008 params, |
971 _pingPongServiceMethodPingTargetServiceName, | 1009 _pingPongServiceMethodPingTargetServiceName, |
972 -1, | 1010 -1, |
973 bindings.MessageHeader.kMessageExpectsResponse); | 1011 bindings.MessageHeader.kMessageExpectsResponse, |
| 1012 callback); |
974 } | 1013 } |
975 void getPingPongService(PingPongServiceInterfaceRequest service) { | 1014 void getPingPongService(PingPongServiceInterfaceRequest service) { |
976 if (impl != null) { | 1015 if (impl != null) { |
977 impl.getPingPongService(service); | 1016 impl.getPingPongService(service); |
978 return; | 1017 return; |
979 } | 1018 } |
980 if (!ctrl.isBound) { | 1019 if (!ctrl.isBound) { |
981 ctrl.proxyError("The Proxy is closed."); | 1020 ctrl.proxyError("The Proxy is closed."); |
982 return; | 1021 return; |
983 } | 1022 } |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1030 core.MojoHandle handle, [PingPongService impl]) | 1069 core.MojoHandle handle, [PingPongService impl]) |
1031 : super.fromHandle(handle, autoBegin: impl != null) { | 1070 : super.fromHandle(handle, autoBegin: impl != null) { |
1032 _impl = impl; | 1071 _impl = impl; |
1033 } | 1072 } |
1034 | 1073 |
1035 _PingPongServiceStubControl.unbound([this._impl]) : super.unbound(); | 1074 _PingPongServiceStubControl.unbound([this._impl]) : super.unbound(); |
1036 | 1075 |
1037 String get serviceName => PingPongService.serviceName; | 1076 String get serviceName => PingPongService.serviceName; |
1038 | 1077 |
1039 | 1078 |
1040 static PingPongServicePingTargetUrlResponseParams _pingPongServicePingTargetUr
lResponseParamsFactory(bool ok) { | 1079 Function _pingPongServicePingTargetUrlResponseParamsResponder( |
1041 var result = new PingPongServicePingTargetUrlResponseParams(); | 1080 int requestId) { |
1042 result.ok = ok; | 1081 return (bool ok) { |
1043 return result; | 1082 var result = new PingPongServicePingTargetUrlResponseParams(); |
| 1083 result.ok = ok; |
| 1084 sendResponse(buildResponseWithId( |
| 1085 result, |
| 1086 _pingPongServiceMethodPingTargetUrlName, |
| 1087 requestId, |
| 1088 bindings.MessageHeader.kMessageIsResponse)); |
| 1089 }; |
1044 } | 1090 } |
1045 static PingPongServicePingTargetServiceResponseParams _pingPongServicePingTarg
etServiceResponseParamsFactory(bool ok) { | 1091 Function _pingPongServicePingTargetServiceResponseParamsResponder( |
1046 var result = new PingPongServicePingTargetServiceResponseParams(); | 1092 int requestId) { |
1047 result.ok = ok; | 1093 return (bool ok) { |
1048 return result; | 1094 var result = new PingPongServicePingTargetServiceResponseParams(); |
| 1095 result.ok = ok; |
| 1096 sendResponse(buildResponseWithId( |
| 1097 result, |
| 1098 _pingPongServiceMethodPingTargetServiceName, |
| 1099 requestId, |
| 1100 bindings.MessageHeader.kMessageIsResponse)); |
| 1101 }; |
1049 } | 1102 } |
1050 | 1103 |
1051 dynamic handleMessage(bindings.ServiceMessage message) { | 1104 void handleMessage(bindings.ServiceMessage message) { |
1052 if (bindings.ControlMessageHandler.isControlMessage(message)) { | 1105 if (bindings.ControlMessageHandler.isControlMessage(message)) { |
1053 return bindings.ControlMessageHandler.handleMessage(this, | 1106 bindings.ControlMessageHandler.handleMessage( |
1054 0, | 1107 this, 0, message); |
1055 message); | 1108 return; |
1056 } | 1109 } |
1057 if (_impl == null) { | 1110 if (_impl == null) { |
1058 throw new core.MojoApiError("$this has no implementation set"); | 1111 throw new core.MojoApiError("$this has no implementation set"); |
1059 } | 1112 } |
1060 switch (message.header.type) { | 1113 switch (message.header.type) { |
1061 case _pingPongServiceMethodSetClientName: | 1114 case _pingPongServiceMethodSetClientName: |
1062 var params = _PingPongServiceSetClientParams.deserialize( | 1115 var params = _PingPongServiceSetClientParams.deserialize( |
1063 message.payload); | 1116 message.payload); |
1064 _impl.setClient(params.client); | 1117 _impl.setClient(params.client); |
1065 break; | 1118 break; |
1066 case _pingPongServiceMethodPingName: | 1119 case _pingPongServiceMethodPingName: |
1067 var params = _PingPongServicePingParams.deserialize( | 1120 var params = _PingPongServicePingParams.deserialize( |
1068 message.payload); | 1121 message.payload); |
1069 _impl.ping(params.pingValue); | 1122 _impl.ping(params.pingValue); |
1070 break; | 1123 break; |
1071 case _pingPongServiceMethodPingTargetUrlName: | 1124 case _pingPongServiceMethodPingTargetUrlName: |
1072 var params = _PingPongServicePingTargetUrlParams.deserialize( | 1125 var params = _PingPongServicePingTargetUrlParams.deserialize( |
1073 message.payload); | 1126 message.payload); |
1074 var response = _impl.pingTargetUrl(params.url,params.count,_pingPongServ
icePingTargetUrlResponseParamsFactory); | 1127 _impl.pingTargetUrl(params.url, params.count, _pingPongServicePingTarget
UrlResponseParamsResponder(message.header.requestId)); |
1075 if (response is Future) { | |
1076 return response.then((response) { | |
1077 if (response != null) { | |
1078 return buildResponseWithId( | |
1079 response, | |
1080 _pingPongServiceMethodPingTargetUrlName, | |
1081 message.header.requestId, | |
1082 bindings.MessageHeader.kMessageIsResponse); | |
1083 } | |
1084 }); | |
1085 } else if (response != null) { | |
1086 return buildResponseWithId( | |
1087 response, | |
1088 _pingPongServiceMethodPingTargetUrlName, | |
1089 message.header.requestId, | |
1090 bindings.MessageHeader.kMessageIsResponse); | |
1091 } | |
1092 break; | 1128 break; |
1093 case _pingPongServiceMethodPingTargetServiceName: | 1129 case _pingPongServiceMethodPingTargetServiceName: |
1094 var params = _PingPongServicePingTargetServiceParams.deserialize( | 1130 var params = _PingPongServicePingTargetServiceParams.deserialize( |
1095 message.payload); | 1131 message.payload); |
1096 var response = _impl.pingTargetService(params.service,params.count,_ping
PongServicePingTargetServiceResponseParamsFactory); | 1132 _impl.pingTargetService(params.service, params.count, _pingPongServicePi
ngTargetServiceResponseParamsResponder(message.header.requestId)); |
1097 if (response is Future) { | |
1098 return response.then((response) { | |
1099 if (response != null) { | |
1100 return buildResponseWithId( | |
1101 response, | |
1102 _pingPongServiceMethodPingTargetServiceName, | |
1103 message.header.requestId, | |
1104 bindings.MessageHeader.kMessageIsResponse); | |
1105 } | |
1106 }); | |
1107 } else if (response != null) { | |
1108 return buildResponseWithId( | |
1109 response, | |
1110 _pingPongServiceMethodPingTargetServiceName, | |
1111 message.header.requestId, | |
1112 bindings.MessageHeader.kMessageIsResponse); | |
1113 } | |
1114 break; | 1133 break; |
1115 case _pingPongServiceMethodGetPingPongServiceName: | 1134 case _pingPongServiceMethodGetPingPongServiceName: |
1116 var params = _PingPongServiceGetPingPongServiceParams.deserialize( | 1135 var params = _PingPongServiceGetPingPongServiceParams.deserialize( |
1117 message.payload); | 1136 message.payload); |
1118 _impl.getPingPongService(params.service); | 1137 _impl.getPingPongService(params.service); |
1119 break; | 1138 break; |
1120 case _pingPongServiceMethodGetPingPongServiceDelayedName: | 1139 case _pingPongServiceMethodGetPingPongServiceDelayedName: |
1121 var params = _PingPongServiceGetPingPongServiceDelayedParams.deserialize
( | 1140 var params = _PingPongServiceGetPingPongServiceDelayedParams.deserialize
( |
1122 message.payload); | 1141 message.payload); |
1123 _impl.getPingPongServiceDelayed(params.service); | 1142 _impl.getPingPongServiceDelayed(params.service); |
1124 break; | 1143 break; |
1125 case _pingPongServiceMethodQuitName: | 1144 case _pingPongServiceMethodQuitName: |
1126 _impl.quit(); | 1145 _impl.quit(); |
1127 break; | 1146 break; |
1128 default: | 1147 default: |
1129 throw new bindings.MojoCodecError("Unexpected message name"); | 1148 throw new bindings.MojoCodecError("Unexpected message name"); |
1130 break; | 1149 break; |
1131 } | 1150 } |
1132 return null; | |
1133 } | 1151 } |
1134 | 1152 |
1135 PingPongService get impl => _impl; | 1153 PingPongService get impl => _impl; |
1136 set impl(PingPongService d) { | 1154 set impl(PingPongService d) { |
1137 if (d == null) { | 1155 if (d == null) { |
1138 throw new core.MojoApiError("$this: Cannot set a null implementation"); | 1156 throw new core.MojoApiError("$this: Cannot set a null implementation"); |
1139 } | 1157 } |
1140 if (isBound && (_impl == null)) { | 1158 if (isBound && (_impl == null)) { |
1141 beginHandlingEvents(); | 1159 beginHandlingEvents(); |
1142 } | 1160 } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1182 return new PingPongServiceStub.fromEndpoint(endpoint); | 1200 return new PingPongServiceStub.fromEndpoint(endpoint); |
1183 } | 1201 } |
1184 | 1202 |
1185 | 1203 |
1186 void setClient(PingPongClientInterface client) { | 1204 void setClient(PingPongClientInterface client) { |
1187 return impl.setClient(client); | 1205 return impl.setClient(client); |
1188 } | 1206 } |
1189 void ping(int pingValue) { | 1207 void ping(int pingValue) { |
1190 return impl.ping(pingValue); | 1208 return impl.ping(pingValue); |
1191 } | 1209 } |
1192 dynamic pingTargetUrl(String url,int count,[Function responseFactory = null])
{ | 1210 void pingTargetUrl(String url,int count,void callback(bool ok)) { |
1193 return impl.pingTargetUrl(url,count,responseFactory); | 1211 return impl.pingTargetUrl(url,count,callback); |
1194 } | 1212 } |
1195 dynamic pingTargetService(PingPongServiceInterface service,int count,[Function
responseFactory = null]) { | 1213 void pingTargetService(PingPongServiceInterface service,int count,void callbac
k(bool ok)) { |
1196 return impl.pingTargetService(service,count,responseFactory); | 1214 return impl.pingTargetService(service,count,callback); |
1197 } | 1215 } |
1198 void getPingPongService(PingPongServiceInterfaceRequest service) { | 1216 void getPingPongService(PingPongServiceInterfaceRequest service) { |
1199 return impl.getPingPongService(service); | 1217 return impl.getPingPongService(service); |
1200 } | 1218 } |
1201 void getPingPongServiceDelayed(PingPongServiceInterfaceRequest service) { | 1219 void getPingPongServiceDelayed(PingPongServiceInterfaceRequest service) { |
1202 return impl.getPingPongServiceDelayed(service); | 1220 return impl.getPingPongServiceDelayed(service); |
1203 } | 1221 } |
1204 void quit() { | 1222 void quit() { |
1205 return impl.quit(); | 1223 return impl.quit(); |
1206 } | 1224 } |
1207 } | 1225 } |
1208 | 1226 |
1209 const int _pingPongClientMethodPongName = 0; | 1227 const int _pingPongClientMethodPongName = 0; |
1210 | 1228 |
1211 class _PingPongClientServiceDescription implements service_describer.ServiceDesc
ription { | 1229 class _PingPongClientServiceDescription implements service_describer.ServiceDesc
ription { |
1212 dynamic getTopLevelInterface([Function responseFactory]) => | 1230 void getTopLevelInterface(Function responder) { |
1213 responseFactory(null); | 1231 responder(null); |
| 1232 } |
1214 | 1233 |
1215 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 1234 void getTypeDefinition(String typeKey, Function responder) { |
1216 responseFactory(null); | 1235 responder(null); |
| 1236 } |
1217 | 1237 |
1218 dynamic getAllTypeDefinitions([Function responseFactory]) => | 1238 void getAllTypeDefinitions(Function responder) { |
1219 responseFactory(null); | 1239 responder(null); |
| 1240 } |
1220 } | 1241 } |
1221 | 1242 |
1222 abstract class PingPongClient { | 1243 abstract class PingPongClient { |
1223 static const String serviceName = null; | 1244 static const String serviceName = null; |
1224 | 1245 |
1225 static service_describer.ServiceDescription _cachedServiceDescription; | 1246 static service_describer.ServiceDescription _cachedServiceDescription; |
1226 static service_describer.ServiceDescription get serviceDescription { | 1247 static service_describer.ServiceDescription get serviceDescription { |
1227 if (_cachedServiceDescription == null) { | 1248 if (_cachedServiceDescription == null) { |
1228 _cachedServiceDescription = new _PingPongClientServiceDescription(); | 1249 _cachedServiceDescription = new _PingPongClientServiceDescription(); |
1229 } | 1250 } |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1359 : super.fromHandle(handle, autoBegin: impl != null) { | 1380 : super.fromHandle(handle, autoBegin: impl != null) { |
1360 _impl = impl; | 1381 _impl = impl; |
1361 } | 1382 } |
1362 | 1383 |
1363 _PingPongClientStubControl.unbound([this._impl]) : super.unbound(); | 1384 _PingPongClientStubControl.unbound([this._impl]) : super.unbound(); |
1364 | 1385 |
1365 String get serviceName => PingPongClient.serviceName; | 1386 String get serviceName => PingPongClient.serviceName; |
1366 | 1387 |
1367 | 1388 |
1368 | 1389 |
1369 dynamic handleMessage(bindings.ServiceMessage message) { | 1390 void handleMessage(bindings.ServiceMessage message) { |
1370 if (bindings.ControlMessageHandler.isControlMessage(message)) { | 1391 if (bindings.ControlMessageHandler.isControlMessage(message)) { |
1371 return bindings.ControlMessageHandler.handleMessage(this, | 1392 bindings.ControlMessageHandler.handleMessage( |
1372 0, | 1393 this, 0, message); |
1373 message); | 1394 return; |
1374 } | 1395 } |
1375 if (_impl == null) { | 1396 if (_impl == null) { |
1376 throw new core.MojoApiError("$this has no implementation set"); | 1397 throw new core.MojoApiError("$this has no implementation set"); |
1377 } | 1398 } |
1378 switch (message.header.type) { | 1399 switch (message.header.type) { |
1379 case _pingPongClientMethodPongName: | 1400 case _pingPongClientMethodPongName: |
1380 var params = _PingPongClientPongParams.deserialize( | 1401 var params = _PingPongClientPongParams.deserialize( |
1381 message.payload); | 1402 message.payload); |
1382 _impl.pong(params.pongValue); | 1403 _impl.pong(params.pongValue); |
1383 break; | 1404 break; |
1384 default: | 1405 default: |
1385 throw new bindings.MojoCodecError("Unexpected message name"); | 1406 throw new bindings.MojoCodecError("Unexpected message name"); |
1386 break; | 1407 break; |
1387 } | 1408 } |
1388 return null; | |
1389 } | 1409 } |
1390 | 1410 |
1391 PingPongClient get impl => _impl; | 1411 PingPongClient get impl => _impl; |
1392 set impl(PingPongClient d) { | 1412 set impl(PingPongClient d) { |
1393 if (d == null) { | 1413 if (d == null) { |
1394 throw new core.MojoApiError("$this: Cannot set a null implementation"); | 1414 throw new core.MojoApiError("$this: Cannot set a null implementation"); |
1395 } | 1415 } |
1396 if (isBound && (_impl == null)) { | 1416 if (isBound && (_impl == null)) { |
1397 beginHandlingEvents(); | 1417 beginHandlingEvents(); |
1398 } | 1418 } |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1450 | 1470 |
1451 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { | 1471 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
1452 return getRuntimeTypeInfo().typeMap; | 1472 return getRuntimeTypeInfo().typeMap; |
1453 } | 1473 } |
1454 | 1474 |
1455 var _runtimeTypeInfo; | 1475 var _runtimeTypeInfo; |
1456 mojom_types.RuntimeTypeInfo _initRuntimeTypeInfo() { | 1476 mojom_types.RuntimeTypeInfo _initRuntimeTypeInfo() { |
1457 // serializedRuntimeTypeInfo contains the bytes of the Mojo serialization of | 1477 // serializedRuntimeTypeInfo contains the bytes of the Mojo serialization of |
1458 // a mojom_types.RuntimeTypeInfo struct describing the Mojom types in this | 1478 // a mojom_types.RuntimeTypeInfo struct describing the Mojom types in this |
1459 // file. The string contains the base64 encoding of the gzip-compressed bytes. | 1479 // file. The string contains the base64 encoding of the gzip-compressed bytes. |
1460 var serializedRuntimeTypeInfo = "H4sIAAAJbogC/+xZTU/bTBB2HD7ywhs+3hdKSigKlFb0A
EZqD4gTUkFFalWlLVXLKVhhC26T2LUdpN565CfwE/oTeuxP4dgjR27tLpltl/VOYkeJbVpWGsyuP3bn2
Zl5ZicFrdUm4HoCV3l8XehnqOSgf4fKNBWfeP7GRtlqHJbtxuEr4h5bVaJ4/h68s7tX3q483d7bYC+uB
t+T53eEdenC+Bpcl6jMod99XLNIw48y/7IwT1ZaD+t/Hmj1l2G8pEktc7W7Kd1ek8Z/QCtr6naLyhgVW
aMiHfsf8FeoG8BxgcoIlQqVN1SMI7tODLd5YNetBnGNuv3eNjy32vrnwHR9w3Qc9nXPYH8rtOcZVsMn7
juzSjzDoXM6dM6K18Julb1YD8zL+/9K0Mj2IeN5huCB4akJeIrfkxtbB9tCBpcKp0XY/37jVJLw4fpeZ
MLrydoaoucU6Mr0XHHJxyZdm0pf3vqtr7zfm4r4ogn3O7WwdoDh8x/4w+VSj81ak6jj3yL4X9z4FKSQM
oH4iQP2coLEHY7vKVy/SPbzFcFHXk9JwQ/DwjiLRaNUIJI+N+skFE/MUBkX4hu/Mwc2jITpwD7lYopvn
fSR1yXy1LCwnzrwCYtFg1SGhH0bFvbtWxbiAzywn29dd6ZgfAb2v6i2j+998p9JKv9c7rcvsE5Q/5GE4
inX+60eLZ6uI/reBp1/6SsG1ZTHVWZf5z2Oqxi/joEtV8EoVPZQjNEeNGn+Uoe8Kmw+2W28PkPSxTC4Z
8LkNZY6r8n/aXmNdZPXtM1rrPZ5TT7leQ2P3+tw3tIj4KO3wWcadGf2s2u6h8R//fKZAp/JhHmrkO0Nb
/F85Yq+guMk5Tfyeb6Uwf0nEyN/jUJe1nRrSr+ZhJw1Dr9pl893iiu5LnBpxy95yCOqdrPhI7jcTTie6
EIf86uoPIT51TzkELJfeXTNHkk/H2kx+RPP/+0PGupPD1PMQzzunAIPZSPgkhVwx84Tv+1HONwqcJpOi
I+4/k5EPtpE9F4A3QN6p+Q8JfOSk0nHuWoc6gKwWqV9LKXgXIXVc8LW39POcwznRynmuXPxoR74K6t/z
iL+yrnuOpy/0sJ3zH62rgHf8TYQAZeBNnw3C2fTJ8RXVHM15e9GSfLdfo/9J6j3VcK7qR+G4znWvx+jX
eh94rlu/fNCwmswAu6DiufkvCxop1ukZn4iB0heVkzITzkORxH9dAfR/wFggOp/U+/vyl+Zfaz8xf4q1
/uHIuA+FKLe/6JpKevf8wnX+8+03tb7mZ5pqPfnkN/HC8i55GcAAAD//zW0L99oJQAA"; | 1480 var serializedRuntimeTypeInfo = "H4sIAAAJbogC/+xazW7TThC3nabNv/33Cwikn0pLQeXQu
gIOVU+VaEUlEApQDj1VVrqkpk4cbKcCTj32EXrkyCNw5DF4jB65wW4zWzbr3cSO3GSNstJgdhNnZ347M
7/Z3Ra0ZpuC5zk8+fFNpq9jyUF/AUseS4D8YGurZNcqJbdWeYu8U7uMBN9/AO/sH5R2D1/sHmyRF9fD7
/Hz1xm9DGZ8A54rWOalv/vMsVEtiDP/KjNPhtOH9H8MNfurMF7UWtuU3trf5j7f4MZ/Qytp4nYXywQW3
qI5PHYb8BeYG8JxCcsolhMsZSxmw/dMxy1bjllx3YqDzGO3iswvnmVW3Q/uY9P3ylf/M48sLzCtep3M5
Jvk30Pc8027FiDvvVVGvlnH89fx/Id+E8d18mJVqAft/w/+oUn8i8f3UoKPDF+NwZf9Pb4RPciSEvhE+
i6DP/QatyKHF7W/YES3m7QNid13wHZi95qHPjawfiL7aeu1/bw/bAvykcZ83qlF9RMZXrcgfq7UPbWcB
hLny2WI137jVWB01xn9+Lg6gyC8kOQtivcFPL9x/vVdghevT1HALyPMOMllY1ggE7+yqigSz9zDMsnkR
/rJPPi4JM2H1i3Xp/zYyT5eT5b3Rpj1NYCfSC7LYhlm1nGEWcfLDIzDy8WJ5vM4D78/A3gsiP3l1w3F1
zSW/67WP2BYLGz/qCL5mOLwKWY+3pTYPwMYXNvPJuWU5eWsxpF7AnlZxt8T4OtlcBqRv8z10V80Tp9ih
7ouaj3bbb7n6yg9xjroUeooW1xHjf/rdZQ9qKNi1VF2+zpqPGV11DUfwP7QiIGX0QavPGBB/Gvf8iooe
PfmpQCvacV4cS+TDC/S+qjFfibQVImz0PmELo83vYf8OAZ1YcNzhHE2DTV0P+Ks3X6jU17KdYFTO/4ah
7ql7DZqgQSn+4rlI4Ppy+KwkFB9ugg1Cx+HPtbbR+njO03rTfzR/Yp7oknj70mKeI7mrZ/Ac5kYOGWYd
ZDtf/76F7NZF+CWV4TvKB5fY/LdtgSHJcAihIOi+0Ge9850NfaFk3DuARoL/WdFwX2h7Dwr6v2F6jxKc
H+aIh6l/lo0kolvcj48K4lvyqVp3D+qwqfEv3ZSyKe0DcXAaagNn87CXvs5CgSn3+J7OZX49CzheAvj0
Eqog/PV7niU9B/20W+MG+LRbuM5x61LNsY6ZAXf4+vCsB/vIMf6jI4kdeGcInFNcTmPGdd7EjweASZSP
Ab3J4nEN/GftUF8S+9PhmOsw3CE+5PXDVt4f7Co2P3JpZbs/QmxW8X7k5zk7xkKkn3UnwAAAP//RrpkZ
1gnAAA="; |
1461 | 1481 |
1462 // Deserialize RuntimeTypeInfo | 1482 // Deserialize RuntimeTypeInfo |
1463 var bytes = BASE64.decode(serializedRuntimeTypeInfo); | 1483 var bytes = BASE64.decode(serializedRuntimeTypeInfo); |
1464 var unzippedBytes = new ZLibDecoder().convert(bytes); | 1484 var unzippedBytes = new ZLibDecoder().convert(bytes); |
1465 var bdata = new ByteData.view(unzippedBytes.buffer); | 1485 var bdata = new ByteData.view(unzippedBytes.buffer); |
1466 var message = new bindings.Message(bdata, null, unzippedBytes.length, 0); | 1486 var message = new bindings.Message(bdata, null, unzippedBytes.length, 0); |
1467 _runtimeTypeInfo = mojom_types.RuntimeTypeInfo.deserialize(message); | 1487 _runtimeTypeInfo = mojom_types.RuntimeTypeInfo.deserialize(message); |
1468 return _runtimeTypeInfo; | 1488 return _runtimeTypeInfo; |
1469 } | 1489 } |
OLD | NEW |