| 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 sharing_mojom; | 5 library sharing_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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 "text: $text" ")"; | 74 "text: $text" ")"; |
| 75 } | 75 } |
| 76 | 76 |
| 77 Map toJson() { | 77 Map toJson() { |
| 78 Map map = new Map(); | 78 Map map = new Map(); |
| 79 map["text"] = text; | 79 map["text"] = text; |
| 80 return map; | 80 return map; |
| 81 } | 81 } |
| 82 } | 82 } |
| 83 | 83 |
| 84 | |
| 85 | |
| 86 | |
| 87 const int _SharingService_shareTextName = 0; | 84 const int _SharingService_shareTextName = 0; |
| 88 | 85 |
| 89 | |
| 90 | |
| 91 class _SharingServiceServiceDescription implements service_describer.ServiceDesc
ription { | 86 class _SharingServiceServiceDescription implements service_describer.ServiceDesc
ription { |
| 92 dynamic getTopLevelInterface([Function responseFactory]) => | 87 dynamic getTopLevelInterface([Function responseFactory]) => |
| 93 responseFactory(null); | 88 responseFactory(null); |
| 94 | 89 |
| 95 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 90 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 96 responseFactory(null); | 91 responseFactory(null); |
| 97 | 92 |
| 98 dynamic getAllTypeDefinitions([Function responseFactory]) => | 93 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 99 responseFactory(null); | 94 responseFactory(null); |
| 100 } | 95 } |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 static service_describer.ServiceDescription get serviceDescription { | 266 static service_describer.ServiceDescription get serviceDescription { |
| 272 if (_cachedServiceDescription == null) { | 267 if (_cachedServiceDescription == null) { |
| 273 _cachedServiceDescription = new _SharingServiceServiceDescription(); | 268 _cachedServiceDescription = new _SharingServiceServiceDescription(); |
| 274 } | 269 } |
| 275 return _cachedServiceDescription; | 270 return _cachedServiceDescription; |
| 276 } | 271 } |
| 277 } | 272 } |
| 278 | 273 |
| 279 | 274 |
| 280 | 275 |
| OLD | NEW |