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

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

Issue 1212123003: Componentization: make symbols visible. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #if ENABLE(CONDITION) 8 #if ENABLE(CONDITION)
9 #include "V8TestInterface.h" 9 #include "V8TestInterface.h"
10 10
(...skipping 23 matching lines...) Expand all
34 #include "core/frame/UseCounter.h" 34 #include "core/frame/UseCounter.h"
35 #include "core/inspector/ConsoleMessage.h" 35 #include "core/inspector/ConsoleMessage.h"
36 #include "platform/RuntimeEnabledFeatures.h" 36 #include "platform/RuntimeEnabledFeatures.h"
37 #include "platform/ScriptForbiddenScope.h" 37 #include "platform/ScriptForbiddenScope.h"
38 #include "platform/TraceEvent.h" 38 #include "platform/TraceEvent.h"
39 #include "wtf/GetPtr.h" 39 #include "wtf/GetPtr.h"
40 #include "wtf/RefPtr.h" 40 #include "wtf/RefPtr.h"
41 41
42 namespace blink { 42 namespace blink {
43 43
44 // Suppress warning: global constructors, because struct WrapperTypeInfo is triv ial
45 // and does not depend on another global objects.
46 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
47 #pragma clang diagnostic push
48 #pragma clang diagnostic ignored "-Wglobal-constructors"
49 #endif
44 WrapperTypeInfo V8TestInterface::wrapperTypeInfo = { gin::kEmbedderBlink, V8Test Interface::domTemplate, V8TestInterface::refObject, V8TestInterface::derefObject , V8TestInterface::trace, V8TestInterface::toActiveDOMObject, V8TestInterface::v isitDOMWrapper, V8TestInterface::preparePrototypeObject, V8TestInterface::instal lConditionallyEnabledProperties, "TestInterface", &V8TestInterfaceEmpty::wrapper TypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectCl assId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Dependent, W rapperTypeInfo::RefCountedObject }; 50 WrapperTypeInfo V8TestInterface::wrapperTypeInfo = { gin::kEmbedderBlink, V8Test Interface::domTemplate, V8TestInterface::refObject, V8TestInterface::derefObject , V8TestInterface::trace, V8TestInterface::toActiveDOMObject, V8TestInterface::v isitDOMWrapper, V8TestInterface::preparePrototypeObject, V8TestInterface::instal lConditionallyEnabledProperties, "TestInterface", &V8TestInterfaceEmpty::wrapper TypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectCl assId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::Dependent, W rapperTypeInfo::RefCountedObject };
51 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
52 #pragma clang diagnostic pop
53 #endif
45 54
46 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac eImplementation.h. 55 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac eImplementation.h.
47 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in 56 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in
48 // bindings/core/v8/ScriptWrappable.h. 57 // bindings/core/v8/ScriptWrappable.h.
49 const WrapperTypeInfo& TestInterfaceImplementation::s_wrapperTypeInfo = V8TestIn terface::wrapperTypeInfo; 58 const WrapperTypeInfo& TestInterfaceImplementation::s_wrapperTypeInfo = V8TestIn terface::wrapperTypeInfo;
50 59
51 namespace TestInterfaceImplementationV8Internal { 60 namespace TestInterfaceImplementationV8Internal {
52 static void (*voidMethodPartialOverloadMethodForPartialInterface)(const v8::Func tionCallbackInfo<v8::Value>&) = 0; 61 static void (*voidMethodPartialOverloadMethodForPartialInterface)(const v8::Func tionCallbackInfo<v8::Value>&) = 0;
53 static void (*staticVoidMethodPartialOverloadMethodForPartialInterface)(const v8 ::FunctionCallbackInfo<v8::Value>&) = 0; 62 static void (*staticVoidMethodPartialOverloadMethodForPartialInterface)(const v8 ::FunctionCallbackInfo<v8::Value>&) = 0;
54 static void (*promiseMethodPartialOverloadMethodForPartialInterface)(const v8::F unctionCallbackInfo<v8::Value>&) = 0; 63 static void (*promiseMethodPartialOverloadMethodForPartialInterface)(const v8::F unctionCallbackInfo<v8::Value>&) = 0;
(...skipping 2153 matching lines...) Expand 10 before | Expand all | Expand 10 after
2208 V8WrapperInstantiationScope scope(creationContext, isolate); 2217 V8WrapperInstantiationScope scope(creationContext, isolate);
2209 TestInterfaceImplementation* referencedName = impl->referencedName(); 2218 TestInterfaceImplementation* referencedName = impl->referencedName();
2210 if (referencedName) { 2219 if (referencedName) {
2211 if (!DOMDataStore::containsWrapper(referencedName, isolate)) 2220 if (!DOMDataStore::containsWrapper(referencedName, isolate))
2212 referencedName->wrap(isolate, creationContext); 2221 referencedName->wrap(isolate, creationContext);
2213 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate); 2222 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate);
2214 } 2223 }
2215 setObjectGroup(isolate, scriptWrappable, wrapper); 2224 setObjectGroup(isolate, scriptWrappable, wrapper);
2216 } 2225 }
2217 2226
2227 // Suppress warning: global constructors, because AttributeConfiguration is triv ial
2228 // and does not depend on another global objects.
2229 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
2230 #pragma clang diagnostic push
2231 #pragma clang diagnostic ignored "-Wglobal-constructors"
2232 #endif
2218 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute s[] = { 2233 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute s[] = {
2219 {"testInterfaceConstructorAttribute", v8ConstructorAttributeGetter, TestInte rfaceImplementationV8Internal::testInterfaceConstructorAttributeAttributeSetterC allback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>( v8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIn stance, V8DOMConfiguration::CheckHolder}, 2234 {"testInterfaceConstructorAttribute", v8ConstructorAttributeGetter, TestInte rfaceImplementationV8Internal::testInterfaceConstructorAttributeAttributeSetterC allback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>( v8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIn stance, V8DOMConfiguration::CheckHolder},
2220 {"TestInterface", v8ConstructorAttributeGetter, TestInterfaceImplementationV 8Internal::TestInterfaceImplementationConstructorAttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8: :AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMCo nfiguration::CheckHolder}, 2235 {"TestInterface", v8ConstructorAttributeGetter, TestInterfaceImplementationV 8Internal::TestInterfaceImplementationConstructorAttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterface::wrapperTypeInfo), static_cast<v8: :AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMCo nfiguration::CheckHolder},
2221 {"TestInterface2", v8ConstructorAttributeGetter, TestInterfaceImplementation V8Internal::TestInterfaceImplementationConstructorAttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterface2::wrapperTypeInfo), static_cast<v 8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOM Configuration::CheckHolder}, 2236 {"TestInterface2", v8ConstructorAttributeGetter, TestInterfaceImplementation V8Internal::TestInterfaceImplementationConstructorAttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterface2::wrapperTypeInfo), static_cast<v 8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOM Configuration::CheckHolder},
2222 }; 2237 };
2238 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG)
2239 #pragma clang diagnostic pop
2240 #endif
2223 2241
2224 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceAccessors[ ] = { 2242 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceAccessors[ ] = {
2225 {"testInterfaceAttribute", TestInterfaceImplementationV8Internal::testInterf aceAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::test InterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContro l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguratio n::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Che ckHolder}, 2243 {"testInterfaceAttribute", TestInterfaceImplementationV8Internal::testInterf aceAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::test InterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContro l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguratio n::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Che ckHolder},
2226 {"doubleAttribute", TestInterfaceImplementationV8Internal::doubleAttributeAt tributeGetterCallback, TestInterfaceImplementationV8Internal::doubleAttributeAtt ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat ic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScript s, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2244 {"doubleAttribute", TestInterfaceImplementationV8Internal::doubleAttributeAt tributeGetterCallback, TestInterfaceImplementationV8Internal::doubleAttributeAtt ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat ic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScript s, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
2227 {"floatAttribute", TestInterfaceImplementationV8Internal::floatAttributeAttr ibuteGetterCallback, TestInterfaceImplementationV8Internal::floatAttributeAttrib uteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2245 {"floatAttribute", TestInterfaceImplementationV8Internal::floatAttributeAttr ibuteGetterCallback, TestInterfaceImplementationV8Internal::floatAttributeAttrib uteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
2228 {"unrestrictedDoubleAttribute", TestInterfaceImplementationV8Internal::unres trictedDoubleAttributeAttributeGetterCallback, TestInterfaceImplementationV8Inte rnal::unrestrictedDoubleAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v 8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8 DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMCon figuration::CheckHolder}, 2246 {"unrestrictedDoubleAttribute", TestInterfaceImplementationV8Internal::unres trictedDoubleAttributeAttributeGetterCallback, TestInterfaceImplementationV8Inte rnal::unrestrictedDoubleAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v 8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8 DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMCon figuration::CheckHolder},
2229 {"unrestrictedFloatAttribute", TestInterfaceImplementationV8Internal::unrest rictedFloatAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern al::unrestrictedFloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8:: AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOM Configuration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfig uration::CheckHolder}, 2247 {"unrestrictedFloatAttribute", TestInterfaceImplementationV8Internal::unrest rictedFloatAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern al::unrestrictedFloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8:: AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOM Configuration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfig uration::CheckHolder},
2230 {"testEnumAttribute", TestInterfaceImplementationV8Internal::testEnumAttribu teAttributeGetterCallback, TestInterfaceImplementationV8Internal::testEnumAttrib uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll Scripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 2248 {"testEnumAttribute", TestInterfaceImplementationV8Internal::testEnumAttribu teAttributeGetterCallback, TestInterfaceImplementationV8Internal::testEnumAttrib uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll Scripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder},
2231 {"stringOrDoubleAttribute", TestInterfaceImplementationV8Internal::stringOrD oubleAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::st ringOrDoubleAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCon trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigura tion::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration:: CheckHolder}, 2249 {"stringOrDoubleAttribute", TestInterfaceImplementationV8Internal::stringOrD oubleAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::st ringOrDoubleAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCon trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigura tion::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration:: CheckHolder},
2232 {"legacyInterfaceTypeCheckingAttribute", TestInterfaceImplementationV8Intern al::legacyInterfaceTypeCheckingAttributeAttributeGetterCallback, TestInterfaceIm plementationV8Internal::legacyInterfaceTypeCheckingAttributeAttributeSetterCallb ack, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prope rtyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigura tion::OnPrototype, V8DOMConfiguration::CheckHolder}, 2250 {"legacyInterfaceTypeCheckingAttribute", TestInterfaceImplementationV8Intern al::legacyInterfaceTypeCheckingAttributeAttributeGetterCallback, TestInterfaceIm plementationV8Internal::legacyInterfaceTypeCheckingAttributeAttributeSetterCallb ack, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prope rtyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigura tion::OnPrototype, V8DOMConfiguration::CheckHolder},
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
2655 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2673 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&))
2656 { 2674 {
2657 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method; 2675 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method;
2658 } 2676 }
2659 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2677 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&))
2660 { 2678 {
2661 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method; 2679 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method;
2662 } 2680 }
2663 } // namespace blink 2681 } // namespace blink
2664 #endif // ENABLE(CONDITION) 2682 #endif // ENABLE(CONDITION)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698