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 "V8TestInterfaceNode.h" | 9 #include "V8TestInterfaceNode.h" |
10 | 10 |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 {"nodeName", TestInterfaceNodeV8Internal::nodeNameAttributeGetterCallback, T
estInterfaceNodeV8Internal::nodeNameAttributeSetterCallback, 0, 0, nullptr, 0, v
8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol
der}, | 333 {"nodeName", TestInterfaceNodeV8Internal::nodeNameAttributeGetterCallback, T
estInterfaceNodeV8Internal::nodeNameAttributeSetterCallback, 0, 0, nullptr, 0, v
8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol
der}, |
334 {"stringAttribute", TestInterfaceNodeV8Internal::stringAttributeAttributeGet
terCallback, TestInterfaceNodeV8Internal::stringAttributeAttributeSetterCallback
, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V
8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMCo
nfiguration::CheckHolder}, | 334 {"stringAttribute", TestInterfaceNodeV8Internal::stringAttributeAttributeGet
terCallback, TestInterfaceNodeV8Internal::stringAttributeAttributeSetterCallback
, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V
8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMCo
nfiguration::CheckHolder}, |
335 {"readonlyTestInterfaceEmptyAttribute", TestInterfaceNodeV8Internal::readonl
yTestInterfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, nullptr, 0, v8::DE
FAULT, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::Exp
osedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHold
er}, | 335 {"readonlyTestInterfaceEmptyAttribute", TestInterfaceNodeV8Internal::readonl
yTestInterfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, nullptr, 0, v8::DE
FAULT, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::Exp
osedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHold
er}, |
336 {"eventHandlerAttribute", TestInterfaceNodeV8Internal::eventHandlerAttribute
AttributeGetterCallback, TestInterfaceNodeV8Internal::eventHandlerAttributeAttri
buteSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttri
bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On
Prototype, V8DOMConfiguration::CheckHolder}, | 336 {"eventHandlerAttribute", TestInterfaceNodeV8Internal::eventHandlerAttribute
AttributeGetterCallback, TestInterfaceNodeV8Internal::eventHandlerAttributeAttri
buteSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAttri
bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On
Prototype, V8DOMConfiguration::CheckHolder}, |
337 {"perWorldBindingsReadonlyTestInterfaceEmptyAttribute", TestInterfaceNodeV8I
nternal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallb
ack, 0, TestInterfaceNodeV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyA
ttributeAttributeGetterCallbackForMainWorld, 0, nullptr, 0, v8::DEFAULT, static_
cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::ExposedToAllScrip
ts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 337 {"perWorldBindingsReadonlyTestInterfaceEmptyAttribute", TestInterfaceNodeV8I
nternal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallb
ack, 0, TestInterfaceNodeV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyA
ttributeAttributeGetterCallbackForMainWorld, 0, nullptr, 0, v8::DEFAULT, static_
cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::ExposedToAllScrip
ts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
338 {"reflectStringAttribute", TestInterfaceNodeV8Internal::reflectStringAttribu
teAttributeGetterCallback, TestInterfaceNodeV8Internal::reflectStringAttributeAt
tributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration:
:OnPrototype, V8DOMConfiguration::CheckHolder}, | 338 {"reflectStringAttribute", TestInterfaceNodeV8Internal::reflectStringAttribu
teAttributeGetterCallback, TestInterfaceNodeV8Internal::reflectStringAttributeAt
tributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration:
:OnPrototype, V8DOMConfiguration::CheckHolder}, |
339 {"reflectUrlStringAttribute", TestInterfaceNodeV8Internal::reflectUrlStringA
ttributeAttributeGetterCallback, TestInterfaceNodeV8Internal::reflectUrlStringAt
tributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::P
ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfi
guration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 339 {"reflectUrlStringAttribute", TestInterfaceNodeV8Internal::reflectUrlStringA
ttributeAttributeGetterCallback, TestInterfaceNodeV8Internal::reflectUrlStringAt
tributeAttributeSetterCallback, 0, 0, nullptr, 0, v8::DEFAULT, static_cast<v8::P
ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfi
guration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
340 }; | 340 }; |
341 | 341 |
342 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceNodeMethods[] = { | 342 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceNodeMethods[] = { |
343 {"testInterfaceEmptyMethod", TestInterfaceNodeV8Internal::testInterfaceEmpty
MethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V
8DOMConfiguration::OnPrototype}, | 343 {"testInterfaceEmptyMethod", TestInterfaceNodeV8Internal::testInterfaceEmpty
MethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V
8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
344 {"perWorldBindingsTestInterfaceEmptyMethod", TestInterfaceNodeV8Internal::pe
rWorldBindingsTestInterfaceEmptyMethodMethodCallback, TestInterfaceNodeV8Interna
l::perWorldBindingsTestInterfaceEmptyMethodMethodCallbackForMainWorld, 0, v8::No
ne, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype}, | 344 {"perWorldBindingsTestInterfaceEmptyMethod", TestInterfaceNodeV8Internal::pe
rWorldBindingsTestInterfaceEmptyMethodMethodCallback, TestInterfaceNodeV8Interna
l::perWorldBindingsTestInterfaceEmptyMethodMethodCallbackForMainWorld, 0, v8::No
ne, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8
DOMConfiguration::CheckHolder}, |
345 {"perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg", TestInterface
NodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethod
Callback, TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodO
ptionalBooleanArgMethodCallbackForMainWorld, 0, v8::None, V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnPrototype}, | 345 {"perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArg", TestInterface
NodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodOptionalBooleanArgMethod
Callback, TestInterfaceNodeV8Internal::perWorldBindingsTestInterfaceEmptyMethodO
ptionalBooleanArgMethodCallbackForMainWorld, 0, v8::None, V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol
der}, |
346 }; | 346 }; |
347 | 347 |
348 static void installV8TestInterfaceNodeTemplate(v8::Isolate* isolate, const DOMWr
apperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { | 348 static void installV8TestInterfaceNodeTemplate(v8::Isolate* isolate, const DOMWr
apperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { |
349 // Initialize the interface object's template. | 349 // Initialize the interface object's template. |
350 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestInterfaceNode::wrapperTypeInfo.interfaceName, V8Node::domTemplate(isolate
, world), V8TestInterfaceNode::internalFieldCount); | 350 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestInterfaceNode::wrapperTypeInfo.interfaceName, V8Node::domTemplate(isolate
, world), V8TestInterfaceNode::internalFieldCount); |
351 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 351 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
352 ALLOW_UNUSED_LOCAL(signature); | 352 ALLOW_UNUSED_LOCAL(signature); |
353 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); | 353 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); |
354 ALLOW_UNUSED_LOCAL(instanceTemplate); | 354 ALLOW_UNUSED_LOCAL(instanceTemplate); |
355 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); | 355 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); |
(...skipping 13 matching lines...) Expand all Loading... |
369 | 369 |
370 v8::Local<v8::Object> V8TestInterfaceNode::findInstanceInPrototypeChain(v8::Loca
l<v8::Value> v8Value, v8::Isolate* isolate) { | 370 v8::Local<v8::Object> V8TestInterfaceNode::findInstanceInPrototypeChain(v8::Loca
l<v8::Value> v8Value, v8::Isolate* isolate) { |
371 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); | 371 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); |
372 } | 372 } |
373 | 373 |
374 TestInterfaceNode* V8TestInterfaceNode::toImplWithTypeCheck(v8::Isolate* isolate
, v8::Local<v8::Value> value) { | 374 TestInterfaceNode* V8TestInterfaceNode::toImplWithTypeCheck(v8::Isolate* isolate
, v8::Local<v8::Value> value) { |
375 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 375 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
376 } | 376 } |
377 | 377 |
378 } // namespace blink | 378 } // namespace blink |
OLD | NEW |