| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY! | 5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY! |
| 6 | 6 |
| 7 #include "config.h" | 7 #include "config.h" |
| 8 {% filter conditional(conditional_string) %} | 8 {% filter conditional(conditional_string) %} |
| 9 #include "{{v8_class}}.h" | 9 #include "{{v8_class}}.h" |
| 10 | 10 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 template <typename T> void V8_USE(T) { } | 55 template <typename T> void V8_USE(T) { } |
| 56 | 56 |
| 57 {# Attributes #} | 57 {# Attributes #} |
| 58 {% from 'attributes.cpp' import constructor_getter_callback, | 58 {% from 'attributes.cpp' import constructor_getter_callback, |
| 59 attribute_getter, attribute_getter_callback, | 59 attribute_getter, attribute_getter_callback, |
| 60 attribute_setter, attribute_setter_callback, | 60 attribute_setter, attribute_setter_callback, |
| 61 attribute_getter_implemented_in_private_script, | 61 attribute_getter_implemented_in_private_script, |
| 62 attribute_setter_implemented_in_private_script | 62 attribute_setter_implemented_in_private_script |
| 63 with context %} | 63 with context %} |
| 64 {% for attribute in attributes if not attribute.constructor_type %} | 64 {% for attribute in attributes if not attribute.constructor_type %} |
| 65 {% if not attribute.only_exposed_to_private_script %} | 65 {% if not attribute.is_implemented_in_private_script or not attribute.only_expos
ed_to_private_script %} |
| 66 {% for world_suffix in attribute.world_suffixes %} | 66 {% for world_suffix in attribute.world_suffixes %} |
| 67 {% if not attribute.has_custom_getter %} | 67 {% if not attribute.has_custom_getter %} |
| 68 {{attribute_getter(attribute, world_suffix)}} | 68 {{attribute_getter(attribute, world_suffix)}} |
| 69 {% endif %} | 69 {% endif %} |
| 70 {{attribute_getter_callback(attribute, world_suffix)}} | 70 {{attribute_getter_callback(attribute, world_suffix)}} |
| 71 {% if not attribute.is_read_only or attribute.put_forwards %} | 71 {% if not attribute.is_read_only or attribute.put_forwards %} |
| 72 {% if not attribute.has_custom_setter %} | 72 {% if not attribute.has_custom_setter %} |
| 73 {{attribute_setter(attribute, world_suffix)}} | 73 {{attribute_setter(attribute, world_suffix)}} |
| 74 {% endif %} | 74 {% endif %} |
| 75 {{attribute_setter_callback(attribute, world_suffix)}} | 75 {{attribute_setter_callback(attribute, world_suffix)}} |
| 76 {% endif %} | 76 {% endif %} |
| 77 {% endfor %} | 77 {% endfor %} |
| 78 {% endif %} | 78 {% endif %} |
| 79 {% endfor %} | 79 {% endfor %} |
| 80 {% block constructor_getter %}{% endblock %} | 80 {% block constructor_getter %}{% endblock %} |
| 81 {% for attribute in attributes if attribute.needs_constructor_getter_callback %} | 81 {% for attribute in attributes if attribute.needs_constructor_getter_callback %} |
| 82 {% for world_suffix in attribute.world_suffixes %} | 82 {% for world_suffix in attribute.world_suffixes %} |
| 83 {{constructor_getter_callback(attribute, world_suffix)}} | 83 {{constructor_getter_callback(attribute, world_suffix)}} |
| 84 {% endfor %} | 84 {% endfor %} |
| 85 {% endfor %} | 85 {% endfor %} |
| 86 {% block replaceable_attribute_setter_and_callback %}{% endblock %} | 86 {% block replaceable_attribute_setter_and_callback %}{% endblock %} |
| 87 {% block security_check_functions %}{% endblock %} | 87 {% block security_check_functions %}{% endblock %} |
| 88 {# Methods #} | 88 {# Methods #} |
| 89 {% from 'methods.cpp' import generate_method, overload_resolution_method, | 89 {% from 'methods.cpp' import generate_method, overload_resolution_method, |
| 90 method_callback, origin_safe_method_getter, generate_constructor, | 90 method_callback, origin_safe_method_getter, generate_constructor, |
| 91 method_implemented_in_private_script | 91 method_implemented_in_private_script |
| 92 with context %} | 92 with context %} |
| 93 {% for method in methods %} | 93 {% for method in methods %} |
| 94 {% if not method.only_exposed_to_private_script %} | 94 {% if not method.is_implemented_in_private_script or not method.only_exposed_to_
private_script %} |
| 95 {% for world_suffix in method.world_suffixes %} | 95 {% for world_suffix in method.world_suffixes %} |
| 96 {% if not method.is_custom %} | 96 {% if not method.is_custom %} |
| 97 {{generate_method(method, world_suffix)}} | 97 {{generate_method(method, world_suffix)}} |
| 98 {% endif %} | 98 {% endif %} |
| 99 {% if method.overloads %} | 99 {% if method.overloads %} |
| 100 {{overload_resolution_method(method.overloads, world_suffix)}} | 100 {{overload_resolution_method(method.overloads, world_suffix)}} |
| 101 {% endif %} | 101 {% endif %} |
| 102 {% if not method.overload_index or method.overloads %} | 102 {% if not method.overload_index or method.overloads %} |
| 103 {# A single callback is generated for overloaded methods #} | 103 {# A single callback is generated for overloaded methods #} |
| 104 {{method_callback(method, world_suffix)}} | 104 {{method_callback(method, world_suffix)}} |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 {{method_implemented_in_private_script(method)}} | 160 {{method_implemented_in_private_script(method)}} |
| 161 {% endfor %} | 161 {% endfor %} |
| 162 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 162 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
| 163 {{attribute_getter_implemented_in_private_script(attribute)}} | 163 {{attribute_getter_implemented_in_private_script(attribute)}} |
| 164 {% if not attribute.is_read_only or attribute.put_forwards %} | 164 {% if not attribute.is_read_only or attribute.put_forwards %} |
| 165 {{attribute_setter_implemented_in_private_script(attribute)}} | 165 {{attribute_setter_implemented_in_private_script(attribute)}} |
| 166 {% endif %} | 166 {% endif %} |
| 167 {% endfor %} | 167 {% endfor %} |
| 168 } // namespace blink | 168 } // namespace blink |
| 169 {% endfilter %} | 169 {% endfilter %} |
| OLD | NEW |