| 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 import 'dart:async'; | 6 import 'dart:async'; |
| 7 import 'package:mojo/bindings.dart' as bindings; | 7 import 'package:mojo/bindings.dart' as bindings; |
| 8 import 'package:mojo/core.dart' as core; | 8 import 'package:mojo/core.dart' as core; |
| 9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic
e_describer; | 9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic
e_describer; |
| 10 | 10 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 Map toJson() { | 90 Map toJson() { |
| 91 Map map = new Map(); | 91 Map map = new Map(); |
| 92 map["id"] = id; | 92 map["id"] = id; |
| 93 map["name"] = name; | 93 map["name"] = name; |
| 94 return map; | 94 return map; |
| 95 } | 95 } |
| 96 } | 96 } |
| 97 | 97 |
| 98 | 98 |
| 99 | |
| 100 | |
| 101 class _ContactsServiceGetCountParams extends bindings.Struct { | 99 class _ContactsServiceGetCountParams extends bindings.Struct { |
| 102 static const List<bindings.StructDataHeader> kVersions = const [ | 100 static const List<bindings.StructDataHeader> kVersions = const [ |
| 103 const bindings.StructDataHeader(16, 0) | 101 const bindings.StructDataHeader(16, 0) |
| 104 ]; | 102 ]; |
| 105 String filter = null; | 103 String filter = null; |
| 106 | 104 |
| 107 _ContactsServiceGetCountParams() : super(kVersions.last.size); | 105 _ContactsServiceGetCountParams() : super(kVersions.last.size); |
| 108 | 106 |
| 109 static _ContactsServiceGetCountParams deserialize(bindings.Message message) { | 107 static _ContactsServiceGetCountParams deserialize(bindings.Message message) { |
| 110 var decoder = new bindings.Decoder(message); | 108 var decoder = new bindings.Decoder(message); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 } | 161 } |
| 164 | 162 |
| 165 Map toJson() { | 163 Map toJson() { |
| 166 Map map = new Map(); | 164 Map map = new Map(); |
| 167 map["filter"] = filter; | 165 map["filter"] = filter; |
| 168 return map; | 166 return map; |
| 169 } | 167 } |
| 170 } | 168 } |
| 171 | 169 |
| 172 | 170 |
| 173 | |
| 174 | |
| 175 class ContactsServiceGetCountResponseParams extends bindings.Struct { | 171 class ContactsServiceGetCountResponseParams extends bindings.Struct { |
| 176 static const List<bindings.StructDataHeader> kVersions = const [ | 172 static const List<bindings.StructDataHeader> kVersions = const [ |
| 177 const bindings.StructDataHeader(16, 0) | 173 const bindings.StructDataHeader(16, 0) |
| 178 ]; | 174 ]; |
| 179 int count = 0; | 175 int count = 0; |
| 180 | 176 |
| 181 ContactsServiceGetCountResponseParams() : super(kVersions.last.size); | 177 ContactsServiceGetCountResponseParams() : super(kVersions.last.size); |
| 182 | 178 |
| 183 static ContactsServiceGetCountResponseParams deserialize(bindings.Message mess
age) { | 179 static ContactsServiceGetCountResponseParams deserialize(bindings.Message mess
age) { |
| 184 var decoder = new bindings.Decoder(message); | 180 var decoder = new bindings.Decoder(message); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 } | 233 } |
| 238 | 234 |
| 239 Map toJson() { | 235 Map toJson() { |
| 240 Map map = new Map(); | 236 Map map = new Map(); |
| 241 map["count"] = count; | 237 map["count"] = count; |
| 242 return map; | 238 return map; |
| 243 } | 239 } |
| 244 } | 240 } |
| 245 | 241 |
| 246 | 242 |
| 247 | |
| 248 | |
| 249 class _ContactsServiceGetParams extends bindings.Struct { | 243 class _ContactsServiceGetParams extends bindings.Struct { |
| 250 static const List<bindings.StructDataHeader> kVersions = const [ | 244 static const List<bindings.StructDataHeader> kVersions = const [ |
| 251 const bindings.StructDataHeader(24, 0) | 245 const bindings.StructDataHeader(24, 0) |
| 252 ]; | 246 ]; |
| 253 String filter = null; | 247 String filter = null; |
| 254 int offset = 0; | 248 int offset = 0; |
| 255 int limit = 0; | 249 int limit = 0; |
| 256 | 250 |
| 257 _ContactsServiceGetParams() : super(kVersions.last.size); | 251 _ContactsServiceGetParams() : super(kVersions.last.size); |
| 258 | 252 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 Map toJson() { | 333 Map toJson() { |
| 340 Map map = new Map(); | 334 Map map = new Map(); |
| 341 map["filter"] = filter; | 335 map["filter"] = filter; |
| 342 map["offset"] = offset; | 336 map["offset"] = offset; |
| 343 map["limit"] = limit; | 337 map["limit"] = limit; |
| 344 return map; | 338 return map; |
| 345 } | 339 } |
| 346 } | 340 } |
| 347 | 341 |
| 348 | 342 |
| 349 | |
| 350 | |
| 351 class ContactsServiceGetResponseParams extends bindings.Struct { | 343 class ContactsServiceGetResponseParams extends bindings.Struct { |
| 352 static const List<bindings.StructDataHeader> kVersions = const [ | 344 static const List<bindings.StructDataHeader> kVersions = const [ |
| 353 const bindings.StructDataHeader(16, 0) | 345 const bindings.StructDataHeader(16, 0) |
| 354 ]; | 346 ]; |
| 355 List<Contact> contacts = null; | 347 List<Contact> contacts = null; |
| 356 | 348 |
| 357 ContactsServiceGetResponseParams() : super(kVersions.last.size); | 349 ContactsServiceGetResponseParams() : super(kVersions.last.size); |
| 358 | 350 |
| 359 static ContactsServiceGetResponseParams deserialize(bindings.Message message)
{ | 351 static ContactsServiceGetResponseParams deserialize(bindings.Message message)
{ |
| 360 var decoder = new bindings.Decoder(message); | 352 var decoder = new bindings.Decoder(message); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 } | 421 } |
| 430 | 422 |
| 431 Map toJson() { | 423 Map toJson() { |
| 432 Map map = new Map(); | 424 Map map = new Map(); |
| 433 map["contacts"] = contacts; | 425 map["contacts"] = contacts; |
| 434 return map; | 426 return map; |
| 435 } | 427 } |
| 436 } | 428 } |
| 437 | 429 |
| 438 | 430 |
| 439 | |
| 440 | |
| 441 class _ContactsServiceGetEmailsParams extends bindings.Struct { | 431 class _ContactsServiceGetEmailsParams extends bindings.Struct { |
| 442 static const List<bindings.StructDataHeader> kVersions = const [ | 432 static const List<bindings.StructDataHeader> kVersions = const [ |
| 443 const bindings.StructDataHeader(16, 0) | 433 const bindings.StructDataHeader(16, 0) |
| 444 ]; | 434 ]; |
| 445 int id = 0; | 435 int id = 0; |
| 446 | 436 |
| 447 _ContactsServiceGetEmailsParams() : super(kVersions.last.size); | 437 _ContactsServiceGetEmailsParams() : super(kVersions.last.size); |
| 448 | 438 |
| 449 static _ContactsServiceGetEmailsParams deserialize(bindings.Message message) { | 439 static _ContactsServiceGetEmailsParams deserialize(bindings.Message message) { |
| 450 var decoder = new bindings.Decoder(message); | 440 var decoder = new bindings.Decoder(message); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 } | 493 } |
| 504 | 494 |
| 505 Map toJson() { | 495 Map toJson() { |
| 506 Map map = new Map(); | 496 Map map = new Map(); |
| 507 map["id"] = id; | 497 map["id"] = id; |
| 508 return map; | 498 return map; |
| 509 } | 499 } |
| 510 } | 500 } |
| 511 | 501 |
| 512 | 502 |
| 513 | |
| 514 | |
| 515 class ContactsServiceGetEmailsResponseParams extends bindings.Struct { | 503 class ContactsServiceGetEmailsResponseParams extends bindings.Struct { |
| 516 static const List<bindings.StructDataHeader> kVersions = const [ | 504 static const List<bindings.StructDataHeader> kVersions = const [ |
| 517 const bindings.StructDataHeader(16, 0) | 505 const bindings.StructDataHeader(16, 0) |
| 518 ]; | 506 ]; |
| 519 List<String> emails = null; | 507 List<String> emails = null; |
| 520 | 508 |
| 521 ContactsServiceGetEmailsResponseParams() : super(kVersions.last.size); | 509 ContactsServiceGetEmailsResponseParams() : super(kVersions.last.size); |
| 522 | 510 |
| 523 static ContactsServiceGetEmailsResponseParams deserialize(bindings.Message mes
sage) { | 511 static ContactsServiceGetEmailsResponseParams deserialize(bindings.Message mes
sage) { |
| 524 var decoder = new bindings.Decoder(message); | 512 var decoder = new bindings.Decoder(message); |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 } | 580 } |
| 593 | 581 |
| 594 Map toJson() { | 582 Map toJson() { |
| 595 Map map = new Map(); | 583 Map map = new Map(); |
| 596 map["emails"] = emails; | 584 map["emails"] = emails; |
| 597 return map; | 585 return map; |
| 598 } | 586 } |
| 599 } | 587 } |
| 600 | 588 |
| 601 | 589 |
| 602 | |
| 603 | |
| 604 class _ContactsServiceGetPhotoParams extends bindings.Struct { | 590 class _ContactsServiceGetPhotoParams extends bindings.Struct { |
| 605 static const List<bindings.StructDataHeader> kVersions = const [ | 591 static const List<bindings.StructDataHeader> kVersions = const [ |
| 606 const bindings.StructDataHeader(24, 0) | 592 const bindings.StructDataHeader(24, 0) |
| 607 ]; | 593 ]; |
| 608 int id = 0; | 594 int id = 0; |
| 609 bool highResolution = false; | 595 bool highResolution = false; |
| 610 | 596 |
| 611 _ContactsServiceGetPhotoParams() : super(kVersions.last.size); | 597 _ContactsServiceGetPhotoParams() : super(kVersions.last.size); |
| 612 | 598 |
| 613 static _ContactsServiceGetPhotoParams deserialize(bindings.Message message) { | 599 static _ContactsServiceGetPhotoParams deserialize(bindings.Message message) { |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 | 666 |
| 681 Map toJson() { | 667 Map toJson() { |
| 682 Map map = new Map(); | 668 Map map = new Map(); |
| 683 map["id"] = id; | 669 map["id"] = id; |
| 684 map["highResolution"] = highResolution; | 670 map["highResolution"] = highResolution; |
| 685 return map; | 671 return map; |
| 686 } | 672 } |
| 687 } | 673 } |
| 688 | 674 |
| 689 | 675 |
| 690 | |
| 691 | |
| 692 class ContactsServiceGetPhotoResponseParams extends bindings.Struct { | 676 class ContactsServiceGetPhotoResponseParams extends bindings.Struct { |
| 693 static const List<bindings.StructDataHeader> kVersions = const [ | 677 static const List<bindings.StructDataHeader> kVersions = const [ |
| 694 const bindings.StructDataHeader(16, 0) | 678 const bindings.StructDataHeader(16, 0) |
| 695 ]; | 679 ]; |
| 696 String photoUrl = null; | 680 String photoUrl = null; |
| 697 | 681 |
| 698 ContactsServiceGetPhotoResponseParams() : super(kVersions.last.size); | 682 ContactsServiceGetPhotoResponseParams() : super(kVersions.last.size); |
| 699 | 683 |
| 700 static ContactsServiceGetPhotoResponseParams deserialize(bindings.Message mess
age) { | 684 static ContactsServiceGetPhotoResponseParams deserialize(bindings.Message mess
age) { |
| 701 var decoder = new bindings.Decoder(message); | 685 var decoder = new bindings.Decoder(message); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 "photoUrl: $photoUrl" ")"; | 737 "photoUrl: $photoUrl" ")"; |
| 754 } | 738 } |
| 755 | 739 |
| 756 Map toJson() { | 740 Map toJson() { |
| 757 Map map = new Map(); | 741 Map map = new Map(); |
| 758 map["photoUrl"] = photoUrl; | 742 map["photoUrl"] = photoUrl; |
| 759 return map; | 743 return map; |
| 760 } | 744 } |
| 761 } | 745 } |
| 762 | 746 |
| 763 | |
| 764 | |
| 765 | |
| 766 const int _ContactsService_getCountName = 0; | 747 const int _ContactsService_getCountName = 0; |
| 767 const int _ContactsService_getName = 1; | 748 const int _ContactsService_getName = 1; |
| 768 const int _ContactsService_getEmailsName = 2; | 749 const int _ContactsService_getEmailsName = 2; |
| 769 const int _ContactsService_getPhotoName = 3; | 750 const int _ContactsService_getPhotoName = 3; |
| 770 | 751 |
| 771 | |
| 772 | |
| 773 class _ContactsServiceServiceDescription implements service_describer.ServiceDes
cription { | 752 class _ContactsServiceServiceDescription implements service_describer.ServiceDes
cription { |
| 774 dynamic getTopLevelInterface([Function responseFactory]) => | 753 dynamic getTopLevelInterface([Function responseFactory]) => |
| 775 responseFactory(null); | 754 responseFactory(null); |
| 776 | 755 |
| 777 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 756 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 778 responseFactory(null); | 757 responseFactory(null); |
| 779 | 758 |
| 780 dynamic getAllTypeDefinitions([Function responseFactory]) => | 759 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 781 responseFactory(null); | 760 responseFactory(null); |
| 782 } | 761 } |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1169 static service_describer.ServiceDescription get serviceDescription { | 1148 static service_describer.ServiceDescription get serviceDescription { |
| 1170 if (_cachedServiceDescription == null) { | 1149 if (_cachedServiceDescription == null) { |
| 1171 _cachedServiceDescription = new _ContactsServiceServiceDescription(); | 1150 _cachedServiceDescription = new _ContactsServiceServiceDescription(); |
| 1172 } | 1151 } |
| 1173 return _cachedServiceDescription; | 1152 return _cachedServiceDescription; |
| 1174 } | 1153 } |
| 1175 } | 1154 } |
| 1176 | 1155 |
| 1177 | 1156 |
| 1178 | 1157 |
| OLD | NEW |