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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/service_registry.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 service_registry_mojom; 5 library service_registry_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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 } 113 }
114 114
115 115
116 116
117 117
118 const int _ServiceRegistry_addServicesName = 0; 118 const int _ServiceRegistry_addServicesName = 0;
119 119
120 120
121 121
122 class _ServiceRegistryServiceDescription implements service_describer.ServiceDes cription { 122 class _ServiceRegistryServiceDescription implements service_describer.ServiceDes cription {
123 dynamic getTopLevelInterface([Function responseFactory]) => null; 123 dynamic getTopLevelInterface([Function responseFactory]) =>
124 responseFactory(null);
124 125
125 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; 126 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
127 responseFactory(null);
126 128
127 dynamic getAllTypeDefinitions([Function responseFactory]) => null; 129 dynamic getAllTypeDefinitions([Function responseFactory]) =>
130 responseFactory(null);
128 } 131 }
129 132
130 abstract class ServiceRegistry { 133 abstract class ServiceRegistry {
131 static const String serviceName = "mojo::ServiceRegistry"; 134 static const String serviceName = "mojo::ServiceRegistry";
132 void addServices(List<String> interfaceNames, Object serviceProvider); 135 void addServices(List<String> interfaceNames, Object serviceProvider);
133 } 136 }
134 137
135 138
136 class _ServiceRegistryProxyImpl extends bindings.Proxy { 139 class _ServiceRegistryProxyImpl extends bindings.Proxy {
137 _ServiceRegistryProxyImpl.fromEndpoint( 140 _ServiceRegistryProxyImpl.fromEndpoint(
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 _impl = d; 292 _impl = d;
290 } 293 }
291 294
292 String toString() { 295 String toString() {
293 var superString = super.toString(); 296 var superString = super.toString();
294 return "ServiceRegistryStub($superString)"; 297 return "ServiceRegistryStub($superString)";
295 } 298 }
296 299
297 int get version => 0; 300 int get version => 0;
298 301
299 service_describer.ServiceDescription get serviceDescription => 302 static service_describer.ServiceDescription _cachedServiceDescription;
300 new _ServiceRegistryServiceDescription(); 303 static service_describer.ServiceDescription get serviceDescription {
304 if (_cachedServiceDescription == null) {
305 _cachedServiceDescription = new _ServiceRegistryServiceDescription();
306 }
307 return _cachedServiceDescription;
308 }
301 } 309 }
302 310
303 311
304 312
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698