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

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

Issue 2419163002: More fix on generating correct C++ symbol name for scoped native enums (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/generators/cpp_templates/module-shared-internal.h.tmpl
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/module-shared-internal.h.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/module-shared-internal.h.tmpl
index bb5acd934333c149e94912d258c0630b5ded7bbd..f718276c2a9f370886c9b243d0c8618415f184d3 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/module-shared-internal.h.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/module-shared-internal.h.tmpl
@@ -50,7 +50,8 @@ class {{union.name}}_Data;
{%- from "enum_macros.tmpl" import enum_data_decl -%}
{%- for enum in all_enums %}
{%- if enum|is_native_only_kind %}
-using {{enum.name}}_Data = mojo::internal::NativeEnum_Data;
+using {{enum|get_name_for_kind(flatten_nested_kind=True)}}_Data =
+ mojo::internal::NativeEnum_Data;
{%- else %}
{{enum_data_decl(enum)}}
{%- endif %}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698