| 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        ('%sV8Internal::%sConstructorGetterCallback' % |    10        ('%sV8Internal::%sConstructorGetterCallback' % | 
| (...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   979     functionTemplate->{{set_on_template}}()->SetNamedPropertyHandler({{named_pro
      perty_getter_callback}}, {{named_property_setter_callback}}, {{named_property_qu
      ery_callback}}, {{named_property_deleter_callback}}, {{named_property_enumerator
      _callback}}); |   979     functionTemplate->{{set_on_template}}()->SetNamedPropertyHandler({{named_pro
      perty_getter_callback}}, {{named_property_setter_callback}}, {{named_property_qu
      ery_callback}}, {{named_property_deleter_callback}}, {{named_property_enumerator
      _callback}}); | 
|   980     {% endif %} |   980     {% endif %} | 
|   981     {# End special operations #} |   981     {# End special operations #} | 
|   982     {% if has_custom_legacy_call_as_function %} |   982     {% if has_custom_legacy_call_as_function %} | 
|   983     functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler({{v8_class}}:
      :legacyCallCustom); |   983     functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler({{v8_class}}:
      :legacyCallCustom); | 
|   984     {% endif %} |   984     {% endif %} | 
|   985     {% if interface_name == 'HTMLAllCollection' %} |   985     {% if interface_name == 'HTMLAllCollection' %} | 
|   986     {# Needed for legacy support of document.all #} |   986     {# Needed for legacy support of document.all #} | 
|   987     functionTemplate->InstanceTemplate()->MarkAsUndetectable(); |   987     functionTemplate->InstanceTemplate()->MarkAsUndetectable(); | 
|   988     {% endif %} |   988     {% endif %} | 
|   989     {% for method in methods if not method.do_not_check_signature %} |   989     {% for method in methods %} | 
|   990     {# install_custom_signature #} |   990     {# install_custom_signature #} | 
|   991     {% if not method.overload_index or method.overload_index == 1 %} |   991     {% if not(method.overloads.do_not_check_signature_all if method.overloads el
      se | 
 |   992               (method.overload_index or method.do_not_check_signature)) %} | 
|   992     {# For overloaded methods, only generate one accessor #} |   993     {# For overloaded methods, only generate one accessor #} | 
|   993     {% filter conditional(method.conditional_string) %} |   994     {% filter conditional(method.conditional_string) %} | 
|   994     {% if method.is_do_not_check_security %} |   995     {% if method.is_do_not_check_security %} | 
|   995     {% if method.is_per_world_bindings %} |   996     {% if method.is_per_world_bindings %} | 
|   996     if (DOMWrapperWorld::current(isolate).isMainWorld()) { |   997     if (DOMWrapperWorld::current(isolate).isMainWorld()) { | 
|   997         {{install_do_not_check_security_signature(method, 'ForMainWorld')}} |   998         {{install_do_not_check_security_signature(method, 'ForMainWorld')}} | 
|   998     } else { |   999     } else { | 
|   999         {{install_do_not_check_security_signature(method)}} |  1000         {{install_do_not_check_security_signature(method)}} | 
|  1000     } |  1001     } | 
|  1001     {% else %} |  1002     {% else %} | 
|  1002     {{install_do_not_check_security_signature(method)}} |  1003     {{install_do_not_check_security_signature(method)}} | 
|  1003     {% endif %} |  1004     {% endif %} | 
|  1004     {% else %}{# is_do_not_check_security #} |  1005     {% else %}{# is_do_not_check_security #} | 
 |  1006     {% set runtime_enabled_function = method.overloads.runtime_enabled_function_
      all if method.overloads else | 
 |  1007                                       method.runtime_enabled_function %} | 
|  1005     {% if method.is_per_world_bindings %} |  1008     {% if method.is_per_world_bindings %} | 
|  1006     if (DOMWrapperWorld::current(isolate).isMainWorld()) { |  1009     if (DOMWrapperWorld::current(isolate).isMainWorld()) { | 
|  1007         {% filter runtime_enabled(method.runtime_enabled_function) %} |  1010         {% filter runtime_enabled(runtime_enabled_function) %} | 
|  1008         {{install_custom_signature(method, 'ForMainWorld')}} |  1011         {{install_custom_signature(method, 'ForMainWorld')}} | 
|  1009         {% endfilter %} |  1012         {% endfilter %} | 
|  1010     } else { |  1013     } else { | 
|  1011         {% filter runtime_enabled(method.runtime_enabled_function) %} |  1014         {% filter runtime_enabled(runtime_enabled_function) %} | 
|  1012         {{install_custom_signature(method)}} |  1015         {{install_custom_signature(method)}} | 
|  1013         {% endfilter %} |  1016         {% endfilter %} | 
|  1014     } |  1017     } | 
|  1015     {% else %} |  1018     {% else %} | 
|  1016     {% filter runtime_enabled(method.runtime_enabled_function) %} |  1019     {% filter runtime_enabled(runtime_enabled_function) %} | 
|  1017     {{install_custom_signature(method)}} |  1020     {{install_custom_signature(method)}} | 
|  1018     {% endfilter %} |  1021     {% endfilter %} | 
|  1019     {% endif %} |  1022     {% endif %} | 
|  1020     {% endif %}{# is_do_not_check_security #} |  1023     {% endif %}{# is_do_not_check_security #} | 
|  1021     {% endfilter %} |  1024     {% endfilter %} | 
|  1022     {% endif %}{# install_custom_signature #} |  1025     {% endif %}{# install_custom_signature #} | 
|  1023     {% endfor %} |  1026     {% endfor %} | 
|  1024     {% for attribute in attributes if attribute.is_static %} |  1027     {% for attribute in attributes if attribute.is_static %} | 
|  1025     {% set getter_callback = '%sV8Internal::%sAttributeGetterCallback' % |  1028     {% set getter_callback = '%sV8Internal::%sAttributeGetterCallback' % | 
|  1026            (cpp_class, attribute.name) %} |  1029            (cpp_class, attribute.name) %} | 
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1335 {% endif %} |  1338 {% endif %} | 
|  1336 } |  1339 } | 
|  1337  |  1340  | 
|  1338 template<> |  1341 template<> | 
|  1339 v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> c
      reationContext, v8::Isolate* isolate) |  1342 v8::Handle<v8::Value> toV8NoInline({{cpp_class}}* impl, v8::Handle<v8::Object> c
      reationContext, v8::Isolate* isolate) | 
|  1340 { |  1343 { | 
|  1341     return toV8(impl, creationContext, isolate); |  1344     return toV8(impl, creationContext, isolate); | 
|  1342 } |  1345 } | 
|  1343  |  1346  | 
|  1344 {% endblock %} |  1347 {% endblock %} | 
| OLD | NEW |