| OLD | NEW |
| 1 {% extends 'interface_base.cpp' %} | 1 {% extends 'interface_base.cpp' %} |
| 2 | 2 |
| 3 | 3 |
| 4 {##############################################################################} | 4 {##############################################################################} |
| 5 {% block class_attributes %} | 5 {% block class_attributes %} |
| 6 {# FIXME: rename to install_attributes and put into configure_class_template #} | 6 {# FIXME: rename to install_attributes and put into configure_class_template #} |
| 7 {% if attributes %} | 7 {% if attributes %} |
| 8 static const V8DOMConfiguration::AttributeConfiguration {{v8_class_name}}Attribu
tes[] = { | 8 static const V8DOMConfiguration::AttributeConfiguration {{v8_class_name}}Attribu
tes[] = { |
| 9 {% for attribute in attributes if not attribute.is_static %} | 9 {% for attribute in attributes if not attribute.is_static %} |
| 10 {% filter conditional(attribute.conditional_string) %} | 10 {% filter conditional(attribute.conditional_string) %} |
| 11 {"{{attribute.name}}", {{cpp_class_name}}V8Internal::{{attribute.name}}Attri
buteGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), sta
tic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 11 {"{{attribute.name}}", {{cpp_class_name}}V8Internal::{{attribute.name}}Attri
buteGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>({{attribute.acces
s_control_list | join(' | ')}}), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, |
| 12 {% endfilter %} | 12 {% endfilter %} |
| 13 {% endfor %} | 13 {% endfor %} |
| 14 }; | 14 }; |
| 15 | 15 |
| 16 {% endif %} | 16 {% endif %} |
| 17 {% endblock %} | 17 {% endblock %} |
| 18 | 18 |
| 19 | 19 |
| 20 {##############################################################################} | 20 {##############################################################################} |
| 21 {% block configure_class_template %} | 21 {% block configure_class_template %} |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 V8DOMWrapper::associateObjectWithWrapper<{{v8_class_name}}>(impl, &info, wra
pper, isolate, WrapperConfiguration::Independent); | 135 V8DOMWrapper::associateObjectWithWrapper<{{v8_class_name}}>(impl, &info, wra
pper, isolate, WrapperConfiguration::Independent); |
| 136 return wrapper; | 136 return wrapper; |
| 137 } | 137 } |
| 138 | 138 |
| 139 void {{v8_class_name}}::derefObject(void* object) | 139 void {{v8_class_name}}::derefObject(void* object) |
| 140 { | 140 { |
| 141 fromInternalPointer(object)->deref(); | 141 fromInternalPointer(object)->deref(); |
| 142 } | 142 } |
| 143 | 143 |
| 144 {% endblock %} | 144 {% endblock %} |
| OLD | NEW |