Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: mojo/dart/packages/mojo_services/lib/icu_data/icu_data.mojom.dart

Issue 1648803006: Expose Service Describer in Dart mojo package (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Address zra's feedback Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698