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..07a42567ce88dd6d31a1879803338e43df644259 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,14 @@ |
{% 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}}() { |
suzyh_UTC10 (ex-contributor)
2017/04/20 00:12:18
return_type?
nainar
2017/04/20 02:53:04
Done.
suzyh_UTC10 (ex-contributor)
2017/04/20 03:48:02
Er, isn't it a function call? return_type(field)?
nainar
2017/04/20 05:15:58
Fixed. Scratches head about how this built.
|
+ return {{decode(field, field.name)}}; |
+} |
+{%- endmacro %} |