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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 {% if has_custom_legacy_call_as_function %} | 386 {% if has_custom_legacy_call_as_function %} |
387 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler({{v8_class}}:
:legacyCallCustom); | 387 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler({{v8_class}}:
:legacyCallCustom); |
388 {% endif %} | 388 {% endif %} |
389 {% if interface_name == 'HTMLAllCollection' %} | 389 {% if interface_name == 'HTMLAllCollection' %} |
390 {# Needed for legacy support of document.all #} | 390 {# Needed for legacy support of document.all #} |
391 functionTemplate->InstanceTemplate()->MarkAsUndetectable(); | 391 functionTemplate->InstanceTemplate()->MarkAsUndetectable(); |
392 {% endif %} | 392 {% endif %} |
393 {% for method in custom_registration_methods %} | 393 {% for method in custom_registration_methods %} |
394 {# install_custom_signature #} | 394 {# install_custom_signature #} |
395 {% filter conditional(method.conditional_string) %} | 395 {% filter conditional(method.conditional_string) %} |
396 {% filter per_context_enabled(method.overloads.per_context_enabled_function_
all | |
397 if method.overloads else | |
398 method.per_context_enabled_function) %} | |
399 {% filter exposed(method.overloads.exposed_test_all | |
400 if method.overloads else | |
401 method.exposed_test) %} | |
402 {% filter runtime_enabled(method.overloads.runtime_enabled_function_all | 396 {% filter runtime_enabled(method.overloads.runtime_enabled_function_all |
403 if method.overloads else | 397 if method.overloads else |
404 method.runtime_enabled_function) %} | 398 method.runtime_enabled_function) %} |
405 {% if method.is_do_not_check_security %} | 399 {% if method.is_do_not_check_security %} |
406 {{install_do_not_check_security_signature(method) | indent}} | 400 {{install_do_not_check_security_signature(method) | indent}} |
407 {% else %}{# is_do_not_check_security #} | 401 {% else %}{# is_do_not_check_security #} |
408 {{install_custom_signature(method) | indent}} | 402 {{install_custom_signature(method) | indent}} |
409 {% endif %}{# is_do_not_check_security #} | 403 {% endif %}{# is_do_not_check_security #} |
410 {% endfilter %}{# runtime_enabled() #} | 404 {% endfilter %}{# runtime_enabled() #} |
411 {% endfilter %}{# exposed() #} | |
412 {% endfilter %}{# per_context_enabled() #} | |
413 {% endfilter %}{# conditional() #} | 405 {% endfilter %}{# conditional() #} |
414 {% endfor %} | 406 {% endfor %} |
415 {% for attribute in attributes if attribute.is_static %} | 407 {% for attribute in attributes if attribute.is_static %} |
416 {% set getter_callback = '%sV8Internal::%sAttributeGetterCallback' % | 408 {% set getter_callback = '%sV8Internal::%sAttributeGetterCallback' % |
417 (cpp_class, attribute.name) %} | 409 (cpp_class, attribute.name) %} |
418 {% filter conditional(attribute.conditional_string) %} | 410 {% filter conditional(attribute.conditional_string) %} |
419 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "{{attribute
.name}}"), {{getter_callback}}, {{attribute.setter_callback}}, v8::External::New
(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::Acces
sorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 411 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "{{attribute
.name}}"), {{getter_callback}}, {{attribute.setter_callback}}, v8::External::New
(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::Acces
sorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
420 {% endfilter %} | 412 {% endfilter %} |
421 {% endfor %} | 413 {% endfor %} |
422 {# Special interfaces #} | 414 {# Special interfaces #} |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 {% endfor %} | 459 {% endfor %} |
468 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 460 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
469 {{attribute_getter_implemented_in_private_script(attribute)}} | 461 {{attribute_getter_implemented_in_private_script(attribute)}} |
470 {% if not attribute.is_read_only or attribute.put_forwards %} | 462 {% if not attribute.is_read_only or attribute.put_forwards %} |
471 {{attribute_setter_implemented_in_private_script(attribute)}} | 463 {{attribute_setter_implemented_in_private_script(attribute)}} |
472 {% endif %} | 464 {% endif %} |
473 {% endfor %} | 465 {% endfor %} |
474 {% block partial_interface %}{% endblock %} | 466 {% block partial_interface %}{% endblock %} |
475 } // namespace blink | 467 } // namespace blink |
476 {% endfilter %} | 468 {% endfilter %} |
OLD | NEW |