| 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_name = | 6 {% set getter_callback_name = |
| 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 {% endfor %} | 332 {% endfor %} |
| 333 } | 333 } |
| 334 | 334 |
| 335 {% endif %} | 335 {% endif %} |
| 336 {% endblock %} | 336 {% endblock %} |
| 337 | 337 |
| 338 | 338 |
| 339 {##############################################################################} | 339 {##############################################################################} |
| 340 {% block to_active_dom_object %} | 340 {% block to_active_dom_object %} |
| 341 {% if is_active_dom_object %} | 341 {% if is_active_dom_object %} |
| 342 ActiveDOMObject* {{v8_class_name}}::toActiveDOMObject(v8::Handle<v8::Object> obj
ect) | 342 ActiveDOMObject* {{v8_class_name}}::toActiveDOMObject(v8::Handle<v8::Object> wra
pper) |
| 343 { | 343 { |
| 344 return toNative(object); | 344 return toNative(wrapper); |
| 345 } | 345 } |
| 346 | 346 |
| 347 {% endif %} | 347 {% endif %} |
| 348 {% endblock %} | 348 {% endblock %} |
| 349 | 349 |
| 350 | 350 |
| 351 {##############################################################################} | 351 {##############################################################################} |
| 352 {% block create_wrapper_and_deref_object %} | 352 {% block create_wrapper_and_deref_object %} |
| 353 v8::Handle<v8::Object> {{v8_class_name}}::createWrapper(PassRefPtr<{{cpp_class_n
ame}}> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 353 v8::Handle<v8::Object> {{v8_class_name}}::createWrapper(PassRefPtr<{{cpp_class_n
ame}}> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 354 { | 354 { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 372 V8DOMWrapper::associateObjectWithWrapper<{{v8_class_name}}>(impl, &wrapperTy
peInfo, wrapper, isolate, {{wrapper_configuration}}); | 372 V8DOMWrapper::associateObjectWithWrapper<{{v8_class_name}}>(impl, &wrapperTy
peInfo, wrapper, isolate, {{wrapper_configuration}}); |
| 373 return wrapper; | 373 return wrapper; |
| 374 } | 374 } |
| 375 | 375 |
| 376 void {{v8_class_name}}::derefObject(void* object) | 376 void {{v8_class_name}}::derefObject(void* object) |
| 377 { | 377 { |
| 378 fromInternalPointer(object)->deref(); | 378 fromInternalPointer(object)->deref(); |
| 379 } | 379 } |
| 380 | 380 |
| 381 {% endblock %} | 381 {% endblock %} |
| OLD | NEW |