| 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 // This file has been generated from the Jinja2 template in | 8 // This file has been generated from the Jinja2 template in |
| 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl | 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl |
| 10 | 10 |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 456 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 457 #pragma clang diagnostic pop | 457 #pragma clang diagnostic pop |
| 458 #endif | 458 #endif |
| 459 | 459 |
| 460 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceCheckSecurityAcce
ssors[] = { | 460 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceCheckSecurityAcce
ssors[] = { |
| 461 {"readonlyLongAttribute", V8TestInterfaceCheckSecurity::readonlyLongAttribut
eAttributeGetterCallback, nullptr, nullptr, nullptr, nullptr, nullptr, static_ca
st<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnInstance, V8DOMCo
nfiguration::CheckHolder}, | 461 {"readonlyLongAttribute", V8TestInterfaceCheckSecurity::readonlyLongAttribut
eAttributeGetterCallback, nullptr, nullptr, nullptr, nullptr, nullptr, static_ca
st<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnInstance, V8DOMCo
nfiguration::CheckHolder}, |
| 462 {"longAttribute", V8TestInterfaceCheckSecurity::longAttributeAttributeGetter
Callback, V8TestInterfaceCheckSecurity::longAttributeAttributeSetterCallback, nu
llptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None),
V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder}, | 462 {"longAttribute", V8TestInterfaceCheckSecurity::longAttributeAttributeGetter
Callback, V8TestInterfaceCheckSecurity::longAttributeAttributeSetterCallback, nu
llptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None),
V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder}, |
| 463 }; | 463 }; |
| 464 | 464 |
| 465 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceCheckSecurityMethod
s[] = { | 465 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceCheckSecurityMethod
s[] = { |
| 466 {"voidMethod", V8TestInterfaceCheckSecurity::voidMethodMethodCallback, nullp
tr, 0, v8::None, V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder
, V8DOMConfiguration::CheckAccess}, | 466 {"voidMethod", V8TestInterfaceCheckSecurity::voidMethodMethodCallback, 0, v8
::None, V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckHolder, V8DOMCo
nfiguration::CheckAccess, V8DOMConfiguration::AllWorlds}, |
| 467 }; | 467 }; |
| 468 | 468 |
| 469 static void installV8TestInterfaceCheckSecurityTemplate(v8::Isolate* isolate, co
nst DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { | 469 static void installV8TestInterfaceCheckSecurityTemplate(v8::Isolate* isolate, co
nst DOMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { |
| 470 // Initialize the interface object's template. | 470 // Initialize the interface object's template. |
| 471 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestInterfaceCheckSecurity::wrapperTypeInfo.interfaceName, v8::Local<v8::Func
tionTemplate>(), V8TestInterfaceCheckSecurity::internalFieldCount); | 471 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestInterfaceCheckSecurity::wrapperTypeInfo.interfaceName, v8::Local<v8::Func
tionTemplate>(), V8TestInterfaceCheckSecurity::internalFieldCount); |
| 472 | 472 |
| 473 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 473 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
| 474 ALLOW_UNUSED_LOCAL(signature); | 474 ALLOW_UNUSED_LOCAL(signature); |
| 475 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); | 475 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); |
| 476 ALLOW_UNUSED_LOCAL(instanceTemplate); | 476 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 | 519 |
| 520 TestInterfaceCheckSecurity* V8TestInterfaceCheckSecurity::toImplWithTypeCheck(v8
::Isolate* isolate, v8::Local<v8::Value> value) { | 520 TestInterfaceCheckSecurity* V8TestInterfaceCheckSecurity::toImplWithTypeCheck(v8
::Isolate* isolate, v8::Local<v8::Value> value) { |
| 521 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 521 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
| 522 } | 522 } |
| 523 | 523 |
| 524 TestInterfaceCheckSecurity* NativeValueTraits<TestInterfaceCheckSecurity>::nativ
eValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& excepti
onState) { | 524 TestInterfaceCheckSecurity* NativeValueTraits<TestInterfaceCheckSecurity>::nativ
eValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& excepti
onState) { |
| 525 return V8TestInterfaceCheckSecurity::toImplWithTypeCheck(isolate, value); | 525 return V8TestInterfaceCheckSecurity::toImplWithTypeCheck(isolate, value); |
| 526 } | 526 } |
| 527 | 527 |
| 528 } // namespace blink | 528 } // namespace blink |
| OLD | NEW |