OLD | NEW |
1 {% extends 'interface_base.cpp' %} | 1 {% extends 'interface_base.cpp' %} |
2 | 2 |
3 | 3 |
4 {##############################################################################} | 4 {##############################################################################} |
5 {% macro attribute_configuration(attribute) %} | 5 {% macro attribute_configuration(attribute) %} |
6 {"{{attribute.name}}", {{cpp_class_name}}V8Internal::{{attribute.name}}Attribute
GetterCallback, 0, {{attribute.getter_for_main_world}}, 0, 0, static_cast<v8::Ac
cessControl>({{attribute.access_control_list | join(' | ')}}), static_cast<v8::P
ropertyAttribute>({{attribute.property_attributes | join(' | ')}}), 0 /* on inst
ance */}{% endmacro %} | 6 {"{{attribute.name}}", {{attribute.getter_callback_name}}, {{attribute.setter_ca
llback_name}}, {{attribute.getter_callback_name_for_main_world}}, {{attribute.se
tter_callback_name_for_main_world}}, 0, static_cast<v8::AccessControl>({{attribu
te.access_control_list | join(' | ')}}), static_cast<v8::PropertyAttribute>({{at
tribute.property_attributes | join(' | ')}}), 0 /* on instance */}{% endmacro %} |
7 | 7 |
8 | 8 |
9 {##############################################################################} | 9 {##############################################################################} |
10 {% block class_attributes %} | 10 {% block class_attributes %} |
11 {# FIXME: rename to install_attributes and put into configure_class_template #} | 11 {# FIXME: rename to install_attributes and put into configure_class_template #} |
12 {% if attributes %} | 12 {% if attributes %} |
13 static const V8DOMConfiguration::AttributeConfiguration {{v8_class_name}}Attribu
tes[] = { | 13 static const V8DOMConfiguration::AttributeConfiguration {{v8_class_name}}Attribu
tes[] = { |
14 {% for attribute in attributes | 14 {% for attribute in attributes |
15 if not (attribute.runtime_enabled_function_name or | 15 if not (attribute.runtime_enabled_function_name or |
16 attribute.per_context_enabled_function_name or | 16 attribute.per_context_enabled_function_name or |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 V8DOMWrapper::associateObjectWithWrapper<{{v8_class_name}}>(impl, &info, wra
pper, isolate, WrapperConfiguration::Independent); | 171 V8DOMWrapper::associateObjectWithWrapper<{{v8_class_name}}>(impl, &info, wra
pper, isolate, WrapperConfiguration::Independent); |
172 return wrapper; | 172 return wrapper; |
173 } | 173 } |
174 | 174 |
175 void {{v8_class_name}}::derefObject(void* object) | 175 void {{v8_class_name}}::derefObject(void* object) |
176 { | 176 { |
177 fromInternalPointer(object)->deref(); | 177 fromInternalPointer(object)->deref(); |
178 } | 178 } |
179 | 179 |
180 {% endblock %} | 180 {% endblock %} |
OLD | NEW |