| 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 pingpong_service_mojom; | 5 library pingpong_service_mojom; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; |
| 8 | 9 |
| 9 import 'package:mojo/bindings.dart' as bindings; | 10 import 'package:mojo/bindings.dart' as bindings; |
| 10 import 'package:mojo/core.dart' as core; | 11 import 'package:mojo/core.dart' as core; |
| 12 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; |
| 13 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic
e_describer; |
| 11 | 14 |
| 12 | 15 |
| 13 | 16 |
| 14 class _PingPongServiceSetClientParams extends bindings.Struct { | 17 class _PingPongServiceSetClientParams extends bindings.Struct { |
| 15 static const List<bindings.StructDataHeader> kVersions = const [ | 18 static const List<bindings.StructDataHeader> kVersions = const [ |
| 16 const bindings.StructDataHeader(16, 0) | 19 const bindings.StructDataHeader(16, 0) |
| 17 ]; | 20 ]; |
| 18 Object client = null; | 21 Object client = null; |
| 19 | 22 |
| 20 _PingPongServiceSetClientParams() : super(kVersions.last.size); | 23 _PingPongServiceSetClientParams() : super(kVersions.last.size); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 return "_PingPongServiceSetClientParams(" | 72 return "_PingPongServiceSetClientParams(" |
| 70 "client: $client" ")"; | 73 "client: $client" ")"; |
| 71 } | 74 } |
| 72 | 75 |
| 73 Map toJson() { | 76 Map toJson() { |
| 74 throw new bindings.MojoCodecError( | 77 throw new bindings.MojoCodecError( |
| 75 'Object containing handles cannot be encoded to JSON.'); | 78 'Object containing handles cannot be encoded to JSON.'); |
| 76 } | 79 } |
| 77 } | 80 } |
| 78 | 81 |
| 82 mojom_types.MojomStruct _pingpongServicePingPongServiceSetClientParams() { |
| 83 return new mojom_types.MojomStruct() |
| 84 ..declData = (new mojom_types.DeclarationData() |
| 85 ..shortName = 'PingPongServiceSetClientParams' |
| 86 ..fullIdentifier = 'test.PingPongService_SetClient_Params') |
| 87 ..fields = <mojom_types.StructField>[ |
| 88 new mojom_types.StructField() |
| 89 ..declData = (new mojom_types.DeclarationData() |
| 90 ..shortName = 'Client') |
| 91 ..type = (new mojom_types.Type() |
| 92 ..typeReference = (new mojom_types.TypeReference() |
| 93 ..identifier = 'pingpong_service_PingPongClient__' |
| 94 ..typeKey = 'pingpong_service_PingPongClient__' |
| 95 )),]; |
| 96 } |
| 97 |
| 79 | 98 |
| 80 class _PingPongServicePingParams extends bindings.Struct { | 99 class _PingPongServicePingParams extends bindings.Struct { |
| 81 static const List<bindings.StructDataHeader> kVersions = const [ | 100 static const List<bindings.StructDataHeader> kVersions = const [ |
| 82 const bindings.StructDataHeader(16, 0) | 101 const bindings.StructDataHeader(16, 0) |
| 83 ]; | 102 ]; |
| 84 int pingValue = 0; | 103 int pingValue = 0; |
| 85 | 104 |
| 86 _PingPongServicePingParams() : super(kVersions.last.size); | 105 _PingPongServicePingParams() : super(kVersions.last.size); |
| 87 | 106 |
| 88 static _PingPongServicePingParams deserialize(bindings.Message message) { | 107 static _PingPongServicePingParams deserialize(bindings.Message message) { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 "pingValue: $pingValue" ")"; | 155 "pingValue: $pingValue" ")"; |
| 137 } | 156 } |
| 138 | 157 |
| 139 Map toJson() { | 158 Map toJson() { |
| 140 Map map = new Map(); | 159 Map map = new Map(); |
| 141 map["pingValue"] = pingValue; | 160 map["pingValue"] = pingValue; |
| 142 return map; | 161 return map; |
| 143 } | 162 } |
| 144 } | 163 } |
| 145 | 164 |
| 165 mojom_types.MojomStruct _pingpongServicePingPongServicePingParams() { |
| 166 return new mojom_types.MojomStruct() |
| 167 ..declData = (new mojom_types.DeclarationData() |
| 168 ..shortName = 'PingPongServicePingParams' |
| 169 ..fullIdentifier = 'test.PingPongService_Ping_Params') |
| 170 ..fields = <mojom_types.StructField>[ |
| 171 new mojom_types.StructField() |
| 172 ..declData = (new mojom_types.DeclarationData() |
| 173 ..shortName = 'PingValue') |
| 174 ..type = (new mojom_types.Type() |
| 175 ..simpleType = mojom_types.SimpleType.uint16),]; |
| 176 } |
| 177 |
| 146 | 178 |
| 147 class _PingPongServicePingTargetUrlParams extends bindings.Struct { | 179 class _PingPongServicePingTargetUrlParams extends bindings.Struct { |
| 148 static const List<bindings.StructDataHeader> kVersions = const [ | 180 static const List<bindings.StructDataHeader> kVersions = const [ |
| 149 const bindings.StructDataHeader(24, 0) | 181 const bindings.StructDataHeader(24, 0) |
| 150 ]; | 182 ]; |
| 151 String url = null; | 183 String url = null; |
| 152 int count = 0; | 184 int count = 0; |
| 153 | 185 |
| 154 _PingPongServicePingTargetUrlParams() : super(kVersions.last.size); | 186 _PingPongServicePingTargetUrlParams() : super(kVersions.last.size); |
| 155 | 187 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 } | 244 } |
| 213 | 245 |
| 214 Map toJson() { | 246 Map toJson() { |
| 215 Map map = new Map(); | 247 Map map = new Map(); |
| 216 map["url"] = url; | 248 map["url"] = url; |
| 217 map["count"] = count; | 249 map["count"] = count; |
| 218 return map; | 250 return map; |
| 219 } | 251 } |
| 220 } | 252 } |
| 221 | 253 |
| 254 mojom_types.MojomStruct _pingpongServicePingPongServicePingTargetUrlParams() { |
| 255 return new mojom_types.MojomStruct() |
| 256 ..declData = (new mojom_types.DeclarationData() |
| 257 ..shortName = 'PingPongServicePingTargetUrlParams' |
| 258 ..fullIdentifier = 'test.PingPongService_PingTargetURL_Params') |
| 259 ..fields = <mojom_types.StructField>[ |
| 260 new mojom_types.StructField() |
| 261 ..declData = (new mojom_types.DeclarationData() |
| 262 ..shortName = 'Url') |
| 263 ..type = (new mojom_types.Type() |
| 264 ..stringType = (new mojom_types.StringType())), |
| 265 new mojom_types.StructField() |
| 266 ..declData = (new mojom_types.DeclarationData() |
| 267 ..shortName = 'Count') |
| 268 ..type = (new mojom_types.Type() |
| 269 ..simpleType = mojom_types.SimpleType.uint16),]; |
| 270 } |
| 271 |
| 222 | 272 |
| 223 class PingPongServicePingTargetUrlResponseParams extends bindings.Struct { | 273 class PingPongServicePingTargetUrlResponseParams extends bindings.Struct { |
| 224 static const List<bindings.StructDataHeader> kVersions = const [ | 274 static const List<bindings.StructDataHeader> kVersions = const [ |
| 225 const bindings.StructDataHeader(16, 0) | 275 const bindings.StructDataHeader(16, 0) |
| 226 ]; | 276 ]; |
| 227 bool ok = false; | 277 bool ok = false; |
| 228 | 278 |
| 229 PingPongServicePingTargetUrlResponseParams() : super(kVersions.last.size); | 279 PingPongServicePingTargetUrlResponseParams() : super(kVersions.last.size); |
| 230 | 280 |
| 231 static PingPongServicePingTargetUrlResponseParams deserialize(bindings.Message
message) { | 281 static PingPongServicePingTargetUrlResponseParams deserialize(bindings.Message
message) { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 "ok: $ok" ")"; | 329 "ok: $ok" ")"; |
| 280 } | 330 } |
| 281 | 331 |
| 282 Map toJson() { | 332 Map toJson() { |
| 283 Map map = new Map(); | 333 Map map = new Map(); |
| 284 map["ok"] = ok; | 334 map["ok"] = ok; |
| 285 return map; | 335 return map; |
| 286 } | 336 } |
| 287 } | 337 } |
| 288 | 338 |
| 339 mojom_types.MojomStruct _pingpongServicePingPongServicePingTargetUrlResponsePara
ms() { |
| 340 return new mojom_types.MojomStruct() |
| 341 ..declData = (new mojom_types.DeclarationData() |
| 342 ..shortName = 'PingPongServicePingTargetUrlResponseParams' |
| 343 ..fullIdentifier = 'test.PingPongService_PingTargetURL_ResponseParams') |
| 344 ..fields = <mojom_types.StructField>[ |
| 345 new mojom_types.StructField() |
| 346 ..declData = (new mojom_types.DeclarationData() |
| 347 ..shortName = 'Ok') |
| 348 ..type = (new mojom_types.Type() |
| 349 ..simpleType = mojom_types.SimpleType.bool),]; |
| 350 } |
| 351 |
| 289 | 352 |
| 290 class _PingPongServicePingTargetServiceParams extends bindings.Struct { | 353 class _PingPongServicePingTargetServiceParams extends bindings.Struct { |
| 291 static const List<bindings.StructDataHeader> kVersions = const [ | 354 static const List<bindings.StructDataHeader> kVersions = const [ |
| 292 const bindings.StructDataHeader(24, 0) | 355 const bindings.StructDataHeader(24, 0) |
| 293 ]; | 356 ]; |
| 294 Object service = null; | 357 Object service = null; |
| 295 int count = 0; | 358 int count = 0; |
| 296 | 359 |
| 297 _PingPongServicePingTargetServiceParams() : super(kVersions.last.size); | 360 _PingPongServicePingTargetServiceParams() : super(kVersions.last.size); |
| 298 | 361 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 "service: $service" ", " | 416 "service: $service" ", " |
| 354 "count: $count" ")"; | 417 "count: $count" ")"; |
| 355 } | 418 } |
| 356 | 419 |
| 357 Map toJson() { | 420 Map toJson() { |
| 358 throw new bindings.MojoCodecError( | 421 throw new bindings.MojoCodecError( |
| 359 'Object containing handles cannot be encoded to JSON.'); | 422 'Object containing handles cannot be encoded to JSON.'); |
| 360 } | 423 } |
| 361 } | 424 } |
| 362 | 425 |
| 426 mojom_types.MojomStruct _pingpongServicePingPongServicePingTargetServiceParams()
{ |
| 427 return new mojom_types.MojomStruct() |
| 428 ..declData = (new mojom_types.DeclarationData() |
| 429 ..shortName = 'PingPongServicePingTargetServiceParams' |
| 430 ..fullIdentifier = 'test.PingPongService_PingTargetService_Params') |
| 431 ..fields = <mojom_types.StructField>[ |
| 432 new mojom_types.StructField() |
| 433 ..declData = (new mojom_types.DeclarationData() |
| 434 ..shortName = 'Service') |
| 435 ..type = (new mojom_types.Type() |
| 436 ..typeReference = (new mojom_types.TypeReference() |
| 437 ..identifier = 'pingpong_service_PingPongService__' |
| 438 ..typeKey = 'pingpong_service_PingPongService__' |
| 439 )), |
| 440 new mojom_types.StructField() |
| 441 ..declData = (new mojom_types.DeclarationData() |
| 442 ..shortName = 'Count') |
| 443 ..type = (new mojom_types.Type() |
| 444 ..simpleType = mojom_types.SimpleType.uint16),]; |
| 445 } |
| 446 |
| 363 | 447 |
| 364 class PingPongServicePingTargetServiceResponseParams extends bindings.Struct { | 448 class PingPongServicePingTargetServiceResponseParams extends bindings.Struct { |
| 365 static const List<bindings.StructDataHeader> kVersions = const [ | 449 static const List<bindings.StructDataHeader> kVersions = const [ |
| 366 const bindings.StructDataHeader(16, 0) | 450 const bindings.StructDataHeader(16, 0) |
| 367 ]; | 451 ]; |
| 368 bool ok = false; | 452 bool ok = false; |
| 369 | 453 |
| 370 PingPongServicePingTargetServiceResponseParams() : super(kVersions.last.size); | 454 PingPongServicePingTargetServiceResponseParams() : super(kVersions.last.size); |
| 371 | 455 |
| 372 static PingPongServicePingTargetServiceResponseParams deserialize(bindings.Mes
sage message) { | 456 static PingPongServicePingTargetServiceResponseParams deserialize(bindings.Mes
sage message) { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 "ok: $ok" ")"; | 504 "ok: $ok" ")"; |
| 421 } | 505 } |
| 422 | 506 |
| 423 Map toJson() { | 507 Map toJson() { |
| 424 Map map = new Map(); | 508 Map map = new Map(); |
| 425 map["ok"] = ok; | 509 map["ok"] = ok; |
| 426 return map; | 510 return map; |
| 427 } | 511 } |
| 428 } | 512 } |
| 429 | 513 |
| 514 mojom_types.MojomStruct _pingpongServicePingPongServicePingTargetServiceResponse
Params() { |
| 515 return new mojom_types.MojomStruct() |
| 516 ..declData = (new mojom_types.DeclarationData() |
| 517 ..shortName = 'PingPongServicePingTargetServiceResponseParams' |
| 518 ..fullIdentifier = 'test.PingPongService_PingTargetService_ResponseParams'
) |
| 519 ..fields = <mojom_types.StructField>[ |
| 520 new mojom_types.StructField() |
| 521 ..declData = (new mojom_types.DeclarationData() |
| 522 ..shortName = 'Ok') |
| 523 ..type = (new mojom_types.Type() |
| 524 ..simpleType = mojom_types.SimpleType.bool),]; |
| 525 } |
| 526 |
| 430 | 527 |
| 431 class _PingPongServiceGetPingPongServiceParams extends bindings.Struct { | 528 class _PingPongServiceGetPingPongServiceParams extends bindings.Struct { |
| 432 static const List<bindings.StructDataHeader> kVersions = const [ | 529 static const List<bindings.StructDataHeader> kVersions = const [ |
| 433 const bindings.StructDataHeader(16, 0) | 530 const bindings.StructDataHeader(16, 0) |
| 434 ]; | 531 ]; |
| 435 Object service = null; | 532 Object service = null; |
| 436 | 533 |
| 437 _PingPongServiceGetPingPongServiceParams() : super(kVersions.last.size); | 534 _PingPongServiceGetPingPongServiceParams() : super(kVersions.last.size); |
| 438 | 535 |
| 439 static _PingPongServiceGetPingPongServiceParams deserialize(bindings.Message m
essage) { | 536 static _PingPongServiceGetPingPongServiceParams deserialize(bindings.Message m
essage) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 return "_PingPongServiceGetPingPongServiceParams(" | 583 return "_PingPongServiceGetPingPongServiceParams(" |
| 487 "service: $service" ")"; | 584 "service: $service" ")"; |
| 488 } | 585 } |
| 489 | 586 |
| 490 Map toJson() { | 587 Map toJson() { |
| 491 throw new bindings.MojoCodecError( | 588 throw new bindings.MojoCodecError( |
| 492 'Object containing handles cannot be encoded to JSON.'); | 589 'Object containing handles cannot be encoded to JSON.'); |
| 493 } | 590 } |
| 494 } | 591 } |
| 495 | 592 |
| 593 mojom_types.MojomStruct _pingpongServicePingPongServiceGetPingPongServiceParams(
) { |
| 594 return new mojom_types.MojomStruct() |
| 595 ..declData = (new mojom_types.DeclarationData() |
| 596 ..shortName = 'PingPongServiceGetPingPongServiceParams' |
| 597 ..fullIdentifier = 'test.PingPongService_GetPingPongService_Params') |
| 598 ..fields = <mojom_types.StructField>[ |
| 599 new mojom_types.StructField() |
| 600 ..declData = (new mojom_types.DeclarationData() |
| 601 ..shortName = 'Service') |
| 602 ..type = (new mojom_types.Type() |
| 603 ..typeReference = (new mojom_types.TypeReference() |
| 604 ..isInterfaceRequest = true |
| 605 ..identifier = 'pingpong_service_PingPongService__' |
| 606 ..typeKey = 'pingpong_service_PingPongService__' |
| 607 )),]; |
| 608 } |
| 609 |
| 496 | 610 |
| 497 class _PingPongServiceQuitParams extends bindings.Struct { | 611 class _PingPongServiceQuitParams extends bindings.Struct { |
| 498 static const List<bindings.StructDataHeader> kVersions = const [ | 612 static const List<bindings.StructDataHeader> kVersions = const [ |
| 499 const bindings.StructDataHeader(8, 0) | 613 const bindings.StructDataHeader(8, 0) |
| 500 ]; | 614 ]; |
| 501 | 615 |
| 502 _PingPongServiceQuitParams() : super(kVersions.last.size); | 616 _PingPongServiceQuitParams() : super(kVersions.last.size); |
| 503 | 617 |
| 504 static _PingPongServiceQuitParams deserialize(bindings.Message message) { | 618 static _PingPongServiceQuitParams deserialize(bindings.Message message) { |
| 505 var decoder = new bindings.Decoder(message); | 619 var decoder = new bindings.Decoder(message); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 String toString() { | 658 String toString() { |
| 545 return "_PingPongServiceQuitParams("")"; | 659 return "_PingPongServiceQuitParams("")"; |
| 546 } | 660 } |
| 547 | 661 |
| 548 Map toJson() { | 662 Map toJson() { |
| 549 Map map = new Map(); | 663 Map map = new Map(); |
| 550 return map; | 664 return map; |
| 551 } | 665 } |
| 552 } | 666 } |
| 553 | 667 |
| 668 mojom_types.MojomStruct _pingpongServicePingPongServiceQuitParams() { |
| 669 return new mojom_types.MojomStruct() |
| 670 ..declData = (new mojom_types.DeclarationData() |
| 671 ..shortName = 'PingPongServiceQuitParams' |
| 672 ..fullIdentifier = 'test.PingPongService_Quit_Params') |
| 673 ..fields = <mojom_types.StructField>[]; |
| 674 } |
| 675 |
| 554 | 676 |
| 555 class _PingPongClientPongParams extends bindings.Struct { | 677 class _PingPongClientPongParams extends bindings.Struct { |
| 556 static const List<bindings.StructDataHeader> kVersions = const [ | 678 static const List<bindings.StructDataHeader> kVersions = const [ |
| 557 const bindings.StructDataHeader(16, 0) | 679 const bindings.StructDataHeader(16, 0) |
| 558 ]; | 680 ]; |
| 559 int pongValue = 0; | 681 int pongValue = 0; |
| 560 | 682 |
| 561 _PingPongClientPongParams() : super(kVersions.last.size); | 683 _PingPongClientPongParams() : super(kVersions.last.size); |
| 562 | 684 |
| 563 static _PingPongClientPongParams deserialize(bindings.Message message) { | 685 static _PingPongClientPongParams deserialize(bindings.Message message) { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 "pongValue: $pongValue" ")"; | 733 "pongValue: $pongValue" ")"; |
| 612 } | 734 } |
| 613 | 735 |
| 614 Map toJson() { | 736 Map toJson() { |
| 615 Map map = new Map(); | 737 Map map = new Map(); |
| 616 map["pongValue"] = pongValue; | 738 map["pongValue"] = pongValue; |
| 617 return map; | 739 return map; |
| 618 } | 740 } |
| 619 } | 741 } |
| 620 | 742 |
| 743 mojom_types.MojomStruct _pingpongServicePingPongClientPongParams() { |
| 744 return new mojom_types.MojomStruct() |
| 745 ..declData = (new mojom_types.DeclarationData() |
| 746 ..shortName = 'PingPongClientPongParams' |
| 747 ..fullIdentifier = 'test.PingPongClient_Pong_Params') |
| 748 ..fields = <mojom_types.StructField>[ |
| 749 new mojom_types.StructField() |
| 750 ..declData = (new mojom_types.DeclarationData() |
| 751 ..shortName = 'PongValue') |
| 752 ..type = (new mojom_types.Type() |
| 753 ..simpleType = mojom_types.SimpleType.uint16),]; |
| 754 } |
| 755 |
| 756 |
| 621 const int _PingPongService_setClientName = 0; | 757 const int _PingPongService_setClientName = 0; |
| 622 const int _PingPongService_pingName = 1; | 758 const int _PingPongService_pingName = 1; |
| 623 const int _PingPongService_pingTargetUrlName = 2; | 759 const int _PingPongService_pingTargetUrlName = 2; |
| 624 const int _PingPongService_pingTargetServiceName = 3; | 760 const int _PingPongService_pingTargetServiceName = 3; |
| 625 const int _PingPongService_getPingPongServiceName = 4; | 761 const int _PingPongService_getPingPongServiceName = 4; |
| 626 const int _PingPongService_quitName = 5; | 762 const int _PingPongService_quitName = 5; |
| 627 | 763 |
| 764 mojom_types.MojomInterface _pingpongServicePingPongService() { |
| 765 return new mojom_types.MojomInterface() |
| 766 ..declData = (new mojom_types.DeclarationData() |
| 767 ..shortName = 'PingPongService' |
| 768 ..fullIdentifier = 'test.PingPongService') |
| 769 ..interfaceName = 'PingPongService' |
| 770 ..methods = <int, mojom_types.MojomMethod>{ |
| 771 _PingPongService_setClientName: new mojom_types.MojomMethod() |
| 772 ..declData = (new mojom_types.DeclarationData() |
| 773 ..shortName = 'SetClient') |
| 774 ..ordinal = _PingPongService_setClientName |
| 775 ..parameters = _pingpongServicePingPongServiceSetClientParams(), |
| 776 _PingPongService_pingName: new mojom_types.MojomMethod() |
| 777 ..declData = (new mojom_types.DeclarationData() |
| 778 ..shortName = 'Ping') |
| 779 ..ordinal = _PingPongService_pingName |
| 780 ..parameters = _pingpongServicePingPongServicePingParams(), |
| 781 _PingPongService_pingTargetUrlName: new mojom_types.MojomMethod() |
| 782 ..declData = (new mojom_types.DeclarationData() |
| 783 ..shortName = 'PingTargetUrl') |
| 784 ..ordinal = _PingPongService_pingTargetUrlName |
| 785 ..responseParams = _pingpongServicePingPongServicePingTargetUrlResponseP
arams() |
| 786 ..parameters = _pingpongServicePingPongServicePingTargetUrlParams(), |
| 787 _PingPongService_pingTargetServiceName: new mojom_types.MojomMethod() |
| 788 ..declData = (new mojom_types.DeclarationData() |
| 789 ..shortName = 'PingTargetService') |
| 790 ..ordinal = _PingPongService_pingTargetServiceName |
| 791 ..responseParams = _pingpongServicePingPongServicePingTargetServiceRespo
nseParams() |
| 792 ..parameters = _pingpongServicePingPongServicePingTargetServiceParams(), |
| 793 _PingPongService_getPingPongServiceName: new mojom_types.MojomMethod() |
| 794 ..declData = (new mojom_types.DeclarationData() |
| 795 ..shortName = 'GetPingPongService') |
| 796 ..ordinal = _PingPongService_getPingPongServiceName |
| 797 ..parameters = _pingpongServicePingPongServiceGetPingPongServiceParams()
, |
| 798 _PingPongService_quitName: new mojom_types.MojomMethod() |
| 799 ..declData = (new mojom_types.DeclarationData() |
| 800 ..shortName = 'Quit') |
| 801 ..ordinal = _PingPongService_quitName |
| 802 ..parameters = _pingpongServicePingPongServiceQuitParams(), |
| 803 }; |
| 804 } |
| 805 |
| 806 class _PingPongServiceServiceDescription implements service_describer.ServiceDes
cription { |
| 807 dynamic getTopLevelInterface([Function responseFactory]) => |
| 808 _pingpongServicePingPongService(); |
| 809 |
| 810 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 811 getAllMojomTypeDefinitions()[typeKey]; |
| 812 |
| 813 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 814 getAllMojomTypeDefinitions(); |
| 815 } |
| 816 |
| 628 abstract class PingPongService { | 817 abstract class PingPongService { |
| 629 static const String serviceName = "test::PingPongService"; | 818 static const String serviceName = "test::PingPongService"; |
| 630 void setClient(Object client); | 819 void setClient(Object client); |
| 631 void ping(int pingValue); | 820 void ping(int pingValue); |
| 632 dynamic pingTargetUrl(String url,int count,[Function responseFactory = null]); | 821 dynamic pingTargetUrl(String url,int count,[Function responseFactory = null]); |
| 633 dynamic pingTargetService(Object service,int count,[Function responseFactory =
null]); | 822 dynamic pingTargetService(Object service,int count,[Function responseFactory =
null]); |
| 634 void getPingPongService(Object service); | 823 void getPingPongService(Object service); |
| 635 void quit(); | 824 void quit(); |
| 636 } | 825 } |
| 637 | 826 |
| 638 | 827 |
| 639 class _PingPongServiceProxyImpl extends bindings.Proxy { | 828 class _PingPongServiceProxyImpl extends bindings.Proxy { |
| 640 _PingPongServiceProxyImpl.fromEndpoint( | 829 _PingPongServiceProxyImpl.fromEndpoint( |
| 641 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 830 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
| 642 | 831 |
| 643 _PingPongServiceProxyImpl.fromHandle(core.MojoHandle handle) : | 832 _PingPongServiceProxyImpl.fromHandle(core.MojoHandle handle) : |
| 644 super.fromHandle(handle); | 833 super.fromHandle(handle); |
| 645 | 834 |
| 646 _PingPongServiceProxyImpl.unbound() : super.unbound(); | 835 _PingPongServiceProxyImpl.unbound() : super.unbound(); |
| 647 | 836 |
| 648 static _PingPongServiceProxyImpl newFromEndpoint( | 837 static _PingPongServiceProxyImpl newFromEndpoint( |
| 649 core.MojoMessagePipeEndpoint endpoint) { | 838 core.MojoMessagePipeEndpoint endpoint) { |
| 650 assert(endpoint.setDescription("For _PingPongServiceProxyImpl")); | 839 assert(endpoint.setDescription("For _PingPongServiceProxyImpl")); |
| 651 return new _PingPongServiceProxyImpl.fromEndpoint(endpoint); | 840 return new _PingPongServiceProxyImpl.fromEndpoint(endpoint); |
| 652 } | 841 } |
| 653 | 842 |
| 843 service_describer.ServiceDescription get serviceDescription => |
| 844 new _PingPongServiceServiceDescription(); |
| 845 |
| 654 void handleResponse(bindings.ServiceMessage message) { | 846 void handleResponse(bindings.ServiceMessage message) { |
| 655 switch (message.header.type) { | 847 switch (message.header.type) { |
| 656 case _PingPongService_pingTargetUrlName: | 848 case _PingPongService_pingTargetUrlName: |
| 657 var r = PingPongServicePingTargetUrlResponseParams.deserialize( | 849 var r = PingPongServicePingTargetUrlResponseParams.deserialize( |
| 658 message.payload); | 850 message.payload); |
| 659 if (!message.header.hasRequestId) { | 851 if (!message.header.hasRequestId) { |
| 660 proxyError("Expected a message with a valid request Id."); | 852 proxyError("Expected a message with a valid request Id."); |
| 661 return; | 853 return; |
| 662 } | 854 } |
| 663 Completer c = completerMap[message.header.requestId]; | 855 Completer c = completerMap[message.header.requestId]; |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 942 assert(_impl == null); | 1134 assert(_impl == null); |
| 943 _impl = d; | 1135 _impl = d; |
| 944 } | 1136 } |
| 945 | 1137 |
| 946 String toString() { | 1138 String toString() { |
| 947 var superString = super.toString(); | 1139 var superString = super.toString(); |
| 948 return "PingPongServiceStub($superString)"; | 1140 return "PingPongServiceStub($superString)"; |
| 949 } | 1141 } |
| 950 | 1142 |
| 951 int get version => 0; | 1143 int get version => 0; |
| 1144 |
| 1145 service_describer.ServiceDescription get serviceDescription => |
| 1146 new _PingPongServiceServiceDescription(); |
| 952 } | 1147 } |
| 953 | 1148 |
| 954 const int _PingPongClient_pongName = 0; | 1149 const int _PingPongClient_pongName = 0; |
| 955 | 1150 |
| 1151 mojom_types.MojomInterface _pingpongServicePingPongClient() { |
| 1152 return new mojom_types.MojomInterface() |
| 1153 ..declData = (new mojom_types.DeclarationData() |
| 1154 ..shortName = 'PingPongClient' |
| 1155 ..fullIdentifier = 'test.PingPongClient') |
| 1156 ..interfaceName = 'PingPongClient' |
| 1157 ..methods = <int, mojom_types.MojomMethod>{ |
| 1158 _PingPongClient_pongName: new mojom_types.MojomMethod() |
| 1159 ..declData = (new mojom_types.DeclarationData() |
| 1160 ..shortName = 'Pong') |
| 1161 ..ordinal = _PingPongClient_pongName |
| 1162 ..parameters = _pingpongServicePingPongClientPongParams(), |
| 1163 }; |
| 1164 } |
| 1165 |
| 1166 class _PingPongClientServiceDescription implements service_describer.ServiceDesc
ription { |
| 1167 dynamic getTopLevelInterface([Function responseFactory]) => |
| 1168 _pingpongServicePingPongClient(); |
| 1169 |
| 1170 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 1171 getAllMojomTypeDefinitions()[typeKey]; |
| 1172 |
| 1173 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 1174 getAllMojomTypeDefinitions(); |
| 1175 } |
| 1176 |
| 956 abstract class PingPongClient { | 1177 abstract class PingPongClient { |
| 957 static const String serviceName = null; | 1178 static const String serviceName = null; |
| 958 void pong(int pongValue); | 1179 void pong(int pongValue); |
| 959 } | 1180 } |
| 960 | 1181 |
| 961 | 1182 |
| 962 class _PingPongClientProxyImpl extends bindings.Proxy { | 1183 class _PingPongClientProxyImpl extends bindings.Proxy { |
| 963 _PingPongClientProxyImpl.fromEndpoint( | 1184 _PingPongClientProxyImpl.fromEndpoint( |
| 964 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1185 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
| 965 | 1186 |
| 966 _PingPongClientProxyImpl.fromHandle(core.MojoHandle handle) : | 1187 _PingPongClientProxyImpl.fromHandle(core.MojoHandle handle) : |
| 967 super.fromHandle(handle); | 1188 super.fromHandle(handle); |
| 968 | 1189 |
| 969 _PingPongClientProxyImpl.unbound() : super.unbound(); | 1190 _PingPongClientProxyImpl.unbound() : super.unbound(); |
| 970 | 1191 |
| 971 static _PingPongClientProxyImpl newFromEndpoint( | 1192 static _PingPongClientProxyImpl newFromEndpoint( |
| 972 core.MojoMessagePipeEndpoint endpoint) { | 1193 core.MojoMessagePipeEndpoint endpoint) { |
| 973 assert(endpoint.setDescription("For _PingPongClientProxyImpl")); | 1194 assert(endpoint.setDescription("For _PingPongClientProxyImpl")); |
| 974 return new _PingPongClientProxyImpl.fromEndpoint(endpoint); | 1195 return new _PingPongClientProxyImpl.fromEndpoint(endpoint); |
| 975 } | 1196 } |
| 976 | 1197 |
| 1198 service_describer.ServiceDescription get serviceDescription => |
| 1199 new _PingPongClientServiceDescription(); |
| 1200 |
| 977 void handleResponse(bindings.ServiceMessage message) { | 1201 void handleResponse(bindings.ServiceMessage message) { |
| 978 switch (message.header.type) { | 1202 switch (message.header.type) { |
| 979 default: | 1203 default: |
| 980 proxyError("Unexpected message type: ${message.header.type}"); | 1204 proxyError("Unexpected message type: ${message.header.type}"); |
| 981 close(immediate: true); | 1205 close(immediate: true); |
| 982 break; | 1206 break; |
| 983 } | 1207 } |
| 984 } | 1208 } |
| 985 | 1209 |
| 986 String toString() { | 1210 String toString() { |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1110 assert(_impl == null); | 1334 assert(_impl == null); |
| 1111 _impl = d; | 1335 _impl = d; |
| 1112 } | 1336 } |
| 1113 | 1337 |
| 1114 String toString() { | 1338 String toString() { |
| 1115 var superString = super.toString(); | 1339 var superString = super.toString(); |
| 1116 return "PingPongClientStub($superString)"; | 1340 return "PingPongClientStub($superString)"; |
| 1117 } | 1341 } |
| 1118 | 1342 |
| 1119 int get version => 0; | 1343 int get version => 0; |
| 1344 |
| 1345 service_describer.ServiceDescription get serviceDescription => |
| 1346 new _PingPongClientServiceDescription(); |
| 1120 } | 1347 } |
| 1121 | 1348 |
| 1122 | 1349 |
| 1350 Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
| 1351 var map = new HashMap<String, mojom_types.UserDefinedType>(); |
| 1352 map["pingpong_service_PingPongService_SetClient_Params__"] = |
| 1353 new mojom_types.UserDefinedType() |
| 1354 ..structType = _pingpongServicePingPongServiceSetClientParams(); |
| 1355 map["pingpong_service_PingPongService_Ping_Params__"] = |
| 1356 new mojom_types.UserDefinedType() |
| 1357 ..structType = _pingpongServicePingPongServicePingParams(); |
| 1358 map["pingpong_service_PingPongService_PingTargetURL_Params__"] = |
| 1359 new mojom_types.UserDefinedType() |
| 1360 ..structType = _pingpongServicePingPongServicePingTargetUrlParams(); |
| 1361 map["pingpong_service_PingPongService_PingTargetURL_ResponseParams__"] = |
| 1362 new mojom_types.UserDefinedType() |
| 1363 ..structType = _pingpongServicePingPongServicePingTargetUrlResponseParams(
); |
| 1364 map["pingpong_service_PingPongService_PingTargetService_Params__"] = |
| 1365 new mojom_types.UserDefinedType() |
| 1366 ..structType = _pingpongServicePingPongServicePingTargetServiceParams(); |
| 1367 map["pingpong_service_PingPongService_PingTargetService_ResponseParams__"] = |
| 1368 new mojom_types.UserDefinedType() |
| 1369 ..structType = _pingpongServicePingPongServicePingTargetServiceResponsePar
ams(); |
| 1370 map["pingpong_service_PingPongService_GetPingPongService_Params__"] = |
| 1371 new mojom_types.UserDefinedType() |
| 1372 ..structType = _pingpongServicePingPongServiceGetPingPongServiceParams(); |
| 1373 map["pingpong_service_PingPongService_Quit_Params__"] = |
| 1374 new mojom_types.UserDefinedType() |
| 1375 ..structType = _pingpongServicePingPongServiceQuitParams(); |
| 1376 map["pingpong_service_PingPongClient_Pong_Params__"] = |
| 1377 new mojom_types.UserDefinedType() |
| 1378 ..structType = _pingpongServicePingPongClientPongParams(); |
| 1379 map["pingpong_service_PingPongService__"] = |
| 1380 new mojom_types.UserDefinedType() |
| 1381 ..interfaceType = _pingpongServicePingPongService(); |
| 1382 map["pingpong_service_PingPongClient__"] = |
| 1383 new mojom_types.UserDefinedType() |
| 1384 ..interfaceType = _pingpongServicePingPongClient(); |
| 1385 return map; |
| 1386 } |
| 1387 |
| 1388 var _mojomDesc; |
| 1389 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
| 1390 if (_mojomDesc == null) { |
| 1391 _mojomDesc = _initDescriptions(); |
| 1392 } |
| 1393 return _mojomDesc; |
| 1394 } |
| 1395 |
| OLD | NEW |