Index: third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl |
diff --git a/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl b/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl |
index 863d18fe4bb8e13082a31e2ff04ace901c551446..969bea2f58d922220a61ab9c84f84d645a314616 100644 |
--- a/third_party/mojo/src/mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl |
+++ b/third_party/mojo/src/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 %} |