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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 {% filter per_context_enabled(iterator_method.per_context_enabled_function)
%} | 411 {% filter per_context_enabled(iterator_method.per_context_enabled_function)
%} |
412 {% filter exposed(iterator_method.exposed_test) %} | 412 {% filter exposed(iterator_method.exposed_test) %} |
413 {% filter runtime_enabled(iterator_method.runtime_enabled_function) %} | 413 {% filter runtime_enabled(iterator_method.runtime_enabled_function) %} |
414 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, {{cpp_class_or_partial}}V8Inte
rnal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; | 414 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, {{cpp_class_or_partial}}V8Inte
rnal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; |
415 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu
re, v8::DontDelete, symbolKeyedIteratorConfiguration); | 415 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu
re, v8::DontDelete, symbolKeyedIteratorConfiguration); |
416 {% endfilter %}{# runtime_enabled() #} | 416 {% endfilter %}{# runtime_enabled() #} |
417 {% endfilter %}{# exposed() #} | 417 {% endfilter %}{# exposed() #} |
418 {% endfilter %}{# per_context_enabled() #} | 418 {% endfilter %}{# per_context_enabled() #} |
419 {% endif %} | 419 {% endif %} |
420 {# End special operations #} | 420 {# End special operations #} |
421 {% if unscopeables %} | |
422 v8::Local<v8::Context> context(isolate->GetCurrentContext()); | |
423 v8::Local<v8::Object> unscopeables(v8::Object::New(isolate)); | |
424 {% for name in unscopeables %} | |
425 unscopeables->ForceSet(context, v8AtomicString(isolate, "{{name}}"), v8::Tru
e(isolate)).FromJust(); | |
426 {% endfor %} | |
427 prototypeTemplate->Set(v8::Symbol::GetUnscopables(isolate), unscopeables); | |
428 {% endif %} | |
429 {% if has_custom_legacy_call_as_function %} | 421 {% if has_custom_legacy_call_as_function %} |
430 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler({{v8_class}}:
:legacyCallCustom); | 422 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler({{v8_class}}:
:legacyCallCustom); |
431 {% endif %} | 423 {% endif %} |
432 {% if interface_name == 'HTMLAllCollection' %} | 424 {% if interface_name == 'HTMLAllCollection' %} |
433 {# Needed for legacy support of document.all #} | 425 {# Needed for legacy support of document.all #} |
434 functionTemplate->InstanceTemplate()->MarkAsUndetectable(); | 426 functionTemplate->InstanceTemplate()->MarkAsUndetectable(); |
435 {% endif %} | 427 {% endif %} |
436 {% for method in custom_registration_methods %} | 428 {% for method in custom_registration_methods %} |
437 {# install_custom_signature #} | 429 {# install_custom_signature #} |
438 {% filter conditional(method.conditional_string) %} | 430 {% filter conditional(method.conditional_string) %} |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 {% endfor %} | 501 {% endfor %} |
510 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 502 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
511 {{attribute_getter_implemented_in_private_script(attribute)}} | 503 {{attribute_getter_implemented_in_private_script(attribute)}} |
512 {% if attribute.has_setter %} | 504 {% if attribute.has_setter %} |
513 {{attribute_setter_implemented_in_private_script(attribute)}} | 505 {{attribute_setter_implemented_in_private_script(attribute)}} |
514 {% endif %} | 506 {% endif %} |
515 {% endfor %} | 507 {% endfor %} |
516 {% block partial_interface %}{% endblock %} | 508 {% block partial_interface %}{% endblock %} |
517 } // namespace blink | 509 } // namespace blink |
518 {% endfilter %} | 510 {% endfilter %} |
OLD | NEW |