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

Unified Diff: mojo/public/tools/bindings/generators/cpp_templates/enum_serialization_declaration.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/enum_serialization_declaration.tmpl
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/enum_serialization_declaration.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/enum_serialization_declaration.tmpl
index 3671a4cde62775f6268de0a7df8eeb432b3d3afd..e42128d5381b226e41025ae647ece824e7094421 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/enum_serialization_declaration.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/enum_serialization_declaration.tmpl
@@ -1,7 +1,7 @@
{%- set mojom_type = enum|get_qualified_name_for_kind %}
template <>
-struct {{export_attribute}} EnumTraits<{{mojom_type}}, {{mojom_type}}> {
+struct EnumTraits<{{mojom_type}}, {{mojom_type}}> {
static {{mojom_type}} ToMojom({{mojom_type}} input) { return input; }
static bool FromMojom({{mojom_type}} input, {{mojom_type}}* output) {
*output = input;
« no previous file with comments | « mojo/public/tools/bindings/BUILD.gn ('k') | mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698