Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(293)

Unified Diff: mojo/public/bindings/generators/cpp_templates/interface_declaration.tmpl

Issue 198343002: Mojo: request/response bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 %}
};
« no previous file with comments | « mojo/public/bindings/callback.h.pump ('k') | mojo/public/bindings/generators/cpp_templates/interface_definition.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698