| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 479 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
| 476 {{attribute_getter_implemented_in_private_script(attribute)}} | 480 {{attribute_getter_implemented_in_private_script(attribute)}} |
| 477 {% if attribute.has_setter %} | 481 {% if attribute.has_setter %} |
| 478 {{attribute_setter_implemented_in_private_script(attribute)}} | 482 {{attribute_setter_implemented_in_private_script(attribute)}} |
| 479 {% endif %} | 483 {% endif %} |
| 480 {% endfor %} | 484 {% endfor %} |
| 481 {% block partial_interface %}{% endblock %} | 485 {% block partial_interface %}{% endblock %} |
| 482 } // namespace blink | 486 } // namespace blink |
| 483 | 487 |
| 484 {% endfilter %}{# format_blink_cpp_source_code #} | 488 {% endfilter %}{# format_blink_cpp_source_code #} |
| OLD | NEW |