| 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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 {"nodeName", V8TestInterfaceNode::nodeNameAttributeGetterCallback, V8TestInt
erfaceNode::nodeNameAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr,
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype,
V8DOMConfiguration::CheckHolder}, | 337 {"nodeName", V8TestInterfaceNode::nodeNameAttributeGetterCallback, V8TestInt
erfaceNode::nodeNameAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr,
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype,
V8DOMConfiguration::CheckHolder}, |
| 338 {"stringAttribute", V8TestInterfaceNode::stringAttributeAttributeGetterCallb
ack, V8TestInterfaceNode::stringAttributeAttributeSetterCallback, nullptr, nullp
tr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu
ration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 338 {"stringAttribute", V8TestInterfaceNode::stringAttributeAttributeGetterCallb
ack, V8TestInterfaceNode::stringAttributeAttributeSetterCallback, nullptr, nullp
tr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu
ration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
| 339 {"readonlyTestInterfaceEmptyAttribute", V8TestInterfaceNode::readonlyTestInt
erfaceEmptyAttributeAttributeGetterCallback, nullptr, nullptr, nullptr, nullptr,
nullptr, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::
OnPrototype, V8DOMConfiguration::CheckHolder}, | 339 {"readonlyTestInterfaceEmptyAttribute", V8TestInterfaceNode::readonlyTestInt
erfaceEmptyAttributeAttributeGetterCallback, nullptr, nullptr, nullptr, nullptr,
nullptr, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::
OnPrototype, V8DOMConfiguration::CheckHolder}, |
| 340 {"eventHandlerAttribute", V8TestInterfaceNode::eventHandlerAttributeAttribut
eGetterCallback, V8TestInterfaceNode::eventHandlerAttributeAttributeSetterCallba
ck, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::N
one), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 340 {"eventHandlerAttribute", V8TestInterfaceNode::eventHandlerAttributeAttribut
eGetterCallback, V8TestInterfaceNode::eventHandlerAttributeAttributeSetterCallba
ck, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::N
one), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
| 341 {"perWorldBindingsReadonlyTestInterfaceEmptyAttribute", V8TestInterfaceNode:
:perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallback, nul
lptr, V8TestInterfaceNode::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAt
tributeGetterCallbackForMainWorld, nullptr, nullptr, nullptr, static_cast<v8::Pr
opertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnPrototype, V8DOMConfigurat
ion::CheckHolder}, | 341 {"perWorldBindingsReadonlyTestInterfaceEmptyAttribute", V8TestInterfaceNode:
:perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallback, nul
lptr, V8TestInterfaceNode::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAt
tributeGetterCallbackForMainWorld, nullptr, nullptr, nullptr, static_cast<v8::Pr
opertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnPrototype, V8DOMConfigurat
ion::CheckHolder}, |
| 342 {"reflectStringAttribute", V8TestInterfaceNode::reflectStringAttributeAttrib
uteGetterCallback, V8TestInterfaceNode::reflectStringAttributeAttributeSetterCal
lback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8
::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 342 {"reflectStringAttribute", V8TestInterfaceNode::reflectStringAttributeAttrib
uteGetterCallback, V8TestInterfaceNode::reflectStringAttributeAttributeSetterCal
lback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8
::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
| 343 {"reflectUrlStringAttribute", V8TestInterfaceNode::reflectUrlStringAttribute
AttributeGetterCallback, V8TestInterfaceNode::reflectUrlStringAttributeAttribute
SetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttr
ibute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHold
er}, | 343 {"reflectUrlStringAttribute", V8TestInterfaceNode::reflectUrlStringAttribute
AttributeGetterCallback, V8TestInterfaceNode::reflectUrlStringAttributeAttribute
SetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttr
ibute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHold
er}, |
| 344 }; | 344 }; |
| 345 | 345 |
| 346 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceNodeMethods[] = { | 346 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceNodeMethods[] = { |
| 347 {"testInterfaceEmptyMethod", V8TestInterfaceNode::testInterfaceEmptyMethodMe
thodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfig
uration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}, | 347 {"testInterfaceEmptyMethod", V8TestInterfaceNode::testInterfaceEmptyMethodMe
thodCallback, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::
CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds
}, |
| 348 {"perWorldBindingsTestInterfaceEmptyMethod", V8TestInterfaceNode::perWorldBi
ndingsTestInterfaceEmptyMethodMethodCallback, V8TestInterfaceNode::perWorldBindi
ngsTestInterfaceEmptyMethodMethodCallbackForMainWorld, 0, v8::None, V8DOMConfigu
ration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotC
heckAccess}, | 348 {"perWorldBindingsTestInterfaceEmptyMethod", V8TestInterfaceNode::perWorldBi
ndingsTestInterfaceEmptyMethodMethodCallbackForMainWorld, 0, v8::None, V8DOMConf
iguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoN
otCheckAccess, V8DOMConfiguration::MainWorld}, |
| 349 {"perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg", V8TestInterfa
ceNode::perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCallback
, V8TestInterfaceNode::perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanAr
gMethodCallbackForMainWorld, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOM
Configuration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess}, | 349 {"perWorldBindingsTestInterfaceEmptyMethod", V8TestInterfaceNode::perWorldBi
ndingsTestInterfaceEmptyMethodMethodCallback, 0, v8::None, V8DOMConfiguration::O
nPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAcces
s, V8DOMConfiguration::NonMainWorlds}, |
| 350 {"perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg", V8TestInterfa
ceNode::perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCallback
ForMainWorld, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::
CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::MainWorld
}, |
| 351 {"perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg", V8TestInterfa
ceNode::perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCallback
, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder,
V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::NonMainWorlds}, |
| 350 }; | 352 }; |
| 351 | 353 |
| 352 static void installV8TestInterfaceNodeTemplate(v8::Isolate* isolate, const DOMWr
apperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { | 354 static void installV8TestInterfaceNodeTemplate(v8::Isolate* isolate, const DOMWr
apperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { |
| 353 // Initialize the interface object's template. | 355 // Initialize the interface object's template. |
| 354 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestInterfaceNode::wrapperTypeInfo.interfaceName, V8Node::domTemplate(isolate
, world), V8TestInterfaceNode::internalFieldCount); | 356 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestInterfaceNode::wrapperTypeInfo.interfaceName, V8Node::domTemplate(isolate
, world), V8TestInterfaceNode::internalFieldCount); |
| 355 | 357 |
| 356 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 358 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
| 357 ALLOW_UNUSED_LOCAL(signature); | 359 ALLOW_UNUSED_LOCAL(signature); |
| 358 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); | 360 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); |
| 359 ALLOW_UNUSED_LOCAL(instanceTemplate); | 361 ALLOW_UNUSED_LOCAL(instanceTemplate); |
| (...skipping 19 matching lines...) Expand all Loading... |
| 379 | 381 |
| 380 TestInterfaceNode* V8TestInterfaceNode::toImplWithTypeCheck(v8::Isolate* isolate
, v8::Local<v8::Value> value) { | 382 TestInterfaceNode* V8TestInterfaceNode::toImplWithTypeCheck(v8::Isolate* isolate
, v8::Local<v8::Value> value) { |
| 381 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 383 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
| 382 } | 384 } |
| 383 | 385 |
| 384 TestInterfaceNode* NativeValueTraits<TestInterfaceNode>::nativeValue(v8::Isolate
* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { | 386 TestInterfaceNode* NativeValueTraits<TestInterfaceNode>::nativeValue(v8::Isolate
* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { |
| 385 return V8TestInterfaceNode::toImplWithTypeCheck(isolate, value); | 387 return V8TestInterfaceNode::toImplWithTypeCheck(isolate, value); |
| 386 } | 388 } |
| 387 | 389 |
| 388 } // namespace blink | 390 } // namespace blink |
| OLD | NEW |