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

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

Issue 922233002: bindings: Makes runtime-enabled attributes on prototype chains compilable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed review comments. Created 5 years, 10 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 | Annotate | Revision Log
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 2008 matching lines...) Expand 10 before | Expand all | Expand 10 after
2019 V8TestInterfaceAttributes, WTF_ARRAY_LENGTH(V8TestInterfaceAttribute s), 2019 V8TestInterfaceAttributes, WTF_ARRAY_LENGTH(V8TestInterfaceAttribute s),
2020 0, 0, 2020 0, 0,
2021 V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods)); 2021 V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods));
2022 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); 2022 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate();
2023 ALLOW_UNUSED_LOCAL(instanceTemplate); 2023 ALLOW_UNUSED_LOCAL(instanceTemplate);
2024 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate(); 2024 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate();
2025 ALLOW_UNUSED_LOCAL(prototypeTemplate); 2025 ALLOW_UNUSED_LOCAL(prototypeTemplate);
2026 if (RuntimeEnabledFeatures::implementsFeatureNameEnabled()) { 2026 if (RuntimeEnabledFeatures::implementsFeatureNameEnabled()) {
2027 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 2027 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
2028 {"implementsRuntimeEnabledNodeAttribute", TestInterfaceImplementationV8I nternal::implementsRuntimeEnabledNodeAttributeAttributeGetterCallback, TestInter faceImplementationV8Internal::implementsRuntimeEnabledNodeAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCo nfiguration::OnInstance}; 2028 {"implementsRuntimeEnabledNodeAttribute", TestInterfaceImplementationV8I nternal::implementsRuntimeEnabledNodeAttributeAttributeGetterCallback, TestInter faceImplementationV8Internal::implementsRuntimeEnabledNodeAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCo nfiguration::OnInstance};
2029 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate , attributeConfiguration, isolate); 2029 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototyp eTemplate, attributeConfiguration);
2030 } 2030 }
2031 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) { 2031 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) {
2032 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 2032 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
2033 {"implements2StringAttribute", TestInterfaceImplementationV8Internal::im plements2StringAttributeAttributeGetterCallback, TestInterfaceImplementationV8In ternal::implements2StringAttributeAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V 8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; 2033 {"implements2StringAttribute", TestInterfaceImplementationV8Internal::im plements2StringAttributeAttributeGetterCallback, TestInterfaceImplementationV8In ternal::implements2StringAttributeAttributeSetterCallback, 0, 0, 0, static_cast< v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V 8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance};
2034 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate , attributeConfiguration, isolate); 2034 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototyp eTemplate, attributeConfiguration);
2035 } 2035 }
2036 #if ENABLE(PARTIAL_CONDITION) 2036 #if ENABLE(PARTIAL_CONDITION)
2037 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2037 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2038 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 2038 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
2039 {"partialLongAttribute", TestInterfaceImplementationV8Internal::partialL ongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::part ialLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl> (v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration: :ExposedToAllScripts, V8DOMConfiguration::OnInstance}; 2039 {"partialLongAttribute", TestInterfaceImplementationV8Internal::partialL ongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::part ialLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl> (v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration: :ExposedToAllScripts, V8DOMConfiguration::OnInstance};
2040 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate , attributeConfiguration, isolate); 2040 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototyp eTemplate, attributeConfiguration);
2041 } 2041 }
2042 #endif // ENABLE(PARTIAL_CONDITION) 2042 #endif // ENABLE(PARTIAL_CONDITION)
2043 #if ENABLE(PARTIAL_CONDITION) 2043 #if ENABLE(PARTIAL_CONDITION)
2044 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2044 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2045 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 2045 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
2046 {"partialCallWithExecutionContextLongAttribute", TestInterfaceImplementa tionV8Internal::partialCallWithExecutionContextLongAttributeAttributeGetterCallb ack, TestInterfaceImplementationV8Internal::partialCallWithExecutionContextLongA ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed ToAllScripts, V8DOMConfiguration::OnInstance}; 2046 {"partialCallWithExecutionContextLongAttribute", TestInterfaceImplementa tionV8Internal::partialCallWithExecutionContextLongAttributeAttributeGetterCallb ack, TestInterfaceImplementationV8Internal::partialCallWithExecutionContextLongA ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed ToAllScripts, V8DOMConfiguration::OnInstance};
2047 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate , attributeConfiguration, isolate); 2047 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototyp eTemplate, attributeConfiguration);
2048 } 2048 }
2049 #endif // ENABLE(PARTIAL_CONDITION) 2049 #endif // ENABLE(PARTIAL_CONDITION)
2050 #if ENABLE(PARTIAL_CONDITION) 2050 #if ENABLE(PARTIAL_CONDITION)
2051 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2051 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2052 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 2052 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
2053 {"partialPartialEnumTypeAttribute", TestInterfaceImplementationV8Interna l::partialPartialEnumTypeAttributeAttributeGetterCallback, TestInterfaceImplemen tationV8Internal::partialPartialEnumTypeAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut e>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIns tance}; 2053 {"partialPartialEnumTypeAttribute", TestInterfaceImplementationV8Interna l::partialPartialEnumTypeAttributeAttributeGetterCallback, TestInterfaceImplemen tationV8Internal::partialPartialEnumTypeAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut e>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIns tance};
2054 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate , attributeConfiguration, isolate); 2054 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototyp eTemplate, attributeConfiguration);
2055 } 2055 }
2056 #endif // ENABLE(PARTIAL_CONDITION) 2056 #endif // ENABLE(PARTIAL_CONDITION)
2057 #if ENABLE(PARTIAL_CONDITION) 2057 #if ENABLE(PARTIAL_CONDITION)
2058 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2058 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2059 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 2059 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
2060 {"stringAttribute", TestInterfaceImplementationV8Internal::stringAttribu teAttributeGetterCallback, TestInterfaceImplementationV8Internal::stringAttribut eAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc ripts, V8DOMConfiguration::OnInstance}; 2060 {"stringAttribute", TestInterfaceImplementationV8Internal::stringAttribu teAttributeGetterCallback, TestInterfaceImplementationV8Internal::stringAttribut eAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc ripts, V8DOMConfiguration::OnInstance};
2061 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate , attributeConfiguration, isolate); 2061 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototyp eTemplate, attributeConfiguration);
2062 } 2062 }
2063 #endif // ENABLE(PARTIAL_CONDITION) 2063 #endif // ENABLE(PARTIAL_CONDITION)
2064 static const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConsta nts[] = { 2064 static const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConsta nts[] = {
2065 {"UNSIGNED_LONG", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong} , 2065 {"UNSIGNED_LONG", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong} ,
2066 {"CONST_JAVASCRIPT", 1, 0, 0, V8DOMConfiguration::ConstantTypeShort}, 2066 {"CONST_JAVASCRIPT", 1, 0, 0, V8DOMConfiguration::ConstantTypeShort},
2067 {"IMPLEMENTS_CONSTANT_1", 1, 0, 0, V8DOMConfiguration::ConstantTypeUnsig nedShort}, 2067 {"IMPLEMENTS_CONSTANT_1", 1, 0, 0, V8DOMConfiguration::ConstantTypeUnsig nedShort},
2068 {"IMPLEMENTS_CONSTANT_2", 2, 0, 0, V8DOMConfiguration::ConstantTypeUnsig nedShort}, 2068 {"IMPLEMENTS_CONSTANT_2", 2, 0, 0, V8DOMConfiguration::ConstantTypeUnsig nedShort},
2069 {"PARTIAL2_UNSIGNED_SHORT", 0, 0, 0, V8DOMConfiguration::ConstantTypeUns ignedShort}, 2069 {"PARTIAL2_UNSIGNED_SHORT", 0, 0, 0, V8DOMConfiguration::ConstantTypeUns ignedShort},
2070 }; 2070 };
2071 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem plate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); 2071 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem plate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants));
2072 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2072 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2073 static const V8DOMConfiguration::ConstantConfiguration constantConfigura tion = {"PARTIAL_UNSIGNED_SHORT", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsig nedShort}; 2073 static const V8DOMConfiguration::ConstantConfiguration constantConfigura tion = {"PARTIAL_UNSIGNED_SHORT", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsig nedShort};
2074 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototyp eTemplate, &constantConfiguration, 1); 2074 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype Template, constantConfiguration);
2075 } 2075 }
2076 { 2076 {
2077 v8::IndexedPropertyHandlerConfiguration config(TestInterfaceImplementati onV8Internal::indexedPropertyGetterCallback, TestInterfaceImplementationV8Intern al::indexedPropertySetterCallback, 0, TestInterfaceImplementationV8Internal::ind exedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterfaceImplementati on>); 2077 v8::IndexedPropertyHandlerConfiguration config(TestInterfaceImplementati onV8Internal::indexedPropertyGetterCallback, TestInterfaceImplementationV8Intern al::indexedPropertySetterCallback, 0, TestInterfaceImplementationV8Internal::ind exedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterfaceImplementati on>);
2078 config.flags = v8::PropertyHandlerFlags::kAllCanRead; 2078 config.flags = v8::PropertyHandlerFlags::kAllCanRead;
2079 functionTemplate->InstanceTemplate()->SetHandler(config); 2079 functionTemplate->InstanceTemplate()->SetHandler(config);
2080 } 2080 }
2081 { 2081 {
2082 v8::NamedPropertyHandlerConfiguration config(TestInterfaceImplementation V8Internal::namedPropertyGetterCallback, TestInterfaceImplementationV8Internal:: namedPropertySetterCallback, TestInterfaceImplementationV8Internal::namedPropert yQueryCallback, TestInterfaceImplementationV8Internal::namedPropertyDeleterCallb ack, TestInterfaceImplementationV8Internal::namedPropertyEnumeratorCallback); 2082 v8::NamedPropertyHandlerConfiguration config(TestInterfaceImplementation V8Internal::namedPropertyGetterCallback, TestInterfaceImplementationV8Internal:: namedPropertySetterCallback, TestInterfaceImplementationV8Internal::namedPropert yQueryCallback, TestInterfaceImplementationV8Internal::namedPropertyDeleterCallb ack, TestInterfaceImplementationV8Internal::namedPropertyEnumeratorCallback);
2083 config.flags = v8::PropertyHandlerFlags::kAllCanRead; 2083 config.flags = v8::PropertyHandlerFlags::kAllCanRead;
2084 functionTemplate->InstanceTemplate()->SetHandler(config); 2084 functionTemplate->InstanceTemplate()->SetHandler(config);
2085 } 2085 }
2086 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI teratorConfiguration = { v8::Symbol::GetIterator, TestInterfaceImplementationV8I nternal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; 2086 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI teratorConfiguration = { v8::Symbol::GetIterator, TestInterfaceImplementationV8I nternal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts };
2087 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v8::D ontDelete, symbolKeyedIteratorConfiguration, isolate); 2087 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu re, v8::DontDelete, symbolKeyedIteratorConfiguration);
2088 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa ce::legacyCallCustom); 2088 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa ce::legacyCallCustom);
2089 const V8DOMConfiguration::MethodConfiguration alwaysExposedStaticMethodMetho dConfiguration = { 2089 const V8DOMConfiguration::MethodConfiguration alwaysExposedStaticMethodMetho dConfiguration = {
2090 "alwaysExposedStaticMethod", TestInterfaceImplementationV8Internal::alwa ysExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip ts, 2090 "alwaysExposedStaticMethod", TestInterfaceImplementationV8Internal::alwa ysExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip ts,
2091 }; 2091 };
2092 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature> (), v8::None, alwaysExposedStaticMethodMethodConfiguration, isolate); 2092 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, alwaysExposedStaticMethodMethodConfiguration);
2093 if (context && (context->isWorkerGlobalScope())) { 2093 if (context && (context->isWorkerGlobalScope())) {
2094 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodM ethodConfiguration = { 2094 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodM ethodConfiguration = {
2095 "workerExposedStaticMethod", TestInterfaceImplementationV8Internal:: workerExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS cripts, 2095 "workerExposedStaticMethod", TestInterfaceImplementationV8Internal:: workerExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS cripts,
2096 }; 2096 };
2097 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signat ure>(), v8::None, workerExposedStaticMethodMethodConfiguration, isolate); 2097 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v 8::Signature>(), v8::None, workerExposedStaticMethodMethodConfiguration);
2098 } 2098 }
2099 if (context && (context->isDocument())) { 2099 if (context && (context->isDocument())) {
2100 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodM ethodConfiguration = { 2100 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodM ethodConfiguration = {
2101 "windowExposedStaticMethod", TestInterfaceImplementationV8Internal:: windowExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS cripts, 2101 "windowExposedStaticMethod", TestInterfaceImplementationV8Internal:: windowExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS cripts,
2102 }; 2102 };
2103 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signat ure>(), v8::None, windowExposedStaticMethodMethodConfiguration, isolate); 2103 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v 8::Signature>(), v8::None, windowExposedStaticMethodMethodConfiguration);
2104 } 2104 }
2105 const V8DOMConfiguration::MethodConfiguration implementsStaticVoidMethodMeth odConfiguration = { 2105 const V8DOMConfiguration::MethodConfiguration implementsStaticVoidMethodMeth odConfiguration = {
2106 "implementsStaticVoidMethod", TestInterfaceImplementationV8Internal::imp lementsStaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr ipts, 2106 "implementsStaticVoidMethod", TestInterfaceImplementationV8Internal::imp lementsStaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScr ipts,
2107 }; 2107 };
2108 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature> (), v8::None, implementsStaticVoidMethodMethodConfiguration, isolate); 2108 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, implementsStaticVoidMethodMethodConfiguration);
2109 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) { 2109 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) {
2110 const V8DOMConfiguration::MethodConfiguration implements2VoidMethodMetho dConfiguration = { 2110 const V8DOMConfiguration::MethodConfiguration implements2VoidMethodMetho dConfiguration = {
2111 "implements2VoidMethod", TestInterfaceImplementationV8Internal::impl ements2VoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, 2111 "implements2VoidMethod", TestInterfaceImplementationV8Internal::impl ements2VoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts,
2112 }; 2112 };
2113 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v 8::None, implements2VoidMethodMethodConfiguration, isolate); 2113 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSig nature, v8::None, implements2VoidMethodMethodConfiguration);
2114 } 2114 }
2115 const V8DOMConfiguration::MethodConfiguration implements3StaticVoidMethodMet hodConfiguration = { 2115 const V8DOMConfiguration::MethodConfiguration implements3StaticVoidMethodMet hodConfiguration = {
2116 "implements3StaticVoidMethod", TestInterfaceImplementationV8Internal::im plements3StaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS cripts, 2116 "implements3StaticVoidMethod", TestInterfaceImplementationV8Internal::im plements3StaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS cripts,
2117 }; 2117 };
2118 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature> (), v8::None, implements3StaticVoidMethodMethodConfiguration, isolate); 2118 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, implements3StaticVoidMethodMethodConfiguration);
2119 #if ENABLE(PARTIAL_CONDITION) 2119 #if ENABLE(PARTIAL_CONDITION)
2120 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2120 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2121 const V8DOMConfiguration::MethodConfiguration partialVoidMethodMethodCon figuration = { 2121 const V8DOMConfiguration::MethodConfiguration partialVoidMethodMethodCon figuration = {
2122 "partialVoidMethod", TestInterfaceImplementationV8Internal::partialV oidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, 2122 "partialVoidMethod", TestInterfaceImplementationV8Internal::partialV oidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts,
2123 }; 2123 };
2124 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v 8::None, partialVoidMethodMethodConfiguration, isolate); 2124 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSig nature, v8::None, partialVoidMethodMethodConfiguration);
2125 } 2125 }
2126 #endif // ENABLE(PARTIAL_CONDITION) 2126 #endif // ENABLE(PARTIAL_CONDITION)
2127 #if ENABLE(PARTIAL_CONDITION) 2127 #if ENABLE(PARTIAL_CONDITION)
2128 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2128 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2129 const V8DOMConfiguration::MethodConfiguration partialStaticVoidMethodMet hodConfiguration = { 2129 const V8DOMConfiguration::MethodConfiguration partialStaticVoidMethodMet hodConfiguration = {
2130 "partialStaticVoidMethod", TestInterfaceImplementationV8Internal::pa rtialStaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip ts, 2130 "partialStaticVoidMethod", TestInterfaceImplementationV8Internal::pa rtialStaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip ts,
2131 }; 2131 };
2132 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signat ure>(), v8::None, partialStaticVoidMethodMethodConfiguration, isolate); 2132 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v 8::Signature>(), v8::None, partialStaticVoidMethodMethodConfiguration);
2133 } 2133 }
2134 #endif // ENABLE(PARTIAL_CONDITION) 2134 #endif // ENABLE(PARTIAL_CONDITION)
2135 #if ENABLE(PARTIAL_CONDITION) 2135 #if ENABLE(PARTIAL_CONDITION)
2136 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2136 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2137 const V8DOMConfiguration::MethodConfiguration partialVoidMethodLongArgMe thodConfiguration = { 2137 const V8DOMConfiguration::MethodConfiguration partialVoidMethodLongArgMe thodConfiguration = {
2138 "partialVoidMethodLongArg", TestInterfaceImplementationV8Internal::p artialVoidMethodLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScr ipts, 2138 "partialVoidMethodLongArg", TestInterfaceImplementationV8Internal::p artialVoidMethodLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScr ipts,
2139 }; 2139 };
2140 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v 8::None, partialVoidMethodLongArgMethodConfiguration, isolate); 2140 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSig nature, v8::None, partialVoidMethodLongArgMethodConfiguration);
2141 } 2141 }
2142 #endif // ENABLE(PARTIAL_CONDITION) 2142 #endif // ENABLE(PARTIAL_CONDITION)
2143 #if ENABLE(PARTIAL_CONDITION) 2143 #if ENABLE(PARTIAL_CONDITION)
2144 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2144 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2145 const V8DOMConfiguration::MethodConfiguration partialCallWithExecutionCo ntextRaisesExceptionVoidMethodMethodConfiguration = { 2145 const V8DOMConfiguration::MethodConfiguration partialCallWithExecutionCo ntextRaisesExceptionVoidMethodMethodConfiguration = {
2146 "partialCallWithExecutionContextRaisesExceptionVoidMethod", TestInte rfaceImplementationV8Internal::partialCallWithExecutionContextRaisesExceptionVoi dMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts, 2146 "partialCallWithExecutionContextRaisesExceptionVoidMethod", TestInte rfaceImplementationV8Internal::partialCallWithExecutionContextRaisesExceptionVoi dMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts,
2147 }; 2147 };
2148 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v 8::None, partialCallWithExecutionContextRaisesExceptionVoidMethodMethodConfigura tion, isolate); 2148 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSig nature, v8::None, partialCallWithExecutionContextRaisesExceptionVoidMethodMethod Configuration);
2149 } 2149 }
2150 #endif // ENABLE(PARTIAL_CONDITION) 2150 #endif // ENABLE(PARTIAL_CONDITION)
2151 #if ENABLE(PARTIAL_CONDITION) 2151 #if ENABLE(PARTIAL_CONDITION)
2152 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2152 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2153 const V8DOMConfiguration::MethodConfiguration partialVoidMethodPartialCa llbackTypeArgMethodConfiguration = { 2153 const V8DOMConfiguration::MethodConfiguration partialVoidMethodPartialCa llbackTypeArgMethodConfiguration = {
2154 "partialVoidMethodPartialCallbackTypeArg", TestInterfaceImplementati onV8Internal::partialVoidMethodPartialCallbackTypeArgMethodCallback, 0, 1, V8DOM Configuration::ExposedToAllScripts, 2154 "partialVoidMethodPartialCallbackTypeArg", TestInterfaceImplementati onV8Internal::partialVoidMethodPartialCallbackTypeArgMethodCallback, 0, 1, V8DOM Configuration::ExposedToAllScripts,
2155 }; 2155 };
2156 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v 8::None, partialVoidMethodPartialCallbackTypeArgMethodConfiguration, isolate); 2156 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSig nature, v8::None, partialVoidMethodPartialCallbackTypeArgMethodConfiguration);
2157 } 2157 }
2158 #endif // ENABLE(PARTIAL_CONDITION) 2158 #endif // ENABLE(PARTIAL_CONDITION)
2159 #if ENABLE(PARTIAL_CONDITION) 2159 #if ENABLE(PARTIAL_CONDITION)
2160 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { 2160 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) {
2161 const V8DOMConfiguration::MethodConfiguration shortMethodWithShortArgume ntImplementedInPrivateScriptMethodConfiguration = { 2161 const V8DOMConfiguration::MethodConfiguration shortMethodWithShortArgume ntImplementedInPrivateScriptMethodConfiguration = {
2162 "shortMethodWithShortArgumentImplementedInPrivateScript", TestInterf aceImplementationV8Internal::shortMethodWithShortArgumentImplementedInPrivateScr iptMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts, 2162 "shortMethodWithShortArgumentImplementedInPrivateScript", TestInterf aceImplementationV8Internal::shortMethodWithShortArgumentImplementedInPrivateScr iptMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts,
2163 }; 2163 };
2164 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v 8::None, shortMethodWithShortArgumentImplementedInPrivateScriptMethodConfigurati on, isolate); 2164 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSig nature, v8::None, shortMethodWithShortArgumentImplementedInPrivateScriptMethodCo nfiguration);
2165 } 2165 }
2166 #endif // ENABLE(PARTIAL_CONDITION) 2166 #endif // ENABLE(PARTIAL_CONDITION)
2167 const V8DOMConfiguration::MethodConfiguration staticVoidMethodPartialOverloa dMethodConfiguration = { 2167 const V8DOMConfiguration::MethodConfiguration staticVoidMethodPartialOverloa dMethodConfiguration = {
2168 "staticVoidMethodPartialOverload", TestInterfaceImplementationV8Internal ::staticVoidMethodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration::Expos edToAllScripts, 2168 "staticVoidMethodPartialOverload", TestInterfaceImplementationV8Internal ::staticVoidMethodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration::Expos edToAllScripts,
2169 }; 2169 };
2170 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature> (), v8::None, staticVoidMethodPartialOverloadMethodConfiguration, isolate); 2170 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, staticVoidMethodPartialOverloadMethodConfiguration);
2171 const V8DOMConfiguration::MethodConfiguration staticPromiseMethodPartialOver loadMethodConfiguration = { 2171 const V8DOMConfiguration::MethodConfiguration staticPromiseMethodPartialOver loadMethodConfiguration = {
2172 "staticPromiseMethodPartialOverload", TestInterfaceImplementationV8Inter nal::staticPromiseMethodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration: :ExposedToAllScripts, 2172 "staticPromiseMethodPartialOverload", TestInterfaceImplementationV8Inter nal::staticPromiseMethodPartialOverloadMethodCallback, 0, 0, V8DOMConfiguration: :ExposedToAllScripts,
2173 }; 2173 };
2174 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature> (), v8::None, staticPromiseMethodPartialOverloadMethodConfiguration, isolate); 2174 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, staticPromiseMethodPartialOverloadMethodConfiguration);
2175 const V8DOMConfiguration::MethodConfiguration partial2StaticVoidMethodMethod Configuration = { 2175 const V8DOMConfiguration::MethodConfiguration partial2StaticVoidMethodMethod Configuration = {
2176 "partial2StaticVoidMethod", TestInterfaceImplementationV8Internal::parti al2StaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts , 2176 "partial2StaticVoidMethod", TestInterfaceImplementationV8Internal::parti al2StaticVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts ,
2177 }; 2177 };
2178 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signature> (), v8::None, partial2StaticVoidMethodMethodConfiguration, isolate); 2178 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S ignature>(), v8::None, partial2StaticVoidMethodMethodConfiguration);
2179 const V8DOMConfiguration::MethodConfiguration toStringMethodConfiguration = { 2179 const V8DOMConfiguration::MethodConfiguration toStringMethodConfiguration = {
2180 "toString", TestInterfaceImplementationV8Internal::toStringMethodCallbac k, 0, 0, V8DOMConfiguration::ExposedToAllScripts, 2180 "toString", TestInterfaceImplementationV8Internal::toStringMethodCallbac k, 0, 0, V8DOMConfiguration::ExposedToAllScripts,
2181 }; 2181 };
2182 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, stati c_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), toStringMethodConf iguration, isolate); 2182 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu re, static_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), toStringM ethodConfiguration);
2183 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin gAttribute"), TestInterfaceImplementationV8Internal::staticStringAttributeAttrib uteGetterCallback, TestInterfaceImplementationV8Internal::staticStringAttributeA ttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyA ttribute>(v8::None), v8::Local<v8::AccessorSignature>(), static_cast<v8::AccessC ontrol>(v8::DEFAULT)); 2183 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin gAttribute"), TestInterfaceImplementationV8Internal::staticStringAttributeAttrib uteGetterCallback, TestInterfaceImplementationV8Internal::staticStringAttributeA ttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyA ttribute>(v8::None), v8::Local<v8::AccessorSignature>(), static_cast<v8::AccessC ontrol>(v8::DEFAULT));
2184 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS taticReadOnlyLongAttribute"), TestInterfaceImplementationV8Internal::implementsS taticReadOnlyLongAttributeAttributeGetterCallback, 0, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8::AccessorSignatu re>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 2184 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS taticReadOnlyLongAttribute"), TestInterfaceImplementationV8Internal::implementsS taticReadOnlyLongAttributeAttributeGetterCallback, 0, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8::AccessorSignatu re>(), static_cast<v8::AccessControl>(v8::DEFAULT));
2185 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS taticStringAttribute"), TestInterfaceImplementationV8Internal::implementsStaticS tringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im plementsStaticStringAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8::AccessorSignatu re>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 2185 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implementsS taticStringAttribute"), TestInterfaceImplementationV8Internal::implementsStaticS tringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im plementsStaticStringAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8::AccessorSignatu re>(), static_cast<v8::AccessControl>(v8::DEFAULT));
2186 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements2 StaticStringAttribute"), TestInterfaceImplementationV8Internal::implements2Stati cStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:: implements2StaticStringAttributeAttributeSetterCallback, v8::External::New(isola te, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8::AccessorSign ature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 2186 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements2 StaticStringAttribute"), TestInterfaceImplementationV8Internal::implements2Stati cStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:: implements2StaticStringAttributeAttributeSetterCallback, v8::External::New(isola te, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8::AccessorSign ature>(), static_cast<v8::AccessControl>(v8::DEFAULT));
2187 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements3 StaticStringAttribute"), TestInterfaceImplementationV8Internal::implements3Stati cStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:: implements3StaticStringAttributeAttributeSetterCallback, v8::External::New(isola te, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8::AccessorSign ature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 2187 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "implements3 StaticStringAttribute"), TestInterfaceImplementationV8Internal::implements3Stati cStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:: implements3StaticStringAttributeAttributeSetterCallback, v8::External::New(isola te, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Local<v8::AccessorSign ature>(), static_cast<v8::AccessControl>(v8::DEFAULT));
2188 #if ENABLE(PARTIAL_CONDITION) 2188 #if ENABLE(PARTIAL_CONDITION)
2189 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partialStat icLongAttribute"), TestInterfaceImplementationV8Internal::partialStaticLongAttri buteAttributeGetterCallback, TestInterfaceImplementationV8Internal::partialStati cLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_cas t<v8::PropertyAttribute>(v8::None), v8::Local<v8::AccessorSignature>(), static_c ast<v8::AccessControl>(v8::DEFAULT)); 2189 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partialStat icLongAttribute"), TestInterfaceImplementationV8Internal::partialStaticLongAttri buteAttributeGetterCallback, TestInterfaceImplementationV8Internal::partialStati cLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_cas t<v8::PropertyAttribute>(v8::None), v8::Local<v8::AccessorSignature>(), static_c ast<v8::AccessControl>(v8::DEFAULT));
2190 #endif // ENABLE(PARTIAL_CONDITION) 2190 #endif // ENABLE(PARTIAL_CONDITION)
2191 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partial2Sta ticLongAttribute"), TestInterfaceImplementationV8Internal::partial2StaticLongAtt ributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::partial2St aticLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_ cast<v8::PropertyAttribute>(v8::None), v8::Local<v8::AccessorSignature>(), stati c_cast<v8::AccessControl>(v8::DEFAULT)); 2191 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "partial2Sta ticLongAttribute"), TestInterfaceImplementationV8Internal::partial2StaticLongAtt ributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::partial2St aticLongAttributeAttributeSetterCallback, v8::External::New(isolate, 0), static_ cast<v8::PropertyAttribute>(v8::None), v8::Local<v8::AccessorSignature>(), stati c_cast<v8::AccessControl>(v8::DEFAULT));
2192 2192
(...skipping 23 matching lines...) Expand all
2216 } 2216 }
2217 2217
2218 void V8TestInterface::installConditionallyEnabledProperties(v8::Local<v8::Object > instanceObject, v8::Isolate* isolate) 2218 void V8TestInterface::installConditionallyEnabledProperties(v8::Local<v8::Object > instanceObject, v8::Isolate* isolate)
2219 { 2219 {
2220 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance Object->GetPrototype()); 2220 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance Object->GetPrototype());
2221 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext()); 2221 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext());
2222 2222
2223 if (context && (context->isWorkerGlobalScope())) { 2223 if (context && (context->isWorkerGlobalScope())) {
2224 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 2224 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
2225 {"workerExposedAttribute", TestInterfaceImplementationV8Internal::worker ExposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:: workerExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; 2225 {"workerExposedAttribute", TestInterfaceImplementationV8Internal::worker ExposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:: workerExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance};
2226 V8DOMConfiguration::installAttribute(instanceObject, prototypeObject, at tributeConfiguration, isolate); 2226 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO bject, attributeConfiguration);
2227 } 2227 }
2228 if (context && (context->isDocument())) { 2228 if (context && (context->isDocument())) {
2229 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 2229 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
2230 {"windowExposedAttribute", TestInterfaceImplementationV8Internal::window ExposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:: windowExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; 2230 {"windowExposedAttribute", TestInterfaceImplementationV8Internal::window ExposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:: windowExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance};
2231 V8DOMConfiguration::installAttribute(instanceObject, prototypeObject, at tributeConfiguration, isolate); 2231 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO bject, attributeConfiguration);
2232 } 2232 }
2233 if (context && context->isDocument() && ContextFeatures::implementsContextNa meEnabled(toDocument(context))) { 2233 if (context && context->isDocument() && ContextFeatures::implementsContextNa meEnabled(toDocument(context))) {
2234 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 2234 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
2235 {"implementsPerContextEnabledNodeAttribute", TestInterfaceImplementation V8Internal::implementsPerContextEnabledNodeAttributeAttributeGetterCallback, Tes tInterfaceImplementationV8Internal::implementsPerContextEnabledNodeAttributeAttr ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts , V8DOMConfiguration::OnInstance}; 2235 {"implementsPerContextEnabledNodeAttribute", TestInterfaceImplementation V8Internal::implementsPerContextEnabledNodeAttributeAttributeGetterCallback, Tes tInterfaceImplementationV8Internal::implementsPerContextEnabledNodeAttributeAttr ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts , V8DOMConfiguration::OnInstance};
2236 V8DOMConfiguration::installAttribute(instanceObject, prototypeObject, at tributeConfiguration, isolate); 2236 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO bject, attributeConfiguration);
2237 } 2237 }
2238 if (context && context->isDocument() && ContextFeatures::partialContextNameE nabled(toDocument(context))) { 2238 if (context && context->isDocument() && ContextFeatures::partialContextNameE nabled(toDocument(context))) {
2239 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 2239 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
2240 {"partial2LongAttribute", TestInterfaceImplementationV8Internal::partial 2LongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::pa rtial2LongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContr ol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati on::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; 2240 {"partial2LongAttribute", TestInterfaceImplementationV8Internal::partial 2LongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::pa rtial2LongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContr ol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati on::ExposedToAllScripts, V8DOMConfiguration::OnInstance};
2241 V8DOMConfiguration::installAttribute(instanceObject, prototypeObject, at tributeConfiguration, isolate); 2241 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO bject, attributeConfiguration);
2242 } 2242 }
2243 if (context && context->isDocument() && ContextFeatures::partialContextNameE nabled(toDocument(context))) { 2243 if (context && context->isDocument() && ContextFeatures::partialContextNameE nabled(toDocument(context))) {
2244 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 2244 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
2245 {"partial2StaticLongAttribute", TestInterfaceImplementationV8Internal::p artial2StaticLongAttributeAttributeGetterCallback, TestInterfaceImplementationV8 Internal::partial2StaticLongAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; 2245 {"partial2StaticLongAttribute", TestInterfaceImplementationV8Internal::p artial2StaticLongAttributeAttributeGetterCallback, TestInterfaceImplementationV8 Internal::partial2StaticLongAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance};
2246 V8DOMConfiguration::installAttribute(instanceObject, prototypeObject, at tributeConfiguration, isolate); 2246 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO bject, attributeConfiguration);
2247 } 2247 }
2248 } 2248 }
2249 2249
2250 void V8TestInterface::installConditionallyEnabledMethods(v8::Local<v8::Object> p rototypeObject, v8::Isolate* isolate) 2250 void V8TestInterface::installConditionallyEnabledMethods(v8::Local<v8::Object> p rototypeObject, v8::Isolate* isolate)
2251 { 2251 {
2252 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT emplate(isolate)); 2252 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT emplate(isolate));
2253 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext()); 2253 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext());
2254 ASSERT(context); 2254 ASSERT(context);
2255 2255
2256 if (context && (context->isWorkerGlobalScope())) { 2256 if (context && (context->isWorkerGlobalScope())) {
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
2395 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2395 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&))
2396 { 2396 {
2397 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method; 2397 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method;
2398 } 2398 }
2399 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2399 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&))
2400 { 2400 {
2401 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method; 2401 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method;
2402 } 2402 }
2403 } // namespace blink 2403 } // namespace blink
2404 #endif // ENABLE(CONDITION) 2404 #endif // ENABLE(CONDITION)
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestException.cpp ('k') | Source/bindings/tests/results/core/V8TestInterface2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698