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 conditional(iterator_method.conditional_string) %} | |
haraken
2015/01/14 11:38:47
If we don't have any use case for [Conditional] on
Jens Widell
2015/01/14 12:00:02
Done.
| |
383 {% filter per_context_enabled(iterator_method.per_context_enabled_function) %} | |
384 {% filter exposed(iterator_method.exposed_test) %} | |
385 {% 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 }; | 386 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); | 387 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v8::D ontDelete, symbolKeyedIteratorConfiguration, isolate); |
388 {% endfilter %}{# runtime_enabled() #} | |
389 {% endfilter %}{# exposed() #} | |
390 {% endfilter %}{# per_context_enabled() #} | |
391 {% endfilter %}{# conditional() #} | |
384 {% endif %} | 392 {% endif %} |
385 {# End special operations #} | 393 {# End special operations #} |
386 {% if has_custom_legacy_call_as_function %} | 394 {% if has_custom_legacy_call_as_function %} |
387 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler({{v8_class}}: :legacyCallCustom); | 395 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler({{v8_class}}: :legacyCallCustom); |
388 {% endif %} | 396 {% endif %} |
389 {% if interface_name == 'HTMLAllCollection' %} | 397 {% if interface_name == 'HTMLAllCollection' %} |
390 {# Needed for legacy support of document.all #} | 398 {# Needed for legacy support of document.all #} |
391 functionTemplate->InstanceTemplate()->MarkAsUndetectable(); | 399 functionTemplate->InstanceTemplate()->MarkAsUndetectable(); |
392 {% endif %} | 400 {% endif %} |
393 {% for method in custom_registration_methods %} | 401 {% for method in custom_registration_methods %} |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
467 {% endfor %} | 475 {% endfor %} |
468 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 476 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
469 {{attribute_getter_implemented_in_private_script(attribute)}} | 477 {{attribute_getter_implemented_in_private_script(attribute)}} |
470 {% if not attribute.is_read_only or attribute.put_forwards %} | 478 {% if not attribute.is_read_only or attribute.put_forwards %} |
471 {{attribute_setter_implemented_in_private_script(attribute)}} | 479 {{attribute_setter_implemented_in_private_script(attribute)}} |
472 {% endif %} | 480 {% endif %} |
473 {% endfor %} | 481 {% endfor %} |
474 {% block partial_interface %}{% endblock %} | 482 {% block partial_interface %}{% endblock %} |
475 } // namespace blink | 483 } // namespace blink |
476 {% endfilter %} | 484 {% endfilter %} |
OLD | NEW |