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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 {% if not is_array_buffer_or_view %} | 70 {% if not is_array_buffer_or_view %} |
71 namespace {{cpp_class_or_partial}}V8Internal { | 71 namespace {{cpp_class_or_partial}}V8Internal { |
72 {% if has_partial_interface %} | 72 {% if has_partial_interface %} |
73 {% for method in methods if method.overloads and method.overloads.has_partial_ov
erloads %} | 73 {% for method in methods if method.overloads and method.overloads.has_partial_ov
erloads %} |
74 static void (*{{method.name}}MethodForPartialInterface)(const v8::FunctionCallba
ckInfo<v8::Value>&) = 0; | 74 static void (*{{method.name}}MethodForPartialInterface)(const v8::FunctionCallba
ckInfo<v8::Value>&) = 0; |
75 {% endfor %} | 75 {% endfor %} |
76 {% endif %} | 76 {% endif %} |
77 | 77 |
78 {##############################################################################} | 78 {##############################################################################} |
79 {# Attributes #} | 79 {# Attributes #} |
80 {% from 'attributes.cpp.tmpl' import constructor_getter_callback, | 80 {% from 'attributes.cpp.tmpl' import attribute_getter, attribute_setter with con
text %} |
81 attribute_getter, attribute_getter_callback, | |
82 attribute_setter, attribute_setter_callback, | |
83 attribute_cache_property_callback, | |
84 with context %} | |
85 {% for attribute in attributes %} | 81 {% for attribute in attributes %} |
86 {% for world_suffix in attribute.world_suffixes %} | 82 {% for world_suffix in attribute.world_suffixes %} |
87 {% if not attribute.has_custom_getter and not attribute.constructor_type %} | 83 {% if not attribute.has_custom_getter and not attribute.constructor_type %} |
88 {{attribute_getter(attribute, world_suffix)}} | 84 {{attribute_getter(attribute, world_suffix)}} |
89 {% endif %} | 85 {% endif %} |
90 {% if attribute.has_setter and not attribute.has_custom_setter %} | 86 {% if attribute.has_setter and not attribute.has_custom_setter %} |
91 {{attribute_setter(attribute, world_suffix)}} | 87 {{attribute_setter(attribute, world_suffix)}} |
92 {% endif %} | 88 {% endif %} |
93 {% endfor %} | 89 {% endfor %} |
94 {% endfor %} | 90 {% endfor %} |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 }; | 168 }; |
173 {% endif %} | 169 {% endif %} |
174 {##############################################################################} | 170 {##############################################################################} |
175 } // namespace {{cpp_class_or_partial}}V8Internal | 171 } // namespace {{cpp_class_or_partial}}V8Internal |
176 | 172 |
177 {# Constants #} | 173 {# Constants #} |
178 {% from 'constants.cpp.tmpl' import constant_getter_callback with context %} | 174 {% from 'constants.cpp.tmpl' import constant_getter_callback with context %} |
179 {% for constant in constants | has_special_getter %} | 175 {% for constant in constants | has_special_getter %} |
180 {{constant_getter_callback(constant)}} | 176 {{constant_getter_callback(constant)}} |
181 {% endfor %} | 177 {% endfor %} |
| 178 |
182 {# Attributes #} | 179 {# Attributes #} |
183 {% from 'attributes.cpp.tmpl' import constructor_getter_callback, | 180 {% from 'attributes.cpp.tmpl' import constructor_getter_callback, |
184 attribute_getter_callback, attribute_setter_callback, | 181 attribute_getter_callback, attribute_setter_callback, |
185 attribute_cache_property_callback, | 182 attribute_cached_property_key with context %} |
186 with context %} | |
187 {% for attribute in attributes %} | 183 {% for attribute in attributes %} |
188 {% if attribute.is_cached_accessor %} | 184 {% if attribute.is_cached_accessor %} |
189 {{attribute_cache_property_callback(attribute)}} | 185 {{attribute_cached_property_key(attribute)}} |
190 {% endif %} | 186 {% endif %} |
191 {% for world_suffix in attribute.world_suffixes %} | 187 {% for world_suffix in attribute.world_suffixes %} |
192 {% if not attribute.constructor_type %} | 188 {% if not attribute.constructor_type %} |
193 {{attribute_getter_callback(attribute, world_suffix)}} | 189 {{attribute_getter_callback(attribute, world_suffix)}} |
194 {% elif attribute.needs_constructor_getter_callback %} | 190 {% elif attribute.needs_constructor_getter_callback %} |
195 {{constructor_getter_callback(attribute, world_suffix)}} | 191 {{constructor_getter_callback(attribute, world_suffix)}} |
196 {% endif %} | 192 {% endif %} |
197 {% if attribute.has_setter %} | 193 {% if attribute.has_setter %} |
198 {{attribute_setter_callback(attribute, world_suffix)}} | 194 {{attribute_setter_callback(attribute, world_suffix)}} |
199 {% endif %} | 195 {% endif %} |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 {% endif %} | 755 {% endif %} |
760 } | 756 } |
761 {% endif %} | 757 {% endif %} |
762 | 758 |
763 {% endblock %} | 759 {% endblock %} |
764 {##############################################################################} | 760 {##############################################################################} |
765 {% block partial_interface %}{% endblock %} | 761 {% block partial_interface %}{% endblock %} |
766 } // namespace blink | 762 } // namespace blink |
767 | 763 |
768 {% endfilter %}{# format_blink_cpp_source_code #} | 764 {% endfilter %}{# format_blink_cpp_source_code #} |
OLD | NEW |