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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp

Issue 2460423002: Use new LazyDataProperty API for DOM constructors (Closed)
Patch Set: updates Created 4 years, 1 month 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
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/core/V8TestTypedefs.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 // clang-format off 7 // clang-format off
8 #include "V8TestInterface5.h" 8 #include "V8TestInterface5.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 DOMWrapperWorld::setWrapperReferencesInAllWorlds(wrapper, referencedName, is olate); 851 DOMWrapperWorld::setWrapperReferencesInAllWorlds(wrapper, referencedName, is olate);
852 } 852 }
853 } 853 }
854 854
855 // Suppress warning: global constructors, because AttributeConfiguration is triv ial 855 // Suppress warning: global constructors, because AttributeConfiguration is triv ial
856 // and does not depend on another global objects. 856 // and does not depend on another global objects.
857 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 857 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
858 #pragma clang diagnostic push 858 #pragma clang diagnostic push
859 #pragma clang diagnostic ignored "-Wglobal-constructors" 859 #pragma clang diagnostic ignored "-Wglobal-constructors"
860 #endif 860 #endif
861 const V8DOMConfiguration::AttributeConfiguration V8TestInterface5Attributes[] = { 861 const V8DOMConfiguration::AttributeConfiguration V8TestInterface5LazyDataAttribu tes[] = {
862 {"testInterfaceConstructorAttribute", v8ConstructorAttributeGetter, 0, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterface5::wrapperTypeInfo), static_cast<v 8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOM Configuration::CheckHolder}, 862 {"testInterfaceConstructorAttribute", v8ConstructorAttributeGetter, 0, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterface5::wrapperTypeInfo), static_cast<v 8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOM Configuration::CheckHolder},
863 }; 863 };
864 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) 864 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
865 #pragma clang diagnostic pop 865 #pragma clang diagnostic pop
866 #endif 866 #endif
867 867
868 const V8DOMConfiguration::AccessorConfiguration V8TestInterface5Accessors[] = { 868 const V8DOMConfiguration::AccessorConfiguration V8TestInterface5Accessors[] = {
869 {"testInterfaceAttribute", TestInterface5ImplementationV8Internal::testInter faceAttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal::te stInterfaceAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v 8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMC onfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 869 {"testInterfaceAttribute", TestInterface5ImplementationV8Internal::testInter faceAttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal::te stInterfaceAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v 8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMC onfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
870 {"doubleAttribute", TestInterface5ImplementationV8Internal::doubleAttributeA ttributeGetterCallback, TestInterface5ImplementationV8Internal::doubleAttributeA ttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute> (v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProto type, V8DOMConfiguration::CheckHolder}, 870 {"doubleAttribute", TestInterface5ImplementationV8Internal::doubleAttributeA ttributeGetterCallback, TestInterface5ImplementationV8Internal::doubleAttributeA ttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute> (v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnProto type, V8DOMConfiguration::CheckHolder},
871 {"floatAttribute", TestInterface5ImplementationV8Internal::floatAttributeAtt ributeGetterCallback, TestInterface5ImplementationV8Internal::floatAttributeAttr ibuteSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototyp e, V8DOMConfiguration::CheckHolder}, 871 {"floatAttribute", TestInterface5ImplementationV8Internal::floatAttributeAtt ributeGetterCallback, TestInterface5ImplementationV8Internal::floatAttributeAttr ibuteSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8 ::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototyp e, V8DOMConfiguration::CheckHolder},
(...skipping 30 matching lines...) Expand all
902 ALLOW_UNUSED_LOCAL(instanceTemplate); 902 ALLOW_UNUSED_LOCAL(instanceTemplate);
903 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template(); 903 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype Template();
904 ALLOW_UNUSED_LOCAL(prototypeTemplate); 904 ALLOW_UNUSED_LOCAL(prototypeTemplate);
905 // Register DOM constants, attributes and operations. 905 // Register DOM constants, attributes and operations.
906 if (RuntimeEnabledFeatures::featureNameEnabled()) { 906 if (RuntimeEnabledFeatures::featureNameEnabled()) {
907 const V8DOMConfiguration::ConstantConfiguration V8TestInterface5Constants[ ] = { 907 const V8DOMConfiguration::ConstantConfiguration V8TestInterface5Constants[ ] = {
908 {"UNSIGNED_LONG", 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong}, 908 {"UNSIGNED_LONG", 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong},
909 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort}, 909 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort},
910 }; 910 };
911 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototype Template, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constants) ); 911 V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototype Template, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constants) );
912 V8DOMConfiguration::installAttributes(isolate, world, instanceTemplate, pr ototypeTemplate, V8TestInterface5Attributes, WTF_ARRAY_LENGTH(V8TestInterface5At tributes)); 912 V8DOMConfiguration::installLazyDataAttributes(isolate, world, instanceTemp late, prototypeTemplate, V8TestInterface5LazyDataAttributes, WTF_ARRAY_LENGTH(V8 TestInterface5LazyDataAttributes));
913 V8DOMConfiguration::installAccessors(isolate, world, instanceTemplate, pro totypeTemplate, interfaceTemplate, signature, V8TestInterface5Accessors, WTF_ARR AY_LENGTH(V8TestInterface5Accessors)); 913 V8DOMConfiguration::installAccessors(isolate, world, instanceTemplate, pro totypeTemplate, interfaceTemplate, signature, V8TestInterface5Accessors, WTF_ARR AY_LENGTH(V8TestInterface5Accessors));
914 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, proto typeTemplate, interfaceTemplate, signature, V8TestInterface5Methods, WTF_ARRAY_L ENGTH(V8TestInterface5Methods)); 914 V8DOMConfiguration::installMethods(isolate, world, instanceTemplate, proto typeTemplate, interfaceTemplate, signature, V8TestInterface5Methods, WTF_ARRAY_L ENGTH(V8TestInterface5Methods));
915 } 915 }
916 916
917 // Indexed properties 917 // Indexed properties
918 v8::IndexedPropertyHandlerConfiguration indexedPropertyHandlerConfig(TestInter face5ImplementationV8Internal::indexedPropertyGetterCallback, TestInterface5Impl ementationV8Internal::indexedPropertySetterCallback, 0, TestInterface5Implementa tionV8Internal::indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestIn terface5Implementation>, v8::Local<v8::Value>(), v8::PropertyHandlerFlags::kNone ); 918 v8::IndexedPropertyHandlerConfiguration indexedPropertyHandlerConfig(TestInter face5ImplementationV8Internal::indexedPropertyGetterCallback, TestInterface5Impl ementationV8Internal::indexedPropertySetterCallback, 0, TestInterface5Implementa tionV8Internal::indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestIn terface5Implementation>, v8::Local<v8::Value>(), v8::PropertyHandlerFlags::kNone );
919 instanceTemplate->SetHandler(indexedPropertyHandlerConfig); 919 instanceTemplate->SetHandler(indexedPropertyHandlerConfig);
920 // Named properties 920 // Named properties
921 v8::NamedPropertyHandlerConfiguration namedPropertyHandlerConfig(TestInterface 5ImplementationV8Internal::namedPropertyGetterCallback, TestInterface5Implementa tionV8Internal::namedPropertySetterCallback, TestInterface5ImplementationV8Inter nal::namedPropertyQueryCallback, TestInterface5ImplementationV8Internal::namedPr opertyDeleterCallback, TestInterface5ImplementationV8Internal::namedPropertyEnum eratorCallback, v8::Local<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(in t(v8::PropertyHandlerFlags::kOnlyInterceptStrings) | int(v8::PropertyHandlerFlag s::kNonMasking))); 921 v8::NamedPropertyHandlerConfiguration namedPropertyHandlerConfig(TestInterface 5ImplementationV8Internal::namedPropertyGetterCallback, TestInterface5Implementa tionV8Internal::namedPropertySetterCallback, TestInterface5ImplementationV8Inter nal::namedPropertyQueryCallback, TestInterface5ImplementationV8Internal::namedPr opertyDeleterCallback, TestInterface5ImplementationV8Internal::namedPropertyEnum eratorCallback, v8::Local<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(in t(v8::PropertyHandlerFlags::kOnlyInterceptStrings) | int(v8::PropertyHandlerFlag s::kNonMasking)));
922 instanceTemplate->SetHandler(namedPropertyHandlerConfig); 922 instanceTemplate->SetHandler(namedPropertyHandlerConfig);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodMet hodConfiguration = {"windowExposedStaticMethod", TestInterface5ImplementationV8I nternal::windowExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigura tion::ExposedToAllScripts, V8DOMConfiguration::OnInterface}; 975 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodMet hodConfiguration = {"windowExposedStaticMethod", TestInterface5ImplementationV8I nternal::windowExposedStaticMethodMethodCallback, 0, 0, v8::None, V8DOMConfigura tion::ExposedToAllScripts, V8DOMConfiguration::OnInterface};
976 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodCon figuration); 976 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodCon figuration);
977 } 977 }
978 if (executionContext && (executionContext->isDocument() || executionContext->i sServiceWorkerGlobalScope())) { 978 if (executionContext && (executionContext->isDocument() || executionContext->i sServiceWorkerGlobalScope())) {
979 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExpose dMethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", TestInterfa ce5ImplementationV8Internal::windowAndServiceWorkerExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP rototype}; 979 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExpose dMethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", TestInterfa ce5ImplementationV8Internal::windowAndServiceWorkerExposedMethodMethodCallback, 0, 0, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP rototype};
980 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMetho dMethodConfiguration); 980 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), prototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMetho dMethodConfiguration);
981 } 981 }
982 } 982 }
983 983
984 } // namespace blink 984 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/core/V8TestTypedefs.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698