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

Side by Side Diff: mojo/dart/packages/mojo/lib/mojo/bindings/types/mojom_files.mojom.dart

Issue 2006093002: Dart: Futures -> Callbacks. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Merge Created 4 years, 6 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 // WARNING: DO NOT EDIT. This file was generated by a program. 1 // WARNING: DO NOT EDIT. This file was generated by a program.
2 // See $MOJO_SDK/tools/bindings/mojom_bindings_generator.py. 2 // See $MOJO_SDK/tools/bindings/mojom_bindings_generator.py.
3 3
4 library mojom_files_mojom; 4 library mojom_files_mojom;
5 import 'package:mojo/bindings.dart' as bindings; 5 import 'package:mojo/bindings.dart' as bindings;
6 6
7 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types_ mojom; 7 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types_ mojom;
8 8
9 9
10 10
11 class MojomFile extends bindings.Struct { 11 class MojomFile extends bindings.Struct {
12 static const List<bindings.StructDataHeader> kVersions = const [ 12 static const List<bindings.StructDataHeader> kVersions = const [
13 const bindings.StructDataHeader(64, 0) 13 const bindings.StructDataHeader(64, 0)
14 ]; 14 ];
15 String fileName = null; 15 String fileName = null;
16 String specifiedFileName = null; 16 String specifiedFileName = null;
17 String moduleNamespace = null; 17 String moduleNamespace = null;
18 List<mojom_types_mojom.Attribute> attributes = null; 18 List<mojom_types_mojom.Attribute> attributes = null;
19 List<String> imports = null; 19 List<String> imports = null;
20 KeysByType declaredMojomObjects = null; 20 KeysByType declaredMojomObjects = null;
21 String serializedRuntimeTypeInfo = null; 21 String serializedRuntimeTypeInfo = null;
22 22
23 MojomFile() : super(kVersions.last.size); 23 MojomFile() : super(kVersions.last.size);
24 24
25 MojomFile.init(
26 String this.fileName,
27 String this.specifiedFileName,
28 String this.moduleNamespace,
29 List<mojom_types_mojom.Attribute> this.attributes,
30 List<String> this.imports,
31 KeysByType this.declaredMojomObjects,
32 String this.serializedRuntimeTypeInfo
33 ) : super(kVersions.last.size);
34
25 static MojomFile deserialize(bindings.Message message) { 35 static MojomFile deserialize(bindings.Message message) {
26 var decoder = new bindings.Decoder(message); 36 var decoder = new bindings.Decoder(message);
27 var result = decode(decoder); 37 var result = decode(decoder);
28 if (decoder.excessHandles != null) { 38 if (decoder.excessHandles != null) {
29 decoder.excessHandles.forEach((h) => h.close()); 39 decoder.excessHandles.forEach((h) => h.close());
30 } 40 }
31 return result; 41 return result;
32 } 42 }
33 43
34 static MojomFile decode(bindings.Decoder decoder0) { 44 static MojomFile decode(bindings.Decoder decoder0) {
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 class MojomFileGraph extends bindings.Struct { 213 class MojomFileGraph extends bindings.Struct {
204 static const List<bindings.StructDataHeader> kVersions = const [ 214 static const List<bindings.StructDataHeader> kVersions = const [
205 const bindings.StructDataHeader(32, 0) 215 const bindings.StructDataHeader(32, 0)
206 ]; 216 ];
207 Map<String, MojomFile> files = null; 217 Map<String, MojomFile> files = null;
208 Map<String, mojom_types_mojom.UserDefinedType> resolvedTypes = null; 218 Map<String, mojom_types_mojom.UserDefinedType> resolvedTypes = null;
209 Map<String, mojom_types_mojom.DeclaredConstant> resolvedConstants = null; 219 Map<String, mojom_types_mojom.DeclaredConstant> resolvedConstants = null;
210 220
211 MojomFileGraph() : super(kVersions.last.size); 221 MojomFileGraph() : super(kVersions.last.size);
212 222
223 MojomFileGraph.init(
224 Map<String, MojomFile> this.files,
225 Map<String, mojom_types_mojom.UserDefinedType> this.resolvedTypes,
226 Map<String, mojom_types_mojom.DeclaredConstant> this.resolvedConstants
227 ) : super(kVersions.last.size);
228
213 static MojomFileGraph deserialize(bindings.Message message) { 229 static MojomFileGraph deserialize(bindings.Message message) {
214 var decoder = new bindings.Decoder(message); 230 var decoder = new bindings.Decoder(message);
215 var result = decode(decoder); 231 var result = decode(decoder);
216 if (decoder.excessHandles != null) { 232 if (decoder.excessHandles != null) {
217 decoder.excessHandles.forEach((h) => h.close()); 233 decoder.excessHandles.forEach((h) => h.close());
218 } 234 }
219 return result; 235 return result;
220 } 236 }
221 237
222 static MojomFileGraph decode(bindings.Decoder decoder0) { 238 static MojomFileGraph decode(bindings.Decoder decoder0) {
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 List<String> interfaces = null; 482 List<String> interfaces = null;
467 List<String> structs = null; 483 List<String> structs = null;
468 List<String> unions = null; 484 List<String> unions = null;
469 List<String> topLevelEnums = null; 485 List<String> topLevelEnums = null;
470 List<String> embeddedEnums = null; 486 List<String> embeddedEnums = null;
471 List<String> topLevelConstants = null; 487 List<String> topLevelConstants = null;
472 List<String> embeddedConstants = null; 488 List<String> embeddedConstants = null;
473 489
474 KeysByType() : super(kVersions.last.size); 490 KeysByType() : super(kVersions.last.size);
475 491
492 KeysByType.init(
493 List<String> this.interfaces,
494 List<String> this.structs,
495 List<String> this.unions,
496 List<String> this.topLevelEnums,
497 List<String> this.embeddedEnums,
498 List<String> this.topLevelConstants,
499 List<String> this.embeddedConstants
500 ) : super(kVersions.last.size);
501
476 static KeysByType deserialize(bindings.Message message) { 502 static KeysByType deserialize(bindings.Message message) {
477 var decoder = new bindings.Decoder(message); 503 var decoder = new bindings.Decoder(message);
478 var result = decode(decoder); 504 var result = decode(decoder);
479 if (decoder.excessHandles != null) { 505 if (decoder.excessHandles != null) {
480 decoder.excessHandles.forEach((h) => h.close()); 506 decoder.excessHandles.forEach((h) => h.close());
481 } 507 }
482 return result; 508 return result;
483 } 509 }
484 510
485 static KeysByType decode(bindings.Decoder decoder0) { 511 static KeysByType decode(bindings.Decoder decoder0) {
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 map["topLevelEnums"] = topLevelEnums; 754 map["topLevelEnums"] = topLevelEnums;
729 map["embeddedEnums"] = embeddedEnums; 755 map["embeddedEnums"] = embeddedEnums;
730 map["topLevelConstants"] = topLevelConstants; 756 map["topLevelConstants"] = topLevelConstants;
731 map["embeddedConstants"] = embeddedConstants; 757 map["embeddedConstants"] = embeddedConstants;
732 return map; 758 return map;
733 } 759 }
734 } 760 }
735 761
736 762
737 763
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698