| OLD | NEW |
| 1 {% include 'copyright_block.txt' %} | 1 {% include 'copyright_block.txt' %} |
| 2 #include "config.h" | 2 #include "config.h" |
| 3 {% filter conditional(conditional_string) %} | 3 {% filter conditional(conditional_string) %} |
| 4 #include "{{v8_class_or_partial}}.h" | 4 #include "{{v8_class_or_partial}}.h" |
| 5 | 5 |
| 6 {% for filename in cpp_includes if filename != '%s.h' % cpp_class_or_partial %} | 6 {% for filename in cpp_includes if filename != '%s.h' % cpp_class_or_partial %} |
| 7 #include "{{filename}}" | 7 #include "{{filename}}" |
| 8 {% endfor %} | 8 {% endfor %} |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 ALLOW_UNUSED_LOCAL(instanceTemplate); | 339 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| 340 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 340 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
| 341 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 341 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
| 342 {% if custom_registration_methods %} | 342 {% if custom_registration_methods %} |
| 343 ExecutionContext* context = currentExecutionContext(isolate); | 343 ExecutionContext* context = currentExecutionContext(isolate); |
| 344 ALLOW_UNUSED_LOCAL(context); | 344 ALLOW_UNUSED_LOCAL(context); |
| 345 {% endif %} | 345 {% endif %} |
| 346 {% if has_access_check_callbacks %} | 346 {% if has_access_check_callbacks %} |
| 347 instanceTemplate->SetAccessCheckCallbacks({{cpp_class}}V8Internal::namedSecu
rityCheck, {{cpp_class}}V8Internal::indexedSecurityCheck, v8::External::New(isol
ate, const_cast<WrapperTypeInfo*>(&{{v8_class}}::wrapperTypeInfo))); | 347 instanceTemplate->SetAccessCheckCallbacks({{cpp_class}}V8Internal::namedSecu
rityCheck, {{cpp_class}}V8Internal::indexedSecurityCheck, v8::External::New(isol
ate, const_cast<WrapperTypeInfo*>(&{{v8_class}}::wrapperTypeInfo))); |
| 348 {% endif %} | 348 {% endif %} |
| 349 {% if has_array_iterator %} |
| 350 {% filter runtime_enabled('RuntimeEnabledFeatures::iterableCollectionsEnable
d') %} |
| 351 {% if is_global %} |
| 352 instanceTemplate->Set(v8::Symbol::GetIterator(isolate), v8::Array::GetValues
Iterator(isolate), v8::DontEnum); |
| 353 {% else %} |
| 354 prototypeTemplate->Set(v8::Symbol::GetIterator(isolate), v8::Array::GetValue
sIterator(isolate), v8::DontEnum); |
| 355 {% endif %} |
| 356 {% endfilter %}{# runtime_enabled() #} |
| 357 {% endif %} |
| 349 {% for attribute in attributes | 358 {% for attribute in attributes |
| 350 if attribute.runtime_enabled_function and | 359 if attribute.runtime_enabled_function and |
| 351 not attribute.exposed_test %} | 360 not attribute.exposed_test %} |
| 352 {% filter conditional(attribute.conditional_string) %} | 361 {% filter conditional(attribute.conditional_string) %} |
| 353 if ({{attribute.runtime_enabled_function}}()) { | 362 if ({{attribute.runtime_enabled_function}}()) { |
| 354 {% if attribute.is_data_type_property %} | 363 {% if attribute.is_data_type_property %} |
| 355 const V8DOMConfiguration::AttributeConfiguration attributeConfiguration
= \ | 364 const V8DOMConfiguration::AttributeConfiguration attributeConfiguration
= \ |
| 356 {{attribute_configuration(attribute)}}; | 365 {{attribute_configuration(attribute)}}; |
| 357 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototyp
eTemplate, attributeConfiguration); | 366 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototyp
eTemplate, attributeConfiguration); |
| 358 {% else %} | 367 {% else %} |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 {% endfor %} | 504 {% endfor %} |
| 496 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 505 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
| 497 {{attribute_getter_implemented_in_private_script(attribute)}} | 506 {{attribute_getter_implemented_in_private_script(attribute)}} |
| 498 {% if attribute.has_setter %} | 507 {% if attribute.has_setter %} |
| 499 {{attribute_setter_implemented_in_private_script(attribute)}} | 508 {{attribute_setter_implemented_in_private_script(attribute)}} |
| 500 {% endif %} | 509 {% endif %} |
| 501 {% endfor %} | 510 {% endfor %} |
| 502 {% block partial_interface %}{% endblock %} | 511 {% block partial_interface %}{% endblock %} |
| 503 } // namespace blink | 512 } // namespace blink |
| 504 {% endfilter %} | 513 {% endfilter %} |
| OLD | NEW |