Chromium Code Reviews| 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 {% if interface_name != 'Window' %} |
|
dcarney
2015/04/09 11:03:09
i think there are nsobject callbacks which you wil
bashi
2015/04/10 00:15:32
It would be a bit difficult to understand why we h
Yuki
2015/04/10 14:06:49
For NPObject, we don't use any auto-generated bind
| |
| 397 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStrings)) ; | 397 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStrings)) ; |
| 398 {% endif %} | 398 {% endif %} |
| 399 {% if named_property_getter.do_not_check_security %} | 399 {% if named_property_getter.do_not_check_security %} |
| 400 config.flags = v8::PropertyHandlerFlags::kAllCanRead; | 400 config.flags = v8::PropertyHandlerFlags::kAllCanRead; |
| 401 {% endif %} | 401 {% endif %} |
| 402 {% if not is_override_builtins and not named_property_getter.is_custom % } | 402 {% 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)); | 403 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kNonMasking)); |
| 404 {% endif %} | 404 {% endif %} |
| 405 functionTemplate->{{set_on_template}}()->SetHandler(config); | 405 functionTemplate->{{set_on_template}}()->SetHandler(config); |
| 406 } | 406 } |
| 407 {% endif %} | 407 {% endif %} |
| 408 {% if iterator_method %} | 408 {% if iterator_method %} |
| 409 {% filter per_context_enabled(iterator_method.per_context_enabled_function) %} | 409 {% filter per_context_enabled(iterator_method.per_context_enabled_function) %} |
| 410 {% filter exposed(iterator_method.exposed_test) %} | 410 {% filter exposed(iterator_method.exposed_test) %} |
| 411 {% filter runtime_enabled(iterator_method.runtime_enabled_function) %} | 411 {% 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 }; | 412 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 %} | 499 {% endfor %} |
| 500 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 500 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
| 501 {{attribute_getter_implemented_in_private_script(attribute)}} | 501 {{attribute_getter_implemented_in_private_script(attribute)}} |
| 502 {% if attribute.has_setter %} | 502 {% if attribute.has_setter %} |
| 503 {{attribute_setter_implemented_in_private_script(attribute)}} | 503 {{attribute_setter_implemented_in_private_script(attribute)}} |
| 504 {% endif %} | 504 {% endif %} |
| 505 {% endfor %} | 505 {% endfor %} |
| 506 {% block partial_interface %}{% endblock %} | 506 {% block partial_interface %}{% endblock %} |
| 507 } // namespace blink | 507 } // namespace blink |
| 508 {% endfilter %} | 508 {% endfilter %} |
| OLD | NEW |