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

Unified Diff: mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl

Issue 1956603002: Mojo C++ bindings: switch union to use the new serialization interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20_array_serializer
Patch Set: Created 4 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: mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl
index 342bb0680fb828f93965f76aa5b0e325e5449a68..e7e38548fecc5774d1bb35f961cb89795d491e60 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl
@@ -124,11 +124,6 @@ const {{constant.kind|cpp_pod_type}} {{struct.name}}::{{constant.name}} = {{cons
{%- include "interface_definition.tmpl" %}
{%- endfor %}
-{#--- Union Serialization Helpers #}
-{%- for union in unions %}
-{%- include "union_serialization_definition.tmpl" %}
-{%- endfor %}
-
{%- if variant %}
} // namespace {{variant}}
{%- endif %}
@@ -145,6 +140,11 @@ namespace mojo {
{%- endif %}
{%- endfor %}
+{#--- Union Serialization Helpers #}
+{%- for union in unions %}
+{%- include "union_serialization_definition.tmpl" %}
+{%- endfor %}
+
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698