Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1167)

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface.cpp

Issue 2758893002: Slim V8DOMConfiguration structs for attributes and accessors. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 2589 matching lines...) Expand 10 before | Expand all | Expand 10 after
2600 void V8TestInterface::indexedPropertyDeleterCallback(uint32_t index, const v8::P ropertyCallbackInfo<v8::Boolean>& info) { 2600 void V8TestInterface::indexedPropertyDeleterCallback(uint32_t index, const v8::P ropertyCallbackInfo<v8::Boolean>& info) {
2601 TestInterfaceImplementationV8Internal::indexedPropertyDeleter(index, info); 2601 TestInterfaceImplementationV8Internal::indexedPropertyDeleter(index, info);
2602 } 2602 }
2603 2603
2604 // Suppress warning: global constructors, because AttributeConfiguration is triv ial 2604 // Suppress warning: global constructors, because AttributeConfiguration is triv ial
2605 // and does not depend on another global objects. 2605 // and does not depend on another global objects.
2606 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 2606 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
2607 #pragma clang diagnostic push 2607 #pragma clang diagnostic push
2608 #pragma clang diagnostic ignored "-Wglobal-constructors" 2608 #pragma clang diagnostic ignored "-Wglobal-constructors"
2609 #endif 2609 #endif
2610 const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceLazyDataAttribut es[] = { 2610 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceLazyDataA ttributes[] = {
2611 {"testInterfaceConstructorAttribute", v8ConstructorAttributeGetter, nullptr, nullptr, nullptr, nullptr, const_cast<WrapperTypeInfo*>(&V8TestInterface::wrapp erTypeInfo), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguratio n::OnInstance, V8DOMConfiguration::CheckHolder}, 2611 {"testInterfaceConstructorAttribute", v8ConstructorAttributeGetter, nullptr, nullptr, const_cast<WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), stati c_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::OnInstance, V8D OMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds},
2612 {"TestInterface", v8ConstructorAttributeGetter, nullptr, nullptr, nullptr, n ullptr, const_cast<WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_ cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::OnInstance, V8DOM Configuration::CheckHolder}, 2612 {"TestInterface", v8ConstructorAttributeGetter, nullptr, nullptr, const_cast <WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8::PropertyA ttribute>(v8::DontEnum), V8DOMConfiguration::OnInstance, V8DOMConfiguration::Che ckHolder, V8DOMConfiguration::AllWorlds},
2613 {"TestInterface2", v8ConstructorAttributeGetter, nullptr, nullptr, nullptr, nullptr, const_cast<WrapperTypeInfo*>(&V8TestInterface2::wrapperTypeInfo), stati c_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::OnInstance, V8D OMConfiguration::CheckHolder}, 2613 {"TestInterface2", v8ConstructorAttributeGetter, nullptr, nullptr, const_cas t<WrapperTypeInfo*>(&V8TestInterface2::wrapperTypeInfo), static_cast<v8::Propert yAttribute>(v8::DontEnum), V8DOMConfiguration::OnInstance, V8DOMConfiguration::C heckHolder, V8DOMConfiguration::AllWorlds},
2614 }; 2614 };
2615 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 2615 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
2616 #pragma clang diagnostic pop 2616 #pragma clang diagnostic pop
2617 #endif 2617 #endif
2618 2618
2619 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceAccessors[] = { 2619 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceAccessors[ ] = {
2620 {"testInterfaceAttribute", V8TestInterface::testInterfaceAttributeAttributeG etterCallback, V8TestInterface::testInterfaceAttributeAttributeSetterCallback, n ullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2620 {"testInterfaceAttribute", V8TestInterface::testInterfaceAttributeAttributeG etterCallback, V8TestInterface::testInterfaceAttributeAttributeSetterCallback, n ullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguratio n::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds},
2621 {"doubleAttribute", V8TestInterface::doubleAttributeAttributeGetterCallback, V8TestInterface::doubleAttributeAttributeSetterCallback, nullptr, nullptr, null ptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration:: OnPrototype, V8DOMConfiguration::CheckHolder}, 2621 {"doubleAttribute", V8TestInterface::doubleAttributeAttributeGetterCallback, V8TestInterface::doubleAttributeAttributeSetterCallback, nullptr, nullptr, stat ic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOM Configuration::CheckHolder, V8DOMConfiguration::AllWorlds},
2622 {"floatAttribute", V8TestInterface::floatAttributeAttributeGetterCallback, V 8TestInterface::floatAttributeAttributeSetterCallback, nullptr, nullptr, nullptr , nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnP rototype, V8DOMConfiguration::CheckHolder}, 2622 {"floatAttribute", V8TestInterface::floatAttributeAttributeGetterCallback, V 8TestInterface::floatAttributeAttributeSetterCallback, nullptr, nullptr, static_ cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMCon figuration::CheckHolder, V8DOMConfiguration::AllWorlds},
2623 {"unrestrictedDoubleAttribute", V8TestInterface::unrestrictedDoubleAttribute AttributeGetterCallback, V8TestInterface::unrestrictedDoubleAttributeAttributeSe tterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttrib ute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder }, 2623 {"unrestrictedDoubleAttribute", V8TestInterface::unrestrictedDoubleAttribute AttributeGetterCallback, V8TestInterface::unrestrictedDoubleAttributeAttributeSe tterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8 DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfigurati on::AllWorlds},
2624 {"unrestrictedFloatAttribute", V8TestInterface::unrestrictedFloatAttributeAt tributeGetterCallback, V8TestInterface::unrestrictedFloatAttributeAttributeSette rCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute >(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2624 {"unrestrictedFloatAttribute", V8TestInterface::unrestrictedFloatAttributeAt tributeGetterCallback, V8TestInterface::unrestrictedFloatAttributeAttributeSette rCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOM Configuration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration: :AllWorlds},
2625 {"testEnumAttribute", V8TestInterface::testEnumAttributeAttributeGetterCallb ack, V8TestInterface::testEnumAttributeAttributeSetterCallback, nullptr, nullptr , nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigura tion::OnPrototype, V8DOMConfiguration::CheckHolder}, 2625 {"testEnumAttribute", V8TestInterface::testEnumAttributeAttributeGetterCallb ack, V8TestInterface::testEnumAttributeAttributeSetterCallback, nullptr, nullptr , static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds},
2626 {"stringOrDoubleAttribute", V8TestInterface::stringOrDoubleAttributeAttribut eGetterCallback, V8TestInterface::stringOrDoubleAttributeAttributeSetterCallback , nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::Non e), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2626 {"stringOrDoubleAttribute", V8TestInterface::stringOrDoubleAttributeAttribut eGetterCallback, V8TestInterface::stringOrDoubleAttributeAttributeSetterCallback , nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigura tion::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorld s},
2627 {"staticStringAttribute", V8TestInterface::staticStringAttributeAttributeGet terCallback, V8TestInterface::staticStringAttributeAttributeSetterCallback, null ptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8 DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}, 2627 {"staticStringAttribute", V8TestInterface::staticStringAttributeAttributeGet terCallback, V8TestInterface::staticStringAttributeAttributeSetterCallback, null ptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration:: OnInterface, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds},
2628 {"staticReturnDOMWrapperAttribute", V8TestInterface::staticReturnDOMWrapperA ttributeAttributeGetterCallback, V8TestInterface::staticReturnDOMWrapperAttribut eAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::Pr opertyAttribute>(v8::None), V8DOMConfiguration::OnInterface, V8DOMConfiguration: :CheckHolder}, 2628 {"staticReturnDOMWrapperAttribute", V8TestInterface::staticReturnDOMWrapperA ttributeAttributeGetterCallback, V8TestInterface::staticReturnDOMWrapperAttribut eAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v 8::None), V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder, V8DO MConfiguration::AllWorlds},
2629 {"staticReadOnlyStringAttribute", V8TestInterface::staticReadOnlyStringAttri buteAttributeGetterCallback, nullptr, nullptr, nullptr, nullptr, nullptr, static _cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnInterface, V8D OMConfiguration::CheckHolder}, 2629 {"staticReadOnlyStringAttribute", V8TestInterface::staticReadOnlyStringAttri buteAttributeGetterCallback, nullptr, nullptr, nullptr, static_cast<v8::Property Attribute>(v8::ReadOnly), V8DOMConfiguration::OnInterface, V8DOMConfiguration::C heckHolder, V8DOMConfiguration::AllWorlds},
2630 {"staticReadOnlyReturnDOMWrapperAttribute", V8TestInterface::staticReadOnlyR eturnDOMWrapperAttributeAttributeGetterCallback, nullptr, nullptr, nullptr, null ptr, nullptr, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfigurati on::OnInterface, V8DOMConfiguration::CheckHolder}, 2630 {"staticReadOnlyReturnDOMWrapperAttribute", V8TestInterface::staticReadOnlyR eturnDOMWrapperAttributeAttributeGetterCallback, nullptr, nullptr, nullptr, stat ic_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnInterface, V 8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds},
2631 {"legacyInterfaceTypeCheckingAttribute", V8TestInterface::legacyInterfaceTyp eCheckingAttributeAttributeGetterCallback, V8TestInterface::legacyInterfaceTypeC heckingAttributeAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, sta tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DO MConfiguration::CheckHolder}, 2631 {"legacyInterfaceTypeCheckingAttribute", V8TestInterface::legacyInterfaceTyp eCheckingAttributeAttributeGetterCallback, V8TestInterface::legacyInterfaceTypeC heckingAttributeAttributeSetterCallback, nullptr, nullptr, static_cast<v8::Prope rtyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Ch eckHolder, V8DOMConfiguration::AllWorlds},
2632 {"alwaysExposedAttribute", V8TestInterface::alwaysExposedAttributeAttributeG etterCallback, V8TestInterface::alwaysExposedAttributeAttributeSetterCallback, n ullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2632 {"alwaysExposedAttribute", V8TestInterface::alwaysExposedAttributeAttributeG etterCallback, V8TestInterface::alwaysExposedAttributeAttributeSetterCallback, n ullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguratio n::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds},
2633 {"lenientThisAttribute", V8TestInterface::lenientThisAttributeAttributeGette rCallback, V8TestInterface::lenientThisAttributeAttributeSetterCallback, nullptr , nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOM Configuration::OnPrototype, V8DOMConfiguration::DoNotCheckHolder}, 2633 {"lenientThisAttribute", V8TestInterface::lenientThisAttributeAttributeGette rCallback, V8TestInterface::lenientThisAttributeAttributeSetterCallback, nullptr , nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnP rototype, V8DOMConfiguration::DoNotCheckHolder, V8DOMConfiguration::AllWorlds},
2634 {"implementsStaticReadOnlyLongAttribute", V8TestInterface::implementsStaticR eadOnlyLongAttributeAttributeGetterCallback, nullptr, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration:: OnInterface, V8DOMConfiguration::CheckHolder}, 2634 {"implementsStaticReadOnlyLongAttribute", V8TestInterface::implementsStaticR eadOnlyLongAttributeAttributeGetterCallback, nullptr, nullptr, nullptr, static_c ast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnInterface, V8DOM Configuration::CheckHolder, V8DOMConfiguration::AllWorlds},
2635 {"implementsStaticStringAttribute", V8TestInterface::implementsStaticStringA ttributeAttributeGetterCallback, V8TestInterface::implementsStaticStringAttribut eAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::Pr opertyAttribute>(v8::None), V8DOMConfiguration::OnInterface, V8DOMConfiguration: :CheckHolder}, 2635 {"implementsStaticStringAttribute", V8TestInterface::implementsStaticStringA ttributeAttributeGetterCallback, V8TestInterface::implementsStaticStringAttribut eAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v 8::None), V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder, V8DO MConfiguration::AllWorlds},
2636 {"implementsReadonlyStringAttribute", V8TestInterface::implementsReadonlyStr ingAttributeAttributeGetterCallback, nullptr, nullptr, nullptr, nullptr, nullptr , static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnProtot ype, V8DOMConfiguration::CheckHolder}, 2636 {"implementsReadonlyStringAttribute", V8TestInterface::implementsReadonlyStr ingAttributeAttributeGetterCallback, nullptr, nullptr, nullptr, static_cast<v8:: PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnPrototype, V8DOMConfigur ation::CheckHolder, V8DOMConfiguration::AllWorlds},
2637 {"implementsStringAttribute", V8TestInterface::implementsStringAttributeAttr ibuteGetterCallback, V8TestInterface::implementsStringAttributeAttributeSetterCa llback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v 8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2637 {"implementsStringAttribute", V8TestInterface::implementsStringAttributeAttr ibuteGetterCallback, V8TestInterface::implementsStringAttributeAttributeSetterCa llback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMCon figuration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::Al lWorlds},
2638 {"implementsNodeAttribute", V8TestInterface::implementsNodeAttributeAttribut eGetterCallback, V8TestInterface::implementsNodeAttributeAttributeSetterCallback , nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::Non e), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2638 {"implementsNodeAttribute", V8TestInterface::implementsNodeAttributeAttribut eGetterCallback, V8TestInterface::implementsNodeAttributeAttributeSetterCallback , nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigura tion::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorld s},
2639 {"implementsEventHandlerAttribute", V8TestInterface::implementsEventHandlerA ttributeAttributeGetterCallback, V8TestInterface::implementsEventHandlerAttribut eAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::Pr opertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration: :CheckHolder}, 2639 {"implementsEventHandlerAttribute", V8TestInterface::implementsEventHandlerA ttributeAttributeGetterCallback, V8TestInterface::implementsEventHandlerAttribut eAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v 8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DO MConfiguration::AllWorlds},
2640 {"implements3StringAttribute", V8TestInterface::implements3StringAttributeAt tributeGetterCallback, V8TestInterface::implements3StringAttributeAttributeSette rCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute >(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2640 {"implements3StringAttribute", V8TestInterface::implements3StringAttributeAt tributeGetterCallback, V8TestInterface::implements3StringAttributeAttributeSette rCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOM Configuration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration: :AllWorlds},
2641 {"implements3StaticStringAttribute", V8TestInterface::implements3StaticStrin gAttributeAttributeGetterCallback, V8TestInterface::implements3StaticStringAttri buteAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8: :PropertyAttribute>(v8::None), V8DOMConfiguration::OnInterface, V8DOMConfigurati on::CheckHolder}, 2641 {"implements3StaticStringAttribute", V8TestInterface::implements3StaticStrin gAttributeAttributeGetterCallback, V8TestInterface::implements3StaticStringAttri buteAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute >(v8::None), V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder, V 8DOMConfiguration::AllWorlds},
2642 {"partial2LongAttribute", V8TestInterface::partial2LongAttributeAttributeGet terCallback, V8TestInterface::partial2LongAttributeAttributeSetterCallback, null ptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8 DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2642 {"partial2LongAttribute", V8TestInterface::partial2LongAttributeAttributeGet terCallback, V8TestInterface::partial2LongAttributeAttributeSetterCallback, null ptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration:: OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds},
2643 {"partial2StaticLongAttribute", V8TestInterface::partial2StaticLongAttribute AttributeGetterCallback, V8TestInterface::partial2StaticLongAttributeAttributeSe tterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttrib ute>(v8::None), V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder }, 2643 {"partial2StaticLongAttribute", V8TestInterface::partial2StaticLongAttribute AttributeGetterCallback, V8TestInterface::partial2StaticLongAttributeAttributeSe tterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8 DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder, V8DOMConfigurati on::AllWorlds},
2644 }; 2644 };
2645 2645
2646 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { 2646 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = {
2647 {"voidMethodTestInterfaceEmptyArg", V8TestInterface::voidMethodTestInterface EmptyArgMethodCallback, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfi guration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration: :AllWorlds}, 2647 {"voidMethodTestInterfaceEmptyArg", V8TestInterface::voidMethodTestInterface EmptyArgMethodCallback, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfi guration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration: :AllWorlds},
2648 {"voidMethodDoubleArgFloatArg", V8TestInterface::voidMethodDoubleArgFloatArg MethodCallback, 2, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration ::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorl ds}, 2648 {"voidMethodDoubleArgFloatArg", V8TestInterface::voidMethodDoubleArgFloatArg MethodCallback, 2, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration ::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorl ds},
2649 {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", V8TestInterface::voi dMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCallback, 2, v8::None, V8D OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguratio n::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, 2649 {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", V8TestInterface::voi dMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCallback, 2, v8::None, V8D OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguratio n::DoNotCheckAccess, V8DOMConfiguration::AllWorlds},
2650 {"voidMethodTestEnumArg", V8TestInterface::voidMethodTestEnumArgMethodCallba ck, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde r, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, 2650 {"voidMethodTestEnumArg", V8TestInterface::voidMethodTestEnumArgMethodCallba ck, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde r, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds},
2651 {"voidMethod", V8TestInterface::voidMethodMethodCallbackForMainWorld, 0, v8: :None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMCo nfiguration::DoNotCheckAccess, V8DOMConfiguration::MainWorld}, 2651 {"voidMethod", V8TestInterface::voidMethodMethodCallbackForMainWorld, 0, v8: :None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMCo nfiguration::DoNotCheckAccess, V8DOMConfiguration::MainWorld},
2652 {"voidMethod", V8TestInterface::voidMethodMethodCallback, 0, v8::None, V8DOM Configuration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration: :DoNotCheckAccess, V8DOMConfiguration::NonMainWorlds}, 2652 {"voidMethod", V8TestInterface::voidMethodMethodCallback, 0, v8::None, V8DOM Configuration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration: :DoNotCheckAccess, V8DOMConfiguration::NonMainWorlds},
2653 {"alwaysExposedMethod", V8TestInterface::alwaysExposedMethodMethodCallback, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V 8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, 2653 {"alwaysExposedMethod", V8TestInterface::alwaysExposedMethodMethodCallback, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V 8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds},
2654 {"alwaysExposedStaticMethod", V8TestInterface::alwaysExposedStaticMethodMeth odCallback, 0, v8::None, V8DOMConfiguration::OnInterface, V8DOMConfiguration::Ch eckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, 2654 {"alwaysExposedStaticMethod", V8TestInterface::alwaysExposedStaticMethodMeth odCallback, 0, v8::None, V8DOMConfiguration::OnInterface, V8DOMConfiguration::Ch eckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds},
2655 {"staticReturnDOMWrapperMethod", V8TestInterface::staticReturnDOMWrapperMeth odMethodCallback, 0, v8::None, V8DOMConfiguration::OnInterface, V8DOMConfigurati on::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWo rlds}, 2655 {"staticReturnDOMWrapperMethod", V8TestInterface::staticReturnDOMWrapperMeth odMethodCallback, 0, v8::None, V8DOMConfiguration::OnInterface, V8DOMConfigurati on::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWo rlds},
2656 {"legacyInterfaceTypeCheckingMethod", V8TestInterface::legacyInterfaceTypeCh eckingMethodMethodCallback, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMC onfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfigurat ion::AllWorlds}, 2656 {"legacyInterfaceTypeCheckingMethod", V8TestInterface::legacyInterfaceTypeCh eckingMethodMethodCallback, 1, v8::None, V8DOMConfiguration::OnPrototype, V8DOMC onfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfigurat ion::AllWorlds},
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
2698 const V8DOMConfiguration::ConstantConfiguration constantPartialUnsignedShort Configuration = {"PARTIAL_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTyp eUnsignedShort}; 2698 const V8DOMConfiguration::ConstantConfiguration constantPartialUnsignedShort Configuration = {"PARTIAL_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTyp eUnsignedShort};
2699 V8DOMConfiguration::installConstant(isolate, interfaceTemplate, prototypeTem plate, constantPartialUnsignedShortConfiguration); 2699 V8DOMConfiguration::installConstant(isolate, interfaceTemplate, prototypeTem plate, constantPartialUnsignedShortConfiguration);
2700 const V8DOMConfiguration::ConstantConfiguration constantPartialDoubleConfigu ration = {"PARTIAL_DOUBLE", 0, 3.14, V8DOMConfiguration::ConstantTypeDouble}; 2700 const V8DOMConfiguration::ConstantConfiguration constantPartialDoubleConfigu ration = {"PARTIAL_DOUBLE", 0, 3.14, V8DOMConfiguration::ConstantTypeDouble};
2701 V8DOMConfiguration::installConstant(isolate, interfaceTemplate, prototypeTem plate, constantPartialDoubleConfiguration); 2701 V8DOMConfiguration::installConstant(isolate, interfaceTemplate, prototypeTem plate, constantPartialDoubleConfiguration);
2702 } 2702 }
2703 V8DOMConfiguration::installLazyDataAttributes(isolate, world, instanceTemplate , prototypeTemplate, V8TestInterfaceLazyDataAttributes, WTF_ARRAY_LENGTH(V8TestI nterfaceLazyDataAttributes)); 2703 V8DOMConfiguration::installLazyDataAttributes(isolate, world, instanceTemplate , prototypeTemplate, V8TestInterfaceLazyDataAttributes, WTF_ARRAY_LENGTH(V8TestI nterfaceLazyDataAttributes));
2704 V8DOMConfiguration::installAccessors(isolate, world, instanceTemplate, prototy peTemplate, interfaceTemplate, signature, V8TestInterfaceAccessors, WTF_ARRAY_LE NGTH(V8TestInterfaceAccessors)); 2704 V8DOMConfiguration::installAccessors(isolate, world, instanceTemplate, prototy peTemplate, interfaceTemplate, signature, V8TestInterfaceAccessors, WTF_ARRAY_LE NGTH(V8TestInterfaceAccessors));
2705 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype Template, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_LENGTH (V8TestInterfaceMethods)); 2705 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, prototype Template, interfaceTemplate, signature, V8TestInterfaceMethods, WTF_ARRAY_LENGTH (V8TestInterfaceMethods));
2706 2706
2707 if (RuntimeEnabledFeatures::featureNameEnabled()) { 2707 if (RuntimeEnabledFeatures::featureNameEnabled()) {
2708 const V8DOMConfiguration::AccessorConfiguration accessorconditionalReadOnlyL ongAttributeConfiguration = {"conditionalReadOnlyLongAttribute", V8TestInterface ::conditionalReadOnlyLongAttributeAttributeGetterCallback, nullptr, nullptr, nul lptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMC onfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2708 static const V8DOMConfiguration::AccessorConfiguration accessorconditionalRe adOnlyLongAttributeConfiguration[] = {
2709 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorconditionalReadOnlyLongAttrib uteConfiguration); 2709 {"conditionalReadOnlyLongAttribute", V8TestInterface::conditionalReadOnlyL ongAttributeAttributeGetterCallback, nullptr, nullptr, nullptr, static_cast<v8:: PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnPrototype, V8DOMConfigur ation::CheckHolder, V8DOMConfiguration::AllWorlds}
2710 const V8DOMConfiguration::AccessorConfiguration accessorstaticConditionalRea dOnlyLongAttributeConfiguration = {"staticConditionalReadOnlyLongAttribute", V8T estInterface::staticConditionalReadOnlyLongAttributeAttributeGetterCallback, nul lptr, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8: :ReadOnly), V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}; 2710 };
2711 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorstaticConditionalReadOnlyLong AttributeConfiguration); 2711 for (const auto& accessorConfig : accessorconditionalReadOnlyLongAttributeCo nfiguration)
2712 const V8DOMConfiguration::AccessorConfiguration accessorconditionalLongAttri buteConfiguration = {"conditionalLongAttribute", V8TestInterface::conditionalLon gAttributeAttributeGetterCallback, V8TestInterface::conditionalLongAttributeAttr ibuteSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec kHolder}; 2712 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, prot otypeTemplate, interfaceTemplate, signature, accessorConfig);
2713 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorconditionalLongAttributeConfi guration); 2713 static const V8DOMConfiguration::AccessorConfiguration accessorstaticConditi onalReadOnlyLongAttributeConfiguration[] = {
2714 {"staticConditionalReadOnlyLongAttribute", V8TestInterface::staticConditio nalReadOnlyLongAttributeAttributeGetterCallback, nullptr, nullptr, nullptr, stat ic_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnInterface, V 8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds}
2715 };
2716 for (const auto& accessorConfig : accessorstaticConditionalReadOnlyLongAttri buteConfiguration)
2717 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, prot otypeTemplate, interfaceTemplate, signature, accessorConfig);
2718 static const V8DOMConfiguration::AccessorConfiguration accessorconditionalLo ngAttributeConfiguration[] = {
2719 {"conditionalLongAttribute", V8TestInterface::conditionalLongAttributeAttr ibuteGetterCallback, V8TestInterface::conditionalLongAttributeAttributeSetterCal lback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConf iguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::All Worlds}
2720 };
2721 for (const auto& accessorConfig : accessorconditionalLongAttributeConfigurat ion)
2722 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, prot otypeTemplate, interfaceTemplate, signature, accessorConfig);
2714 } 2723 }
2715 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) { 2724 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) {
2716 const V8DOMConfiguration::AccessorConfiguration accessorimplements2StaticStr ingAttributeConfiguration = {"implements2StaticStringAttribute", V8TestInterface ::implements2StaticStringAttributeAttributeGetterCallback, V8TestInterface::impl ements2StaticStringAttributeAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnInt erface, V8DOMConfiguration::CheckHolder}; 2725 static const V8DOMConfiguration::AccessorConfiguration accessorimplements2St aticStringAttributeConfiguration[] = {
2717 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorimplements2StaticStringAttrib uteConfiguration); 2726 {"implements2StaticStringAttribute", V8TestInterface::implements2StaticStr ingAttributeAttributeGetterCallback, V8TestInterface::implements2StaticStringAtt ributeAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribu te>(v8::None), V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds}
2718 const V8DOMConfiguration::AccessorConfiguration accessorimplements2StringAtt ributeConfiguration = {"implements2StringAttribute", V8TestInterface::implements 2StringAttributeAttributeGetterCallback, V8TestInterface::implements2StringAttri buteAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8: :PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfigurati on::CheckHolder}; 2727 };
2719 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorimplements2StringAttributeCon figuration); 2728 for (const auto& accessorConfig : accessorimplements2StaticStringAttributeCo nfiguration)
2729 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, prot otypeTemplate, interfaceTemplate, signature, accessorConfig);
2730 static const V8DOMConfiguration::AccessorConfiguration accessorimplements2St ringAttributeConfiguration[] = {
2731 {"implements2StringAttribute", V8TestInterface::implements2StringAttribute AttributeGetterCallback, V8TestInterface::implements2StringAttributeAttributeSet terCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8D OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguratio n::AllWorlds}
2732 };
2733 for (const auto& accessorConfig : accessorimplements2StringAttributeConfigur ation)
2734 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, prot otypeTemplate, interfaceTemplate, signature, accessorConfig);
2720 } 2735 }
2721 if (RuntimeEnabledFeatures::implementsFeatureNameEnabled()) { 2736 if (RuntimeEnabledFeatures::implementsFeatureNameEnabled()) {
2722 const V8DOMConfiguration::AccessorConfiguration accessorimplementsRuntimeEna bledNodeAttributeConfiguration = {"implementsRuntimeEnabledNodeAttribute", V8Tes tInterface::implementsRuntimeEnabledNodeAttributeAttributeGetterCallback, V8Test Interface::implementsRuntimeEnabledNodeAttributeAttributeSetterCallback, nullptr , nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOM Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2737 static const V8DOMConfiguration::AccessorConfiguration accessorimplementsRun timeEnabledNodeAttributeConfiguration[] = {
2723 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorimplementsRuntimeEnabledNodeA ttributeConfiguration); 2738 {"implementsRuntimeEnabledNodeAttribute", V8TestInterface::implementsRunti meEnabledNodeAttributeAttributeGetterCallback, V8TestInterface::implementsRuntim eEnabledNodeAttributeAttributeSetterCallback, nullptr, nullptr, static_cast<v8:: PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguratio n::CheckHolder, V8DOMConfiguration::AllWorlds}
2739 };
2740 for (const auto& accessorConfig : accessorimplementsRuntimeEnabledNodeAttrib uteConfiguration)
2741 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, prot otypeTemplate, interfaceTemplate, signature, accessorConfig);
2724 } 2742 }
2725 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2743 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2726 const V8DOMConfiguration::AccessorConfiguration accessorpartialCallWithExecu tionContextLongAttributeConfiguration = {"partialCallWithExecutionContextLongAtt ribute", V8TestInterface::partialCallWithExecutionContextLongAttributeAttributeG etterCallback, V8TestInterface::partialCallWithExecutionContextLongAttributeAttr ibuteSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::Propert yAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec kHolder}; 2744 static const V8DOMConfiguration::AccessorConfiguration accessorpartialCallWi thExecutionContextLongAttributeConfiguration[] = {
2727 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorpartialCallWithExecutionConte xtLongAttributeConfiguration); 2745 {"partialCallWithExecutionContextLongAttribute", V8TestInterface::partialC allWithExecutionContextLongAttributeAttributeGetterCallback, V8TestInterface::pa rtialCallWithExecutionContextLongAttributeAttributeSetterCallback, nullptr, null ptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototy pe, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds}
2728 const V8DOMConfiguration::AccessorConfiguration accessorpartialLongAttribute Configuration = {"partialLongAttribute", V8TestInterface::partialLongAttributeAt tributeGetterCallback, V8TestInterface::partialLongAttributeAttributeSetterCallb ack, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8:: None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2746 };
2729 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorpartialLongAttributeConfigura tion); 2747 for (const auto& accessorConfig : accessorpartialCallWithExecutionContextLon gAttributeConfiguration)
2730 const V8DOMConfiguration::AccessorConfiguration accessorpartialPartialEnumTy peAttributeConfiguration = {"partialPartialEnumTypeAttribute", V8TestInterface:: partialPartialEnumTypeAttributeAttributeGetterCallback, V8TestInterface::partial PartialEnumTypeAttributeAttributeSetterCallback, nullptr, nullptr, nullptr, null ptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototy pe, V8DOMConfiguration::CheckHolder}; 2748 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, prot otypeTemplate, interfaceTemplate, signature, accessorConfig);
2731 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorpartialPartialEnumTypeAttribu teConfiguration); 2749 static const V8DOMConfiguration::AccessorConfiguration accessorpartialLongAt tributeConfiguration[] = {
2732 const V8DOMConfiguration::AccessorConfiguration accessorpartialStaticLongAtt ributeConfiguration = {"partialStaticLongAttribute", V8TestInterface::partialSta ticLongAttributeAttributeGetterCallback, V8TestInterface::partialStaticLongAttri buteAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8: :PropertyAttribute>(v8::None), V8DOMConfiguration::OnInterface, V8DOMConfigurati on::CheckHolder}; 2750 {"partialLongAttribute", V8TestInterface::partialLongAttributeAttributeGet terCallback, V8TestInterface::partialLongAttributeAttributeSetterCallback, nullp tr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::O nPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds}
2733 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, accessorpartialStaticLongAttributeCon figuration); 2751 };
2752 for (const auto& accessorConfig : accessorpartialLongAttributeConfiguration)
2753 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, prot otypeTemplate, interfaceTemplate, signature, accessorConfig);
2754 static const V8DOMConfiguration::AccessorConfiguration accessorpartialPartia lEnumTypeAttributeConfiguration[] = {
2755 {"partialPartialEnumTypeAttribute", V8TestInterface::partialPartialEnumTyp eAttributeAttributeGetterCallback, V8TestInterface::partialPartialEnumTypeAttrib uteAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute> (v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8 DOMConfiguration::AllWorlds}
2756 };
2757 for (const auto& accessorConfig : accessorpartialPartialEnumTypeAttributeCon figuration)
2758 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, prot otypeTemplate, interfaceTemplate, signature, accessorConfig);
2759 static const V8DOMConfiguration::AccessorConfiguration accessorpartialStatic LongAttributeConfiguration[] = {
2760 {"partialStaticLongAttribute", V8TestInterface::partialStaticLongAttribute AttributeGetterCallback, V8TestInterface::partialStaticLongAttributeAttributeSet terCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8D OMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder, V8DOMConfiguratio n::AllWorlds}
2761 };
2762 for (const auto& accessorConfig : accessorpartialStaticLongAttributeConfigur ation)
2763 V8DOMConfiguration::installAccessor(isolate, world, instanceTemplate, prot otypeTemplate, interfaceTemplate, signature, accessorConfig);
2734 } 2764 }
2735 2765
2736 // Indexed properties 2766 // Indexed properties
2737 v8::IndexedPropertyHandlerConfiguration indexedPropertyHandlerConfig(V8TestInt erface::indexedPropertyGetterCallback, V8TestInterface::indexedPropertySetterCal lback, nullptr, V8TestInterface::indexedPropertyDeleterCallback, indexedProperty Enumerator<TestInterfaceImplementation>, v8::Local<v8::Value>(), v8::PropertyHan dlerFlags::kNone); 2767 v8::IndexedPropertyHandlerConfiguration indexedPropertyHandlerConfig(V8TestInt erface::indexedPropertyGetterCallback, V8TestInterface::indexedPropertySetterCal lback, nullptr, V8TestInterface::indexedPropertyDeleterCallback, indexedProperty Enumerator<TestInterfaceImplementation>, v8::Local<v8::Value>(), v8::PropertyHan dlerFlags::kNone);
2738 instanceTemplate->SetHandler(indexedPropertyHandlerConfig); 2768 instanceTemplate->SetHandler(indexedPropertyHandlerConfig);
2739 // Named properties 2769 // Named properties
2740 v8::NamedPropertyHandlerConfiguration namedPropertyHandlerConfig(V8TestInterfa ce::namedPropertyGetterCallback, V8TestInterface::namedPropertySetterCallback, V 8TestInterface::namedPropertyQueryCallback, V8TestInterface::namedPropertyDelete rCallback, V8TestInterface::namedPropertyEnumeratorCallback, v8::Local<v8::Value >(), static_cast<v8::PropertyHandlerFlags>(int(v8::PropertyHandlerFlags::kOnlyIn terceptStrings) | int(v8::PropertyHandlerFlags::kNonMasking))); 2770 v8::NamedPropertyHandlerConfiguration namedPropertyHandlerConfig(V8TestInterfa ce::namedPropertyGetterCallback, V8TestInterface::namedPropertySetterCallback, V 8TestInterface::namedPropertyQueryCallback, V8TestInterface::namedPropertyDelete rCallback, V8TestInterface::namedPropertyEnumeratorCallback, v8::Local<v8::Value >(), static_cast<v8::PropertyHandlerFlags>(int(v8::PropertyHandlerFlags::kOnlyIn terceptStrings) | int(v8::PropertyHandlerFlags::kNonMasking)));
2741 instanceTemplate->SetHandler(namedPropertyHandlerConfig); 2771 instanceTemplate->SetHandler(namedPropertyHandlerConfig);
2742 2772
2743 // Iterator (@@iterator) 2773 // Iterator (@@iterator)
2744 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIteratorCo nfiguration = { v8::Symbol::GetIterator, V8TestInterface::iteratorMethodCallback , 0, v8::DontEnum, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol der, V8DOMConfiguration::DoNotCheckAccess }; 2774 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIte ratorConfiguration = { v8::Symbol::GetIterator, V8TestInterface::iteratorMethodC allback, 0, v8::DontEnum, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::C heckHolder, V8DOMConfiguration::DoNotCheckAccess };
2745 V8DOMConfiguration::installMethod(isolate, world, prototypeTemplate, signature , symbolKeyedIteratorConfiguration); 2775 V8DOMConfiguration::installMethod(isolate, world, prototypeTemplate, signature , symbolKeyedIteratorConfiguration);
2746 2776
2747 instanceTemplate->SetCallAsFunctionHandler(V8TestInterface::legacyCallCustom); 2777 instanceTemplate->SetCallAsFunctionHandler(V8TestInterface::legacyCallCustom);
2748 2778
2749 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) { 2779 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) {
2750 const V8DOMConfiguration::MethodConfiguration implements2VoidMethodMethodCon figuration[] = { 2780 const V8DOMConfiguration::MethodConfiguration implements2VoidMethodMethodCon figuration[] = {
2751 {"implements2VoidMethod", V8TestInterface::implements2VoidMethodMethodCall back, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol der, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds} 2781 {"implements2VoidMethod", V8TestInterface::implements2VoidMethodMethodCall back, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol der, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}
2752 }; 2782 };
2753 for (const auto& methodConfig : implements2VoidMethodMethodConfiguration) 2783 for (const auto& methodConfig : implements2VoidMethodMethodConfiguration)
2754 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, methodConfig); 2784 V8DOMConfiguration::installMethod(isolate, world, instanceTemplate, protot ypeTemplate, interfaceTemplate, signature, methodConfig);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
2810 return V8TestInterface::toImplWithTypeCheck(isolate, value); 2840 return V8TestInterface::toImplWithTypeCheck(isolate, value);
2811 } 2841 }
2812 2842
2813 void V8TestInterface::preparePrototypeAndInterfaceObject(v8::Local<v8::Context> context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObject, v8 ::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interface Template) { 2843 void V8TestInterface::preparePrototypeAndInterfaceObject(v8::Local<v8::Context> context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObject, v8 ::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interface Template) {
2814 v8::Isolate* isolate = context->GetIsolate(); 2844 v8::Isolate* isolate = context->GetIsolate();
2815 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 2845 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
2816 ExecutionContext* executionContext = toExecutionContext(context); 2846 ExecutionContext* executionContext = toExecutionContext(context);
2817 DCHECK(executionContext); 2847 DCHECK(executionContext);
2818 2848
2819 if (executionContext && (executionContext->isWorkerGlobalScope())) { 2849 if (executionContext && (executionContext->isWorkerGlobalScope())) {
2820 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"wo rkerExposedAttribute", V8TestInterface::workerExposedAttributeAttributeGetterCal lback, V8TestInterface::workerExposedAttributeAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMCo nfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2850 static const V8DOMConfiguration::AccessorConfiguration accessorConfiguration [] = {
2821 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration); 2851 {"workerExposedAttribute", V8TestInterface::workerExposedAttributeAttribut eGetterCallback, V8TestInterface::workerExposedAttributeAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat ion::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds }
2852 };
2853 for (const auto& accessorConfig : accessorConfiguration)
2854 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, accessorConfig);
2822 } 2855 }
2823 if (executionContext && (executionContext->isDocument())) { 2856 if (executionContext && (executionContext->isDocument())) {
2824 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"wi ndowExposedAttribute", V8TestInterface::windowExposedAttributeAttributeGetterCal lback, V8TestInterface::windowExposedAttributeAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMCo nfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2857 static const V8DOMConfiguration::AccessorConfiguration accessorConfiguration [] = {
2825 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration); 2858 {"windowExposedAttribute", V8TestInterface::windowExposedAttributeAttribut eGetterCallback, V8TestInterface::windowExposedAttributeAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat ion::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds }
2859 };
2860 for (const auto& accessorConfig : accessorConfiguration)
2861 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, accessorConfig);
2826 } 2862 }
2827 if (executionContext && (executionContext->isSecureContext())) { 2863 if (executionContext && (executionContext->isSecureContext())) {
2828 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"se cureContextAttribute", V8TestInterface::secureContextAttributeAttributeGetterCal lback, V8TestInterface::secureContextAttributeAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMCo nfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2864 static const V8DOMConfiguration::AccessorConfiguration accessorConfiguration [] = {
2829 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration); 2865 {"secureContextAttribute", V8TestInterface::secureContextAttributeAttribut eGetterCallback, V8TestInterface::secureContextAttributeAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat ion::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds }
2866 };
2867 for (const auto& accessorConfig : accessorConfiguration)
2868 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, accessorConfig);
2830 } 2869 }
2831 if (executionContext && (executionContext->isSecureContext())) { 2870 if (executionContext && (executionContext->isSecureContext())) {
2832 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { 2871 if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
2833 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {" secureContextRuntimeEnabledAttribute", V8TestInterface::secureContextRuntimeEnab ledAttributeAttributeGetterCallback, V8TestInterface::secureContextRuntimeEnable dAttributeAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_ca st<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfi guration::CheckHolder}; 2872 static const V8DOMConfiguration::AccessorConfiguration accessorConfigurati on[] = {
2834 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, accessorConfiguration); 2873 {"secureContextRuntimeEnabledAttribute", V8TestInterface::secureContextR untimeEnabledAttributeAttributeGetterCallback, V8TestInterface::secureContextRun timeEnabledAttributeAttributeSetterCallback, nullptr, nullptr, static_cast<v8::P ropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration ::CheckHolder, V8DOMConfiguration::AllWorlds}
2874 };
2875 for (const auto& accessorConfig : accessorConfiguration)
2876 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, accessorConfig);
2835 } 2877 }
2836 } 2878 }
2837 if (executionContext && (executionContext->isDocument())) { 2879 if (executionContext && (executionContext->isDocument())) {
2838 if (executionContext && (executionContext->isSecureContext())) { 2880 if (executionContext && (executionContext->isSecureContext())) {
2839 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {" secureContextWindowExposedAttribute", V8TestInterface::secureContextWindowExpose dAttributeAttributeGetterCallback, V8TestInterface::secureContextWindowExposedAt tributeAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast< v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfigur ation::CheckHolder}; 2881 static const V8DOMConfiguration::AccessorConfiguration accessorConfigurati on[] = {
2840 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, accessorConfiguration); 2882 {"secureContextWindowExposedAttribute", V8TestInterface::secureContextWi ndowExposedAttributeAttributeGetterCallback, V8TestInterface::secureContextWindo wExposedAttributeAttributeSetterCallback, nullptr, nullptr, static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::C heckHolder, V8DOMConfiguration::AllWorlds}
2883 };
2884 for (const auto& accessorConfig : accessorConfiguration)
2885 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, accessorConfig);
2841 } 2886 }
2842 } 2887 }
2843 if (executionContext && (executionContext->isWorkerGlobalScope())) { 2888 if (executionContext && (executionContext->isWorkerGlobalScope())) {
2844 if (executionContext && (executionContext->isSecureContext())) { 2889 if (executionContext && (executionContext->isSecureContext())) {
2845 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {" secureContextWorkerExposedAttribute", V8TestInterface::secureContextWorkerExpose dAttributeAttributeGetterCallback, V8TestInterface::secureContextWorkerExposedAt tributeAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast< v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfigur ation::CheckHolder}; 2890 static const V8DOMConfiguration::AccessorConfiguration accessorConfigurati on[] = {
2846 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, accessorConfiguration); 2891 {"secureContextWorkerExposedAttribute", V8TestInterface::secureContextWo rkerExposedAttributeAttributeGetterCallback, V8TestInterface::secureContextWorke rExposedAttributeAttributeSetterCallback, nullptr, nullptr, static_cast<v8::Prop ertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::C heckHolder, V8DOMConfiguration::AllWorlds}
2892 };
2893 for (const auto& accessorConfig : accessorConfiguration)
2894 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, accessorConfig);
2847 } 2895 }
2848 } 2896 }
2849 if (executionContext && (executionContext->isDocument())) { 2897 if (executionContext && (executionContext->isDocument())) {
2850 if (executionContext && (executionContext->isSecureContext())) { 2898 if (executionContext && (executionContext->isSecureContext())) {
2851 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { 2899 if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
2852 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"secureContextWindowExposedRuntimeEnabledAttribute", V8TestInterface::secureCon textWindowExposedRuntimeEnabledAttributeAttributeGetterCallback, V8TestInterface ::secureContextWindowExposedRuntimeEnabledAttributeAttributeSetterCallback, null ptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8 DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2900 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura tion[] = {
2853 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, accessorConfiguration); 2901 {"secureContextWindowExposedRuntimeEnabledAttribute", V8TestInterface: :secureContextWindowExposedRuntimeEnabledAttributeAttributeGetterCallback, V8Tes tInterface::secureContextWindowExposedRuntimeEnabledAttributeAttributeSetterCall back, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfi guration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllW orlds}
2902 };
2903 for (const auto& accessorConfig : accessorConfiguration)
2904 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Obje ct>(), prototypeObject, interfaceObject, signature, accessorConfig);
2854 } 2905 }
2855 } 2906 }
2856 } 2907 }
2857 if (executionContext && (executionContext->isWorkerGlobalScope())) { 2908 if (executionContext && (executionContext->isWorkerGlobalScope())) {
2858 if (executionContext && (executionContext->isSecureContext())) { 2909 if (executionContext && (executionContext->isSecureContext())) {
2859 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { 2910 if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
2860 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"secureContextWorkerExposedRuntimeEnabledAttribute", V8TestInterface::secureCon textWorkerExposedRuntimeEnabledAttributeAttributeGetterCallback, V8TestInterface ::secureContextWorkerExposedRuntimeEnabledAttributeAttributeSetterCallback, null ptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8 DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2911 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura tion[] = {
2861 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, accessorConfiguration); 2912 {"secureContextWorkerExposedRuntimeEnabledAttribute", V8TestInterface: :secureContextWorkerExposedRuntimeEnabledAttributeAttributeGetterCallback, V8Tes tInterface::secureContextWorkerExposedRuntimeEnabledAttributeAttributeSetterCall back, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfi guration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllW orlds}
2913 };
2914 for (const auto& accessorConfig : accessorConfiguration)
2915 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Obje ct>(), prototypeObject, interfaceObject, signature, accessorConfig);
2862 } 2916 }
2863 } 2917 }
2864 } 2918 }
2865 if (executionContext && (executionContext->isSecureContext())) { 2919 if (executionContext && (executionContext->isSecureContext())) {
2866 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2920 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2867 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {" partialSecureContextLongAttribute", V8TestInterface::partialSecureContextLongAtt ributeAttributeGetterCallback, V8TestInterface::partialSecureContextLongAttribut eAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::Pr opertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration: :CheckHolder}; 2921 static const V8DOMConfiguration::AccessorConfiguration accessorConfigurati on[] = {
2868 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, accessorConfiguration); 2922 {"partialSecureContextLongAttribute", V8TestInterface::partialSecureCont extLongAttributeAttributeGetterCallback, V8TestInterface::partialSecureContextLo ngAttributeAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAt tribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHo lder, V8DOMConfiguration::AllWorlds}
2923 };
2924 for (const auto& accessorConfig : accessorConfiguration)
2925 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, accessorConfig);
2869 } 2926 }
2870 } 2927 }
2871 if (executionContext && (executionContext->isSecureContext())) { 2928 if (executionContext && (executionContext->isSecureContext())) {
2872 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"pa rtial2SecureContextAttribute", V8TestInterface::partial2SecureContextAttributeAt tributeGetterCallback, V8TestInterface::partial2SecureContextAttributeAttributeS etterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttri bute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolde r}; 2929 static const V8DOMConfiguration::AccessorConfiguration accessorConfiguration [] = {
2873 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration); 2930 {"partial2SecureContextAttribute", V8TestInterface::partial2SecureContextA ttributeAttributeGetterCallback, V8TestInterface::partial2SecureContextAttribute AttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOM Configuration::AllWorlds}
2931 };
2932 for (const auto& accessorConfig : accessorConfiguration)
2933 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, accessorConfig);
2874 } 2934 }
2875 if (executionContext && (executionContext->isSecureContext())) { 2935 if (executionContext && (executionContext->isSecureContext())) {
2876 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"pa rtialSecureContextAttribute", V8TestInterface::partialSecureContextAttributeAttr ibuteGetterCallback, V8TestInterface::partialSecureContextAttributeAttributeSett erCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribut e>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; 2936 static const V8DOMConfiguration::AccessorConfiguration accessorConfiguration [] = {
2877 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, accessorConfiguration); 2937 {"partialSecureContextAttribute", V8TestInterface::partialSecureContextAtt ributeAttributeGetterCallback, V8TestInterface::partialSecureContextAttributeAtt ributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::N one), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMCon figuration::AllWorlds}
2938 };
2939 for (const auto& accessorConfig : accessorConfiguration)
2940 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, accessorConfig);
2878 } 2941 }
2879 if (executionContext && (executionContext->isSecureContext())) { 2942 if (executionContext && (executionContext->isSecureContext())) {
2880 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { 2943 if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
2881 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {" partialSecureContextRuntimeEnabledAttribute", V8TestInterface::partialSecureCont extRuntimeEnabledAttributeAttributeGetterCallback, V8TestInterface::partialSecur eContextRuntimeEnabledAttributeAttributeSetterCallback, nullptr, nullptr, nullpt r, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::On Prototype, V8DOMConfiguration::CheckHolder}; 2944 static const V8DOMConfiguration::AccessorConfiguration accessorConfigurati on[] = {
2882 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, accessorConfiguration); 2945 {"partialSecureContextRuntimeEnabledAttribute", V8TestInterface::partial SecureContextRuntimeEnabledAttributeAttributeGetterCallback, V8TestInterface::pa rtialSecureContextRuntimeEnabledAttributeAttributeSetterCallback, nullptr, nullp tr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototyp e, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds}
2946 };
2947 for (const auto& accessorConfig : accessorConfiguration)
2948 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, accessorConfig);
2883 } 2949 }
2884 } 2950 }
2885 if (executionContext && (executionContext->isDocument())) { 2951 if (executionContext && (executionContext->isDocument())) {
2886 if (executionContext && (executionContext->isSecureContext())) { 2952 if (executionContext && (executionContext->isSecureContext())) {
2887 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {" partialSecureContextWindowExposedAttribute", V8TestInterface::partialSecureConte xtWindowExposedAttributeAttributeGetterCallback, V8TestInterface::partialSecureC ontextWindowExposedAttributeAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPro totype, V8DOMConfiguration::CheckHolder}; 2953 static const V8DOMConfiguration::AccessorConfiguration accessorConfigurati on[] = {
2888 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, accessorConfiguration); 2954 {"partialSecureContextWindowExposedAttribute", V8TestInterface::partialS ecureContextWindowExposedAttributeAttributeGetterCallback, V8TestInterface::part ialSecureContextWindowExposedAttributeAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds}
2955 };
2956 for (const auto& accessorConfig : accessorConfiguration)
2957 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, accessorConfig);
2889 } 2958 }
2890 } 2959 }
2891 if (executionContext && (executionContext->isWorkerGlobalScope())) { 2960 if (executionContext && (executionContext->isWorkerGlobalScope())) {
2892 if (executionContext && (executionContext->isSecureContext())) { 2961 if (executionContext && (executionContext->isSecureContext())) {
2893 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {" partialSecureContextWorkerExposedAttribute", V8TestInterface::partialSecureConte xtWorkerExposedAttributeAttributeGetterCallback, V8TestInterface::partialSecureC ontextWorkerExposedAttributeAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPro totype, V8DOMConfiguration::CheckHolder}; 2962 static const V8DOMConfiguration::AccessorConfiguration accessorConfigurati on[] = {
2894 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>( ), prototypeObject, interfaceObject, signature, accessorConfiguration); 2963 {"partialSecureContextWorkerExposedAttribute", V8TestInterface::partialS ecureContextWorkerExposedAttributeAttributeGetterCallback, V8TestInterface::part ialSecureContextWorkerExposedAttributeAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds}
2964 };
2965 for (const auto& accessorConfig : accessorConfiguration)
2966 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, accessorConfig);
2895 } 2967 }
2896 } 2968 }
2897 if (executionContext && (executionContext->isDocument())) { 2969 if (executionContext && (executionContext->isDocument())) {
2898 if (executionContext && (executionContext->isSecureContext())) { 2970 if (executionContext && (executionContext->isSecureContext())) {
2899 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { 2971 if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
2900 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"partialSecureContextWindowExposedRuntimeEnabledAttribute", V8TestInterface::pa rtialSecureContextWindowExposedRuntimeEnabledAttributeAttributeGetterCallback, V 8TestInterface::partialSecureContextWindowExposedRuntimeEnabledAttributeAttribut eSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAtt ribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol der}; 2972 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura tion[] = {
2901 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, accessorConfiguration); 2973 {"partialSecureContextWindowExposedRuntimeEnabledAttribute", V8TestInt erface::partialSecureContextWindowExposedRuntimeEnabledAttributeAttributeGetterC allback, V8TestInterface::partialSecureContextWindowExposedRuntimeEnabledAttribu teAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>( v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8D OMConfiguration::AllWorlds}
2974 };
2975 for (const auto& accessorConfig : accessorConfiguration)
2976 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Obje ct>(), prototypeObject, interfaceObject, signature, accessorConfig);
2902 } 2977 }
2903 } 2978 }
2904 } 2979 }
2905 if (executionContext && (executionContext->isWorkerGlobalScope())) { 2980 if (executionContext && (executionContext->isWorkerGlobalScope())) {
2906 if (executionContext && (executionContext->isSecureContext())) { 2981 if (executionContext && (executionContext->isSecureContext())) {
2907 if (RuntimeEnabledFeatures::secureFeatureEnabled()) { 2982 if (RuntimeEnabledFeatures::secureFeatureEnabled()) {
2908 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"partialSecureContextWorkerExposedRuntimeEnabledAttribute", V8TestInterface::pa rtialSecureContextWorkerExposedRuntimeEnabledAttributeAttributeGetterCallback, V 8TestInterface::partialSecureContextWorkerExposedRuntimeEnabledAttributeAttribut eSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v8::PropertyAtt ribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol der}; 2983 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura tion[] = {
2909 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object >(), prototypeObject, interfaceObject, signature, accessorConfiguration); 2984 {"partialSecureContextWorkerExposedRuntimeEnabledAttribute", V8TestInt erface::partialSecureContextWorkerExposedRuntimeEnabledAttributeAttributeGetterC allback, V8TestInterface::partialSecureContextWorkerExposedRuntimeEnabledAttribu teAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribute>( v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8D OMConfiguration::AllWorlds}
2985 };
2986 for (const auto& accessorConfig : accessorConfiguration)
2987 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Obje ct>(), prototypeObject, interfaceObject, signature, accessorConfig);
2910 } 2988 }
2911 } 2989 }
2912 } 2990 }
2913 if (executionContext && (executionContext->isWorkerGlobalScope())) { 2991 if (executionContext && (executionContext->isWorkerGlobalScope())) {
2914 const V8DOMConfiguration::MethodConfiguration workerExposedMethodMethodConfi guration[] = { 2992 const V8DOMConfiguration::MethodConfiguration workerExposedMethodMethodConfi guration[] = {
2915 {"workerExposedMethod", V8TestInterface::workerExposedMethodMethodCallback , 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds} 2993 {"workerExposedMethod", V8TestInterface::workerExposedMethodMethodCallback , 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}
2916 }; 2994 };
2917 for (const auto& methodConfig : workerExposedMethodMethodConfiguration) 2995 for (const auto& methodConfig : workerExposedMethodMethodConfiguration)
2918 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, methodConfig); 2996 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, methodConfig);
2919 } 2997 }
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
3124 3202
3125 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&)) { 3203 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&)) {
3126 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInter face = method; 3204 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInter face = method;
3127 } 3205 }
3128 3206
3129 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) { 3207 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) {
3130 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPartia lInterface = method; 3208 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPartia lInterface = method;
3131 } 3209 }
3132 3210
3133 } // namespace blink 3211 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698