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

Unified Diff: third_party/mojo/src/mojo/public/tools/bindings/generators/go_templates/source.tmpl

Issue 1157843002: Update mojo sdk to rev 1dc8a9a5db73d3718d99917fadf31f5fb2ebad4f (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
Index: third_party/mojo/src/mojo/public/tools/bindings/generators/go_templates/source.tmpl
diff --git a/third_party/mojo/src/mojo/public/tools/bindings/generators/go_templates/source.tmpl b/third_party/mojo/src/mojo/public/tools/bindings/generators/go_templates/source.tmpl
index 820f1135febd5de2c12d76e51987b2058a6fadad..e864d67ca8b3e220e173691ce6df5f71a56d66fe 100644
--- a/third_party/mojo/src/mojo/public/tools/bindings/generators/go_templates/source.tmpl
+++ b/third_party/mojo/src/mojo/public/tools/bindings/generators/go_templates/source.tmpl
@@ -19,6 +19,7 @@ import (
{% import "enum.tmpl" as enum_macros %}
{% import "interface.tmpl" as interface_macros %}
{% import "struct.tmpl" as struct_macros %}
+{% import "union.tmpl" as union_macros %}
{#- Enum definitions #}
{% for enum in enums %}
@@ -34,3 +35,8 @@ import (
{% for struct in structs %}
{{struct_macros.define(struct)}}
{%- endfor %}
+
+{#- Union definitions #}
+{% for union in unions %}
+{{union_macros.define(union)}}
+{%- endfor %}

Powered by Google App Engine
This is Rietveld 408576698