| 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "{{attribute
.name}}"), {{getter_callback}}, {{attribute.setter_callback}}, v8::External::New
(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8::Access
orSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 454 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "{{attribute
.name}}"), {{getter_callback}}, {{attribute.setter_callback}}, v8::External::New
(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8::Access
orSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
| 455 {% endfilter %} | 455 {% endfilter %} |
| 456 {% endfor %} | 456 {% endfor %} |
| 457 {# Special interfaces #} | 457 {# Special interfaces #} |
| 458 {% if not is_partial %} | 458 {% if not is_partial %} |
| 459 {% if interface_name == 'Window' %} | 459 {% if interface_name == 'Window' %} |
| 460 | 460 |
| 461 prototypeTemplate->SetInternalFieldCount(V8Window::internalFieldCount); | 461 prototypeTemplate->SetInternalFieldCount(V8Window::internalFieldCount); |
| 462 functionTemplate->SetHiddenPrototype(true); | 462 functionTemplate->SetHiddenPrototype(true); |
| 463 instanceTemplate->SetInternalFieldCount(V8Window::internalFieldCount); | 463 instanceTemplate->SetInternalFieldCount(V8Window::internalFieldCount); |
| 464 // Set access check callbacks, but turned off initially. | |
| 465 // When a context is detached from a frame, turn on the access check. | |
| 466 // Turning on checks also invalidates inline caches of the object. | |
| 467 instanceTemplate->SetAccessCheckCallbacks(V8Window::namedSecurityCheckCustom
, V8Window::indexedSecurityCheckCustom, v8::External::New(isolate, const_cast<Wr
apperTypeInfo*>(&V8Window::wrapperTypeInfo)), false); | |
| 468 {% elif interface_name in [ | 464 {% elif interface_name in [ |
| 469 'HTMLDocument', 'DedicatedWorkerGlobalScope', | 465 'HTMLDocument', 'DedicatedWorkerGlobalScope', |
| 470 'SharedWorkerGlobalScope', 'ServiceWorkerGlobalScope'] %} | 466 'SharedWorkerGlobalScope', 'ServiceWorkerGlobalScope'] %} |
| 471 functionTemplate->SetHiddenPrototype(true); | 467 functionTemplate->SetHiddenPrototype(true); |
| 472 {% endif %} | 468 {% endif %} |
| 473 | 469 |
| 474 // Custom toString template | 470 // Custom toString template |
| 475 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 471 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 476 {% endif %} | 472 {% endif %} |
| 477 {% for attribute in attributes if attribute.has_side_effect_on_get %} | 473 {% for attribute in attributes if attribute.has_side_effect_on_get %} |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 {% endfor %} | 509 {% endfor %} |
| 514 {% for attribute in attributes if attribute.is_implemented_in_private_script %} | 510 {% for attribute in attributes if attribute.is_implemented_in_private_script %} |
| 515 {{attribute_getter_implemented_in_private_script(attribute)}} | 511 {{attribute_getter_implemented_in_private_script(attribute)}} |
| 516 {% if not attribute.is_read_only or attribute.put_forwards %} | 512 {% if not attribute.is_read_only or attribute.put_forwards %} |
| 517 {{attribute_setter_implemented_in_private_script(attribute)}} | 513 {{attribute_setter_implemented_in_private_script(attribute)}} |
| 518 {% endif %} | 514 {% endif %} |
| 519 {% endfor %} | 515 {% endfor %} |
| 520 {% block partial_interface %}{% endblock %} | 516 {% block partial_interface %}{% endblock %} |
| 521 } // namespace blink | 517 } // namespace blink |
| 522 {% endfilter %} | 518 {% endfilter %} |
| OLD | NEW |