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

Side by Side Diff: mojo/public/interfaces/bindings/mojom_files.mojom

Issue 1417473002: Improves the representation of values in Mojom. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Remove some TODOs. Created 5 years, 2 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
« no previous file with comments | « no previous file | mojo/public/interfaces/bindings/mojom_types.mojom » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | mojo/public/interfaces/bindings/mojom_types.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698