OLD | NEW |
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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 } | 288 } |
289 | 289 |
290 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::FunctionCallbackInfo<v8::Value>& info) | 290 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::FunctionCallbackInfo<v8::Value>& info) |
291 { | 291 { |
292 v8::Local<v8::Object> holder = info.Holder(); | 292 v8::Local<v8::Object> holder = info.Holder(); |
293 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumAttrib
ute", "TestInterface", holder, info.GetIsolate()); | 293 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumAttrib
ute", "TestInterface", holder, info.GetIsolate()); |
294 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 294 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
295 V8StringResource<> cppValue = v8Value; | 295 V8StringResource<> cppValue = v8Value; |
296 if (!cppValue.prepare()) | 296 if (!cppValue.prepare()) |
297 return; | 297 return; |
298 static const char* validValues[] = { | 298 const char* validValues[] = { |
299 "", | 299 "", |
300 "EnumValue1", | 300 "EnumValue1", |
301 "EnumValue2", | 301 "EnumValue2", |
302 "EnumValue3", | 302 "EnumValue3", |
303 }; | 303 }; |
304 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test
Enum", exceptionState)) { | 304 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test
Enum", exceptionState)) { |
305 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes
sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message())); | 305 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes
sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message())); |
306 return; | 306 return; |
307 } | 307 } |
308 impl->setTestEnumAttribute(cppValue); | 308 impl->setTestEnumAttribute(cppValue); |
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 | 1121 |
1122 #if ENABLE(PARTIAL_CONDITION) | 1122 #if ENABLE(PARTIAL_CONDITION) |
1123 static void partialPartialEnumTypeAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) | 1123 static void partialPartialEnumTypeAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
1124 { | 1124 { |
1125 v8::Local<v8::Object> holder = info.Holder(); | 1125 v8::Local<v8::Object> holder = info.Holder(); |
1126 ExceptionState exceptionState(ExceptionState::SetterContext, "partialPartial
EnumTypeAttribute", "TestInterface", holder, info.GetIsolate()); | 1126 ExceptionState exceptionState(ExceptionState::SetterContext, "partialPartial
EnumTypeAttribute", "TestInterface", holder, info.GetIsolate()); |
1127 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 1127 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
1128 V8StringResource<> cppValue = v8Value; | 1128 V8StringResource<> cppValue = v8Value; |
1129 if (!cppValue.prepare()) | 1129 if (!cppValue.prepare()) |
1130 return; | 1130 return; |
1131 static const char* validValues[] = { | 1131 const char* validValues[] = { |
1132 "foo", | 1132 "foo", |
1133 "bar", | 1133 "bar", |
1134 }; | 1134 }; |
1135 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Part
ialEnumType", exceptionState)) { | 1135 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Part
ialEnumType", exceptionState)) { |
1136 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes
sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message())); | 1136 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes
sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message())); |
1137 return; | 1137 return; |
1138 } | 1138 } |
1139 TestPartialInterface::setPartialPartialEnumTypeAttribute(*impl, cppValue); | 1139 TestPartialInterface::setPartialPartialEnumTypeAttribute(*impl, cppValue); |
1140 } | 1140 } |
1141 #endif // ENABLE(PARTIAL_CONDITION) | 1141 #endif // ENABLE(PARTIAL_CONDITION) |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1346 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 1346 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
1347 exceptionState.throwIfNeeded(); | 1347 exceptionState.throwIfNeeded(); |
1348 return; | 1348 return; |
1349 } | 1349 } |
1350 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 1350 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
1351 V8StringResource<> testEnumArg; | 1351 V8StringResource<> testEnumArg; |
1352 { | 1352 { |
1353 testEnumArg = info[0]; | 1353 testEnumArg = info[0]; |
1354 if (!testEnumArg.prepare()) | 1354 if (!testEnumArg.prepare()) |
1355 return; | 1355 return; |
1356 static const char* validValues[] = { | 1356 const char* validValues[] = { |
1357 "", | 1357 "", |
1358 "EnumValue1", | 1358 "EnumValue1", |
1359 "EnumValue2", | 1359 "EnumValue2", |
1360 "EnumValue3", | 1360 "EnumValue3", |
1361 }; | 1361 }; |
1362 if (!isValidEnum(testEnumArg, validValues, WTF_ARRAY_LENGTH(validValues)
, "TestEnum", exceptionState)) { | 1362 if (!isValidEnum(testEnumArg, validValues, WTF_ARRAY_LENGTH(validValues)
, "TestEnum", exceptionState)) { |
1363 exceptionState.throwIfNeeded(); | 1363 exceptionState.throwIfNeeded(); |
1364 return; | 1364 return; |
1365 } | 1365 } |
1366 } | 1366 } |
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2319 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate); | 2319 DOMDataStore::setWrapperReference(wrapper, referencedName, isolate); |
2320 } | 2320 } |
2321 } | 2321 } |
2322 | 2322 |
2323 // Suppress warning: global constructors, because AttributeConfiguration is triv
ial | 2323 // Suppress warning: global constructors, because AttributeConfiguration is triv
ial |
2324 // and does not depend on another global objects. | 2324 // and does not depend on another global objects. |
2325 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 2325 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
2326 #pragma clang diagnostic push | 2326 #pragma clang diagnostic push |
2327 #pragma clang diagnostic ignored "-Wglobal-constructors" | 2327 #pragma clang diagnostic ignored "-Wglobal-constructors" |
2328 #endif | 2328 #endif |
2329 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute
s[] = { | 2329 const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttributes[] = { |
2330 {"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}, | 2330 {"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}, |
2331 {"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}, | 2331 {"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}, |
2332 {"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}, | 2332 {"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}, |
2333 }; | 2333 }; |
2334 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) | 2334 #if defined(COMPONENT_BUILD) && defined(WIN32) && COMPILER(CLANG) |
2335 #pragma clang diagnostic pop | 2335 #pragma clang diagnostic pop |
2336 #endif | 2336 #endif |
2337 | 2337 |
2338 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceAccessors[
] = { | 2338 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceAccessors[] = { |
2339 {"testInterfaceAttribute", TestInterfaceImplementationV8Internal::testInterf
aceAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::test
InterfaceAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8:
:PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCon
figuration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 2339 {"testInterfaceAttribute", TestInterfaceImplementationV8Internal::testInterf
aceAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::test
InterfaceAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8:
:PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCon
figuration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2340 {"doubleAttribute", TestInterfaceImplementationV8Internal::doubleAttributeAt
tributeGetterCallback, TestInterfaceImplementationV8Internal::doubleAttributeAtt
ributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v
8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototy
pe, V8DOMConfiguration::CheckHolder}, | 2340 {"doubleAttribute", TestInterfaceImplementationV8Internal::doubleAttributeAt
tributeGetterCallback, TestInterfaceImplementationV8Internal::doubleAttributeAtt
ributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v
8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototy
pe, V8DOMConfiguration::CheckHolder}, |
2341 {"floatAttribute", TestInterfaceImplementationV8Internal::floatAttributeAttr
ibuteGetterCallback, TestInterfaceImplementationV8Internal::floatAttributeAttrib
uteSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::
None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype,
V8DOMConfiguration::CheckHolder}, | 2341 {"floatAttribute", TestInterfaceImplementationV8Internal::floatAttributeAttr
ibuteGetterCallback, TestInterfaceImplementationV8Internal::floatAttributeAttrib
uteSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::
None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype,
V8DOMConfiguration::CheckHolder}, |
2342 {"unrestrictedDoubleAttribute", TestInterfaceImplementationV8Internal::unres
trictedDoubleAttributeAttributeGetterCallback, TestInterfaceImplementationV8Inte
rnal::unrestrictedDoubleAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT,
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 2342 {"unrestrictedDoubleAttribute", TestInterfaceImplementationV8Internal::unres
trictedDoubleAttributeAttributeGetterCallback, TestInterfaceImplementationV8Inte
rnal::unrestrictedDoubleAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT,
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2343 {"unrestrictedFloatAttribute", TestInterfaceImplementationV8Internal::unrest
rictedFloatAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern
al::unrestrictedFloatAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, sta
tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip
ts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 2343 {"unrestrictedFloatAttribute", TestInterfaceImplementationV8Internal::unrest
rictedFloatAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern
al::unrestrictedFloatAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, sta
tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip
ts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2344 {"testEnumAttribute", TestInterfaceImplementationV8Internal::testEnumAttribu
teAttributeGetterCallback, TestInterfaceImplementationV8Internal::testEnumAttrib
uteAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttrib
ute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP
rototype, V8DOMConfiguration::CheckHolder}, | 2344 {"testEnumAttribute", TestInterfaceImplementationV8Internal::testEnumAttribu
teAttributeGetterCallback, TestInterfaceImplementationV8Internal::testEnumAttrib
uteAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttrib
ute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnP
rototype, V8DOMConfiguration::CheckHolder}, |
2345 {"stringOrDoubleAttribute", TestInterfaceImplementationV8Internal::stringOrD
oubleAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::st
ringOrDoubleAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<
v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOM
Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 2345 {"stringOrDoubleAttribute", TestInterfaceImplementationV8Internal::stringOrD
oubleAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::st
ringOrDoubleAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<
v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOM
Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2346 {"staticStringAttribute", TestInterfaceImplementationV8Internal::staticStrin
gAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::static
StringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::Pr
opertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfig
uration::OnInterface, V8DOMConfiguration::CheckHolder}, | 2346 {"staticStringAttribute", TestInterfaceImplementationV8Internal::staticStrin
gAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::static
StringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::Pr
opertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfig
uration::OnInterface, V8DOMConfiguration::CheckHolder}, |
2347 {"staticReturnDOMWrapperAttribute", TestInterfaceImplementationV8Internal::s
taticReturnDOMWrapperAttributeAttributeGetterCallback, TestInterfaceImplementati
onV8Internal::staticReturnDOMWrapperAttributeAttributeSetterCallback, 0, 0, 0, v
8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHol
der}, | 2347 {"staticReturnDOMWrapperAttribute", TestInterfaceImplementationV8Internal::s
taticReturnDOMWrapperAttributeAttributeGetterCallback, TestInterfaceImplementati
onV8Internal::staticReturnDOMWrapperAttributeAttributeSetterCallback, 0, 0, 0, v
8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHol
der}, |
2348 {"staticReadOnlyStringAttribute", TestInterfaceImplementationV8Internal::sta
ticReadOnlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, v8::DEFAULT, stat
ic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScript
s, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}, | 2348 {"staticReadOnlyStringAttribute", TestInterfaceImplementationV8Internal::sta
ticReadOnlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, v8::DEFAULT, stat
ic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScript
s, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}, |
2349 {"staticReadOnlyReturnDOMWrapperAttribute", TestInterfaceImplementationV8Int
ernal::staticReadOnlyReturnDOMWrapperAttributeAttributeGetterCallback, 0, 0, 0,
0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration
::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::Chec
kHolder}, | 2349 {"staticReadOnlyReturnDOMWrapperAttribute", TestInterfaceImplementationV8Int
ernal::staticReadOnlyReturnDOMWrapperAttributeAttributeGetterCallback, 0, 0, 0,
0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration
::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::Chec
kHolder}, |
2350 {"legacyInterfaceTypeCheckingAttribute", TestInterfaceImplementationV8Intern
al::legacyInterfaceTypeCheckingAttributeAttributeGetterCallback, TestInterfaceIm
plementationV8Internal::legacyInterfaceTypeCheckingAttributeAttributeSetterCallb
ack, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMCo
nfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigur
ation::CheckHolder}, | 2350 {"legacyInterfaceTypeCheckingAttribute", TestInterfaceImplementationV8Intern
al::legacyInterfaceTypeCheckingAttributeAttributeGetterCallback, TestInterfaceIm
plementationV8Internal::legacyInterfaceTypeCheckingAttributeAttributeSetterCallb
ack, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMCo
nfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfigur
ation::CheckHolder}, |
2351 {"alwaysExposedAttribute", TestInterfaceImplementationV8Internal::alwaysExpo
sedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::alwa
ysExposedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8:
:PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCon
figuration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 2351 {"alwaysExposedAttribute", TestInterfaceImplementationV8Internal::alwaysExpo
sedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::alwa
ysExposedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8:
:PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCon
figuration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2352 {"lenientThisAttribute", TestInterfaceImplementationV8Internal::lenientThisA
ttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::lenientT
hisAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::Prope
rtyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigura
tion::OnPrototype, V8DOMConfiguration::DoNotCheckHolder}, | 2352 {"lenientThisAttribute", TestInterfaceImplementationV8Internal::lenientThisA
ttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::lenientT
hisAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::Prope
rtyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigura
tion::OnPrototype, V8DOMConfiguration::DoNotCheckHolder}, |
2353 {"implementsStaticReadOnlyLongAttribute", TestInterfaceImplementationV8Inter
nal::implementsStaticReadOnlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, v
8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHol
der}, | 2353 {"implementsStaticReadOnlyLongAttribute", TestInterfaceImplementationV8Inter
nal::implementsStaticReadOnlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, v
8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHol
der}, |
2354 {"implementsStaticStringAttribute", TestInterfaceImplementationV8Internal::i
mplementsStaticStringAttributeAttributeGetterCallback, TestInterfaceImplementati
onV8Internal::implementsStaticStringAttributeAttributeSetterCallback, 0, 0, 0, v
8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHol
der}, | 2354 {"implementsStaticStringAttribute", TestInterfaceImplementationV8Internal::i
mplementsStaticStringAttributeAttributeGetterCallback, TestInterfaceImplementati
onV8Internal::implementsStaticStringAttributeAttributeSetterCallback, 0, 0, 0, v
8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHol
der}, |
2355 {"implementsReadonlyStringAttribute", TestInterfaceImplementationV8Internal:
:implementsReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, v8::DEFAU
LT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA
llScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 2355 {"implementsReadonlyStringAttribute", TestInterfaceImplementationV8Internal:
:implementsReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, v8::DEFAU
LT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA
llScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2356 {"implementsStringAttribute", TestInterfaceImplementationV8Internal::impleme
ntsStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal
::implementsStringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static
_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts,
V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 2356 {"implementsStringAttribute", TestInterfaceImplementationV8Internal::impleme
ntsStringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal
::implementsStringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static
_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts,
V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2357 {"implementsNodeAttribute", TestInterfaceImplementationV8Internal::implement
sNodeAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im
plementsNodeAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<
v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOM
Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 2357 {"implementsNodeAttribute", TestInterfaceImplementationV8Internal::implement
sNodeAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::im
plementsNodeAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<
v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOM
Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2358 {"implementsEventHandlerAttribute", TestInterfaceImplementationV8Internal::i
mplementsEventHandlerAttributeAttributeGetterCallback, TestInterfaceImplementati
onV8Internal::implementsEventHandlerAttributeAttributeSetterCallback, 0, 0, 0, v
8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol
der}, | 2358 {"implementsEventHandlerAttribute", TestInterfaceImplementationV8Internal::i
mplementsEventHandlerAttributeAttributeGetterCallback, TestInterfaceImplementati
onV8Internal::implementsEventHandlerAttributeAttributeSetterCallback, 0, 0, 0, v
8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHol
der}, |
2359 {"implements3StringAttribute", TestInterfaceImplementationV8Internal::implem
ents3StringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern
al::implements3StringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, sta
tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip
ts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 2359 {"implements3StringAttribute", TestInterfaceImplementationV8Internal::implem
ents3StringAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern
al::implements3StringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, sta
tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip
ts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2360 {"implements3StaticStringAttribute", TestInterfaceImplementationV8Internal::
implements3StaticStringAttributeAttributeGetterCallback, TestInterfaceImplementa
tionV8Internal::implements3StaticStringAttributeAttributeSetterCallback, 0, 0, 0
, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration:
:ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::Check
Holder}, | 2360 {"implements3StaticStringAttribute", TestInterfaceImplementationV8Internal::
implements3StaticStringAttributeAttributeGetterCallback, TestInterfaceImplementa
tionV8Internal::implements3StaticStringAttributeAttributeSetterCallback, 0, 0, 0
, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration:
:ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::Check
Holder}, |
2361 {"partial2LongAttribute", TestInterfaceImplementationV8Internal::partial2Lon
gAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::partia
l2LongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::Pr
opertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfig
uration::OnPrototype, V8DOMConfiguration::CheckHolder}, | 2361 {"partial2LongAttribute", TestInterfaceImplementationV8Internal::partial2Lon
gAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::partia
l2LongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::Pr
opertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfig
uration::OnPrototype, V8DOMConfiguration::CheckHolder}, |
2362 {"partial2StaticLongAttribute", TestInterfaceImplementationV8Internal::parti
al2StaticLongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Inte
rnal::partial2StaticLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT,
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}, | 2362 {"partial2StaticLongAttribute", TestInterfaceImplementationV8Internal::parti
al2StaticLongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Inte
rnal::partial2StaticLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT,
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllSc
ripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}, |
2363 }; | 2363 }; |
2364 | 2364 |
2365 static const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] =
{ | 2365 const V8DOMConfiguration::MethodConfiguration V8TestInterfaceMethods[] = { |
2366 {"voidMethodTestInterfaceEmptyArg", TestInterfaceImplementationV8Internal::v
oidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedT
oAllScripts}, | 2366 {"voidMethodTestInterfaceEmptyArg", TestInterfaceImplementationV8Internal::v
oidMethodTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedT
oAllScripts}, |
2367 {"voidMethodDoubleArgFloatArg", TestInterfaceImplementationV8Internal::voidM
ethodDoubleArgFloatArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScri
pts}, | 2367 {"voidMethodDoubleArgFloatArg", TestInterfaceImplementationV8Internal::voidM
ethodDoubleArgFloatArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScri
pts}, |
2368 {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", TestInterfaceImpleme
ntationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCall
back, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, | 2368 {"voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg", TestInterfaceImpleme
ntationV8Internal::voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCall
back, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, |
2369 {"voidMethodTestEnumArg", TestInterfaceImplementationV8Internal::voidMethodT
estEnumArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 2369 {"voidMethodTestEnumArg", TestInterfaceImplementationV8Internal::voidMethodT
estEnumArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
2370 {"voidMethod", TestInterfaceImplementationV8Internal::voidMethodMethodCallba
ck, TestInterfaceImplementationV8Internal::voidMethodMethodCallbackForMainWorld,
0, V8DOMConfiguration::ExposedToAllScripts}, | 2370 {"voidMethod", TestInterfaceImplementationV8Internal::voidMethodMethodCallba
ck, TestInterfaceImplementationV8Internal::voidMethodMethodCallbackForMainWorld,
0, V8DOMConfiguration::ExposedToAllScripts}, |
2371 {"alwaysExposedMethod", TestInterfaceImplementationV8Internal::alwaysExposed
MethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 2371 {"alwaysExposedMethod", TestInterfaceImplementationV8Internal::alwaysExposed
MethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
2372 {"legacyInterfaceTypeCheckingMethod", TestInterfaceImplementationV8Internal:
:legacyInterfaceTypeCheckingMethodMethodCallback, 0, 1, V8DOMConfiguration::Expo
sedToAllScripts}, | 2372 {"legacyInterfaceTypeCheckingMethod", TestInterfaceImplementationV8Internal:
:legacyInterfaceTypeCheckingMethodMethodCallback, 0, 1, V8DOMConfiguration::Expo
sedToAllScripts}, |
2373 {"implementsVoidMethod", TestInterfaceImplementationV8Internal::implementsVo
idMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 2373 {"implementsVoidMethod", TestInterfaceImplementationV8Internal::implementsVo
idMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
2374 {"implementsComplexMethod", TestInterfaceImplementationV8Internal::implement
sComplexMethodMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, | 2374 {"implementsComplexMethod", TestInterfaceImplementationV8Internal::implement
sComplexMethodMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAllScripts}, |
2375 {"implementsCustomVoidMethod", TestInterfaceImplementationV8Internal::implem
entsCustomVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScript
s}, | 2375 {"implementsCustomVoidMethod", TestInterfaceImplementationV8Internal::implem
entsCustomVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScript
s}, |
(...skipping 15 matching lines...) Expand all Loading... |
2391 V8TestInterfaceAttributes, WTF_ARRAY_LENGTH(V8TestInterfaceAttribute
s), | 2391 V8TestInterfaceAttributes, WTF_ARRAY_LENGTH(V8TestInterfaceAttribute
s), |
2392 V8TestInterfaceAccessors, WTF_ARRAY_LENGTH(V8TestInterfaceAccessors)
, | 2392 V8TestInterfaceAccessors, WTF_ARRAY_LENGTH(V8TestInterfaceAccessors)
, |
2393 V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods)); | 2393 V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods)); |
2394 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 2394 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
2395 ALLOW_UNUSED_LOCAL(instanceTemplate); | 2395 ALLOW_UNUSED_LOCAL(instanceTemplate); |
2396 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 2396 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
2397 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 2397 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
2398 ExecutionContext* context = currentExecutionContext(isolate); | 2398 ExecutionContext* context = currentExecutionContext(isolate); |
2399 ALLOW_UNUSED_LOCAL(context); | 2399 ALLOW_UNUSED_LOCAL(context); |
2400 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 2400 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
2401 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ | 2401 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration =
\ |
2402 {"conditionalLongAttribute", TestInterfaceImplementationV8Internal::cond
itionalLongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern
al::conditionalLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, stati
c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts
, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 2402 {"conditionalLongAttribute", TestInterfaceImplementationV8Internal::cond
itionalLongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Intern
al::conditionalLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, stati
c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts
, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2403 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); | 2403 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); |
2404 } | 2404 } |
2405 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 2405 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
2406 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ | 2406 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration =
\ |
2407 {"conditionalReadOnlyLongAttribute", TestInterfaceImplementationV8Intern
al::conditionalReadOnlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, v8::DEF
AULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedT
oAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 2407 {"conditionalReadOnlyLongAttribute", TestInterfaceImplementationV8Intern
al::conditionalReadOnlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, v8::DEF
AULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedT
oAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2408 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); | 2408 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); |
2409 } | 2409 } |
2410 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 2410 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
2411 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ | 2411 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration =
\ |
2412 {"staticConditionalReadOnlyLongAttribute", TestInterfaceImplementationV8
Internal::staticConditionalReadOnlyLongAttributeAttributeGetterCallback, 0, 0, 0
, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati
on::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::Ch
eckHolder}; | 2412 {"staticConditionalReadOnlyLongAttribute", TestInterfaceImplementationV8
Internal::staticConditionalReadOnlyLongAttributeAttributeGetterCallback, 0, 0, 0
, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati
on::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::Ch
eckHolder}; |
2413 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); | 2413 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); |
2414 } | 2414 } |
2415 if (RuntimeEnabledFeatures::implementsFeatureNameEnabled()) { | 2415 if (RuntimeEnabledFeatures::implementsFeatureNameEnabled()) { |
2416 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ | 2416 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration =
\ |
2417 {"implementsRuntimeEnabledNodeAttribute", TestInterfaceImplementationV8I
nternal::implementsRuntimeEnabledNodeAttributeAttributeGetterCallback, TestInter
faceImplementationV8Internal::implementsRuntimeEnabledNodeAttributeAttributeSett
erCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None),
V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMC
onfiguration::CheckHolder}; | 2417 {"implementsRuntimeEnabledNodeAttribute", TestInterfaceImplementationV8I
nternal::implementsRuntimeEnabledNodeAttributeAttributeGetterCallback, TestInter
faceImplementationV8Internal::implementsRuntimeEnabledNodeAttributeAttributeSett
erCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None),
V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMC
onfiguration::CheckHolder}; |
2418 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); | 2418 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); |
2419 } | 2419 } |
2420 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) { | 2420 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) { |
2421 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ | 2421 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration =
\ |
2422 {"implements2StaticStringAttribute", TestInterfaceImplementationV8Intern
al::implements2StaticStringAttributeAttributeGetterCallback, TestInterfaceImplem
entationV8Internal::implements2StaticStringAttributeAttributeSetterCallback, 0,
0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat
ion::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::C
heckHolder}; | 2422 {"implements2StaticStringAttribute", TestInterfaceImplementationV8Intern
al::implements2StaticStringAttributeAttributeGetterCallback, TestInterfaceImplem
entationV8Internal::implements2StaticStringAttributeAttributeSetterCallback, 0,
0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat
ion::ExposedToAllScripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::C
heckHolder}; |
2423 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); | 2423 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); |
2424 } | 2424 } |
2425 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) { | 2425 if (RuntimeEnabledFeatures::implements2FeatureNameEnabled()) { |
2426 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ | 2426 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration =
\ |
2427 {"implements2StringAttribute", TestInterfaceImplementationV8Internal::im
plements2StringAttributeAttributeGetterCallback, TestInterfaceImplementationV8In
ternal::implements2StringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT,
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllS
cripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 2427 {"implements2StringAttribute", TestInterfaceImplementationV8Internal::im
plements2StringAttributeAttributeGetterCallback, TestInterfaceImplementationV8In
ternal::implements2StringAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT,
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllS
cripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2428 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); | 2428 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); |
2429 } | 2429 } |
2430 #if ENABLE(PARTIAL_CONDITION) | 2430 #if ENABLE(PARTIAL_CONDITION) |
2431 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 2431 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
2432 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ | 2432 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration =
\ |
2433 {"partialLongAttribute", TestInterfaceImplementationV8Internal::partialL
ongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::part
ialLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::P
ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfi
guration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 2433 {"partialLongAttribute", TestInterfaceImplementationV8Internal::partialL
ongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::part
ialLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::P
ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfi
guration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2434 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); | 2434 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); |
2435 } | 2435 } |
2436 #endif // ENABLE(PARTIAL_CONDITION) | 2436 #endif // ENABLE(PARTIAL_CONDITION) |
2437 #if ENABLE(PARTIAL_CONDITION) | 2437 #if ENABLE(PARTIAL_CONDITION) |
2438 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 2438 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
2439 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ | 2439 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration =
\ |
2440 {"partialStaticLongAttribute", TestInterfaceImplementationV8Internal::pa
rtialStaticLongAttributeAttributeGetterCallback, TestInterfaceImplementationV8In
ternal::partialStaticLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT,
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllS
cripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}; | 2440 {"partialStaticLongAttribute", TestInterfaceImplementationV8Internal::pa
rtialStaticLongAttributeAttributeGetterCallback, TestInterfaceImplementationV8In
ternal::partialStaticLongAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT,
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllS
cripts, V8DOMConfiguration::OnInterface, V8DOMConfiguration::CheckHolder}; |
2441 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); | 2441 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); |
2442 } | 2442 } |
2443 #endif // ENABLE(PARTIAL_CONDITION) | 2443 #endif // ENABLE(PARTIAL_CONDITION) |
2444 #if ENABLE(PARTIAL_CONDITION) | 2444 #if ENABLE(PARTIAL_CONDITION) |
2445 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 2445 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
2446 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ | 2446 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration =
\ |
2447 {"partialCallWithExecutionContextLongAttribute", TestInterfaceImplementa
tionV8Internal::partialCallWithExecutionContextLongAttributeAttributeGetterCallb
ack, TestInterfaceImplementationV8Internal::partialCallWithExecutionContextLongA
ttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyA
ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration
::OnPrototype, V8DOMConfiguration::CheckHolder}; | 2447 {"partialCallWithExecutionContextLongAttribute", TestInterfaceImplementa
tionV8Internal::partialCallWithExecutionContextLongAttributeAttributeGetterCallb
ack, TestInterfaceImplementationV8Internal::partialCallWithExecutionContextLongA
ttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyA
ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration
::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2448 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); | 2448 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); |
2449 } | 2449 } |
2450 #endif // ENABLE(PARTIAL_CONDITION) | 2450 #endif // ENABLE(PARTIAL_CONDITION) |
2451 #if ENABLE(PARTIAL_CONDITION) | 2451 #if ENABLE(PARTIAL_CONDITION) |
2452 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 2452 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
2453 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ | 2453 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration =
\ |
2454 {"partialPartialEnumTypeAttribute", TestInterfaceImplementationV8Interna
l::partialPartialEnumTypeAttributeAttributeGetterCallback, TestInterfaceImplemen
tationV8Internal::partialPartialEnumTypeAttributeAttributeSetterCallback, 0, 0,
0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration
::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec
kHolder}; | 2454 {"partialPartialEnumTypeAttribute", TestInterfaceImplementationV8Interna
l::partialPartialEnumTypeAttributeAttributeGetterCallback, TestInterfaceImplemen
tationV8Internal::partialPartialEnumTypeAttributeAttributeSetterCallback, 0, 0,
0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration
::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Chec
kHolder}; |
2455 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); | 2455 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); |
2456 } | 2456 } |
2457 #endif // ENABLE(PARTIAL_CONDITION) | 2457 #endif // ENABLE(PARTIAL_CONDITION) |
2458 #if ENABLE(PARTIAL_CONDITION) | 2458 #if ENABLE(PARTIAL_CONDITION) |
2459 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 2459 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
2460 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = \ | 2460 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration =
\ |
2461 {"stringAttribute", TestInterfaceImplementationV8Internal::stringAttribu
teAttributeGetterCallback, TestInterfaceImplementationV8Internal::stringAttribut
eAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribut
e>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPro
totype, V8DOMConfiguration::CheckHolder}; | 2461 {"stringAttribute", TestInterfaceImplementationV8Internal::stringAttribu
teAttributeGetterCallback, TestInterfaceImplementationV8Internal::stringAttribut
eAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::PropertyAttribut
e>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnPro
totype, V8DOMConfiguration::CheckHolder}; |
2462 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); | 2462 V8DOMConfiguration::installAccessor(isolate, instanceTemplate, prototype
Template, functionTemplate, defaultSignature, accessorConfiguration); |
2463 } | 2463 } |
2464 #endif // ENABLE(PARTIAL_CONDITION) | 2464 #endif // ENABLE(PARTIAL_CONDITION) |
2465 static const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConsta
nts[] = { | 2465 const V8DOMConfiguration::ConstantConfiguration V8TestInterfaceConstants[] =
{ |
2466 {"UNSIGNED_LONG", 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong}, | 2466 {"UNSIGNED_LONG", 0, 0, V8DOMConfiguration::ConstantTypeUnsignedLong}, |
2467 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort}, | 2467 {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort}, |
2468 {"IMPLEMENTS_CONSTANT_1", 1, 0, V8DOMConfiguration::ConstantTypeUnsigned
Short}, | 2468 {"IMPLEMENTS_CONSTANT_1", 1, 0, V8DOMConfiguration::ConstantTypeUnsigned
Short}, |
2469 {"IMPLEMENTS_CONSTANT_2", 2, 0, V8DOMConfiguration::ConstantTypeUnsigned
Short}, | 2469 {"IMPLEMENTS_CONSTANT_2", 2, 0, V8DOMConfiguration::ConstantTypeUnsigned
Short}, |
2470 {"PARTIAL2_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUnsign
edShort}, | 2470 {"PARTIAL2_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::ConstantTypeUnsign
edShort}, |
2471 }; | 2471 }; |
2472 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem
plate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); | 2472 V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTem
plate, V8TestInterfaceConstants, WTF_ARRAY_LENGTH(V8TestInterfaceConstants)); |
2473 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { | 2473 if (RuntimeEnabledFeatures::partialFeatureNameEnabled()) { |
2474 static const V8DOMConfiguration::ConstantConfiguration constantPartialUn
signedShortConfiguration = {"PARTIAL_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::
ConstantTypeUnsignedShort}; | 2474 const V8DOMConfiguration::ConstantConfiguration constantPartialUnsignedS
hortConfiguration = {"PARTIAL_UNSIGNED_SHORT", 0, 0, V8DOMConfiguration::Constan
tTypeUnsignedShort}; |
2475 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype
Template, constantPartialUnsignedShortConfiguration); | 2475 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype
Template, constantPartialUnsignedShortConfiguration); |
2476 static const V8DOMConfiguration::ConstantConfiguration constantPartialDo
ubleConfiguration = {"PARTIAL_DOUBLE", 0, 3.14, V8DOMConfiguration::ConstantType
Double}; | 2476 const V8DOMConfiguration::ConstantConfiguration constantPartialDoubleCon
figuration = {"PARTIAL_DOUBLE", 0, 3.14, V8DOMConfiguration::ConstantTypeDouble}
; |
2477 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype
Template, constantPartialDoubleConfiguration); | 2477 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype
Template, constantPartialDoubleConfiguration); |
2478 } | 2478 } |
2479 { | 2479 { |
2480 v8::IndexedPropertyHandlerConfiguration config(TestInterfaceImplementati
onV8Internal::indexedPropertyGetterCallback, TestInterfaceImplementationV8Intern
al::indexedPropertySetterCallback, 0, TestInterfaceImplementationV8Internal::ind
exedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterfaceImplementati
on>); | 2480 v8::IndexedPropertyHandlerConfiguration config(TestInterfaceImplementati
onV8Internal::indexedPropertyGetterCallback, TestInterfaceImplementationV8Intern
al::indexedPropertySetterCallback, 0, TestInterfaceImplementationV8Internal::ind
exedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterfaceImplementati
on>); |
2481 config.flags = v8::PropertyHandlerFlags::kAllCanRead; | 2481 config.flags = v8::PropertyHandlerFlags::kAllCanRead; |
2482 functionTemplate->InstanceTemplate()->SetHandler(config); | 2482 functionTemplate->InstanceTemplate()->SetHandler(config); |
2483 } | 2483 } |
2484 { | 2484 { |
2485 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr
ings); | 2485 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr
ings); |
2486 flags |= static_cast<int>(v8::PropertyHandlerFlags::kAllCanRead); | 2486 flags |= static_cast<int>(v8::PropertyHandlerFlags::kAllCanRead); |
2487 flags |= static_cast<int>(v8::PropertyHandlerFlags::kNonMasking); | 2487 flags |= static_cast<int>(v8::PropertyHandlerFlags::kNonMasking); |
2488 v8::NamedPropertyHandlerConfiguration config(TestInterfaceImplementation
V8Internal::namedPropertyGetterCallback, TestInterfaceImplementationV8Internal::
namedPropertySetterCallback, TestInterfaceImplementationV8Internal::namedPropert
yQueryCallback, TestInterfaceImplementationV8Internal::namedPropertyDeleterCallb
ack, TestInterfaceImplementationV8Internal::namedPropertyEnumeratorCallback, v8:
:Handle<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(flags)); | 2488 v8::NamedPropertyHandlerConfiguration config(TestInterfaceImplementation
V8Internal::namedPropertyGetterCallback, TestInterfaceImplementationV8Internal::
namedPropertySetterCallback, TestInterfaceImplementationV8Internal::namedPropert
yQueryCallback, TestInterfaceImplementationV8Internal::namedPropertyDeleterCallb
ack, TestInterfaceImplementationV8Internal::namedPropertyEnumeratorCallback, v8:
:Handle<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(flags)); |
2489 functionTemplate->InstanceTemplate()->SetHandler(config); | 2489 functionTemplate->InstanceTemplate()->SetHandler(config); |
2490 } | 2490 } |
2491 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, TestInterfaceImplementationV8I
nternal::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; | 2491 const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedIterator
Configuration = { v8::Symbol::GetIterator, TestInterfaceImplementationV8Internal
::iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; |
2492 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu
re, v8::DontDelete, symbolKeyedIteratorConfiguration); | 2492 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu
re, v8::DontDelete, symbolKeyedIteratorConfiguration); |
2493 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce::legacyCallCustom); | 2493 functionTemplate->InstanceTemplate()->SetCallAsFunctionHandler(V8TestInterfa
ce::legacyCallCustom); |
2494 const V8DOMConfiguration::MethodConfiguration alwaysExposedStaticMethodMetho
dConfiguration = { | 2494 const V8DOMConfiguration::MethodConfiguration alwaysExposedStaticMethodMetho
dConfiguration = { |
2495 "alwaysExposedStaticMethod", TestInterfaceImplementationV8Internal::alwa
ysExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip
ts, | 2495 "alwaysExposedStaticMethod", TestInterfaceImplementationV8Internal::alwa
ysExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScrip
ts, |
2496 }; | 2496 }; |
2497 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S
ignature>(), v8::None, alwaysExposedStaticMethodMethodConfiguration); | 2497 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S
ignature>(), v8::None, alwaysExposedStaticMethodMethodConfiguration); |
2498 if (context && (context->isWorkerGlobalScope())) { | 2498 if (context && (context->isWorkerGlobalScope())) { |
2499 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodM
ethodConfiguration = { | 2499 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodM
ethodConfiguration = { |
2500 "workerExposedStaticMethod", TestInterfaceImplementationV8Internal::
workerExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS
cripts, | 2500 "workerExposedStaticMethod", TestInterfaceImplementationV8Internal::
workerExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllS
cripts, |
2501 }; | 2501 }; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2617 TestInterfaceImplementation* V8TestInterface::toImplWithTypeCheck(v8::Isolate* i
solate, v8::Local<v8::Value> value) | 2617 TestInterfaceImplementation* V8TestInterface::toImplWithTypeCheck(v8::Isolate* i
solate, v8::Local<v8::Value> value) |
2618 { | 2618 { |
2619 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; | 2619 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; |
2620 } | 2620 } |
2621 | 2621 |
2622 void V8TestInterface::preparePrototypeObject(v8::Isolate* isolate, v8::Local<v8:
:Object> prototypeObject, v8::Local<v8::FunctionTemplate> interfaceTemplate) | 2622 void V8TestInterface::preparePrototypeObject(v8::Isolate* isolate, v8::Local<v8:
:Object> prototypeObject, v8::Local<v8::FunctionTemplate> interfaceTemplate) |
2623 { | 2623 { |
2624 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); | 2624 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); |
2625 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe
mplate); | 2625 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe
mplate); |
2626 if (context && (context->isWorkerGlobalScope())) { | 2626 if (context && (context->isWorkerGlobalScope())) { |
2627 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = {"workerExposedAttribute", TestInterfaceImplementationV8Internal::workerE
xposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::w
orkerExposedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<
v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOM
Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 2627 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration =
{"workerExposedAttribute", TestInterfaceImplementationV8Internal::workerExposedA
ttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::workerEx
posedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::Pro
pertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigu
ration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2628 V8DOMConfiguration::installAccessor(isolate, v8::Local<v8::Object>(), pr
ototypeObject, v8::Local<v8::Function>(), signature, accessorConfiguration); | 2628 V8DOMConfiguration::installAccessor(isolate, v8::Local<v8::Object>(), pr
ototypeObject, v8::Local<v8::Function>(), signature, accessorConfiguration); |
2629 } | 2629 } |
2630 if (context && (context->isDocument())) { | 2630 if (context && (context->isDocument())) { |
2631 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = {"windowExposedAttribute", TestInterfaceImplementationV8Internal::windowE
xposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::w
indowExposedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<
v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOM
Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 2631 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration =
{"windowExposedAttribute", TestInterfaceImplementationV8Internal::windowExposedA
ttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::windowEx
posedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cast<v8::Pro
pertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigu
ration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2632 V8DOMConfiguration::installAccessor(isolate, v8::Local<v8::Object>(), pr
ototypeObject, v8::Local<v8::Function>(), signature, accessorConfiguration); | 2632 V8DOMConfiguration::installAccessor(isolate, v8::Local<v8::Object>(), pr
ototypeObject, v8::Local<v8::Function>(), signature, accessorConfiguration); |
2633 } | 2633 } |
2634 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); | 2634 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); |
2635 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); | 2635 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); |
2636 ASSERT(context); | 2636 ASSERT(context); |
2637 if (context && (context->isWorkerGlobalScope())) { | 2637 if (context && (context->isWorkerGlobalScope())) { |
2638 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate:
:New(isolate, TestInterfaceImplementationV8Internal::workerExposedMethodMethodCa
llback, v8Undefined(), defaultSignature, 0); | 2638 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate:
:New(isolate, TestInterfaceImplementationV8Internal::workerExposedMethodMethodCa
llback, v8Undefined(), defaultSignature, 0); |
2639 v8::Local<v8::Function> function = v8CallOrCrash(functionTemplate->GetFu
nction(isolate->GetCurrentContext())); | 2639 v8::Local<v8::Function> function = v8CallOrCrash(functionTemplate->GetFu
nction(isolate->GetCurrentContext())); |
2640 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8Atomi
cString(isolate, "workerExposedMethod"), function)); | 2640 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8Atomi
cString(isolate, "workerExposedMethod"), function)); |
2641 } | 2641 } |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2795 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2795 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
2796 { | 2796 { |
2797 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; | 2797 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; |
2798 } | 2798 } |
2799 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2799 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
2800 { | 2800 { |
2801 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; | 2801 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; |
2802 } | 2802 } |
2803 } // namespace blink | 2803 } // namespace blink |
2804 #endif // ENABLE(CONDITION) | 2804 #endif // ENABLE(CONDITION) |
OLD | NEW |