| Index: third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl
|
| diff --git a/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl b/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl
|
| index 6242be4cc4ff618cd85119b445bcf8ac47ff26c7..47e2df86fb7c29190809738ac9c5ebf9007ef743 100644
|
| --- a/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl
|
| +++ b/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/wrapper_class_declaration.tmpl
|
| @@ -3,15 +3,21 @@ class {{struct.name}} {
|
| public:
|
| using Data_ = internal::{{struct.name}}_Data;
|
|
|
| -{#--- Constants #}
|
| -{%- for constant in struct.constants %}
|
| - static const {{constant.kind|cpp_pod_type}} {{constant.name}};
|
| -{%- endfor %}
|
| {#--- Enums #}
|
| {%- for enum in struct.enums -%}
|
| {% macro enum_def() %}{% include "enum_declaration.tmpl" %}{% endmacro %}
|
| {{enum_def()|indent(2)}}
|
| {%- endfor %}
|
| +
|
| +{#--- Constants #}
|
| +{%- for constant in struct.constants %}
|
| +{%- if constant.kind|is_integral_kind %}
|
| + static const {{constant.kind|cpp_pod_type}} {{constant.name}} = {{constant|constant_value}};
|
| +{%- else %}
|
| + static const {{constant.kind|cpp_pod_type}} {{constant.name}};
|
| +{%- endif %}
|
| +{%- endfor %}
|
| +
|
| static {{struct.name}}Ptr New();
|
|
|
| template <typename U>
|
|
|