| Index: mojo/public/tools/bindings/generators/cpp_templates/interface_macros.tmpl
|
| diff --git a/mojo/public/tools/bindings/generators/cpp_templates/interface_macros.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/interface_macros.tmpl
|
| index b00b1dad5adcd1fda91a0319aa661e32b653a288..ded54f5f38c7396203feb13a0ca78189536e9c7c 100644
|
| --- a/mojo/public/tools/bindings/generators/cpp_templates/interface_macros.tmpl
|
| +++ b/mojo/public/tools/bindings/generators/cpp_templates/interface_macros.tmpl
|
| @@ -5,13 +5,13 @@
|
| {%- endfor %}
|
| {%- endmacro %}
|
|
|
| -{%- macro declare_callback(method) -%}
|
| +{%- macro declare_callback(method, use_wtf_types) -%}
|
| mojo::Callback<void(
|
| {%- for param in method.response_parameters -%}
|
| {#- TODO(yzshen): Previously |cpp_result_type| is used here incorrectly.
|
| The outcome is we will use mojo::String instead of const mojo::String&.
|
| Preserve the behavior temporarily. #}
|
| -{%- if not param.kind|is_string_kind -%}
|
| +{%- if (not param.kind|is_string_kind) or use_wtf_types -%}
|
| {{param.kind|cpp_const_wrapper_type}}
|
| {%- else -%}
|
| mojo::String
|
|
|