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

Unified Diff: mojom/generators/common/common.go

Issue 2069943003: Mojom target for generating & building C bindings. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojom/generators/common/cli.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojom/generators/common/common.go
diff --git a/mojom/generators/common/common.go b/mojom/generators/common/common.go
index ca70ad39676c3307b519d6bd1b830836910abdcd..6915780c03fa6379a375c2e095d95e9045f14503 100644
--- a/mojom/generators/common/common.go
+++ b/mojom/generators/common/common.go
@@ -33,6 +33,12 @@ type GeneratorConfig interface {
// generate output files only for the files which were explicitly specified
// (as indicated by the fact that they have a non-empty |SpecifiedFileName|).
GenImports() bool
+
+ // GenTypeInfo returns true if the generator should generate type information
+ // describing the mojom file it is generating for. This type information is a
+ // typically a serialized mojom describing all data types defined in a mojom,
+ // which can be used for mojom type-introspection.
+ GenTypeInfo() bool
}
// Writer is the interface used by the generators to write their output.
« no previous file with comments | « mojom/generators/common/cli.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698