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

Unified Diff: mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl

Issue 917333003: Mojo C++ bindings templates: use the same templates for user-defined structs and method params. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | mojo/public/tools/bindings/generators/cpp_templates/params_definition.tmpl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl
diff --git a/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl
index 863d18fe4bb8e13082a31e2ff04ace901c551446..969bea2f58d922220a61ab9c84f84d645a314616 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl
@@ -47,10 +47,12 @@ namespace {
{%- set method_name = "k%s_%s_Name"|format(interface.name, method.name) %}
const uint32_t {{method_name}} = {{method.ordinal}};
{% set struct = method|struct_from_method %}
-{%- include "params_definition.tmpl" %}
+{% include "struct_declaration.tmpl" %}
+{%- include "struct_definition.tmpl" %}
{%- if method.response_parameters != None %}
{%- set struct = method|response_struct_from_method %}
-{%- include "params_definition.tmpl" %}
+{% include "struct_declaration.tmpl" %}
+{%- include "struct_definition.tmpl" %}
{%- endif %}
{%- endfor %}
{%- endfor %}
« no previous file with comments | « no previous file | mojo/public/tools/bindings/generators/cpp_templates/params_definition.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698