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 | 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; |
| 11 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; |
| 12 |
11 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types_
mojom; | 13 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types_
mojom; |
12 | 14 |
13 | 15 |
14 | 16 |
15 class MojomFile extends bindings.Struct { | 17 class MojomFile extends bindings.Struct { |
16 static const List<bindings.StructDataHeader> kVersions = const [ | 18 static const List<bindings.StructDataHeader> kVersions = const [ |
17 const bindings.StructDataHeader(56, 0) | 19 const bindings.StructDataHeader(56, 0) |
18 ]; | 20 ]; |
19 String fileName = null; | 21 String fileName = null; |
20 String specifiedFileName = null; | 22 String specifiedFileName = null; |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 map["specifiedFileName"] = specifiedFileName; | 157 map["specifiedFileName"] = specifiedFileName; |
156 map["moduleNamespace"] = moduleNamespace; | 158 map["moduleNamespace"] = moduleNamespace; |
157 map["attributes"] = attributes; | 159 map["attributes"] = attributes; |
158 map["imports"] = imports; | 160 map["imports"] = imports; |
159 map["declaredMojomObjects"] = declaredMojomObjects; | 161 map["declaredMojomObjects"] = declaredMojomObjects; |
160 return map; | 162 return map; |
161 } | 163 } |
162 } | 164 } |
163 | 165 |
164 | 166 |
| 167 |
| 168 |
165 class MojomFileGraph extends bindings.Struct { | 169 class MojomFileGraph extends bindings.Struct { |
166 static const List<bindings.StructDataHeader> kVersions = const [ | 170 static const List<bindings.StructDataHeader> kVersions = const [ |
167 const bindings.StructDataHeader(32, 0) | 171 const bindings.StructDataHeader(32, 0) |
168 ]; | 172 ]; |
169 Map<String, MojomFile> files = null; | 173 Map<String, MojomFile> files = null; |
170 Map<String, mojom_types_mojom.UserDefinedType> resolvedTypes = null; | 174 Map<String, mojom_types_mojom.UserDefinedType> resolvedTypes = null; |
171 Map<String, mojom_types_mojom.UserDefinedValue> resolvedValues = null; | 175 Map<String, mojom_types_mojom.UserDefinedValue> resolvedValues = null; |
172 | 176 |
173 MojomFileGraph() : super(kVersions.last.size); | 177 MojomFileGraph() : super(kVersions.last.size); |
174 | 178 |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 Map toJson() { | 415 Map toJson() { |
412 Map map = new Map(); | 416 Map map = new Map(); |
413 map["files"] = files; | 417 map["files"] = files; |
414 map["resolvedTypes"] = resolvedTypes; | 418 map["resolvedTypes"] = resolvedTypes; |
415 map["resolvedValues"] = resolvedValues; | 419 map["resolvedValues"] = resolvedValues; |
416 return map; | 420 return map; |
417 } | 421 } |
418 } | 422 } |
419 | 423 |
420 | 424 |
| 425 |
| 426 |
421 class KeysByType extends bindings.Struct { | 427 class KeysByType extends bindings.Struct { |
422 static const List<bindings.StructDataHeader> kVersions = const [ | 428 static const List<bindings.StructDataHeader> kVersions = const [ |
423 const bindings.StructDataHeader(64, 0) | 429 const bindings.StructDataHeader(64, 0) |
424 ]; | 430 ]; |
425 List<String> interfaces = null; | 431 List<String> interfaces = null; |
426 List<String> structs = null; | 432 List<String> structs = null; |
427 List<String> unions = null; | 433 List<String> unions = null; |
428 List<String> topLevelEnums = null; | 434 List<String> topLevelEnums = null; |
429 List<String> embeddedEnums = null; | 435 List<String> embeddedEnums = null; |
430 List<String> topLevelConstants = null; | 436 List<String> topLevelConstants = null; |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 map["unions"] = unions; | 664 map["unions"] = unions; |
659 map["topLevelEnums"] = topLevelEnums; | 665 map["topLevelEnums"] = topLevelEnums; |
660 map["embeddedEnums"] = embeddedEnums; | 666 map["embeddedEnums"] = embeddedEnums; |
661 map["topLevelConstants"] = topLevelConstants; | 667 map["topLevelConstants"] = topLevelConstants; |
662 map["embeddedConstants"] = embeddedConstants; | 668 map["embeddedConstants"] = embeddedConstants; |
663 return map; | 669 return map; |
664 } | 670 } |
665 } | 671 } |
666 | 672 |
667 | 673 |
| 674 |
| 675 |
| 676 |
| 677 |
OLD | NEW |