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

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

Issue 2413093004: Generate the 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.h.tmpl
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/module-shared.h.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/module-shared.h.tmpl
index 4b18a218709f10cae91f545f94a4210a37ea1c36..da99eb380be2c11d59df1a4bc22dad5c6bec0f39 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/module-shared.h.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/module-shared.h.tmpl
@@ -97,7 +97,7 @@ namespace internal {
{%- from "enum_macros.tmpl" import enum_decl%}
{%- for enum in all_enums %}
{%- if enum|is_native_only_kind %}
-using {{enum.name}} = mojo::NativeEnum;
+using {{enum|get_name_for_kind(flatten_nested_kind=True)}} = mojo::NativeEnum;
{%- else %}
{{enum_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