| OLD | NEW |
| 1 {% include 'copyright_block.txt' %} | 1 {% include 'copyright_block.txt' %} |
| 2 #include "config.h" | 2 #include "config.h" |
| 3 {% filter conditional(conditional_string) %} | 3 {% filter conditional(conditional_string) %} |
| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 {{cpp_class}}* impl = {{v8_class}}::toImpl(host); | 130 {{cpp_class}}* impl = {{v8_class}}::toImpl(host); |
| 131 return BindingSecurity::shouldAllowAccessToFrame(v8::Isolate::GetCurrent(),
impl->frame(), DoNotReportSecurityError); | 131 return BindingSecurity::shouldAllowAccessToFrame(v8::Isolate::GetCurrent(),
impl->frame(), DoNotReportSecurityError); |
| 132 } | 132 } |
| 133 | 133 |
| 134 {% endif %} | 134 {% endif %} |
| 135 {% endblock %} | 135 {% endblock %} |
| 136 {##############################################################################} | 136 {##############################################################################} |
| 137 {# Methods #} | 137 {# Methods #} |
| 138 {% from 'methods.cpp' import generate_method, overload_resolution_method, | 138 {% from 'methods.cpp' import generate_method, overload_resolution_method, |
| 139 method_callback, origin_safe_method_getter, generate_constructor, | 139 method_callback, origin_safe_method_getter, generate_constructor, |
| 140 method_implemented_in_private_script, runtime_determined_length_method, | 140 method_implemented_in_private_script, generate_post_message_impl, |
| 141 runtime_determined_maxarg_method | 141 runtime_determined_length_method, runtime_determined_maxarg_method |
| 142 with context %} | 142 with context %} |
| 143 {% for method in methods %} | 143 {% for method in methods %} |
| 144 {% if method.should_be_exposed_to_script %} | 144 {% if method.should_be_exposed_to_script %} |
| 145 {% for world_suffix in method.world_suffixes %} | 145 {% for world_suffix in method.world_suffixes %} |
| 146 {% if not method.is_custom and not method.is_post_message and method.visible %} | 146 {% if not method.is_custom and not method.is_post_message and method.visible %} |
| 147 {{generate_method(method, world_suffix)}} | 147 {{generate_method(method, world_suffix)}} |
| 148 {% endif %} | 148 {% endif %} |
| 149 {% if method.is_post_message %} |
| 150 {{generate_post_message_impl()}} |
| 151 {% endif %} |
| 149 {% if method.overloads and method.overloads.visible %} | 152 {% if method.overloads and method.overloads.visible %} |
| 150 {% if method.overloads.runtime_determined_lengths %} | 153 {% if method.overloads.runtime_determined_lengths %} |
| 151 {{runtime_determined_length_method(method.overloads)}} | 154 {{runtime_determined_length_method(method.overloads)}} |
| 152 {% endif %} | 155 {% endif %} |
| 153 {% if method.overloads.runtime_determined_maxargs %} | 156 {% if method.overloads.runtime_determined_maxargs %} |
| 154 {{runtime_determined_maxarg_method(method.overloads)}} | 157 {{runtime_determined_maxarg_method(method.overloads)}} |
| 155 {% endif %} | 158 {% endif %} |
| 156 {{overload_resolution_method(method.overloads, world_suffix)}} | 159 {{overload_resolution_method(method.overloads, world_suffix)}} |
| 157 {% endif %} | 160 {% endif %} |
| 158 {% if not method.overload_index or method.overloads %} | 161 {% if not method.overload_index or method.overloads %} |
| (...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 {% endfor %} | 494 {% endfor %} |
| 492 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 495 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
| 493 {{attribute_getter_implemented_in_private_script(attribute)}} | 496 {{attribute_getter_implemented_in_private_script(attribute)}} |
| 494 {% if attribute.has_setter %} | 497 {% if attribute.has_setter %} |
| 495 {{attribute_setter_implemented_in_private_script(attribute)}} | 498 {{attribute_setter_implemented_in_private_script(attribute)}} |
| 496 {% endif %} | 499 {% endif %} |
| 497 {% endfor %} | 500 {% endfor %} |
| 498 {% block partial_interface %}{% endblock %} | 501 {% block partial_interface %}{% endblock %} |
| 499 } // namespace blink | 502 } // namespace blink |
| 500 {% endfilter %} | 503 {% endfilter %} |
| OLD | NEW |