| 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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 '%sV8Internal::namedPropertyQueryCallback' % cpp_class | 386 '%sV8Internal::namedPropertyQueryCallback' % cpp_class |
| 387 if named_property_getter.is_enumerable else '0' %} | 387 if named_property_getter.is_enumerable else '0' %} |
| 388 {% set named_property_deleter_callback = | 388 {% set named_property_deleter_callback = |
| 389 '%sV8Internal::namedPropertyDeleterCallback' % cpp_class | 389 '%sV8Internal::namedPropertyDeleterCallback' % cpp_class |
| 390 if named_property_deleter else '0' %} | 390 if named_property_deleter else '0' %} |
| 391 {% set named_property_enumerator_callback = | 391 {% set named_property_enumerator_callback = |
| 392 '%sV8Internal::namedPropertyEnumeratorCallback' % cpp_class | 392 '%sV8Internal::namedPropertyEnumeratorCallback' % cpp_class |
| 393 if named_property_getter.is_enumerable else '0' %} | 393 if named_property_getter.is_enumerable else '0' %} |
| 394 { | 394 { |
| 395 v8::NamedPropertyHandlerConfiguration config({{named_property_getter_cal
lback}}, {{named_property_setter_callback}}, {{named_property_query_callback}},
{{named_property_deleter_callback}}, {{named_property_enumerator_callback}}); | 395 v8::NamedPropertyHandlerConfiguration config({{named_property_getter_cal
lback}}, {{named_property_setter_callback}}, {{named_property_query_callback}},
{{named_property_deleter_callback}}, {{named_property_enumerator_callback}}); |
| 396 {% if not named_property_getter.is_custom %} | 396 {# TODO(yukishiino): Determine how to treat Window interface. #} |
| 397 {% if interface_name != 'Window' %} |
| 397 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co
nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStrings))
; | 398 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co
nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStrings))
; |
| 398 {% endif %} | 399 {% endif %} |
| 399 {% if named_property_getter.do_not_check_security %} | 400 {% if named_property_getter.do_not_check_security %} |
| 400 config.flags = v8::PropertyHandlerFlags::kAllCanRead; | 401 config.flags = v8::PropertyHandlerFlags::kAllCanRead; |
| 401 {% endif %} | 402 {% endif %} |
| 402 {% if not is_override_builtins and not named_property_getter.is_custom %
} | 403 {# TODO(yukishiino): Determine how to treat Window interface. #} |
| 404 {% if not is_override_builtins and interface_name != 'Window' %} |
| 403 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co
nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kNonMasking)); | 405 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co
nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kNonMasking)); |
| 404 {% endif %} | 406 {% endif %} |
| 405 functionTemplate->{{set_on_template}}()->SetHandler(config); | 407 functionTemplate->{{set_on_template}}()->SetHandler(config); |
| 406 } | 408 } |
| 407 {% endif %} | 409 {% endif %} |
| 408 {% if iterator_method %} | 410 {% if iterator_method %} |
| 409 {% filter per_context_enabled(iterator_method.per_context_enabled_function)
%} | 411 {% filter per_context_enabled(iterator_method.per_context_enabled_function)
%} |
| 410 {% filter exposed(iterator_method.exposed_test) %} | 412 {% filter exposed(iterator_method.exposed_test) %} |
| 411 {% filter runtime_enabled(iterator_method.runtime_enabled_function) %} | 413 {% filter runtime_enabled(iterator_method.runtime_enabled_function) %} |
| 412 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 }; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 {% endfor %} | 501 {% endfor %} |
| 500 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 502 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
| 501 {{attribute_getter_implemented_in_private_script(attribute)}} | 503 {{attribute_getter_implemented_in_private_script(attribute)}} |
| 502 {% if attribute.has_setter %} | 504 {% if attribute.has_setter %} |
| 503 {{attribute_setter_implemented_in_private_script(attribute)}} | 505 {{attribute_setter_implemented_in_private_script(attribute)}} |
| 504 {% endif %} | 506 {% endif %} |
| 505 {% endfor %} | 507 {% endfor %} |
| 506 {% block partial_interface %}{% endblock %} | 508 {% block partial_interface %}{% endblock %} |
| 507 } // namespace blink | 509 } // namespace blink |
| 508 {% endfilter %} | 510 {% endfilter %} |
| OLD | NEW |