| 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 icu_data_mojom; | 5 library icu_data_mojom; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:mojo/bindings.dart' as bindings; | 9 import 'package:mojo/bindings.dart' as bindings; |
| 10 import 'package:mojo/core.dart' as core; | 10 import 'package:mojo/core.dart' as core; |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 } | 158 } |
| 159 | 159 |
| 160 | 160 |
| 161 | 161 |
| 162 | 162 |
| 163 const int _IcuData_mapName = 0; | 163 const int _IcuData_mapName = 0; |
| 164 | 164 |
| 165 | 165 |
| 166 | 166 |
| 167 class _IcuDataServiceDescription implements service_describer.ServiceDescription
{ | 167 class _IcuDataServiceDescription implements service_describer.ServiceDescription
{ |
| 168 dynamic getTopLevelInterface([Function responseFactory]) => null; | 168 dynamic getTopLevelInterface([Function responseFactory]) => |
| 169 responseFactory(null); |
| 169 | 170 |
| 170 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 171 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 172 responseFactory(null); |
| 171 | 173 |
| 172 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 174 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 175 responseFactory(null); |
| 173 } | 176 } |
| 174 | 177 |
| 175 abstract class IcuData { | 178 abstract class IcuData { |
| 176 static const String serviceName = "icu_data::ICUData"; | 179 static const String serviceName = "icu_data::ICUData"; |
| 177 dynamic map(String sha1hash,[Function responseFactory = null]); | 180 dynamic map(String sha1hash,[Function responseFactory = null]); |
| 178 } | 181 } |
| 179 | 182 |
| 180 | 183 |
| 181 class _IcuDataProxyImpl extends bindings.Proxy { | 184 class _IcuDataProxyImpl extends bindings.Proxy { |
| 182 _IcuDataProxyImpl.fromEndpoint( | 185 _IcuDataProxyImpl.fromEndpoint( |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 _impl = d; | 378 _impl = d; |
| 376 } | 379 } |
| 377 | 380 |
| 378 String toString() { | 381 String toString() { |
| 379 var superString = super.toString(); | 382 var superString = super.toString(); |
| 380 return "IcuDataStub($superString)"; | 383 return "IcuDataStub($superString)"; |
| 381 } | 384 } |
| 382 | 385 |
| 383 int get version => 0; | 386 int get version => 0; |
| 384 | 387 |
| 385 service_describer.ServiceDescription get serviceDescription => | 388 static service_describer.ServiceDescription _cachedServiceDescription; |
| 386 new _IcuDataServiceDescription(); | 389 static service_describer.ServiceDescription get serviceDescription { |
| 390 if (_cachedServiceDescription == null) { |
| 391 _cachedServiceDescription = new _IcuDataServiceDescription(); |
| 392 } |
| 393 return _cachedServiceDescription; |
| 394 } |
| 387 } | 395 } |
| 388 | 396 |
| 389 | 397 |
| 390 | 398 |
| OLD | NEW |