| OLD | NEW |
| 1 /* | 1 /* |
| 2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
| 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
| 4 | 4 |
| 5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
| 6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
| 7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
| 8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
| 9 | 9 |
| 10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 } | 474 } |
| 475 | 475 |
| 476 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestInterface::i
nfo, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); | 476 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestInterface::i
nfo, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); |
| 477 args.GetReturnValue().Set(wrapper); | 477 args.GetReturnValue().Set(wrapper); |
| 478 } | 478 } |
| 479 | 479 |
| 480 } // namespace TestInterfaceV8Internal | 480 } // namespace TestInterfaceV8Internal |
| 481 | 481 |
| 482 static const V8DOMConfiguration::BatchedAttribute V8TestInterfaceAttrs[] = { | 482 static const V8DOMConfiguration::BatchedAttribute V8TestInterfaceAttrs[] = { |
| 483 #if ENABLE(Condition11) || ENABLE(Condition12) | 483 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 484 // Attribute 'supplementalStaticReadOnlyAttr' (Type: 'attribute' ExtAttr: 'C
onditional ImplementedBy') | 484 // Attribute 'supplementalStaticReadOnlyAttr' |
| 485 {"supplementalStaticReadOnlyAttr", TestInterfaceV8Internal::supplementalStat
icReadOnlyAttrAttrGetterCallback, 0, 0, 0, 0 /* no data */, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, | 485 {"supplementalStaticReadOnlyAttr", TestInterfaceV8Internal::supplementalStat
icReadOnlyAttrAttrGetterCallback, 0, 0, 0, 0 /* no data */, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, |
| 486 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 486 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 487 #if ENABLE(Condition11) || ENABLE(Condition12) | 487 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 488 // Attribute 'supplementalStaticAttr' (Type: 'attribute' ExtAttr: 'Condition
al ImplementedBy') | 488 // Attribute 'supplementalStaticAttr' |
| 489 {"supplementalStaticAttr", TestInterfaceV8Internal::supplementalStaticAttrAt
trGetterCallback, TestInterfaceV8Internal::supplementalStaticAttrAttrSetterCallb
ack, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_
cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 489 {"supplementalStaticAttr", TestInterfaceV8Internal::supplementalStaticAttrAt
trGetterCallback, TestInterfaceV8Internal::supplementalStaticAttrAttrSetterCallb
ack, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_
cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 490 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 490 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 491 #if ENABLE(Condition11) || ENABLE(Condition12) | 491 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 492 // Attribute 'supplementalStr1' (Type: 'attribute' ExtAttr: 'Conditional Imp
lementedBy') | 492 // Attribute 'supplementalStr1' |
| 493 {"supplementalStr1", TestInterfaceV8Internal::supplementalStr1AttrGetterCall
back, 0, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), sta
tic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 493 {"supplementalStr1", TestInterfaceV8Internal::supplementalStr1AttrGetterCall
back, 0, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), sta
tic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 494 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 494 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 495 #if ENABLE(Condition11) || ENABLE(Condition12) | 495 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 496 // Attribute 'supplementalStr2' (Type: 'attribute' ExtAttr: 'Conditional Imp
lementedBy') | 496 // Attribute 'supplementalStr2' |
| 497 {"supplementalStr2", TestInterfaceV8Internal::supplementalStr2AttrGetterCall
back, TestInterfaceV8Internal::supplementalStr2AttrSetterCallback, 0, 0, 0 /* no
data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, | 497 {"supplementalStr2", TestInterfaceV8Internal::supplementalStr2AttrGetterCall
back, TestInterfaceV8Internal::supplementalStr2AttrSetterCallback, 0, 0, 0 /* no
data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, |
| 498 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 498 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 499 #if ENABLE(Condition11) || ENABLE(Condition12) | 499 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 500 // Attribute 'supplementalStr3' (Type: 'attribute' ExtAttr: 'CustomSetter Cu
stomGetter Conditional ImplementedBy') | 500 // Attribute 'supplementalStr3' |
| 501 {"supplementalStr3", TestInterfaceV8Internal::supplementalStr3AttrGetterCall
back, TestInterfaceV8Internal::supplementalStr3AttrSetterCallback, 0, 0, 0 /* no
data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, | 501 {"supplementalStr3", TestInterfaceV8Internal::supplementalStr3AttrGetterCall
back, TestInterfaceV8Internal::supplementalStr3AttrSetterCallback, 0, 0, 0 /* no
data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, |
| 502 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 502 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 503 #if ENABLE(Condition11) || ENABLE(Condition12) | 503 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 504 // Attribute 'supplementalNode' (Type: 'attribute' ExtAttr: 'Conditional Imp
lementedBy') | 504 // Attribute 'supplementalNode' |
| 505 {"supplementalNode", TestInterfaceV8Internal::supplementalNodeAttrGetterCall
back, TestInterfaceV8Internal::supplementalNodeAttrSetterCallback, 0, 0, 0 /* no
data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, | 505 {"supplementalNode", TestInterfaceV8Internal::supplementalNodeAttrGetterCall
back, TestInterfaceV8Internal::supplementalNodeAttrSetterCallback, 0, 0, 0 /* no
data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, |
| 506 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 506 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 507 }; | 507 }; |
| 508 | 508 |
| 509 static const V8DOMConfiguration::BatchedMethod V8TestInterfaceMethods[] = { | 509 static const V8DOMConfiguration::BatchedMethod V8TestInterfaceMethods[] = { |
| 510 #if ENABLE(Condition11) || ENABLE(Condition12) | 510 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 511 {"supplementalMethod1", TestInterfaceV8Internal::supplementalMethod1MethodCa
llback, 0, 0}, | 511 {"supplementalMethod1", TestInterfaceV8Internal::supplementalMethod1MethodCa
llback, 0, 0}, |
| 512 #endif | 512 #endif |
| 513 #if ENABLE(Condition11) || ENABLE(Condition12) | 513 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 514 {"supplementalMethod3", TestInterfaceV8Internal::supplementalMethod3MethodCa
llback, 0, 0}, | 514 {"supplementalMethod3", TestInterfaceV8Internal::supplementalMethod3MethodCa
llback, 0, 0}, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 desc->SetCallHandler(V8TestInterface::constructorCallback); | 605 desc->SetCallHandler(V8TestInterface::constructorCallback); |
| 606 desc->SetLength(1); | 606 desc->SetLength(1); |
| 607 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); | 607 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); |
| 608 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); | 608 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); |
| 609 UNUSED_PARAM(instance); // In some cases, it will not be used. | 609 UNUSED_PARAM(instance); // In some cases, it will not be used. |
| 610 UNUSED_PARAM(proto); // In some cases, it will not be used. | 610 UNUSED_PARAM(proto); // In some cases, it will not be used. |
| 611 | 611 |
| 612 #if ENABLE(Condition11) || ENABLE(Condition12) | 612 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 613 if (RuntimeEnabledFeatures::condition13Enabled()) { | 613 if (RuntimeEnabledFeatures::condition13Enabled()) { |
| 614 static const V8DOMConfiguration::BatchedAttribute attrData =\ | 614 static const V8DOMConfiguration::BatchedAttribute attrData =\ |
| 615 // Attribute 'Node13' (Type: 'attribute' ExtAttr: 'EnabledAtRuntime Cond
itional ImplementedBy') | 615 // Attribute 'Node13' |
| 616 {"Node13", TestInterfaceV8Internal::Node13AttrGetterCallback, TestInterf
aceV8Internal::Node13AttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}; | 616 {"Node13", TestInterfaceV8Internal::Node13AttrGetterCallback, TestInterf
aceV8Internal::Node13AttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}; |
| 617 V8DOMConfiguration::configureAttribute(instance, proto, attrData, isolat
e, currentWorldType); | 617 V8DOMConfiguration::configureAttribute(instance, proto, attrData, isolat
e, currentWorldType); |
| 618 } | 618 } |
| 619 | 619 |
| 620 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 620 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 621 desc->InstanceTemplate()->SetNamedPropertyHandler(V8TestInterface::namedProp
ertyGetter, V8TestInterface::namedPropertySetter, V8TestInterface::namedProperty
Query, 0, V8TestInterface::namedPropertyEnumerator); | 621 desc->InstanceTemplate()->SetNamedPropertyHandler(V8TestInterface::namedProp
ertyGetter, V8TestInterface::namedPropertySetter, V8TestInterface::namedProperty
Query, 0, V8TestInterface::namedPropertyEnumerator); |
| 622 | 622 |
| 623 // Custom Signature 'supplementalMethod2' | 623 // Custom Signature 'supplementalMethod2' |
| 624 const int supplementalMethod2Argc = 2; | 624 const int supplementalMethod2Argc = 2; |
| 625 v8::Handle<v8::FunctionTemplate> supplementalMethod2Argv[supplementalMethod2
Argc] = { v8::Handle<v8::FunctionTemplate>(), V8PerIsolateData::from(isolate)->r
awTemplate(&V8TestObject::info, currentWorldType) }; | 625 v8::Handle<v8::FunctionTemplate> supplementalMethod2Argv[supplementalMethod2
Argc] = { v8::Handle<v8::FunctionTemplate>(), V8PerIsolateData::from(isolate)->r
awTemplate(&V8TestObject::info, currentWorldType) }; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl
d); | 663 || V8PerIsolateData::from(isolate)->hasInstance(&info, value, WorkerWorl
d); |
| 664 } | 664 } |
| 665 | 665 |
| 666 void V8TestInterface::installPerContextProperties(v8::Handle<v8::Object> instanc
e, TestInterface* impl, v8::Isolate* isolate) | 666 void V8TestInterface::installPerContextProperties(v8::Handle<v8::Object> instanc
e, TestInterface* impl, v8::Isolate* isolate) |
| 667 { | 667 { |
| 668 v8::Local<v8::Object> proto = v8::Local<v8::Object>::Cast(instance->GetProto
type()); | 668 v8::Local<v8::Object> proto = v8::Local<v8::Object>::Cast(instance->GetProto
type()); |
| 669 | 669 |
| 670 #if ENABLE(Condition11) || ENABLE(Condition12) | 670 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 671 if (ContextFeatures::condition14Enabled(impl->document())) { | 671 if (ContextFeatures::condition14Enabled(impl->document())) { |
| 672 static const V8DOMConfiguration::BatchedAttribute attrData =\ | 672 static const V8DOMConfiguration::BatchedAttribute attrData =\ |
| 673 // Attribute 'Node14' (Type: 'attribute' ExtAttr: 'EnabledPerContext Con
ditional ImplementedBy') | 673 // Attribute 'Node14' |
| 674 {"Node14", TestInterfaceV8Internal::Node14AttrGetterCallback, TestInterf
aceV8Internal::Node14AttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}; | 674 {"Node14", TestInterfaceV8Internal::Node14AttrGetterCallback, TestInterf
aceV8Internal::Node14AttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}; |
| 675 V8DOMConfiguration::configureAttribute(instance, proto, attrData, isolat
e); | 675 V8DOMConfiguration::configureAttribute(instance, proto, attrData, isolat
e); |
| 676 } | 676 } |
| 677 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 677 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 678 | 678 |
| 679 #if ENABLE(Condition11) || ENABLE(Condition12) | 679 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 680 if (ContextFeatures::condition16Enabled(impl->document()) && RuntimeEnabledF
eatures::condition15Enabled()) { | 680 if (ContextFeatures::condition16Enabled(impl->document()) && RuntimeEnabledF
eatures::condition15Enabled()) { |
| 681 static const V8DOMConfiguration::BatchedAttribute attrData =\ | 681 static const V8DOMConfiguration::BatchedAttribute attrData =\ |
| 682 // Attribute 'Node15' (Type: 'attribute' ExtAttr: 'EnabledPerContext Ena
bledAtRuntime Conditional ImplementedBy') | 682 // Attribute 'Node15' (Type: 'attribute' ExtAttr: 'EnabledPerContext Ena
bledAtRuntime Conditional ImplementedBy') |
| 683 {"Node15", TestInterfaceV8Internal::Node15AttrGetterCallback, TestInterf
aceV8Internal::Node15AttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}; | 683 {"Node15", TestInterfaceV8Internal::Node15AttrGetterCallback, TestInterf
aceV8Internal::Node15AttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 706 return wrapper; | 706 return wrapper; |
| 707 } | 707 } |
| 708 void V8TestInterface::derefObject(void* object) | 708 void V8TestInterface::derefObject(void* object) |
| 709 { | 709 { |
| 710 static_cast<TestInterface*>(object)->deref(); | 710 static_cast<TestInterface*>(object)->deref(); |
| 711 } | 711 } |
| 712 | 712 |
| 713 } // namespace WebCore | 713 } // namespace WebCore |
| 714 | 714 |
| 715 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 715 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
| OLD | NEW |