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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 {% if has_access_check_callbacks %} | 320 {% if has_access_check_callbacks %} |
321 instanceTemplate->SetAccessCheckCallbacks({{cpp_class}}V8Internal::namedSecu
rityCheck, {{cpp_class}}V8Internal::indexedSecurityCheck, v8::External::New(isol
ate, const_cast<WrapperTypeInfo*>(&{{v8_class}}::wrapperTypeInfo))); | 321 instanceTemplate->SetAccessCheckCallbacks({{cpp_class}}V8Internal::namedSecu
rityCheck, {{cpp_class}}V8Internal::indexedSecurityCheck, v8::External::New(isol
ate, const_cast<WrapperTypeInfo*>(&{{v8_class}}::wrapperTypeInfo))); |
322 {% endif %} | 322 {% endif %} |
323 {% for attribute in attributes | 323 {% for attribute in attributes |
324 if attribute.runtime_enabled_function and | 324 if attribute.runtime_enabled_function and |
325 not attribute.per_context_enabled_function and | 325 not attribute.per_context_enabled_function and |
326 not attribute.exposed_test and | 326 not attribute.exposed_test and |
327 not attribute.is_static %} | 327 not attribute.is_static %} |
328 {% filter conditional(attribute.conditional_string) %} | 328 {% filter conditional(attribute.conditional_string) %} |
329 if ({{attribute.runtime_enabled_function}}()) { | 329 if ({{attribute.runtime_enabled_function}}()) { |
| 330 {% if attribute.is_expose_js_accessors %} |
| 331 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion =\ |
| 332 {{attribute_configuration(attribute)}}; |
| 333 V8DOMConfiguration::installAccessor(instanceTemplate, prototypeTemplate,
defaultSignature, accessorConfiguration, isolate); |
| 334 {% else %} |
330 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 335 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ |
331 {{attribute_configuration(attribute)}}; | 336 {{attribute_configuration(attribute)}}; |
332 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate
, attributeConfiguration, isolate); | 337 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate
, attributeConfiguration, isolate); |
| 338 {% endif %} |
333 } | 339 } |
334 {% endfilter %} | 340 {% endfilter %} |
335 {% endfor %} | 341 {% endfor %} |
336 {% if constants %} | 342 {% if constants %} |
337 {{install_constants() | indent}} | 343 {{install_constants() | indent}} |
338 {% endif %} | 344 {% endif %} |
339 {# Special operations #} | 345 {# Special operations #} |
340 {# V8 has access-check callback API and it\'s used on Window instead of | 346 {# V8 has access-check callback API and it\'s used on Window instead of |
341 deleters or enumerators; see ObjectTemplate::SetAccessCheckCallbacks. | 347 deleters or enumerators; see ObjectTemplate::SetAccessCheckCallbacks. |
342 In addition, the getter should be set on the prototype template, to get | 348 In addition, the getter should be set on the prototype template, to get |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 {% endfor %} | 491 {% endfor %} |
486 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 492 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
487 {{attribute_getter_implemented_in_private_script(attribute)}} | 493 {{attribute_getter_implemented_in_private_script(attribute)}} |
488 {% if not attribute.is_read_only or attribute.put_forwards %} | 494 {% if not attribute.is_read_only or attribute.put_forwards %} |
489 {{attribute_setter_implemented_in_private_script(attribute)}} | 495 {{attribute_setter_implemented_in_private_script(attribute)}} |
490 {% endif %} | 496 {% endif %} |
491 {% endfor %} | 497 {% endfor %} |
492 {% block partial_interface %}{% endblock %} | 498 {% block partial_interface %}{% endblock %} |
493 } // namespace blink | 499 } // namespace blink |
494 {% endfilter %} | 500 {% endfilter %} |
OLD | NEW |