OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 [JavaPackage="org.chromium.mojo.bindings.types"] | 5 [JavaPackage="org.chromium.mojo.bindings.types"] |
6 module mojo.bindings.types; | 6 module mojo.bindings.types; |
7 | 7 |
8 import "mojom_types.mojom"; | 8 import "mojom_types.mojom"; |
9 | 9 |
10 /* | 10 /* |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 // in the graph. This KeysByType selects the keys of the types and constants | 52 // in the graph. This KeysByType selects the keys of the types and constants |
53 // defined in this module | 53 // defined in this module |
54 KeysByType declared_mojom_objects; | 54 KeysByType declared_mojom_objects; |
55 }; | 55 }; |
56 | 56 |
57 // Represents a directed acyclic graph of MojomFiles. | 57 // Represents a directed acyclic graph of MojomFiles. |
58 struct MojomFileGraph { | 58 struct MojomFileGraph { |
59 // All the files in this graph. The keys are file names | 59 // All the files in this graph. The keys are file names |
60 map<string, MojomFile> files; | 60 map<string, MojomFile> files; |
61 | 61 |
62 // All the resolved user-defined types known to this descriptor. The keys are | 62 // All the resolved user-defined types known to this structure. The keys are |
63 // the |type_key|s. | 63 // the |type_key|s. |
64 map<string, UserDefinedType> resolved_types; | 64 map<string, UserDefinedType> resolved_types; |
65 | 65 |
66 // All the resolved declared constants known to this descriptor. The keys are | 66 // All the resolved user-defined values known to this structure. The keys are |
67 // the |constant_key|s. | 67 // the |value_key|s. |
68 map<string, DeclaredConstant> resolved_constants; | 68 map<string, UserDefinedValue> resolved_values; |
69 }; | 69 }; |
70 | 70 |
71 // A KeysByType struct organizes by type all of the type and constant keys known | 71 // A KeysByType struct organizes by type all of the type and constant keys known |
72 // to an associated MojomFileGraph. | 72 // to an associated MojomFileGraph. |
73 struct KeysByType { | 73 struct KeysByType { |
74 // All the type_keys known to the owning MojomFileGraph, organized by | 74 // All the type_keys known to the owning MojomFileGraph, organized by |
75 // type; | 75 // type; |
76 array<string>? interfaces; | 76 array<string>? interfaces; |
77 array<string>? structs; | 77 array<string>? structs; |
78 array<string>? unions; | 78 array<string>? unions; |
79 array<string>? top_level_enums; | 79 array<string>? top_level_enums; |
80 array<string>? embedded_enums; | 80 array<string>? embedded_enums; |
81 | 81 |
82 // All the constant_keys known to the owning MojomFileGraph. | 82 // All the constant_keys known to the owning MojomFileGraph. |
83 array<string>? top_level_constants; | 83 array<string>? top_level_constants; |
84 array<string>? embedded_constants; | 84 array<string>? embedded_constants; |
85 }; | 85 }; |
86 | 86 |
OLD | NEW |