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 { |
11 {% set dom_template = '%s::domTemplate' % v8_class if not is_array_buffer_or_vie
w else '0' %} | 11 {% set dom_template = '%s::domTemplate' % v8_class if not is_array_buffer_or_vie
w else '0' %} |
12 {% set visit_dom_wrapper = '%s::visitDOMWrapper' % v8_class | 12 {% set visit_dom_wrapper = '%s::visitDOMWrapper' % v8_class |
13 if has_visit_dom_wrapper else '0' %} | 13 if has_visit_dom_wrapper else '0' %} |
14 {% set has_prepare_prototype_and_interface_object = | 14 {% set has_prepare_prototype_and_interface_object = |
15 unscopeables or has_conditional_attributes_on_prototype or | 15 unscopables or has_conditional_attributes_on_prototype or |
16 methods | conditionally_exposed(is_partial) %} | 16 methods | conditionally_exposed(is_partial) %} |
17 {% set prepare_prototype_and_interface_object_func = | 17 {% set prepare_prototype_and_interface_object_func = |
18 '%s::preparePrototypeAndInterfaceObject' % v8_class | 18 '%s::preparePrototypeAndInterfaceObject' % v8_class |
19 if has_prepare_prototype_and_interface_object | 19 if has_prepare_prototype_and_interface_object |
20 else 'nullptr' %} | 20 else 'nullptr' %} |
21 {% set parent_wrapper_type_info = '&V8%s::wrapperTypeInfo' % parent_interface | 21 {% set parent_wrapper_type_info = '&V8%s::wrapperTypeInfo' % parent_interface |
22 if parent_interface else '0' %} | 22 if parent_interface else '0' %} |
23 {% set wrapper_type_prototype = 'WrapperTypeExceptionPrototype' if is_exception
else | 23 {% set wrapper_type_prototype = 'WrapperTypeExceptionPrototype' if is_exception
else |
24 'WrapperTypeObjectPrototype' %} | 24 'WrapperTypeObjectPrototype' %} |
25 {% set active_scriptwrappable_inheritance = | 25 {% set active_scriptwrappable_inheritance = |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 457 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
458 {{attribute_getter_implemented_in_private_script(attribute)}} | 458 {{attribute_getter_implemented_in_private_script(attribute)}} |
459 {% if attribute.has_setter %} | 459 {% if attribute.has_setter %} |
460 {{attribute_setter_implemented_in_private_script(attribute)}} | 460 {{attribute_setter_implemented_in_private_script(attribute)}} |
461 {% endif %} | 461 {% endif %} |
462 {% endfor %} | 462 {% endfor %} |
463 {% block partial_interface %}{% endblock %} | 463 {% block partial_interface %}{% endblock %} |
464 } // namespace blink | 464 } // namespace blink |
465 | 465 |
466 {% endfilter %}{# format_blink_cpp_source_code #} | 466 {% endfilter %}{# format_blink_cpp_source_code #} |
OLD | NEW |