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_provider_mojom; | 5 library service_provider_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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 "interfaceName: $interfaceName" ", " | 86 "interfaceName: $interfaceName" ", " |
87 "pipe: $pipe" ")"; | 87 "pipe: $pipe" ")"; |
88 } | 88 } |
89 | 89 |
90 Map toJson() { | 90 Map toJson() { |
91 throw new bindings.MojoCodecError( | 91 throw new bindings.MojoCodecError( |
92 'Object containing handles cannot be encoded to JSON.'); | 92 'Object containing handles cannot be encoded to JSON.'); |
93 } | 93 } |
94 } | 94 } |
95 | 95 |
96 | |
97 | |
98 | |
99 const int _ServiceProvider_connectToServiceName = 0; | 96 const int _ServiceProvider_connectToServiceName = 0; |
100 | 97 |
101 | |
102 | |
103 class _ServiceProviderServiceDescription implements service_describer.ServiceDes
cription { | 98 class _ServiceProviderServiceDescription implements service_describer.ServiceDes
cription { |
104 dynamic getTopLevelInterface([Function responseFactory]) => | 99 dynamic getTopLevelInterface([Function responseFactory]) => |
105 responseFactory(null); | 100 responseFactory(null); |
106 | 101 |
107 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 102 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
108 responseFactory(null); | 103 responseFactory(null); |
109 | 104 |
110 dynamic getAllTypeDefinitions([Function responseFactory]) => | 105 dynamic getAllTypeDefinitions([Function responseFactory]) => |
111 responseFactory(null); | 106 responseFactory(null); |
112 } | 107 } |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 static service_describer.ServiceDescription get serviceDescription { | 279 static service_describer.ServiceDescription get serviceDescription { |
285 if (_cachedServiceDescription == null) { | 280 if (_cachedServiceDescription == null) { |
286 _cachedServiceDescription = new _ServiceProviderServiceDescription(); | 281 _cachedServiceDescription = new _ServiceProviderServiceDescription(); |
287 } | 282 } |
288 return _cachedServiceDescription; | 283 return _cachedServiceDescription; |
289 } | 284 } |
290 } | 285 } |
291 | 286 |
292 | 287 |
293 | 288 |
OLD | NEW |