| Index: third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl
|
| diff --git a/third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl b/third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl
|
| index b5753c26a001eebabd14697eafbff861b33a901b..d06a1a048f45f99235a1cec72a801bd6f2303049 100644
|
| --- a/third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl
|
| +++ b/third_party/WebKit/Source/build/scripts/templates/fields/external.tmpl
|
| @@ -1,8 +1,15 @@
|
| +{% from 'fields/field.tmpl' import decode, encode, getter_expression, setter_expression, return_type %}
|
| {% import 'fields/base.tmpl' as base %}
|
| {% from 'fields/field.tmpl' import decode %}
|
| -{% macro decl_methods(field) %}
|
| -{{base.decl_methods(field)}}
|
| +{% macro decl_public_methods(field) %}
|
| +{{base.decl_public_methods(field)}}
|
| void {{field.setter_method_name}}({{field.type_name}}&& v) {
|
| {{field.name}} = std::move({{decode(field, "v")}});
|
| }
|
| {% endmacro %}
|
| +
|
| +{% macro decl_protected_methods(field) -%}
|
| +{{field.type_name}}& {{field.internal_mutable_method_name}}() {
|
| + return {{decode(field, getter_expression(field))}};
|
| +}
|
| +{%- endmacro %}
|
|
|