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 #include "V8TestObject.h" | 8 #include "V8TestObject.h" |
9 | 9 |
10 #include "bindings/core/v8/BindingSecurity.h" | 10 #include "bindings/core/v8/BindingSecurity.h" |
(...skipping 5218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5229 impl->setSameObjectAttribute(WTF::getPtr(cppValue)); | 5229 impl->setSameObjectAttribute(WTF::getPtr(cppValue)); |
5230 } | 5230 } |
5231 | 5231 |
5232 static void sameObjectAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5232 static void sameObjectAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
5233 { | 5233 { |
5234 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5234 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5235 TestObjectV8Internal::sameObjectAttributeAttributeSetter(v8Value, info); | 5235 TestObjectV8Internal::sameObjectAttributeAttributeSetter(v8Value, info); |
5236 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5236 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5237 } | 5237 } |
5238 | 5238 |
5239 static void unscopeableLongAttributeAttributeGetter(const v8::PropertyCallbackIn
fo<v8::Value>& info) | |
5240 { | |
5241 v8::Local<v8::Object> holder = info.Holder(); | |
5242 TestObject* impl = V8TestObject::toImpl(holder); | |
5243 v8SetReturnValueInt(info, impl->unscopeableLongAttribute()); | |
5244 } | |
5245 | |
5246 static void unscopeableLongAttributeAttributeGetterCallback(v8::Local<v8::Name>,
const v8::PropertyCallbackInfo<v8::Value>& info) | |
5247 { | |
5248 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | |
5249 TestObjectV8Internal::unscopeableLongAttributeAttributeGetter(info); | |
5250 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
5251 } | |
5252 | |
5253 static void unscopeableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) | |
5254 { | |
5255 v8::Local<v8::Object> holder = info.Holder(); | |
5256 ExceptionState exceptionState(ExceptionState::SetterContext, "unscopeableLon
gAttribute", "TestObject", holder, info.GetIsolate()); | |
5257 TestObject* impl = V8TestObject::toImpl(holder); | |
5258 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | |
5259 if (exceptionState.throwIfNeeded()) | |
5260 return; | |
5261 impl->setUnscopeableLongAttribute(cppValue); | |
5262 } | |
5263 | |
5264 static void unscopeableLongAttributeAttributeSetterCallback(v8::Local<v8::Name>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | |
5265 { | |
5266 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | |
5267 TestObjectV8Internal::unscopeableLongAttributeAttributeSetter(v8Value, info)
; | |
5268 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
5269 } | |
5270 | |
5271 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 5239 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) |
5272 { | 5240 { |
5273 v8::Local<v8::Object> holder = info.Holder(); | 5241 v8::Local<v8::Object> holder = info.Holder(); |
5274 TestObject* impl = V8TestObject::toImpl(holder); | 5242 TestObject* impl = V8TestObject::toImpl(holder); |
5275 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl
); | 5243 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl
); |
5276 } | 5244 } |
5277 | 5245 |
5278 static void testInterfaceAttributeAttributeGetterCallback(v8::Local<v8::Name>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 5246 static void testInterfaceAttributeAttributeGetterCallback(v8::Local<v8::Name>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
5279 { | 5247 { |
5280 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5248 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5616 } | 5584 } |
5617 | 5585 |
5618 static void measureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructo
rGetterCallback(v8::Local<v8::Name> property, const v8::PropertyCallbackInfo<v8:
:Value>& info) | 5586 static void measureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructo
rGetterCallback(v8::Local<v8::Name> property, const v8::PropertyCallbackInfo<v8:
:Value>& info) |
5619 { | 5587 { |
5620 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5588 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5621 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::FeatureName); | 5589 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::FeatureName); |
5622 v8ConstructorAttributeGetter(property, info); | 5590 v8ConstructorAttributeGetter(property, info); |
5623 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5591 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5624 } | 5592 } |
5625 | 5593 |
5626 static void unscopeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | |
5627 { | |
5628 TestObject* impl = V8TestObject::toImpl(info.Holder()); | |
5629 impl->unscopeableVoidMethod(); | |
5630 } | |
5631 | |
5632 static void unscopeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | |
5633 { | |
5634 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | |
5635 TestObjectV8Internal::unscopeableVoidMethodMethod(info); | |
5636 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
5637 } | |
5638 | |
5639 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 5594 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
5640 { | 5595 { |
5641 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5596 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5642 impl->voidMethod(); | 5597 impl->voidMethod(); |
5643 } | 5598 } |
5644 | 5599 |
5645 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5600 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
5646 { | 5601 { |
5647 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5602 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5648 TestObjectV8Internal::voidMethodMethod(info); | 5603 TestObjectV8Internal::voidMethodMethod(info); |
(...skipping 6715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12364 {"treatReturnedNullStringAsNullUSVStringAttribute", TestObjectV8Internal::tr
eatReturnedNullStringAsNullUSVStringAttributeAttributeGetterCallback, TestObject
V8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttributeSetterCallba
ck, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Proper
tyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurat
ion::OnInstance}, | 12319 {"treatReturnedNullStringAsNullUSVStringAttribute", TestObjectV8Internal::tr
eatReturnedNullStringAsNullUSVStringAttributeAttributeGetterCallback, TestObject
V8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttributeSetterCallba
ck, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Proper
tyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurat
ion::OnInstance}, |
12365 {"treatReturnedNullStringAsUndefinedUSVStringAttribute", TestObjectV8Interna
l::treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterCallback,
TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAttrib
uteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_
cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts,
V8DOMConfiguration::OnInstance}, | 12320 {"treatReturnedNullStringAsUndefinedUSVStringAttribute", TestObjectV8Interna
l::treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterCallback,
TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAttrib
uteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_
cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts,
V8DOMConfiguration::OnInstance}, |
12366 {"typeCheckingInterfaceFloatAttribute", TestObjectV8Internal::typeCheckingIn
terfaceFloatAttributeAttributeGetterCallback, TestObjectV8Internal::typeChecking
InterfaceFloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessC
ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu
ration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 12321 {"typeCheckingInterfaceFloatAttribute", TestObjectV8Internal::typeCheckingIn
terfaceFloatAttributeAttributeGetterCallback, TestObjectV8Internal::typeChecking
InterfaceFloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessC
ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu
ration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
12367 {"typeCheckingInterfaceTestInterfaceAttribute", TestObjectV8Internal::typeCh
eckingInterfaceTestInterfaceAttributeAttributeGetterCallback, TestObjectV8Intern
al::typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>
(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInsta
nce}, | 12322 {"typeCheckingInterfaceTestInterfaceAttribute", TestObjectV8Internal::typeCh
eckingInterfaceTestInterfaceAttributeAttributeGetterCallback, TestObjectV8Intern
al::typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>
(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInsta
nce}, |
12368 {"typeCheckingInterfaceTestInterfaceOrNullAttribute", TestObjectV8Internal::
typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetterCallback, TestOb
jectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetter
Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::
PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConf
iguration::OnInstance}, | 12323 {"typeCheckingInterfaceTestInterfaceOrNullAttribute", TestObjectV8Internal::
typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetterCallback, TestOb
jectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetter
Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::
PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConf
iguration::OnInstance}, |
12369 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett
erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On
Instance}, | 12324 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett
erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On
Instance}, |
12370 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett
erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On
Instance}, | 12325 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett
erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On
Instance}, |
12371 {"unforgeableLongAttribute", TestObjectV8Internal::unforgeableLongAttributeA
ttributeGetterCallback, TestObjectV8Internal::unforgeableLongAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS_OVERWRITING
), static_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfiguration::Expos
edToAllScripts, V8DOMConfiguration::OnInstance}, | 12326 {"unforgeableLongAttribute", TestObjectV8Internal::unforgeableLongAttributeA
ttributeGetterCallback, TestObjectV8Internal::unforgeableLongAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS_OVERWRITING
), static_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfiguration::Expos
edToAllScripts, V8DOMConfiguration::OnInstance}, |
12372 {"measuredLongAttribute", TestObjectV8Internal::measuredLongAttributeAttribu
teGetterCallback, TestObjectV8Internal::measuredLongAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur
ation::OnInstance}, | 12327 {"measuredLongAttribute", TestObjectV8Internal::measuredLongAttributeAttribu
teGetterCallback, TestObjectV8Internal::measuredLongAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur
ation::OnInstance}, |
12373 {"sameObjectAttribute", TestObjectV8Internal::sameObjectAttributeAttributeGe
tterCallback, TestObjectV8Internal::sameObjectAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration:
:OnInstance}, | 12328 {"sameObjectAttribute", TestObjectV8Internal::sameObjectAttributeAttributeGe
tterCallback, TestObjectV8Internal::sameObjectAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration:
:OnInstance}, |
12374 {"unscopeableLongAttribute", TestObjectV8Internal::unscopeableLongAttributeA
ttributeGetterCallback, TestObjectV8Internal::unscopeableLongAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DO
MConfiguration::OnInstance}, | |
12375 {"testInterfaceAttribute", TestObjectV8Internal::testInterfaceAttributeAttri
buteGetterCallback, TestObjectV8Internal::testInterfaceAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfi
guration::OnInstance}, | 12329 {"testInterfaceAttribute", TestObjectV8Internal::testInterfaceAttributeAttri
buteGetterCallback, TestObjectV8Internal::testInterfaceAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfi
guration::OnInstance}, |
12376 {"testInterfaceGarbageCollectedAttribute", TestObjectV8Internal::testInterfa
ceGarbageCollectedAttributeAttributeGetterCallback, TestObjectV8Internal::testIn
terfaceGarbageCollectedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 12330 {"testInterfaceGarbageCollectedAttribute", TestObjectV8Internal::testInterfa
ceGarbageCollectedAttributeAttributeGetterCallback, TestObjectV8Internal::testIn
terfaceGarbageCollectedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
12377 {"testInterfaceGarbageCollectedOrNullAttribute", TestObjectV8Internal::testI
nterfaceGarbageCollectedOrNullAttributeAttributeGetterCallback, TestObjectV8Inte
rnal::testInterfaceGarbageCollectedOrNullAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIn
stance}, | 12331 {"testInterfaceGarbageCollectedOrNullAttribute", TestObjectV8Internal::testI
nterfaceGarbageCollectedOrNullAttributeAttributeGetterCallback, TestObjectV8Inte
rnal::testInterfaceGarbageCollectedOrNullAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIn
stance}, |
12378 {"testInterfaceWillBeGarbageCollectedAttribute", TestObjectV8Internal::testI
nterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback, TestObjectV8Inte
rnal::testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIn
stance}, | 12332 {"testInterfaceWillBeGarbageCollectedAttribute", TestObjectV8Internal::testI
nterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback, TestObjectV8Inte
rnal::testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIn
stance}, |
12379 {"testInterfaceWillBeGarbageCollectedOrNullAttribute", TestObjectV8Internal:
:testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCallback, Test
ObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSet
terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMC
onfiguration::OnInstance}, | 12333 {"testInterfaceWillBeGarbageCollectedOrNullAttribute", TestObjectV8Internal:
:testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCallback, Test
ObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSet
terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMC
onfiguration::OnInstance}, |
12380 {"readonlyShortAttribute", TestObjectV8Internal::readonlyShortAttributeAttri
buteGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), sta
tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip
ts, V8DOMConfiguration::OnInstance}, | 12334 {"readonlyShortAttribute", TestObjectV8Internal::readonlyShortAttributeAttri
buteGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), sta
tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip
ts, V8DOMConfiguration::OnInstance}, |
12381 {"shortAttribute", TestObjectV8Internal::shortAttributeAttributeGetterCallba
ck, TestObjectV8Internal::shortAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 12335 {"shortAttribute", TestObjectV8Internal::shortAttributeAttributeGetterCallba
ck, TestObjectV8Internal::shortAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
12382 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall
back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}
, | 12336 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall
back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}
, |
12383 {"nodeAttribute", TestObjectV8Internal::nodeAttributeAttributeGetterCallback
, TestObjectV8Internal::nodeAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 12337 {"nodeAttribute", TestObjectV8Internal::nodeAttributeAttributeGetterCallback
, TestObjectV8Internal::nodeAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
12384 {"attributeImplementedInCPPForPrivateScriptOnly", TestObjectV8Internal::attr
ibuteImplementedInCPPForPrivateScriptOnlyAttributeGetterCallback, TestObjectV8In
ternal::attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr
ibute>(v8::None), V8DOMConfiguration::OnlyExposedToPrivateScript, V8DOMConfigura
tion::OnInstance}, | 12338 {"attributeImplementedInCPPForPrivateScriptOnly", TestObjectV8Internal::attr
ibuteImplementedInCPPForPrivateScriptOnlyAttributeGetterCallback, TestObjectV8In
ternal::attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr
ibute>(v8::None), V8DOMConfiguration::OnlyExposedToPrivateScript, V8DOMConfigura
tion::OnInstance}, |
12385 {"enumForPrivateScript", TestObjectV8Internal::enumForPrivateScriptAttribute
GetterCallback, TestObjectV8Internal::enumForPrivateScriptAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati
on::OnInstance}, | 12339 {"enumForPrivateScript", TestObjectV8Internal::enumForPrivateScriptAttribute
GetterCallback, TestObjectV8Internal::enumForPrivateScriptAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati
on::OnInstance}, |
12386 }; | 12340 }; |
12387 | 12341 |
12388 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] =
{ | 12342 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] =
{ |
12389 {"exposeJSAccessorsLongAttribute", TestObjectV8Internal::exposeJSAccessorsLo
ngAttributeAttributeGetterCallback, TestObjectV8Internal::exposeJSAccessorsLongA
ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF
AULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed
ToAllScripts}, | 12343 {"exposeJSAccessorsLongAttribute", TestObjectV8Internal::exposeJSAccessorsLo
ngAttributeAttributeGetterCallback, TestObjectV8Internal::exposeJSAccessorsLongA
ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF
AULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed
ToAllScripts}, |
12390 {"replaceableReadonlyLongAccessor", TestObjectV8Internal::replaceableReadonl
yLongAccessorAttributeGetterCallback, TestObjectV8Internal::replaceableReadonlyL
ongAccessorAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::
DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo
sedToAllScripts}, | 12344 {"replaceableReadonlyLongAccessor", TestObjectV8Internal::replaceableReadonl
yLongAccessorAttributeGetterCallback, TestObjectV8Internal::replaceableReadonlyL
ongAccessorAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::
DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo
sedToAllScripts}, |
12391 }; | 12345 }; |
12392 | 12346 |
12393 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { | 12347 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { |
12394 {"unscopeableVoidMethod", TestObjectV8Internal::unscopeableVoidMethodMethodC
allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | |
12395 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0, V8DOMCo
nfiguration::ExposedToAllScripts}, | 12348 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0, V8DOMCo
nfiguration::ExposedToAllScripts}, |
12396 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0, V8DOMCo
nfiguration::ExposedToAllScripts}, | 12349 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0, V8DOMCo
nfiguration::ExposedToAllScripts}, |
12397 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0, V8D
OMConfiguration::ExposedToAllScripts}, | 12350 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0, V8D
OMConfiguration::ExposedToAllScripts}, |
12398 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12351 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12399 {"usvStringMethod", TestObjectV8Internal::usvStringMethodMethodCallback, 0,
0, V8DOMConfiguration::ExposedToAllScripts}, | 12352 {"usvStringMethod", TestObjectV8Internal::usvStringMethodMethodCallback, 0,
0, V8DOMConfiguration::ExposedToAllScripts}, |
12400 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet
hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12353 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet
hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12401 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0, V
8DOMConfiguration::ExposedToAllScripts}, | 12354 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0, V
8DOMConfiguration::ExposedToAllScripts}, |
12402 {"byteMethod", TestObjectV8Internal::byteMethodMethodCallback, 0, 0, V8DOMCo
nfiguration::ExposedToAllScripts}, | 12355 {"byteMethod", TestObjectV8Internal::byteMethodMethodCallback, 0, 0, V8DOMCo
nfiguration::ExposedToAllScripts}, |
12403 {"doubleMethod", TestObjectV8Internal::doubleMethodMethodCallback, 0, 0, V8D
OMConfiguration::ExposedToAllScripts}, | 12356 {"doubleMethod", TestObjectV8Internal::doubleMethodMethodCallback, 0, 0, V8D
OMConfiguration::ExposedToAllScripts}, |
12404 {"floatMethod", TestObjectV8Internal::floatMethodMethodCallback, 0, 0, V8DOM
Configuration::ExposedToAllScripts}, | 12357 {"floatMethod", TestObjectV8Internal::floatMethodMethodCallback, 0, 0, V8DOM
Configuration::ExposedToAllScripts}, |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12718 functionTemplate->InstanceTemplate()->SetHandler(config); | 12671 functionTemplate->InstanceTemplate()->SetHandler(config); |
12719 } | 12672 } |
12720 { | 12673 { |
12721 v8::NamedPropertyHandlerConfiguration config(TestObjectV8Internal::named
PropertyGetterCallback, TestObjectV8Internal::namedPropertySetterCallback, TestO
bjectV8Internal::namedPropertyQueryCallback, TestObjectV8Internal::namedProperty
DeleterCallback, TestObjectV8Internal::namedPropertyEnumeratorCallback); | 12674 v8::NamedPropertyHandlerConfiguration config(TestObjectV8Internal::named
PropertyGetterCallback, TestObjectV8Internal::namedPropertySetterCallback, TestO
bjectV8Internal::namedPropertyQueryCallback, TestObjectV8Internal::namedProperty
DeleterCallback, TestObjectV8Internal::namedPropertyEnumeratorCallback); |
12722 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co
nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStrings))
; | 12675 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co
nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStrings))
; |
12723 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co
nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kNonMasking)); | 12676 config.flags = static_cast<v8::PropertyHandlerFlags>(static_cast<int>(co
nfig.flags) | static_cast<int>(v8::PropertyHandlerFlags::kNonMasking)); |
12724 functionTemplate->InstanceTemplate()->SetHandler(config); | 12677 functionTemplate->InstanceTemplate()->SetHandler(config); |
12725 } | 12678 } |
12726 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, TestObjectV8Internal::iterator
MethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; | 12679 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKeyedI
teratorConfiguration = { v8::Symbol::GetIterator, TestObjectV8Internal::iterator
MethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; |
12727 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu
re, v8::DontDelete, symbolKeyedIteratorConfiguration); | 12680 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSignatu
re, v8::DontDelete, symbolKeyedIteratorConfiguration); |
12728 v8::Local<v8::Context> context(isolate->GetCurrentContext()); | |
12729 v8::Local<v8::Object> unscopeables(v8::Object::New(isolate)); | |
12730 unscopeables->ForceSet(context, v8AtomicString(isolate, "unscopeableLongAttr
ibute"), v8::True(isolate)).FromJust(); | |
12731 unscopeables->ForceSet(context, v8AtomicString(isolate, "unscopeableVoidMeth
od"), v8::True(isolate)).FromJust(); | |
12732 prototypeTemplate->Set(v8::Symbol::GetUnscopables(isolate), unscopeables); | |
12733 const V8DOMConfiguration::MethodConfiguration staticVoidMethodMethodConfigur
ation = { | 12681 const V8DOMConfiguration::MethodConfiguration staticVoidMethodMethodConfigur
ation = { |
12734 "staticVoidMethod", TestObjectV8Internal::staticVoidMethodMethodCallback
, 0, 0, V8DOMConfiguration::ExposedToAllScripts, | 12682 "staticVoidMethod", TestObjectV8Internal::staticVoidMethodMethodCallback
, 0, 0, V8DOMConfiguration::ExposedToAllScripts, |
12735 }; | 12683 }; |
12736 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S
ignature>(), v8::None, staticVoidMethodMethodConfiguration); | 12684 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S
ignature>(), v8::None, staticVoidMethodMethodConfiguration); |
12737 const V8DOMConfiguration::MethodConfiguration overloadedStaticMethodMethodCo
nfiguration = { | 12685 const V8DOMConfiguration::MethodConfiguration overloadedStaticMethodMethodCo
nfiguration = { |
12738 "overloadedStaticMethod", TestObjectV8Internal::overloadedStaticMethodMe
thodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts, | 12686 "overloadedStaticMethod", TestObjectV8Internal::overloadedStaticMethodMe
thodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts, |
12739 }; | 12687 }; |
12740 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S
ignature>(), v8::None, overloadedStaticMethodMethodConfiguration); | 12688 V8DOMConfiguration::installMethod(isolate, functionTemplate, v8::Local<v8::S
ignature>(), v8::None, overloadedStaticMethodMethodConfiguration); |
12741 #if ENABLE(CONDITION) | 12689 #if ENABLE(CONDITION) |
12742 const V8DOMConfiguration::MethodConfiguration conditionalConditionStaticVoid
MethodMethodConfiguration = { | 12690 const V8DOMConfiguration::MethodConfiguration conditionalConditionStaticVoid
MethodMethodConfiguration = { |
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13324 return false; | 13272 return false; |
13325 | 13273 |
13326 ScriptState::Scope scope(scriptState); | 13274 ScriptState::Scope scope(scriptState); |
13327 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 13275 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
13328 | 13276 |
13329 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 13277 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
13330 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 13278 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
13331 } | 13279 } |
13332 | 13280 |
13333 } // namespace blink | 13281 } // namespace blink |
OLD | NEW |