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 cb9969218ccaea517c9ce825e160e7bcf4b12852..c401a1fffad8afae2e28ae4766e2d23b5c8b893f 100644 |
--- a/mojo/public/bindings/generators/cpp_templates/interface_declaration.tmpl |
+++ b/mojo/public/bindings/generators/cpp_templates/interface_declaration.tmpl |
@@ -1,3 +1,4 @@ |
+{%- import "interface_macros.tmpl" as interface_macros %} |
class {{interface.name}}Proxy; |
class {{interface.name}}Stub; |
{% if interface.peer %} |
@@ -21,13 +22,8 @@ class {{interface.name}} { |
{%- endfor %} |
{#--- Methods #} |
-{% for method in interface.methods %} |
- virtual void {{method.name}}( |
-{%- for param in method.parameters -%} |
- {{param.kind|cpp_const_wrapper_type}} {{param.name}} |
-{%- if not loop.last %}, {% endif -%} |
-{%- endfor -%} |
- ) = 0; |
+{%- for method in interface.methods %} |
+ virtual void {{method.name}}({{interface_macros.declare_request_params(method)}}) = 0; |
{%- endfor %} |
}; |