| 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 (cpp_class, attribute.name) | 8 (cpp_class, attribute.name) |
| 9 if not attribute.constructor_type else | 9 if not attribute.constructor_type else |
| 10 '{0}V8Internal::{0}ConstructorGetter'.format(cpp_class) %} | 10 ('%sV8Internal::%sConstructorGetterCallback' % |
| 11 (cpp_class, attribute.name) |
| 12 if attribute.needs_constructor_getter_callback else |
| 13 '{0}V8Internal::{0}ConstructorGetter'.format(cpp_class)) %} |
| 11 {% set getter_callback_for_main_world = | 14 {% set getter_callback_for_main_world = |
| 12 '%sV8Internal::%sAttributeGetterCallbackForMainWorld' % | 15 '%sV8Internal::%sAttributeGetterCallbackForMainWorld' % |
| 13 (cpp_class, attribute.name) | 16 (cpp_class, attribute.name) |
| 14 if attribute.is_per_world_bindings else '0' %} | 17 if attribute.is_per_world_bindings else '0' %} |
| 15 {% set setter_callback = attribute.setter_callback %} | 18 {% set setter_callback = attribute.setter_callback %} |
| 16 {% set setter_callback_for_main_world = | 19 {% set setter_callback_for_main_world = |
| 17 '%sV8Internal::%sAttributeSetterCallbackForMainWorld' % | 20 '%sV8Internal::%sAttributeSetterCallbackForMainWorld' % |
| 18 (cpp_class, attribute.name) | 21 (cpp_class, attribute.name) |
| 19 if attribute.is_per_world_bindings and | 22 if attribute.is_per_world_bindings and |
| 20 (not attribute.is_read_only or attribute.put_forwards) else '0' %} | 23 (not attribute.is_read_only or attribute.put_forwards) else '0' %} |
| (...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1317 {% endfilter %} | 1320 {% endfilter %} |
| 1318 } | 1321 } |
| 1319 | 1322 |
| 1320 template<> | 1323 template<> |
| 1321 v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) | 1324 v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) |
| 1322 { | 1325 { |
| 1323 return toV8(impl, creationContext, isolate); | 1326 return toV8(impl, creationContext, isolate); |
| 1324 } | 1327 } |
| 1325 | 1328 |
| 1326 {% endblock %} | 1329 {% endblock %} |
| OLD | NEW |