| Index: third_party/WebKit/Source/build/scripts/templates/fields/monotonic_flag.tmpl
|
| diff --git a/third_party/WebKit/Source/build/scripts/templates/fields/monotonic_flag.tmpl b/third_party/WebKit/Source/build/scripts/templates/fields/monotonic_flag.tmpl
|
| index dfae1505d607526465d4d271b8dbf48b441e635f..387d6b4ca86ce293fcb1fe18a34f8760aaf65d80 100644
|
| --- a/third_party/WebKit/Source/build/scripts/templates/fields/monotonic_flag.tmpl
|
| +++ b/third_party/WebKit/Source/build/scripts/templates/fields/monotonic_flag.tmpl
|
| @@ -1,5 +1,5 @@
|
| -{% from 'fields/field.tmpl' import encode %}
|
| -{% macro decl_methods(field) %}
|
| +{% from 'fields/field.tmpl' import encode, decode, getter_expression, setter_expression, return_type %}
|
| +{% macro decl_public_methods(field) %}
|
| bool {{field.getter_method_name}}() const {
|
| return {{field.name}};
|
| }
|
| @@ -7,3 +7,8 @@ void {{field.setter_method_name}}() {
|
| {{field.name}} = {{encode(field, "true")}};
|
| }
|
| {% endmacro %}
|
| +{% macro decl_protected_methods(field) -%}
|
| +void {{field.internal_setter_method_name}}(const {{field.type_name}}& v) {
|
| + {{setter_expression(field)}} = {{encode(field, "v")}};
|
| +}
|
| +{%- endmacro %}
|
|
|