| 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 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |