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 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 import 'package:mojo/mojo/service_provider.mojom.dart' as service_provider_mojom
; | 10 import 'package:mojo/mojo/service_provider.mojom.dart' as service_provider_mojom
; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 "interfaceNames: $interfaceNames" ", " | 102 "interfaceNames: $interfaceNames" ", " |
103 "serviceProvider: $serviceProvider" ")"; | 103 "serviceProvider: $serviceProvider" ")"; |
104 } | 104 } |
105 | 105 |
106 Map toJson() { | 106 Map toJson() { |
107 throw new bindings.MojoCodecError( | 107 throw new bindings.MojoCodecError( |
108 'Object containing handles cannot be encoded to JSON.'); | 108 'Object containing handles cannot be encoded to JSON.'); |
109 } | 109 } |
110 } | 110 } |
111 | 111 |
112 | |
113 | |
114 | |
115 const int _ServiceRegistry_addServicesName = 0; | 112 const int _ServiceRegistry_addServicesName = 0; |
116 | 113 |
117 | |
118 | |
119 class _ServiceRegistryServiceDescription implements service_describer.ServiceDes
cription { | 114 class _ServiceRegistryServiceDescription implements service_describer.ServiceDes
cription { |
120 dynamic getTopLevelInterface([Function responseFactory]) => | 115 dynamic getTopLevelInterface([Function responseFactory]) => |
121 responseFactory(null); | 116 responseFactory(null); |
122 | 117 |
123 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 118 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
124 responseFactory(null); | 119 responseFactory(null); |
125 | 120 |
126 dynamic getAllTypeDefinitions([Function responseFactory]) => | 121 dynamic getAllTypeDefinitions([Function responseFactory]) => |
127 responseFactory(null); | 122 responseFactory(null); |
128 } | 123 } |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 static service_describer.ServiceDescription get serviceDescription { | 295 static service_describer.ServiceDescription get serviceDescription { |
301 if (_cachedServiceDescription == null) { | 296 if (_cachedServiceDescription == null) { |
302 _cachedServiceDescription = new _ServiceRegistryServiceDescription(); | 297 _cachedServiceDescription = new _ServiceRegistryServiceDescription(); |
303 } | 298 } |
304 return _cachedServiceDescription; | 299 return _cachedServiceDescription; |
305 } | 300 } |
306 } | 301 } |
307 | 302 |
308 | 303 |
309 | 304 |
OLD | NEW |