| Index: mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl
|
| diff --git a/mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl
|
| index 60fbfc52c7ea2ccec2278e1b09302cd8b053e083..64f478ff469644ec4d34b23ea83440e00e9c5b8e 100644
|
| --- a/mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl
|
| +++ b/mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl
|
| @@ -15,6 +15,11 @@ class {{interface.name}} {
|
| typedef mojo::NoInterface _Peer;
|
| {% endif %}
|
|
|
| +{#--- Constants #}
|
| +{%- for constant in interface.constants %}
|
| + static const {{constant.kind|cpp_pod_type}} {{constant.name}};
|
| +{%- endfor %}
|
| +
|
| {#--- Enums #}
|
| {%- for enum in interface.enums %}
|
| {% macro enum_def() %}{% include "enum_declaration.tmpl" %}{% endmacro %}
|
|
|