OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY! | 5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY! |
6 | 6 |
7 #include "config.h" | 7 #include "config.h" |
8 {% filter conditional(conditional_string) %} | 8 {% filter conditional(conditional_string) %} |
9 #include "{{v8_class_or_partial}}.h" | 9 #include "{{v8_class_or_partial}}.h" |
10 | 10 |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 if named_property_getter.is_enumerable else '0' %} | 372 if named_property_getter.is_enumerable else '0' %} |
373 {% set named_property_deleter_callback = | 373 {% set named_property_deleter_callback = |
374 '%sV8Internal::namedPropertyDeleterCallback' % cpp_class | 374 '%sV8Internal::namedPropertyDeleterCallback' % cpp_class |
375 if named_property_deleter else '0' %} | 375 if named_property_deleter else '0' %} |
376 {% set named_property_enumerator_callback = | 376 {% set named_property_enumerator_callback = |
377 '%sV8Internal::namedPropertyEnumeratorCallback' % cpp_class | 377 '%sV8Internal::namedPropertyEnumeratorCallback' % cpp_class |
378 if named_property_getter.is_enumerable else '0' %} | 378 if named_property_getter.is_enumerable else '0' %} |
379 functionTemplate->{{set_on_template}}()->SetHandler(v8::NamedPropertyHandler
Configuration({{named_property_getter_callback}}, {{named_property_setter_callba
ck}}, {{named_property_query_callback}}, {{named_property_deleter_callback}}, {{
named_property_enumerator_callback}})); | 379 functionTemplate->{{set_on_template}}()->SetHandler(v8::NamedPropertyHandler
Configuration({{named_property_getter_callback}}, {{named_property_setter_callba
ck}}, {{named_property_query_callback}}, {{named_property_deleter_callback}}, {{
named_property_enumerator_callback}})); |
380 {% endif %} | 380 {% endif %} |
381 {% if iterator_method %} | 381 {% if iterator_method %} |
| 382 {% filter per_context_enabled(iterator_method.per_context_enabled_function)
%} |
| 383 {% filter exposed(iterator_method.exposed_test) %} |
| 384 {% filter runtime_enabled(iterator_method.runtime_enabled_function) %} |
382 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, {{cpp_class_or_partial}}V8Inte
rnal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; | 385 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, {{cpp_class_or_partial}}V8Inte
rnal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; |
383 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v8::D
ontDelete, symbolKeyedIteratorConfiguration, isolate); | 386 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v8::D
ontDelete, symbolKeyedIteratorConfiguration, isolate); |
| 387 {% endfilter %}{# runtime_enabled() #} |
| 388 {% endfilter %}{# exposed() #} |
| 389 {% endfilter %}{# per_context_enabled() #} |
384 {% endif %} | 390 {% endif %} |
385 {# End special operations #} | 391 {# End special operations #} |
386 {% if has_custom_legacy_call_as_function %} | 392 {% if has_custom_legacy_call_as_function %} |
387 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler({{v8_class}}:
:legacyCallCustom); | 393 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler({{v8_class}}:
:legacyCallCustom); |
388 {% endif %} | 394 {% endif %} |
389 {% if interface_name == 'HTMLAllCollection' %} | 395 {% if interface_name == 'HTMLAllCollection' %} |
390 {# Needed for legacy support of document.all #} | 396 {# Needed for legacy support of document.all #} |
391 functionTemplate->InstanceTemplate()->MarkAsUndetectable(); | 397 functionTemplate->InstanceTemplate()->MarkAsUndetectable(); |
392 {% endif %} | 398 {% endif %} |
393 {% for method in custom_registration_methods %} | 399 {% for method in custom_registration_methods %} |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 {% endfor %} | 473 {% endfor %} |
468 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 474 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
469 {{attribute_getter_implemented_in_private_script(attribute)}} | 475 {{attribute_getter_implemented_in_private_script(attribute)}} |
470 {% if not attribute.is_read_only or attribute.put_forwards %} | 476 {% if not attribute.is_read_only or attribute.put_forwards %} |
471 {{attribute_setter_implemented_in_private_script(attribute)}} | 477 {{attribute_setter_implemented_in_private_script(attribute)}} |
472 {% endif %} | 478 {% endif %} |
473 {% endfor %} | 479 {% endfor %} |
474 {% block partial_interface %}{% endblock %} | 480 {% block partial_interface %}{% endblock %} |
475 } // namespace blink | 481 } // namespace blink |
476 {% endfilter %} | 482 {% endfilter %} |
OLD | NEW |