| 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 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 void V8TestTypedefs::voidMethodUnionWithTypedefMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) { | 439 void V8TestTypedefs::voidMethodUnionWithTypedefMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) { |
| 440 TestTypedefsV8Internal::voidMethodUnionWithTypedefMethod(info); | 440 TestTypedefsV8Internal::voidMethodUnionWithTypedefMethod(info); |
| 441 } | 441 } |
| 442 | 442 |
| 443 // Suppress warning: global constructors, because AttributeConfiguration is triv
ial | 443 // Suppress warning: global constructors, because AttributeConfiguration is triv
ial |
| 444 // and does not depend on another global objects. | 444 // and does not depend on another global objects. |
| 445 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 445 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 446 #pragma clang diagnostic push | 446 #pragma clang diagnostic push |
| 447 #pragma clang diagnostic ignored "-Wglobal-constructors" | 447 #pragma clang diagnostic ignored "-Wglobal-constructors" |
| 448 #endif | 448 #endif |
| 449 const V8DOMConfiguration::AttributeConfiguration V8TestTypedefsLazyDataAttribute
s[] = { | 449 static const V8DOMConfiguration::AttributeConfiguration V8TestTypedefsLazyDataAt
tributes[] = { |
| 450 {"tAttribute", v8ConstructorAttributeGetter, nullptr, nullptr, nullptr, null
ptr, const_cast<WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cas
t<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::OnInstance, V8DOMCon
figuration::CheckHolder}, | 450 {"tAttribute", v8ConstructorAttributeGetter, nullptr, nullptr, const_cast<Wr
apperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8::PropertyAttr
ibute>(v8::DontEnum), V8DOMConfiguration::OnInstance, V8DOMConfiguration::CheckH
older, V8DOMConfiguration::AllWorlds}, |
| 451 }; | 451 }; |
| 452 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 452 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
| 453 #pragma clang diagnostic pop | 453 #pragma clang diagnostic pop |
| 454 #endif | 454 #endif |
| 455 | 455 |
| 456 const V8DOMConfiguration::AccessorConfiguration V8TestTypedefsAccessors[] = { | 456 static const V8DOMConfiguration::AccessorConfiguration V8TestTypedefsAccessors[]
= { |
| 457 {"uLongLongAttribute", V8TestTypedefs::uLongLongAttributeAttributeGetterCall
back, V8TestTypedefs::uLongLongAttributeAttributeSetterCallback, nullptr, nullpt
r, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur
ation::OnPrototype, V8DOMConfiguration::CheckHolder}, | 457 {"uLongLongAttribute", V8TestTypedefs::uLongLongAttributeAttributeGetterCall
back, V8TestTypedefs::uLongLongAttributeAttributeSetterCallback, nullptr, nullpt
r, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype
, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds}, |
| 458 {"domStringOrDoubleOrNullAttribute", V8TestTypedefs::domStringOrDoubleOrNull
AttributeAttributeGetterCallback, V8TestTypedefs::domStringOrDoubleOrNullAttribu
teAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::P
ropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration
::CheckHolder}, | 458 {"domStringOrDoubleOrNullAttribute", V8TestTypedefs::domStringOrDoubleOrNull
AttributeAttributeGetterCallback, V8TestTypedefs::domStringOrDoubleOrNullAttribu
teAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(
v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8D
OMConfiguration::AllWorlds}, |
| 459 }; | 459 }; |
| 460 | 460 |
| 461 const V8DOMConfiguration::MethodConfiguration V8TestTypedefsMethods[] = { | 461 static const V8DOMConfiguration::MethodConfiguration V8TestTypedefsMethods[] = { |
| 462 {"voidMethodArrayOfLongsArg", V8TestTypedefs::voidMethodArrayOfLongsArgMetho
dCallback, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Che
ckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, | 462 {"voidMethodArrayOfLongsArg", V8TestTypedefs::voidMethodArrayOfLongsArgMetho
dCallback, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Che
ckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
| 463 {"voidMethodFloatArgStringArg", V8TestTypedefs::voidMethodFloatArgStringArgM
ethodCallback, 2, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration:
:CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorld
s}, | 463 {"voidMethodFloatArgStringArg", V8TestTypedefs::voidMethodFloatArgStringArgM
ethodCallback, 2, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration:
:CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorld
s}, |
| 464 {"voidMethodTestCallbackInterfaceTypeArg", V8TestTypedefs::voidMethodTestCal
lbackInterfaceTypeArgMethodCallback, 1, v8::None, V8DOMConfiguration::OnPrototyp
e, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMC
onfiguration::AllWorlds}, | 464 {"voidMethodTestCallbackInterfaceTypeArg", V8TestTypedefs::voidMethodTestCal
lbackInterfaceTypeArgMethodCallback, 1, v8::None, V8DOMConfiguration::OnPrototyp
e, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMC
onfiguration::AllWorlds}, |
| 465 {"uLongLongMethodTestInterfaceEmptyTypeSequenceArg", V8TestTypedefs::uLongLo
ngMethodTestInterfaceEmptyTypeSequenceArgMethodCallback, 1, v8::None, V8DOMConfi
guration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNo
tCheckAccess, V8DOMConfiguration::AllWorlds}, | 465 {"uLongLongMethodTestInterfaceEmptyTypeSequenceArg", V8TestTypedefs::uLongLo
ngMethodTestInterfaceEmptyTypeSequenceArgMethodCallback, 1, v8::None, V8DOMConfi
guration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNo
tCheckAccess, V8DOMConfiguration::AllWorlds}, |
| 466 {"testInterfaceOrTestInterfaceEmptyMethod", V8TestTypedefs::testInterfaceOrT
estInterfaceEmptyMethodMethodCallback, 0, v8::None, V8DOMConfiguration::OnProtot
ype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DO
MConfiguration::AllWorlds}, | 466 {"testInterfaceOrTestInterfaceEmptyMethod", V8TestTypedefs::testInterfaceOrT
estInterfaceEmptyMethodMethodCallback, 0, v8::None, V8DOMConfiguration::OnProtot
ype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DO
MConfiguration::AllWorlds}, |
| 467 {"domStringOrDoubleMethod", V8TestTypedefs::domStringOrDoubleMethodMethodCal
lback, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHo
lder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, | 467 {"domStringOrDoubleMethod", V8TestTypedefs::domStringOrDoubleMethodMethodCal
lback, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHo
lder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
| 468 {"arrayOfStringsMethodArrayOfStringsArg", V8TestTypedefs::arrayOfStringsMeth
odArrayOfStringsArgMethodCallback, 1, v8::None, V8DOMConfiguration::OnPrototype,
V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMCon
figuration::AllWorlds}, | 468 {"arrayOfStringsMethodArrayOfStringsArg", V8TestTypedefs::arrayOfStringsMeth
odArrayOfStringsArgMethodCallback, 1, v8::None, V8DOMConfiguration::OnPrototype,
V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMCon
figuration::AllWorlds}, |
| 469 {"stringArrayMethodStringArrayArg", V8TestTypedefs::stringArrayMethodStringA
rrayArgMethodCallback, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfig
uration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::
AllWorlds}, | 469 {"stringArrayMethodStringArrayArg", V8TestTypedefs::stringArrayMethodStringA
rrayArgMethodCallback, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfig
uration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::
AllWorlds}, |
| 470 {"methodTakingRecord", V8TestTypedefs::methodTakingRecordMethodCallback, 1,
v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DO
MConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, | 470 {"methodTakingRecord", V8TestTypedefs::methodTakingRecordMethodCallback, 1,
v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DO
MConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, |
| 471 {"methodTakingOilpanValueRecord", V8TestTypedefs::methodTakingOilpanValueRec
ordMethodCallback, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfigurat
ion::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllW
orlds}, | 471 {"methodTakingOilpanValueRecord", V8TestTypedefs::methodTakingOilpanValueRec
ordMethodCallback, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfigurat
ion::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllW
orlds}, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 | 522 |
| 523 TestTypedefs* V8TestTypedefs::toImplWithTypeCheck(v8::Isolate* isolate, v8::Loca
l<v8::Value> value) { | 523 TestTypedefs* V8TestTypedefs::toImplWithTypeCheck(v8::Isolate* isolate, v8::Loca
l<v8::Value> value) { |
| 524 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 524 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
| 525 } | 525 } |
| 526 | 526 |
| 527 TestTypedefs* NativeValueTraits<TestTypedefs>::nativeValue(v8::Isolate* isolate,
v8::Local<v8::Value> value, ExceptionState& exceptionState) { | 527 TestTypedefs* NativeValueTraits<TestTypedefs>::nativeValue(v8::Isolate* isolate,
v8::Local<v8::Value> value, ExceptionState& exceptionState) { |
| 528 return V8TestTypedefs::toImplWithTypeCheck(isolate, value); | 528 return V8TestTypedefs::toImplWithTypeCheck(isolate, value); |
| 529 } | 529 } |
| 530 | 530 |
| 531 } // namespace blink | 531 } // namespace blink |
| OLD | NEW |