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

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

Issue 1753013002: Mojom runtime type info: New implementation for Dart. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: No changes to sha1s Created 4 years, 9 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 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 75 }
76 76
77 Map toJson() { 77 Map toJson() {
78 Map map = new Map(); 78 Map map = new Map();
79 map["sha1hash"] = sha1hash; 79 map["sha1hash"] = sha1hash;
80 return map; 80 return map;
81 } 81 }
82 } 82 }
83 83
84 84
85
86
87 class IcuDataMapResponseParams extends bindings.Struct { 85 class IcuDataMapResponseParams extends bindings.Struct {
88 static const List<bindings.StructDataHeader> kVersions = const [ 86 static const List<bindings.StructDataHeader> kVersions = const [
89 const bindings.StructDataHeader(16, 0) 87 const bindings.StructDataHeader(16, 0)
90 ]; 88 ];
91 core.MojoSharedBuffer icuData = null; 89 core.MojoSharedBuffer icuData = null;
92 90
93 IcuDataMapResponseParams() : super(kVersions.last.size); 91 IcuDataMapResponseParams() : super(kVersions.last.size);
94 92
95 static IcuDataMapResponseParams deserialize(bindings.Message message) { 93 static IcuDataMapResponseParams deserialize(bindings.Message message) {
96 var decoder = new bindings.Decoder(message); 94 var decoder = new bindings.Decoder(message);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 return "IcuDataMapResponseParams(" 145 return "IcuDataMapResponseParams("
148 "icuData: $icuData" ")"; 146 "icuData: $icuData" ")";
149 } 147 }
150 148
151 Map toJson() { 149 Map toJson() {
152 throw new bindings.MojoCodecError( 150 throw new bindings.MojoCodecError(
153 'Object containing handles cannot be encoded to JSON.'); 151 'Object containing handles cannot be encoded to JSON.');
154 } 152 }
155 } 153 }
156 154
157
158
159
160 const int _IcuData_mapName = 0; 155 const int _IcuData_mapName = 0;
161 156
162
163
164 class _IcuDataServiceDescription implements service_describer.ServiceDescription { 157 class _IcuDataServiceDescription implements service_describer.ServiceDescription {
165 dynamic getTopLevelInterface([Function responseFactory]) => 158 dynamic getTopLevelInterface([Function responseFactory]) =>
166 responseFactory(null); 159 responseFactory(null);
167 160
168 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 161 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
169 responseFactory(null); 162 responseFactory(null);
170 163
171 dynamic getAllTypeDefinitions([Function responseFactory]) => 164 dynamic getAllTypeDefinitions([Function responseFactory]) =>
172 responseFactory(null); 165 responseFactory(null);
173 } 166 }
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 static service_describer.ServiceDescription get serviceDescription { 379 static service_describer.ServiceDescription get serviceDescription {
387 if (_cachedServiceDescription == null) { 380 if (_cachedServiceDescription == null) {
388 _cachedServiceDescription = new _IcuDataServiceDescription(); 381 _cachedServiceDescription = new _IcuDataServiceDescription();
389 } 382 }
390 return _cachedServiceDescription; 383 return _cachedServiceDescription;
391 } 384 }
392 } 385 }
393 386
394 387
395 388
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698