OLD | NEW |
1 {# FIXME: update copyright and license header #} | 1 {# FIXME: update copyright and license header #} |
2 /* | 2 /* |
3 This file is part of the Blink open source project. | 3 This file is part of the Blink open source project. |
4 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 4 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
5 | 5 |
6 This library is free software; you can redistribute it and/or | 6 This library is free software; you can redistribute it and/or |
7 modify it under the terms of the GNU Library General Public | 7 modify it under the terms of the GNU Library General Public |
8 License as published by the Free Software Foundation; either | 8 License as published by the Free Software Foundation; either |
9 version 2 of the License, or (at your option) any later version. | 9 version 2 of the License, or (at your option) any later version. |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 namespace {{cpp_class_name}}V8Internal { | 56 namespace {{cpp_class_name}}V8Internal { |
57 | 57 |
58 template <typename T> void V8_USE(T) { } | 58 template <typename T> void V8_USE(T) { } |
59 | 59 |
60 {% from 'attributes.cpp' import attribute_getter, attribute_getter_callback, | 60 {% from 'attributes.cpp' import attribute_getter, attribute_getter_callback, |
61 attribute_setter, attribute_setter_callback | 61 attribute_setter, attribute_setter_callback |
62 with context %} | 62 with context %} |
63 {% for attribute in attributes %} | 63 {% for attribute in attributes %} |
64 {% for world_suffix in attribute.world_suffixes %} | 64 {% for world_suffix in attribute.world_suffixes %} |
| 65 {% if not attribute.is_constructor %} |
65 {% if not attribute.has_custom_getter %} | 66 {% if not attribute.has_custom_getter %} |
66 {{attribute_getter(attribute, world_suffix)}} | 67 {{attribute_getter(attribute, world_suffix)}} |
67 {% endif %} | 68 {% endif %} |
68 {{attribute_getter_callback(attribute, world_suffix)}} | 69 {{attribute_getter_callback(attribute, world_suffix)}} |
| 70 {% endif %} |
69 {% endfor %} | 71 {% endfor %} |
70 {# FIXME: merge these 2 for loops #} | 72 {# FIXME: merge these 2 for loops and not is_constructor checks #} |
71 {% for world_suffix in attribute.world_suffixes %} | 73 {% for world_suffix in attribute.world_suffixes %} |
| 74 {% if not attribute.is_constructor %} |
72 {% if not (attribute.is_read_only or attribute.has_custom_setter) %} | 75 {% if not (attribute.is_read_only or attribute.has_custom_setter) %} |
73 {{attribute_setter(attribute, world_suffix)}} | 76 {{attribute_setter(attribute, world_suffix)}} |
74 {% endif %} | 77 {% endif %} |
75 {% if not attribute.is_read_only or attribute.has_custom_setter %}{# Separate ch
eck needed for [Custom(Setter), Replaceable], which are read only but have a set
ter callback #} | 78 {% if not attribute.is_read_only or attribute.has_custom_setter %}{# Separate ch
eck needed for [Custom(Setter), Replaceable], which are read only but have a set
ter callback #} |
76 {{attribute_setter_callback(attribute, world_suffix)}} | 79 {{attribute_setter_callback(attribute, world_suffix)}} |
77 {% endif %} | 80 {% endif %} |
| 81 {% endif %} |
78 {% endfor %} | 82 {% endfor %} |
79 {% endfor %} | 83 {% endfor %} |
| 84 {% block constructor_getter %}{% endblock %} |
80 {% block replaceable_attribute_setter_and_callback %}{% endblock %} | 85 {% block replaceable_attribute_setter_and_callback %}{% endblock %} |
81 } // namespace {{cpp_class_name}}V8Internal | 86 } // namespace {{cpp_class_name}}V8Internal |
82 | 87 |
83 {% block class_attributes %}{% endblock %} | 88 {% block class_attributes %}{% endblock %} |
84 {% block configure_class_template %}{% endblock %} | 89 {% block configure_class_template %}{% endblock %} |
85 {% block get_template %}{% endblock %} | 90 {% block get_template %}{% endblock %} |
86 {% block has_instance_and_has_instance_in_any_world %}{% endblock %} | 91 {% block has_instance_and_has_instance_in_any_world %}{% endblock %} |
87 {% block install_per_context_attributes %}{% endblock %} | 92 {% block install_per_context_attributes %}{% endblock %} |
88 {% block create_wrapper_and_deref_object %}{% endblock %} | 93 {% block create_wrapper_and_deref_object %}{% endblock %} |
89 } // namespace WebCore | 94 } // namespace WebCore |
90 {% if conditional_string %} | 95 {% if conditional_string %} |
91 | 96 |
92 #endif // {{conditional_string}} | 97 #endif // {{conditional_string}} |
93 {% endif %} | 98 {% endif %} |
OLD | NEW |