| Index: mojo/public/bindings/generators/cpp_templates/interface_declaration.tmpl
|
| diff --git a/mojo/public/bindings/generators/cpp_templates/interface_declaration.tmpl b/mojo/public/bindings/generators/cpp_templates/interface_declaration.tmpl
|
| index b18289562abb0686c766ba22181cc1946606db74..47d741b314150d86070404bb1baae72d8d515d9b 100644
|
| --- a/mojo/public/bindings/generators/cpp_templates/interface_declaration.tmpl
|
| +++ b/mojo/public/bindings/generators/cpp_templates/interface_declaration.tmpl
|
| @@ -8,7 +8,14 @@ class {{interface.name}} {
|
| typedef {{interface.name}}Stub _Stub;
|
| typedef {{interface.peer}} _Peer;
|
|
|
| -{%- for method in interface.methods %}
|
| +{#--- Enums #}
|
| +{%- for enum in interface.enums %}
|
| +{% macro enum_def() %}{% include "enum_declaration.tmpl" %}{% endmacro %}
|
| + {{enum_def()|indent(2)}}
|
| +{%- endfor %}
|
| +
|
| +{#--- Methods #}
|
| +{% for method in interface.methods %}
|
| virtual void {{method.name}}(
|
| {%- for param in method.parameters -%}
|
| {{param.kind|cpp_const_wrapper_type}} {{param.name}}
|
|
|