Index: mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl |
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl |
index 9ba7afd4bfa3da75ecddf913d38d4b771079fc07..6d4516c435afaaf72a09976a161aa324e3a198c5 100644 |
--- a/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl |
+++ b/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl |
@@ -1,5 +1,3 @@ |
-{% from "enum_macros.tmpl" import enum_decl -%} |
- |
class {{export_attribute}} {{struct.name}} { |
public: |
using DataView = {{struct.name}}DataView; |
@@ -7,11 +5,7 @@ class {{export_attribute}} {{struct.name}} { |
{#--- Enums #} |
{%- for enum in struct.enums -%} |
-{%- if enum|is_native_only_kind %} |
- using {{enum.name}} = mojo::NativeEnum; |
-{%- else %} |
- {{enum_decl(enum)|indent(2)}} |
-{%- endif %} |
+ using {{enum.name}} = {{enum|get_name_for_kind(flatten_nested_kind=True)}}; |
{%- endfor %} |
{#--- Constants #} |