| 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 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 } | 326 } |
| 327 | 327 |
| 328 void V8TestInterfaceNode::perWorldBindingsTestInterfaceEmptyMethodOptionalBoolea
nArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { | 328 void V8TestInterfaceNode::perWorldBindingsTestInterfaceEmptyMethodOptionalBoolea
nArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 329 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptionalB
ooleanArgMethod(info); | 329 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptionalB
ooleanArgMethod(info); |
| 330 } | 330 } |
| 331 | 331 |
| 332 void V8TestInterfaceNode::perWorldBindingsTestInterfaceEmptyMethodOptionalBoolea
nArgMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
{ | 332 void V8TestInterfaceNode::perWorldBindingsTestInterfaceEmptyMethodOptionalBoolea
nArgMethodCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
{ |
| 333 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptionalB
ooleanArgMethodForMainWorld(info); | 333 TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptionalB
ooleanArgMethodForMainWorld(info); |
| 334 } | 334 } |
| 335 | 335 |
| 336 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceNodeAccessors[] =
{ | 336 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceNodeAccess
ors[] = { |
| 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, static_cast<v8::P
ropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration
::CheckHolder, V8DOMConfiguration::AllWorlds}, |
| 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, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototyp
e, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds}, |
| 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, static_c
ast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnPrototype, V8DOM
Configuration::CheckHolder, V8DOMConfiguration::AllWorlds}, |
| 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, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu
ration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWor
lds}, |
| 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:
:perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallbackForMa
inWorld, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::ReadO
nly), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMCon
figuration::MainWorld}, |
| 342 {"reflectStringAttribute", V8TestInterfaceNode::reflectStringAttributeAttrib
uteGetterCallback, V8TestInterfaceNode::reflectStringAttributeAttributeSetterCal
lback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8
::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 342 {"perWorldBindingsReadonlyTestInterfaceEmptyAttribute", V8TestInterfaceNode:
:perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallback, nul
lptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMC
onfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::
NonMainWorlds}, |
| 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 {"reflectStringAttribute", V8TestInterfaceNode::reflectStringAttributeAttrib
uteGetterCallback, V8TestInterfaceNode::reflectStringAttributeAttributeSetterCal
lback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConf
iguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::All
Worlds}, |
| 344 {"reflectUrlStringAttribute", V8TestInterfaceNode::reflectUrlStringAttribute
AttributeGetterCallback, V8TestInterfaceNode::reflectUrlStringAttributeAttribute
SetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None),
V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigura
tion::AllWorlds}, |
| 344 }; | 345 }; |
| 345 | 346 |
| 346 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceNodeMethods[] = { | 347 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceNodeMethods[
] = { |
| 347 {"testInterfaceEmptyMethod", V8TestInterfaceNode::testInterfaceEmptyMethodMe
thodCallback, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::
CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds
}, | 348 {"testInterfaceEmptyMethod", V8TestInterfaceNode::testInterfaceEmptyMethodMe
thodCallback, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::
CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds
}, |
| 348 {"perWorldBindingsTestInterfaceEmptyMethod", V8TestInterfaceNode::perWorldBi
ndingsTestInterfaceEmptyMethodMethodCallbackForMainWorld, 0, v8::None, V8DOMConf
iguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoN
otCheckAccess, V8DOMConfiguration::MainWorld}, | 349 {"perWorldBindingsTestInterfaceEmptyMethod", V8TestInterfaceNode::perWorldBi
ndingsTestInterfaceEmptyMethodMethodCallbackForMainWorld, 0, v8::None, V8DOMConf
iguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoN
otCheckAccess, V8DOMConfiguration::MainWorld}, |
| 349 {"perWorldBindingsTestInterfaceEmptyMethod", V8TestInterfaceNode::perWorldBi
ndingsTestInterfaceEmptyMethodMethodCallback, 0, v8::None, V8DOMConfiguration::O
nPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAcces
s, V8DOMConfiguration::NonMainWorlds}, | 350 {"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
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}, | 352 {"perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg", V8TestInterfa
ceNode::perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethodCallback
, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder,
V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::NonMainWorlds}, |
| 352 }; | 353 }; |
| 353 | 354 |
| 354 static void installV8TestInterfaceNodeTemplate(v8::Isolate* isolate, const DOMWr
apperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { | 355 static void installV8TestInterfaceNodeTemplate(v8::Isolate* isolate, const DOMWr
apperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { |
| 355 // Initialize the interface object's template. | 356 // Initialize the interface object's template. |
| 356 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestInterfaceNode::wrapperTypeInfo.interfaceName, V8Node::domTemplate(isolate
, world), V8TestInterfaceNode::internalFieldCount); | 357 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestInterfaceNode::wrapperTypeInfo.interfaceName, V8Node::domTemplate(isolate
, world), V8TestInterfaceNode::internalFieldCount); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 381 | 382 |
| 382 TestInterfaceNode* V8TestInterfaceNode::toImplWithTypeCheck(v8::Isolate* isolate
, v8::Local<v8::Value> value) { | 383 TestInterfaceNode* V8TestInterfaceNode::toImplWithTypeCheck(v8::Isolate* isolate
, v8::Local<v8::Value> value) { |
| 383 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 384 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
| 384 } | 385 } |
| 385 | 386 |
| 386 TestInterfaceNode* NativeValueTraits<TestInterfaceNode>::nativeValue(v8::Isolate
* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { | 387 TestInterfaceNode* NativeValueTraits<TestInterfaceNode>::nativeValue(v8::Isolate
* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { |
| 387 return V8TestInterfaceNode::toImplWithTypeCheck(isolate, value); | 388 return V8TestInterfaceNode::toImplWithTypeCheck(isolate, value); |
| 388 } | 389 } |
| 389 | 390 |
| 390 } // namespace blink | 391 } // namespace blink |
| OLD | NEW |