| 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 mojom_files_mojom; | 5 library mojom_files_mojom; |
| 6 import 'package:mojo/bindings.dart' as bindings; | 6 import 'package:mojo/bindings.dart' as bindings; |
| 7 | 7 |
| 8 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types_
mojom; | 8 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types_
mojom; |
| 9 | 9 |
| 10 | 10 |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 map["moduleNamespace"] = moduleNamespace; | 194 map["moduleNamespace"] = moduleNamespace; |
| 195 map["attributes"] = attributes; | 195 map["attributes"] = attributes; |
| 196 map["imports"] = imports; | 196 map["imports"] = imports; |
| 197 map["declaredMojomObjects"] = declaredMojomObjects; | 197 map["declaredMojomObjects"] = declaredMojomObjects; |
| 198 map["serializedRuntimeTypeInfo"] = serializedRuntimeTypeInfo; | 198 map["serializedRuntimeTypeInfo"] = serializedRuntimeTypeInfo; |
| 199 return map; | 199 return map; |
| 200 } | 200 } |
| 201 } | 201 } |
| 202 | 202 |
| 203 | 203 |
| 204 | |
| 205 | |
| 206 class MojomFileGraph extends bindings.Struct { | 204 class MojomFileGraph extends bindings.Struct { |
| 207 static const List<bindings.StructDataHeader> kVersions = const [ | 205 static const List<bindings.StructDataHeader> kVersions = const [ |
| 208 const bindings.StructDataHeader(32, 0) | 206 const bindings.StructDataHeader(32, 0) |
| 209 ]; | 207 ]; |
| 210 Map<String, MojomFile> files = null; | 208 Map<String, MojomFile> files = null; |
| 211 Map<String, mojom_types_mojom.UserDefinedType> resolvedTypes = null; | 209 Map<String, mojom_types_mojom.UserDefinedType> resolvedTypes = null; |
| 212 Map<String, mojom_types_mojom.UserDefinedValue> resolvedValues = null; | 210 Map<String, mojom_types_mojom.UserDefinedValue> resolvedValues = null; |
| 213 | 211 |
| 214 MojomFileGraph() : super(kVersions.last.size); | 212 MojomFileGraph() : super(kVersions.last.size); |
| 215 | 213 |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 Map toJson() { | 456 Map toJson() { |
| 459 Map map = new Map(); | 457 Map map = new Map(); |
| 460 map["files"] = files; | 458 map["files"] = files; |
| 461 map["resolvedTypes"] = resolvedTypes; | 459 map["resolvedTypes"] = resolvedTypes; |
| 462 map["resolvedValues"] = resolvedValues; | 460 map["resolvedValues"] = resolvedValues; |
| 463 return map; | 461 return map; |
| 464 } | 462 } |
| 465 } | 463 } |
| 466 | 464 |
| 467 | 465 |
| 468 | |
| 469 | |
| 470 class KeysByType extends bindings.Struct { | 466 class KeysByType extends bindings.Struct { |
| 471 static const List<bindings.StructDataHeader> kVersions = const [ | 467 static const List<bindings.StructDataHeader> kVersions = const [ |
| 472 const bindings.StructDataHeader(64, 0) | 468 const bindings.StructDataHeader(64, 0) |
| 473 ]; | 469 ]; |
| 474 List<String> interfaces = null; | 470 List<String> interfaces = null; |
| 475 List<String> structs = null; | 471 List<String> structs = null; |
| 476 List<String> unions = null; | 472 List<String> unions = null; |
| 477 List<String> topLevelEnums = null; | 473 List<String> topLevelEnums = null; |
| 478 List<String> embeddedEnums = null; | 474 List<String> embeddedEnums = null; |
| 479 List<String> topLevelConstants = null; | 475 List<String> topLevelConstants = null; |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 map["topLevelEnums"] = topLevelEnums; | 732 map["topLevelEnums"] = topLevelEnums; |
| 737 map["embeddedEnums"] = embeddedEnums; | 733 map["embeddedEnums"] = embeddedEnums; |
| 738 map["topLevelConstants"] = topLevelConstants; | 734 map["topLevelConstants"] = topLevelConstants; |
| 739 map["embeddedConstants"] = embeddedConstants; | 735 map["embeddedConstants"] = embeddedConstants; |
| 740 return map; | 736 return map; |
| 741 } | 737 } |
| 742 } | 738 } |
| 743 | 739 |
| 744 | 740 |
| 745 | 741 |
| 746 | |
| 747 | |
| 748 | |
| OLD | NEW |