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_v8.py. | 5 // This file has been auto-generated by code_generator_v8.py. |
6 // DO NOT MODIFY! | 6 // DO NOT MODIFY! |
7 | 7 |
8 // clang-format off | 8 // clang-format off |
9 #include "V8TestInterfaceCheckSecurity.h" | 9 #include "V8TestInterfaceCheckSecurity.h" |
10 | 10 |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceCheckSecurityAcce
ssors[] = { | 404 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceCheckSecurityAcce
ssors[] = { |
405 {"readonlyLongAttribute", TestInterfaceCheckSecurityV8Internal::readonlyLong
AttributeAttributeGetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<
v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::ExposedToAllScripts, V
8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder}, | 405 {"readonlyLongAttribute", TestInterfaceCheckSecurityV8Internal::readonlyLong
AttributeAttributeGetterCallback, 0, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<
v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::ExposedToAllScripts, V
8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder}, |
406 {"longAttribute", TestInterfaceCheckSecurityV8Internal::longAttributeAttribu
teGetterCallback, TestInterfaceCheckSecurityV8Internal::longAttributeAttributeSe
tterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(
v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstan
ce, V8DOMConfiguration::CheckHolder}, | 406 {"longAttribute", TestInterfaceCheckSecurityV8Internal::longAttributeAttribu
teGetterCallback, TestInterfaceCheckSecurityV8Internal::longAttributeAttributeSe
tterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(
v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstan
ce, V8DOMConfiguration::CheckHolder}, |
407 {"doNotCheckSecurityLongAttribute", TestInterfaceCheckSecurityV8Internal::do
NotCheckSecurityLongAttributeAttributeGetterCallback, TestInterfaceCheckSecurity
V8Internal::doNotCheckSecurityLongAttributeAttributeSetterCallback, 0, 0, nullpt
r, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat
ion::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration::Ch
eckHolder}, | 407 {"doNotCheckSecurityLongAttribute", TestInterfaceCheckSecurityV8Internal::do
NotCheckSecurityLongAttributeAttributeGetterCallback, TestInterfaceCheckSecurity
V8Internal::doNotCheckSecurityLongAttributeAttributeSetterCallback, 0, 0, nullpt
r, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat
ion::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfiguration::Ch
eckHolder}, |
408 {"doNotCheckSecurityReadonlyLongAttribute", TestInterfaceCheckSecurityV8Inte
rnal::doNotCheckSecurityReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, n
ullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMC
onfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfigur
ation::CheckHolder}, | 408 {"doNotCheckSecurityReadonlyLongAttribute", TestInterfaceCheckSecurityV8Inte
rnal::doNotCheckSecurityReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, n
ullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMC
onfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfigur
ation::CheckHolder}, |
409 {"doNotCheckSecurityOnSetterLongAttribute", TestInterfaceCheckSecurityV8Inte
rnal::doNotCheckSecurityOnSetterLongAttributeAttributeGetterCallback, TestInterf
aceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttributeAttributeSett
erCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8
::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance
, V8DOMConfiguration::CheckHolder}, | 409 {"doNotCheckSecurityOnSetterLongAttribute", TestInterfaceCheckSecurityV8Inte
rnal::doNotCheckSecurityOnSetterLongAttributeAttributeGetterCallback, TestInterf
aceCheckSecurityV8Internal::doNotCheckSecurityOnSetterLongAttributeAttributeSett
erCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8
::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance
, V8DOMConfiguration::CheckHolder}, |
410 {"doNotCheckSecurityReplaceableReadonlyLongAttribute", TestInterfaceCheckSec
urityV8Internal::doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGett
erCallback, TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReplaceableR
eadonlyLongAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, stat
ic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScript
s, V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder}, | 410 {"doNotCheckSecurityReplaceableReadonlyLongAttribute", TestInterfaceCheckSec
urityV8Internal::doNotCheckSecurityReplaceableReadonlyLongAttributeAttributeGett
erCallback, TestInterfaceCheckSecurityV8Internal::doNotCheckSecurityReplaceableR
eadonlyLongAttributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, stat
ic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScript
s, V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder}, |
411 }; | 411 }; |
412 | 412 |
413 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceCheckSecurityMethod
s[] = { | 413 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceCheckSecurityMethod
s[] = { |
414 {"voidMethod", TestInterfaceCheckSecurityV8Internal::voidMethodMethodCallbac
k, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::
OnInstance}, | 414 {"voidMethod", TestInterfaceCheckSecurityV8Internal::voidMethodMethodCallbac
k, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::
OnInstance, V8DOMConfiguration::CheckHolder}, |
415 }; | 415 }; |
416 | 416 |
417 static void installV8TestInterfaceCheckSecurityTemplate(v8::Isolate* isolate, co
nst DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { | 417 static void installV8TestInterfaceCheckSecurityTemplate(v8::Isolate* isolate, co
nst DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { |
418 // Initialize the interface object's template. | 418 // Initialize the interface object's template. |
419 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestInterfaceCheckSecurity::wrapperTypeInfo.interfaceName, v8::Local<v8::Func
tionTemplate>(), V8TestInterfaceCheckSecurity::internalFieldCount); | 419 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestInterfaceCheckSecurity::wrapperTypeInfo.interfaceName, v8::Local<v8::Func
tionTemplate>(), V8TestInterfaceCheckSecurity::internalFieldCount); |
420 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 420 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
421 ALLOW_UNUSED_LOCAL(signature); | 421 ALLOW_UNUSED_LOCAL(signature); |
422 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); | 422 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); |
423 ALLOW_UNUSED_LOCAL(instanceTemplate); | 423 ALLOW_UNUSED_LOCAL(instanceTemplate); |
424 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); | 424 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 | 460 |
461 v8::Local<v8::Object> V8TestInterfaceCheckSecurity::findInstanceInPrototypeChain
(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) { | 461 v8::Local<v8::Object> V8TestInterfaceCheckSecurity::findInstanceInPrototypeChain
(v8::Local<v8::Value> v8Value, v8::Isolate* isolate) { |
462 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); | 462 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); |
463 } | 463 } |
464 | 464 |
465 TestInterfaceCheckSecurity* V8TestInterfaceCheckSecurity::toImplWithTypeCheck(v8
::Isolate* isolate, v8::Local<v8::Value> value) { | 465 TestInterfaceCheckSecurity* V8TestInterfaceCheckSecurity::toImplWithTypeCheck(v8
::Isolate* isolate, v8::Local<v8::Value> value) { |
466 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 466 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
467 } | 467 } |
468 | 468 |
469 } // namespace blink | 469 } // namespace blink |
OLD | NEW |