Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: third_party/WebKit/Source/build/scripts/templates/fields/storage_only.tmpl

Issue 2829213002: Clean up ComputedStyle field templates. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/build/scripts/templates/fields/primitive.tmpl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {% from 'fields/field.tmpl' import encode, decode, return_type, argument_type %} 1 {% import 'fields/base.tmpl' as base %}
2
2 {% macro decl_public_methods(field) -%} 3 {% macro decl_public_methods(field) -%}
3 // Getters and setters not generated 4 // Getters and setters not generated
4 {%- endmacro %} 5 {%- endmacro %}
6
5 {% macro decl_protected_methods(field) -%} 7 {% macro decl_protected_methods(field) -%}
6 {% if field.is_bit_field %} 8 {% if not field.is_bit_field -%}
7 {{return_type(field)}} {{field.internal_getter_method_name}}() const { 9 {{base.decl_mutable_method(field)}}
8 return {{decode(field, field.name)}}; 10 {%- endif %}
9 } 11 {{base.decl_internal_getter_method(field)}}
10 {% else %} 12 {{base.decl_internal_setter_method(field)}}
11 const {{return_type(field)}} {{field.internal_getter_method_name}}() const {
12 return {{decode(field, field.name)}};
13 }
14 {{return_type(field)}} {{field.internal_mutable_method_name}}() {
15 return {{decode(field, field.name)}};
16 }
17 {% endif %}
18 void {{field.internal_setter_method_name}}({{argument_type(field)}} v) {
19 {{field.name}} = {{encode(field, "v")}};
20 }
21 {%- endmacro %} 13 {%- endmacro %}
22 14
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/build/scripts/templates/fields/primitive.tmpl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698