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

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

Issue 2226853002: Mojo C++ bindings: add support for UnionTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@85_10_inline_more
Patch Set: . Created 4 years, 4 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.h.tmpl
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl
index d21a6581ac3f81088368c41af435a7efa93aeb3a..90c54f0ce06a508d86480e662271a38aac93ccb0 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl
@@ -77,6 +77,7 @@ struct DataViewTraits<{{kind|get_qualified_name_for_kind}}DataView> {
#include "mojo/public/cpp/bindings/string_data_view.h"
#include "mojo/public/cpp/bindings/struct_ptr.h"
#include "mojo/public/cpp/bindings/struct_traits.h"
+#include "mojo/public/cpp/bindings/union_traits.h"
#include "{{variant_path}}-internal.h"
{%- for import in imports %}
{%- if variant %}
@@ -273,6 +274,7 @@ namespace std {
{%- for union in unions %}
{% include "wrapper_union_class_template_definition.tmpl" %}
+{% include "union_data_view_definition.tmpl" %}
{%- endfor %}
{%- for struct in structs %}

Powered by Google App Engine
This is Rietveld 408576698