OLD | NEW |
1 {% filter format_blink_cpp_source_code %} | 1 {% filter format_blink_cpp_source_code %} |
2 | 2 |
3 {% include 'copyright_block.txt' %} | 3 {% include 'copyright_block.txt' %} |
4 #include "{{v8_class_or_partial}}.h" | 4 #include "{{v8_class_or_partial}}.h" |
5 | 5 |
6 {% for filename in cpp_includes if filename != '%s.h' % cpp_class_or_partial %} | 6 {% for filename in cpp_includes if filename != '%s.h' % cpp_class_or_partial %} |
7 #include "{{filename}}" | 7 #include "{{filename}}" |
8 {% endfor %} | 8 {% endfor %} |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 {# Constants #} | 87 {# Constants #} |
88 {% from 'constants.cpp.tmpl' import constant_getter_callback | 88 {% from 'constants.cpp.tmpl' import constant_getter_callback |
89 with context %} | 89 with context %} |
90 {% for constant in constants | has_special_getter %} | 90 {% for constant in constants | has_special_getter %} |
91 {{constant_getter_callback(constant)}} | 91 {{constant_getter_callback(constant)}} |
92 {% endfor %} | 92 {% endfor %} |
93 {# Attributes #} | 93 {# Attributes #} |
94 {##############################################################################} | 94 {##############################################################################} |
95 {% from 'attributes.cpp.tmpl' import constructor_getter_callback, | 95 {% from 'attributes.cpp.tmpl' import constructor_getter_callback, |
96 attribute_getter, attribute_getter_callback, | 96 attribute_getter, attribute_getter_callback, |
97 attribute_setter, attribute_setter_callback, | 97 attribute_setter, attribute_setter_callback, |
| 98 attribute_cache_property_callback, |
98 attribute_getter_implemented_in_private_script, | 99 attribute_getter_implemented_in_private_script, |
99 attribute_setter_implemented_in_private_script | 100 attribute_setter_implemented_in_private_script |
100 with context %} | 101 with context %} |
101 {% for attribute in attributes if attribute.should_be_exposed_to_script %} | 102 {% for attribute in attributes if attribute.should_be_exposed_to_script %} |
| 103 {% if attribute.is_cached_accessor %} |
| 104 {{attribute_cache_property_callback(attribute)}} |
| 105 {% endif %} |
102 {% for world_suffix in attribute.world_suffixes %} | 106 {% for world_suffix in attribute.world_suffixes %} |
103 {% if not attribute.has_custom_getter and not attribute.constructor_type %} | 107 {% if not attribute.has_custom_getter and not attribute.constructor_type %} |
104 {{attribute_getter(attribute, world_suffix)}} | 108 {{attribute_getter(attribute, world_suffix)}} |
105 {% endif %} | 109 {% endif %} |
106 {% if not attribute.constructor_type %} | 110 {% if not attribute.constructor_type %} |
107 {{attribute_getter_callback(attribute, world_suffix)}} | 111 {{attribute_getter_callback(attribute, world_suffix)}} |
108 {% elif attribute.needs_constructor_getter_callback %} | 112 {% elif attribute.needs_constructor_getter_callback %} |
109 {{constructor_getter_callback(attribute, world_suffix)}} | 113 {{constructor_getter_callback(attribute, world_suffix)}} |
110 {% endif %} | 114 {% endif %} |
111 {% if attribute.has_setter %} | 115 {% if attribute.has_setter %} |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 461 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
458 {{attribute_getter_implemented_in_private_script(attribute)}} | 462 {{attribute_getter_implemented_in_private_script(attribute)}} |
459 {% if attribute.has_setter %} | 463 {% if attribute.has_setter %} |
460 {{attribute_setter_implemented_in_private_script(attribute)}} | 464 {{attribute_setter_implemented_in_private_script(attribute)}} |
461 {% endif %} | 465 {% endif %} |
462 {% endfor %} | 466 {% endfor %} |
463 {% block partial_interface %}{% endblock %} | 467 {% block partial_interface %}{% endblock %} |
464 } // namespace blink | 468 } // namespace blink |
465 | 469 |
466 {% endfilter %}{# format_blink_cpp_source_code #} | 470 {% endfilter %}{# format_blink_cpp_source_code #} |
OLD | NEW |