| 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 {% set getter_callback = | 6 {% set getter_callback = |
| 7 '%sV8Internal::%sAttributeGetterCallback' % | 7 '%sV8Internal::%sAttributeGetterCallback' % |
| 8 (interface_name, attribute.name) | 8 (interface_name, attribute.name) |
| 9 if not attribute.constructor_type else | 9 if not attribute.constructor_type else |
| 10 '{0}V8Internal::{0}ConstructorGetter'.format(interface_name) %} | 10 '{0}V8Internal::{0}ConstructorGetter'.format(interface_name) %} |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 | 289 |
| 290 {% endif %} | 290 {% endif %} |
| 291 {% for attribute in attributes | 291 {% for attribute in attributes |
| 292 if (attribute.is_initialized_by_event_constructor and | 292 if (attribute.is_initialized_by_event_constructor and |
| 293 not attribute.idl_type == 'any')%} | 293 not attribute.idl_type == 'any')%} |
| 294 {# FIXME: implement [ImplementedAs] #} | 294 {# FIXME: implement [ImplementedAs] #} |
| 295 {# FIXME: implement [DeprecateAs] #} | 295 {# FIXME: implement [DeprecateAs] #} |
| 296 {# FIXME: special-case any #} | 296 {# FIXME: special-case any #} |
| 297 {# FIXME: implement withPropertyAttributes #} | 297 {# FIXME: implement withPropertyAttributes #} |
| 298 {% if attribute.deprecate_as %} | 298 {% if attribute.deprecate_as %} |
| 299 if (options.convert(conversionContext, "{{attribute.name}}", eventInit.{{att
ribute.name}})) { | 299 if (options.convert(conversionContext, "{{attribute.name}}", eventInit.{{att
ribute.cpp_name}})) { |
| 300 if (options.hasProperty("{{attribute.name}}")) | 300 if (options.hasProperty("{{attribute.name}}")) |
| 301 UseCounter::countDeprecation(activeExecutionContext(), UseCounter::{
{attribute.deprecate_as}}); | 301 UseCounter::countDeprecation(activeExecutionContext(), UseCounter::{
{attribute.deprecate_as}}); |
| 302 } else { | 302 } else { |
| 303 return false; | 303 return false; |
| 304 } | 304 } |
| 305 {% else %} | 305 {% else %} |
| 306 if (!options.convert(conversionContext, "{{attribute.name}}", eventInit.{{at
tribute.name}})) | 306 if (!options.convert(conversionContext, "{{attribute.name}}", eventInit.{{at
tribute.cpp_name}})) |
| 307 return false; | 307 return false; |
| 308 {% endif %} | 308 {% endif %} |
| 309 {% endfor %} | 309 {% endfor %} |
| 310 return true; | 310 return true; |
| 311 } | 311 } |
| 312 | 312 |
| 313 {% endif %} | 313 {% endif %} |
| 314 {% endblock %} | 314 {% endblock %} |
| 315 | 315 |
| 316 | 316 |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 fromInternalPointer(object)->deref(); | 666 fromInternalPointer(object)->deref(); |
| 667 } | 667 } |
| 668 | 668 |
| 669 template<> | 669 template<> |
| 670 v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) | 670 v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) |
| 671 { | 671 { |
| 672 return toV8(impl, creationContext, isolate); | 672 return toV8(impl, creationContext, isolate); |
| 673 } | 673 } |
| 674 | 674 |
| 675 {% endblock %} | 675 {% endblock %} |
| OLD | NEW |