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 content_handler_mojom; | 5 library content_handler_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/application.mojom.dart' as application_mojom; | 10 import 'package:mojo/mojo/application.mojom.dart' as application_mojom; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 "application: $application" ", " | 89 "application: $application" ", " |
90 "response: $response" ")"; | 90 "response: $response" ")"; |
91 } | 91 } |
92 | 92 |
93 Map toJson() { | 93 Map toJson() { |
94 throw new bindings.MojoCodecError( | 94 throw new bindings.MojoCodecError( |
95 'Object containing handles cannot be encoded to JSON.'); | 95 'Object containing handles cannot be encoded to JSON.'); |
96 } | 96 } |
97 } | 97 } |
98 | 98 |
99 | |
100 | |
101 | |
102 const int _ContentHandler_startApplicationName = 0; | 99 const int _ContentHandler_startApplicationName = 0; |
103 | 100 |
104 | |
105 | |
106 class _ContentHandlerServiceDescription implements service_describer.ServiceDesc
ription { | 101 class _ContentHandlerServiceDescription implements service_describer.ServiceDesc
ription { |
107 dynamic getTopLevelInterface([Function responseFactory]) => | 102 dynamic getTopLevelInterface([Function responseFactory]) => |
108 responseFactory(null); | 103 responseFactory(null); |
109 | 104 |
110 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 105 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
111 responseFactory(null); | 106 responseFactory(null); |
112 | 107 |
113 dynamic getAllTypeDefinitions([Function responseFactory]) => | 108 dynamic getAllTypeDefinitions([Function responseFactory]) => |
114 responseFactory(null); | 109 responseFactory(null); |
115 } | 110 } |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 static service_describer.ServiceDescription get serviceDescription { | 282 static service_describer.ServiceDescription get serviceDescription { |
288 if (_cachedServiceDescription == null) { | 283 if (_cachedServiceDescription == null) { |
289 _cachedServiceDescription = new _ContentHandlerServiceDescription(); | 284 _cachedServiceDescription = new _ContentHandlerServiceDescription(); |
290 } | 285 } |
291 return _cachedServiceDescription; | 286 return _cachedServiceDescription; |
292 } | 287 } |
293 } | 288 } |
294 | 289 |
295 | 290 |
296 | 291 |
OLD | NEW |