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 view_provider_mojom; | 5 library view_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 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 "services: $services" ", " | 101 "services: $services" ", " |
102 "exposedServices: $exposedServices" ")"; | 102 "exposedServices: $exposedServices" ")"; |
103 } | 103 } |
104 | 104 |
105 Map toJson() { | 105 Map toJson() { |
106 throw new bindings.MojoCodecError( | 106 throw new bindings.MojoCodecError( |
107 'Object containing handles cannot be encoded to JSON.'); | 107 'Object containing handles cannot be encoded to JSON.'); |
108 } | 108 } |
109 } | 109 } |
110 | 110 |
111 | |
112 | |
113 | |
114 const int _ViewProvider_createViewName = 0; | 111 const int _ViewProvider_createViewName = 0; |
115 | 112 |
116 | |
117 | |
118 class _ViewProviderServiceDescription implements service_describer.ServiceDescri
ption { | 113 class _ViewProviderServiceDescription implements service_describer.ServiceDescri
ption { |
119 dynamic getTopLevelInterface([Function responseFactory]) => | 114 dynamic getTopLevelInterface([Function responseFactory]) => |
120 responseFactory(null); | 115 responseFactory(null); |
121 | 116 |
122 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 117 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
123 responseFactory(null); | 118 responseFactory(null); |
124 | 119 |
125 dynamic getAllTypeDefinitions([Function responseFactory]) => | 120 dynamic getAllTypeDefinitions([Function responseFactory]) => |
126 responseFactory(null); | 121 responseFactory(null); |
127 } | 122 } |
(...skipping 172 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 _ViewProviderServiceDescription(); | 297 _cachedServiceDescription = new _ViewProviderServiceDescription(); |
303 } | 298 } |
304 return _cachedServiceDescription; | 299 return _cachedServiceDescription; |
305 } | 300 } |
306 } | 301 } |
307 | 302 |
308 | 303 |
309 | 304 |
OLD | NEW |