Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: mojo/dart/packages/mojo_services/lib/contacts/contacts.mojom.dart

Issue 1648803006: Expose Service Describer in Dart mojo package (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Address zra's feedback Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 8
9 import 'package:mojo/bindings.dart' as bindings; 9 import 'package:mojo/bindings.dart' as bindings;
10 import 'package:mojo/core.dart' as core; 10 import 'package:mojo/core.dart' as core;
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 767
768 768
769 const int _ContactsService_getCountName = 0; 769 const int _ContactsService_getCountName = 0;
770 const int _ContactsService_getName = 1; 770 const int _ContactsService_getName = 1;
771 const int _ContactsService_getEmailsName = 2; 771 const int _ContactsService_getEmailsName = 2;
772 const int _ContactsService_getPhotoName = 3; 772 const int _ContactsService_getPhotoName = 3;
773 773
774 774
775 775
776 class _ContactsServiceServiceDescription implements service_describer.ServiceDes cription { 776 class _ContactsServiceServiceDescription implements service_describer.ServiceDes cription {
777 dynamic getTopLevelInterface([Function responseFactory]) => null; 777 dynamic getTopLevelInterface([Function responseFactory]) =>
778 responseFactory(null);
778 779
779 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; 780 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
781 responseFactory(null);
780 782
781 dynamic getAllTypeDefinitions([Function responseFactory]) => null; 783 dynamic getAllTypeDefinitions([Function responseFactory]) =>
784 responseFactory(null);
782 } 785 }
783 786
784 abstract class ContactsService { 787 abstract class ContactsService {
785 static const String serviceName = "contacts::ContactsService"; 788 static const String serviceName = "contacts::ContactsService";
786 dynamic getCount(String filter,[Function responseFactory = null]); 789 dynamic getCount(String filter,[Function responseFactory = null]);
787 dynamic get(String filter,int offset,int limit,[Function responseFactory = nul l]); 790 dynamic get(String filter,int offset,int limit,[Function responseFactory = nul l]);
788 dynamic getEmails(int id,[Function responseFactory = null]); 791 dynamic getEmails(int id,[Function responseFactory = null]);
789 dynamic getPhoto(int id,bool highResolution,[Function responseFactory = null]) ; 792 dynamic getPhoto(int id,bool highResolution,[Function responseFactory = null]) ;
790 } 793 }
791 794
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
1158 _impl = d; 1161 _impl = d;
1159 } 1162 }
1160 1163
1161 String toString() { 1164 String toString() {
1162 var superString = super.toString(); 1165 var superString = super.toString();
1163 return "ContactsServiceStub($superString)"; 1166 return "ContactsServiceStub($superString)";
1164 } 1167 }
1165 1168
1166 int get version => 0; 1169 int get version => 0;
1167 1170
1168 service_describer.ServiceDescription get serviceDescription => 1171 static service_describer.ServiceDescription _cachedServiceDescription;
1169 new _ContactsServiceServiceDescription(); 1172 static service_describer.ServiceDescription get serviceDescription {
1173 if (_cachedServiceDescription == null) {
1174 _cachedServiceDescription = new _ContactsServiceServiceDescription();
1175 }
1176 return _cachedServiceDescription;
1177 }
1170 } 1178 }
1171 1179
1172 1180
1173 1181
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698