| 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 contacts_mojom; | 5 library contacts_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 Contact extends bindings.Struct { | 17 class Contact extends bindings.Struct { |
| 15 static const List<bindings.StructDataHeader> kVersions = const [ | 18 static const List<bindings.StructDataHeader> kVersions = const [ |
| 16 const bindings.StructDataHeader(24, 0) | 19 const bindings.StructDataHeader(24, 0) |
| 17 ]; | 20 ]; |
| 18 int id = 0; | 21 int id = 0; |
| 19 String name = null; | 22 String name = null; |
| 20 | 23 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 "name: $name" ")"; | 81 "name: $name" ")"; |
| 79 } | 82 } |
| 80 | 83 |
| 81 Map toJson() { | 84 Map toJson() { |
| 82 Map map = new Map(); | 85 Map map = new Map(); |
| 83 map["id"] = id; | 86 map["id"] = id; |
| 84 map["name"] = name; | 87 map["name"] = name; |
| 85 return map; | 88 return map; |
| 86 } | 89 } |
| 87 } | 90 } |
| 91 mojom_types.MojomStruct _contacts_Contact__() { |
| 92 return new mojom_types.MojomStruct() |
| 93 ..declData = (new mojom_types.DeclarationData() |
| 94 ..shortName = 'Contact' |
| 95 ..fullIdentifier = 'contacts.Contact') |
| 96 ..fields = <mojom_types.StructField>[ |
| 97 new mojom_types.StructField() |
| 98 ..declData = (new mojom_types.DeclarationData()..shortName = 'Id') |
| 99 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t64), |
| 100 |
| 101 new mojom_types.StructField() |
| 102 ..declData = (new mojom_types.DeclarationData()..shortName = 'Name') |
| 103 ..type = (new mojom_types.Type() |
| 104 ..stringType = (new mojom_types.StringType()..nullable = false)), |
| 105 ]; |
| 106 } |
| 88 | 107 |
| 89 | 108 |
| 90 class _ContactsServiceGetCountParams extends bindings.Struct { | 109 class _ContactsServiceGetCountParams extends bindings.Struct { |
| 91 static const List<bindings.StructDataHeader> kVersions = const [ | 110 static const List<bindings.StructDataHeader> kVersions = const [ |
| 92 const bindings.StructDataHeader(16, 0) | 111 const bindings.StructDataHeader(16, 0) |
| 93 ]; | 112 ]; |
| 94 String filter = null; | 113 String filter = null; |
| 95 | 114 |
| 96 _ContactsServiceGetCountParams() : super(kVersions.last.size); | 115 _ContactsServiceGetCountParams() : super(kVersions.last.size); |
| 97 | 116 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 return "_ContactsServiceGetCountParams(" | 164 return "_ContactsServiceGetCountParams(" |
| 146 "filter: $filter" ")"; | 165 "filter: $filter" ")"; |
| 147 } | 166 } |
| 148 | 167 |
| 149 Map toJson() { | 168 Map toJson() { |
| 150 Map map = new Map(); | 169 Map map = new Map(); |
| 151 map["filter"] = filter; | 170 map["filter"] = filter; |
| 152 return map; | 171 return map; |
| 153 } | 172 } |
| 154 } | 173 } |
| 174 mojom_types.MojomStruct _contacts_ContactsService_GetCount_Params__() { |
| 175 return new mojom_types.MojomStruct() |
| 176 ..declData = (new mojom_types.DeclarationData() |
| 177 ..shortName = '_ContactsServiceGetCountParams' |
| 178 ..fullIdentifier = 'contacts._ContactsServiceGetCountParams') |
| 179 ..fields = <mojom_types.StructField>[ |
| 180 new mojom_types.StructField() |
| 181 ..declData = (new mojom_types.DeclarationData()..shortName = 'Filter') |
| 182 ..type = (new mojom_types.Type() |
| 183 ..stringType = (new mojom_types.StringType()..nullable = true)), |
| 184 ]; |
| 185 } |
| 155 | 186 |
| 156 | 187 |
| 157 class ContactsServiceGetCountResponseParams extends bindings.Struct { | 188 class ContactsServiceGetCountResponseParams extends bindings.Struct { |
| 158 static const List<bindings.StructDataHeader> kVersions = const [ | 189 static const List<bindings.StructDataHeader> kVersions = const [ |
| 159 const bindings.StructDataHeader(16, 0) | 190 const bindings.StructDataHeader(16, 0) |
| 160 ]; | 191 ]; |
| 161 int count = 0; | 192 int count = 0; |
| 162 | 193 |
| 163 ContactsServiceGetCountResponseParams() : super(kVersions.last.size); | 194 ContactsServiceGetCountResponseParams() : super(kVersions.last.size); |
| 164 | 195 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 return "ContactsServiceGetCountResponseParams(" | 243 return "ContactsServiceGetCountResponseParams(" |
| 213 "count: $count" ")"; | 244 "count: $count" ")"; |
| 214 } | 245 } |
| 215 | 246 |
| 216 Map toJson() { | 247 Map toJson() { |
| 217 Map map = new Map(); | 248 Map map = new Map(); |
| 218 map["count"] = count; | 249 map["count"] = count; |
| 219 return map; | 250 return map; |
| 220 } | 251 } |
| 221 } | 252 } |
| 253 mojom_types.MojomStruct _contacts_ContactsService_GetCount_ResponseParams__() { |
| 254 return new mojom_types.MojomStruct() |
| 255 ..declData = (new mojom_types.DeclarationData() |
| 256 ..shortName = 'ContactsServiceGetCountResponseParams' |
| 257 ..fullIdentifier = 'contacts.ContactsServiceGetCountResponseParams') |
| 258 ..fields = <mojom_types.StructField>[ |
| 259 new mojom_types.StructField() |
| 260 ..declData = (new mojom_types.DeclarationData()..shortName = 'Count') |
| 261 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.ui
nt64), |
| 262 ]; |
| 263 } |
| 222 | 264 |
| 223 | 265 |
| 224 class _ContactsServiceGetParams extends bindings.Struct { | 266 class _ContactsServiceGetParams extends bindings.Struct { |
| 225 static const List<bindings.StructDataHeader> kVersions = const [ | 267 static const List<bindings.StructDataHeader> kVersions = const [ |
| 226 const bindings.StructDataHeader(24, 0) | 268 const bindings.StructDataHeader(24, 0) |
| 227 ]; | 269 ]; |
| 228 String filter = null; | 270 String filter = null; |
| 229 int offset = 0; | 271 int offset = 0; |
| 230 int limit = 0; | 272 int limit = 0; |
| 231 | 273 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 } | 339 } |
| 298 | 340 |
| 299 Map toJson() { | 341 Map toJson() { |
| 300 Map map = new Map(); | 342 Map map = new Map(); |
| 301 map["filter"] = filter; | 343 map["filter"] = filter; |
| 302 map["offset"] = offset; | 344 map["offset"] = offset; |
| 303 map["limit"] = limit; | 345 map["limit"] = limit; |
| 304 return map; | 346 return map; |
| 305 } | 347 } |
| 306 } | 348 } |
| 349 mojom_types.MojomStruct _contacts_ContactsService_Get_Params__() { |
| 350 return new mojom_types.MojomStruct() |
| 351 ..declData = (new mojom_types.DeclarationData() |
| 352 ..shortName = '_ContactsServiceGetParams' |
| 353 ..fullIdentifier = 'contacts._ContactsServiceGetParams') |
| 354 ..fields = <mojom_types.StructField>[ |
| 355 new mojom_types.StructField() |
| 356 ..declData = (new mojom_types.DeclarationData()..shortName = 'Filter') |
| 357 ..type = (new mojom_types.Type() |
| 358 ..stringType = (new mojom_types.StringType()..nullable = true)), |
| 359 |
| 360 new mojom_types.StructField() |
| 361 ..declData = (new mojom_types.DeclarationData()..shortName = 'Offset') |
| 362 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.ui
nt32), |
| 363 |
| 364 new mojom_types.StructField() |
| 365 ..declData = (new mojom_types.DeclarationData()..shortName = 'Limit') |
| 366 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.ui
nt32), |
| 367 ]; |
| 368 } |
| 307 | 369 |
| 308 | 370 |
| 309 class ContactsServiceGetResponseParams extends bindings.Struct { | 371 class ContactsServiceGetResponseParams extends bindings.Struct { |
| 310 static const List<bindings.StructDataHeader> kVersions = const [ | 372 static const List<bindings.StructDataHeader> kVersions = const [ |
| 311 const bindings.StructDataHeader(16, 0) | 373 const bindings.StructDataHeader(16, 0) |
| 312 ]; | 374 ]; |
| 313 List<Contact> contacts = null; | 375 List<Contact> contacts = null; |
| 314 | 376 |
| 315 ContactsServiceGetResponseParams() : super(kVersions.last.size); | 377 ContactsServiceGetResponseParams() : super(kVersions.last.size); |
| 316 | 378 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 return "ContactsServiceGetResponseParams(" | 443 return "ContactsServiceGetResponseParams(" |
| 382 "contacts: $contacts" ")"; | 444 "contacts: $contacts" ")"; |
| 383 } | 445 } |
| 384 | 446 |
| 385 Map toJson() { | 447 Map toJson() { |
| 386 Map map = new Map(); | 448 Map map = new Map(); |
| 387 map["contacts"] = contacts; | 449 map["contacts"] = contacts; |
| 388 return map; | 450 return map; |
| 389 } | 451 } |
| 390 } | 452 } |
| 453 mojom_types.MojomStruct _contacts_ContactsService_Get_ResponseParams__() { |
| 454 return new mojom_types.MojomStruct() |
| 455 ..declData = (new mojom_types.DeclarationData() |
| 456 ..shortName = 'ContactsServiceGetResponseParams' |
| 457 ..fullIdentifier = 'contacts.ContactsServiceGetResponseParams') |
| 458 ..fields = <mojom_types.StructField>[ |
| 459 new mojom_types.StructField() |
| 460 ..declData = (new mojom_types.DeclarationData()..shortName = 'Contacts') |
| 461 ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType
() |
| 462 ..elementType = (new mojom_types.Type() |
| 463 ..typeReference = (new mojom_types.TypeReference() |
| 464 |
| 465 ..identifier = '_contacts_Contact__' |
| 466 ..typeKey = '_contacts_Contact__' |
| 467 )))), |
| 468 ]; |
| 469 } |
| 391 | 470 |
| 392 | 471 |
| 393 class _ContactsServiceGetEmailsParams extends bindings.Struct { | 472 class _ContactsServiceGetEmailsParams extends bindings.Struct { |
| 394 static const List<bindings.StructDataHeader> kVersions = const [ | 473 static const List<bindings.StructDataHeader> kVersions = const [ |
| 395 const bindings.StructDataHeader(16, 0) | 474 const bindings.StructDataHeader(16, 0) |
| 396 ]; | 475 ]; |
| 397 int id = 0; | 476 int id = 0; |
| 398 | 477 |
| 399 _ContactsServiceGetEmailsParams() : super(kVersions.last.size); | 478 _ContactsServiceGetEmailsParams() : super(kVersions.last.size); |
| 400 | 479 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 return "_ContactsServiceGetEmailsParams(" | 527 return "_ContactsServiceGetEmailsParams(" |
| 449 "id: $id" ")"; | 528 "id: $id" ")"; |
| 450 } | 529 } |
| 451 | 530 |
| 452 Map toJson() { | 531 Map toJson() { |
| 453 Map map = new Map(); | 532 Map map = new Map(); |
| 454 map["id"] = id; | 533 map["id"] = id; |
| 455 return map; | 534 return map; |
| 456 } | 535 } |
| 457 } | 536 } |
| 537 mojom_types.MojomStruct _contacts_ContactsService_GetEmails_Params__() { |
| 538 return new mojom_types.MojomStruct() |
| 539 ..declData = (new mojom_types.DeclarationData() |
| 540 ..shortName = '_ContactsServiceGetEmailsParams' |
| 541 ..fullIdentifier = 'contacts._ContactsServiceGetEmailsParams') |
| 542 ..fields = <mojom_types.StructField>[ |
| 543 new mojom_types.StructField() |
| 544 ..declData = (new mojom_types.DeclarationData()..shortName = 'Id') |
| 545 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t64), |
| 546 ]; |
| 547 } |
| 458 | 548 |
| 459 | 549 |
| 460 class ContactsServiceGetEmailsResponseParams extends bindings.Struct { | 550 class ContactsServiceGetEmailsResponseParams extends bindings.Struct { |
| 461 static const List<bindings.StructDataHeader> kVersions = const [ | 551 static const List<bindings.StructDataHeader> kVersions = const [ |
| 462 const bindings.StructDataHeader(16, 0) | 552 const bindings.StructDataHeader(16, 0) |
| 463 ]; | 553 ]; |
| 464 List<String> emails = null; | 554 List<String> emails = null; |
| 465 | 555 |
| 466 ContactsServiceGetEmailsResponseParams() : super(kVersions.last.size); | 556 ContactsServiceGetEmailsResponseParams() : super(kVersions.last.size); |
| 467 | 557 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 return "ContactsServiceGetEmailsResponseParams(" | 621 return "ContactsServiceGetEmailsResponseParams(" |
| 532 "emails: $emails" ")"; | 622 "emails: $emails" ")"; |
| 533 } | 623 } |
| 534 | 624 |
| 535 Map toJson() { | 625 Map toJson() { |
| 536 Map map = new Map(); | 626 Map map = new Map(); |
| 537 map["emails"] = emails; | 627 map["emails"] = emails; |
| 538 return map; | 628 return map; |
| 539 } | 629 } |
| 540 } | 630 } |
| 631 mojom_types.MojomStruct _contacts_ContactsService_GetEmails_ResponseParams__() { |
| 632 return new mojom_types.MojomStruct() |
| 633 ..declData = (new mojom_types.DeclarationData() |
| 634 ..shortName = 'ContactsServiceGetEmailsResponseParams' |
| 635 ..fullIdentifier = 'contacts.ContactsServiceGetEmailsResponseParams') |
| 636 ..fields = <mojom_types.StructField>[ |
| 637 new mojom_types.StructField() |
| 638 ..declData = (new mojom_types.DeclarationData()..shortName = 'Emails') |
| 639 ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType
() |
| 640 ..elementType = (new mojom_types.Type() |
| 641 ..stringType = (new mojom_types.StringType()..nullable = false)))), |
| 642 ]; |
| 643 } |
| 541 | 644 |
| 542 | 645 |
| 543 class _ContactsServiceGetPhotoParams extends bindings.Struct { | 646 class _ContactsServiceGetPhotoParams extends bindings.Struct { |
| 544 static const List<bindings.StructDataHeader> kVersions = const [ | 647 static const List<bindings.StructDataHeader> kVersions = const [ |
| 545 const bindings.StructDataHeader(24, 0) | 648 const bindings.StructDataHeader(24, 0) |
| 546 ]; | 649 ]; |
| 547 int id = 0; | 650 int id = 0; |
| 548 bool highResolution = false; | 651 bool highResolution = false; |
| 549 | 652 |
| 550 _ContactsServiceGetPhotoParams() : super(kVersions.last.size); | 653 _ContactsServiceGetPhotoParams() : super(kVersions.last.size); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 607 "highResolution: $highResolution" ")"; | 710 "highResolution: $highResolution" ")"; |
| 608 } | 711 } |
| 609 | 712 |
| 610 Map toJson() { | 713 Map toJson() { |
| 611 Map map = new Map(); | 714 Map map = new Map(); |
| 612 map["id"] = id; | 715 map["id"] = id; |
| 613 map["highResolution"] = highResolution; | 716 map["highResolution"] = highResolution; |
| 614 return map; | 717 return map; |
| 615 } | 718 } |
| 616 } | 719 } |
| 720 mojom_types.MojomStruct _contacts_ContactsService_GetPhoto_Params__() { |
| 721 return new mojom_types.MojomStruct() |
| 722 ..declData = (new mojom_types.DeclarationData() |
| 723 ..shortName = '_ContactsServiceGetPhotoParams' |
| 724 ..fullIdentifier = 'contacts._ContactsServiceGetPhotoParams') |
| 725 ..fields = <mojom_types.StructField>[ |
| 726 new mojom_types.StructField() |
| 727 ..declData = (new mojom_types.DeclarationData()..shortName = 'Id') |
| 728 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t64), |
| 729 |
| 730 new mojom_types.StructField() |
| 731 ..declData = (new mojom_types.DeclarationData()..shortName = 'HighResolu
tion') |
| 732 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bo
ol), |
| 733 ]; |
| 734 } |
| 617 | 735 |
| 618 | 736 |
| 619 class ContactsServiceGetPhotoResponseParams extends bindings.Struct { | 737 class ContactsServiceGetPhotoResponseParams extends bindings.Struct { |
| 620 static const List<bindings.StructDataHeader> kVersions = const [ | 738 static const List<bindings.StructDataHeader> kVersions = const [ |
| 621 const bindings.StructDataHeader(16, 0) | 739 const bindings.StructDataHeader(16, 0) |
| 622 ]; | 740 ]; |
| 623 String photoUrl = null; | 741 String photoUrl = null; |
| 624 | 742 |
| 625 ContactsServiceGetPhotoResponseParams() : super(kVersions.last.size); | 743 ContactsServiceGetPhotoResponseParams() : super(kVersions.last.size); |
| 626 | 744 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 return "ContactsServiceGetPhotoResponseParams(" | 792 return "ContactsServiceGetPhotoResponseParams(" |
| 675 "photoUrl: $photoUrl" ")"; | 793 "photoUrl: $photoUrl" ")"; |
| 676 } | 794 } |
| 677 | 795 |
| 678 Map toJson() { | 796 Map toJson() { |
| 679 Map map = new Map(); | 797 Map map = new Map(); |
| 680 map["photoUrl"] = photoUrl; | 798 map["photoUrl"] = photoUrl; |
| 681 return map; | 799 return map; |
| 682 } | 800 } |
| 683 } | 801 } |
| 802 mojom_types.MojomStruct _contacts_ContactsService_GetPhoto_ResponseParams__() { |
| 803 return new mojom_types.MojomStruct() |
| 804 ..declData = (new mojom_types.DeclarationData() |
| 805 ..shortName = 'ContactsServiceGetPhotoResponseParams' |
| 806 ..fullIdentifier = 'contacts.ContactsServiceGetPhotoResponseParams') |
| 807 ..fields = <mojom_types.StructField>[ |
| 808 new mojom_types.StructField() |
| 809 ..declData = (new mojom_types.DeclarationData()..shortName = 'PhotoUrl') |
| 810 ..type = (new mojom_types.Type() |
| 811 ..stringType = (new mojom_types.StringType()..nullable = true)), |
| 812 ]; |
| 813 } |
| 814 |
| 684 | 815 |
| 685 const int _ContactsService_getCountName = 0; | 816 const int _ContactsService_getCountName = 0; |
| 686 const int _ContactsService_getName = 1; | 817 const int _ContactsService_getName = 1; |
| 687 const int _ContactsService_getEmailsName = 2; | 818 const int _ContactsService_getEmailsName = 2; |
| 688 const int _ContactsService_getPhotoName = 3; | 819 const int _ContactsService_getPhotoName = 3; |
| 689 | 820 |
| 821 mojom_types.MojomInterface _contacts_ContactsService__() { |
| 822 return new mojom_types.MojomInterface() |
| 823 ..declData = (new mojom_types.DeclarationData() |
| 824 ..shortName = 'ContactsService' |
| 825 ..fullIdentifier = 'contacts.ContactsService') |
| 826 ..interfaceName = 'ContactsService' |
| 827 ..methods = <int, mojom_types.MojomMethod>{ |
| 828 _ContactsService_getCountName: new mojom_types.MojomMethod() |
| 829 ..declData = (new mojom_types.DeclarationData()..shortName = 'GetCount') |
| 830 ..ordinal = _ContactsService_getCountName |
| 831 ..responseParams = _contacts_ContactsService_GetCount_ResponseParams__()
..parameters = _contacts_ContactsService_GetCount_Params__(),_ContactsService_ge
tName: new mojom_types.MojomMethod() |
| 832 ..declData = (new mojom_types.DeclarationData()..shortName = 'Get') |
| 833 ..ordinal = _ContactsService_getName |
| 834 ..responseParams = _contacts_ContactsService_Get_ResponseParams__()..par
ameters = _contacts_ContactsService_Get_Params__(),_ContactsService_getEmailsNam
e: new mojom_types.MojomMethod() |
| 835 ..declData = (new mojom_types.DeclarationData()..shortName = 'GetEmails'
) |
| 836 ..ordinal = _ContactsService_getEmailsName |
| 837 ..responseParams = _contacts_ContactsService_GetEmails_ResponseParams__(
)..parameters = _contacts_ContactsService_GetEmails_Params__(),_ContactsService_
getPhotoName: new mojom_types.MojomMethod() |
| 838 ..declData = (new mojom_types.DeclarationData()..shortName = 'GetPhoto') |
| 839 ..ordinal = _ContactsService_getPhotoName |
| 840 ..responseParams = _contacts_ContactsService_GetPhoto_ResponseParams__()
..parameters = _contacts_ContactsService_GetPhoto_Params__(), |
| 841 }; |
| 842 } |
| 843 |
| 844 class _ContactsServiceServiceDescription implements service_describer.ServiceDes
cription { |
| 845 dynamic getTopLevelInterface([Function responseFactory = null]) { |
| 846 return _contacts_ContactsService__(); |
| 847 } |
| 848 dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
| 849 return getAllMojomTypeDefinitions()[typeKey]; |
| 850 } |
| 851 dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
| 852 return getAllMojomTypeDefinitions(); |
| 853 } |
| 854 } |
| 855 |
| 690 abstract class ContactsService { | 856 abstract class ContactsService { |
| 691 static const String serviceName = "contacts::ContactsService"; | 857 static const String serviceName = "contacts::ContactsService"; |
| 692 dynamic getCount(String filter,[Function responseFactory = null]); | 858 dynamic getCount(String filter,[Function responseFactory = null]); |
| 693 dynamic get(String filter,int offset,int limit,[Function responseFactory = nul
l]); | 859 dynamic get(String filter,int offset,int limit,[Function responseFactory = nul
l]); |
| 694 dynamic getEmails(int id,[Function responseFactory = null]); | 860 dynamic getEmails(int id,[Function responseFactory = null]); |
| 695 dynamic getPhoto(int id,bool highResolution,[Function responseFactory = null])
; | 861 dynamic getPhoto(int id,bool highResolution,[Function responseFactory = null])
; |
| 696 } | 862 } |
| 697 | 863 |
| 698 | 864 |
| 699 class _ContactsServiceProxyImpl extends bindings.Proxy { | 865 class _ContactsServiceProxyImpl extends bindings.Proxy { |
| 700 _ContactsServiceProxyImpl.fromEndpoint( | 866 _ContactsServiceProxyImpl.fromEndpoint( |
| 701 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 867 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
| 702 | 868 |
| 703 _ContactsServiceProxyImpl.fromHandle(core.MojoHandle handle) : | 869 _ContactsServiceProxyImpl.fromHandle(core.MojoHandle handle) : |
| 704 super.fromHandle(handle); | 870 super.fromHandle(handle); |
| 705 | 871 |
| 706 _ContactsServiceProxyImpl.unbound() : super.unbound(); | 872 _ContactsServiceProxyImpl.unbound() : super.unbound(); |
| 707 | 873 |
| 708 static _ContactsServiceProxyImpl newFromEndpoint( | 874 static _ContactsServiceProxyImpl newFromEndpoint( |
| 709 core.MojoMessagePipeEndpoint endpoint) { | 875 core.MojoMessagePipeEndpoint endpoint) { |
| 710 assert(endpoint.setDescription("For _ContactsServiceProxyImpl")); | 876 assert(endpoint.setDescription("For _ContactsServiceProxyImpl")); |
| 711 return new _ContactsServiceProxyImpl.fromEndpoint(endpoint); | 877 return new _ContactsServiceProxyImpl.fromEndpoint(endpoint); |
| 712 } | 878 } |
| 713 | 879 |
| 880 service_describer.ServiceDescription get serviceDescription => |
| 881 new _ContactsServiceServiceDescription(); |
| 882 |
| 714 void handleResponse(bindings.ServiceMessage message) { | 883 void handleResponse(bindings.ServiceMessage message) { |
| 715 switch (message.header.type) { | 884 switch (message.header.type) { |
| 716 case _ContactsService_getCountName: | 885 case _ContactsService_getCountName: |
| 717 var r = ContactsServiceGetCountResponseParams.deserialize( | 886 var r = ContactsServiceGetCountResponseParams.deserialize( |
| 718 message.payload); | 887 message.payload); |
| 719 if (!message.header.hasRequestId) { | 888 if (!message.header.hasRequestId) { |
| 720 proxyError("Expected a message with a valid request Id."); | 889 proxyError("Expected a message with a valid request Id."); |
| 721 return; | 890 return; |
| 722 } | 891 } |
| 723 Completer c = completerMap[message.header.requestId]; | 892 Completer c = completerMap[message.header.requestId]; |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1060 assert(_impl == null); | 1229 assert(_impl == null); |
| 1061 _impl = d; | 1230 _impl = d; |
| 1062 } | 1231 } |
| 1063 | 1232 |
| 1064 String toString() { | 1233 String toString() { |
| 1065 var superString = super.toString(); | 1234 var superString = super.toString(); |
| 1066 return "ContactsServiceStub($superString)"; | 1235 return "ContactsServiceStub($superString)"; |
| 1067 } | 1236 } |
| 1068 | 1237 |
| 1069 int get version => 0; | 1238 int get version => 0; |
| 1239 |
| 1240 |
| 1241 service_describer.ServiceDescription get serviceDescription => |
| 1242 new _ContactsServiceServiceDescription(); |
| 1070 } | 1243 } |
| 1071 | 1244 |
| 1072 | 1245 |
| 1246 |
| 1247 |
| 1248 |
| 1249 |
| 1250 |
| 1251 Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
| 1252 var map = new HashMap<String, mojom_types.UserDefinedType>(); |
| 1253 map["_contacts_Contact__"] = |
| 1254 new mojom_types.UserDefinedType() |
| 1255 ..structType = _contacts_Contact__(); |
| 1256 map["_contacts_ContactsService_GetCount_Params__"] = |
| 1257 new mojom_types.UserDefinedType() |
| 1258 ..structType = _contacts_ContactsService_GetCount_Params__(); |
| 1259 map["_contacts_ContactsService_GetCount_ResponseParams__"] = |
| 1260 new mojom_types.UserDefinedType() |
| 1261 ..structType = _contacts_ContactsService_GetCount_ResponseParams__(); |
| 1262 map["_contacts_ContactsService_Get_Params__"] = |
| 1263 new mojom_types.UserDefinedType() |
| 1264 ..structType = _contacts_ContactsService_Get_Params__(); |
| 1265 map["_contacts_ContactsService_Get_ResponseParams__"] = |
| 1266 new mojom_types.UserDefinedType() |
| 1267 ..structType = _contacts_ContactsService_Get_ResponseParams__(); |
| 1268 map["_contacts_ContactsService_GetEmails_Params__"] = |
| 1269 new mojom_types.UserDefinedType() |
| 1270 ..structType = _contacts_ContactsService_GetEmails_Params__(); |
| 1271 map["_contacts_ContactsService_GetEmails_ResponseParams__"] = |
| 1272 new mojom_types.UserDefinedType() |
| 1273 ..structType = _contacts_ContactsService_GetEmails_ResponseParams__(); |
| 1274 map["_contacts_ContactsService_GetPhoto_Params__"] = |
| 1275 new mojom_types.UserDefinedType() |
| 1276 ..structType = _contacts_ContactsService_GetPhoto_Params__(); |
| 1277 map["_contacts_ContactsService_GetPhoto_ResponseParams__"] = |
| 1278 new mojom_types.UserDefinedType() |
| 1279 ..structType = _contacts_ContactsService_GetPhoto_ResponseParams__(); |
| 1280 map["_contacts_ContactsService__"] = |
| 1281 new mojom_types.UserDefinedType() |
| 1282 ..interfaceType = _contacts_ContactsService__(); |
| 1283 |
| 1284 return map; |
| 1285 } |
| 1286 |
| 1287 var _MojomDesc; |
| 1288 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
| 1289 if (_MojomDesc == null) { |
| 1290 _MojomDesc = _initDescriptions(); |
| 1291 } |
| 1292 return _MojomDesc; |
| 1293 } |
| 1294 |
| OLD | NEW |