OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 3156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3167 static void TestObjectConstructorGetter(v8::Local<v8::String>, const v8::Propert
yCallbackInfo<v8::Value>& info) | 3167 static void TestObjectConstructorGetter(v8::Local<v8::String>, const v8::Propert
yCallbackInfo<v8::Value>& info) |
3168 { | 3168 { |
3169 v8::Handle<v8::Value> data = info.Data(); | 3169 v8::Handle<v8::Value> data = info.Data(); |
3170 ASSERT(data->IsExternal()); | 3170 ASSERT(data->IsExternal()); |
3171 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); | 3171 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); |
3172 if (!perContextData) | 3172 if (!perContextData) |
3173 return; | 3173 return; |
3174 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); | 3174 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); |
3175 } | 3175 } |
3176 | 3176 |
| 3177 static void TestSubObjMeasuredConstructorGetterCallback(v8::Local<v8::String> pr
operty, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 3178 { |
| 3179 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 3180 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te
stFeature); |
| 3181 TestObjectV8Internal::TestObjectConstructorGetter(property, info); |
| 3182 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 3183 } |
| 3184 |
| 3185 static void deprecatedConstructorConstructorGetterCallback(v8::Local<v8::String>
property, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 3186 { |
| 3187 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 3188 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::ConstructorAttribute); |
| 3189 TestObjectV8Internal::TestObjectConstructorGetter(property, info); |
| 3190 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 3191 } |
| 3192 |
3177 static void TestObjectReplaceableAttributeSetter(v8::Local<v8::String> name, v8:
:Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3193 static void TestObjectReplaceableAttributeSetter(v8::Local<v8::String> name, v8:
:Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3178 { | 3194 { |
3179 info.This()->ForceSet(name, jsValue); | 3195 info.This()->ForceSet(name, jsValue); |
3180 } | 3196 } |
3181 | 3197 |
3182 static void TestObjectReplaceableAttributeSetterCallback(v8::Local<v8::String> n
ame, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3198 static void TestObjectReplaceableAttributeSetterCallback(v8::Local<v8::String> n
ame, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3183 { | 3199 { |
3184 TestObjectV8Internal::TestObjectReplaceableAttributeSetter(name, jsValue, in
fo); | 3200 TestObjectV8Internal::TestObjectReplaceableAttributeSetter(name, jsValue, in
fo); |
3185 } | 3201 } |
3186 | 3202 |
(...skipping 2116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5303 {"shortAttr", TestObjectV8Internal::shortAttrAttributeGetterCallback, TestOb
jectV8Internal::shortAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acces
sControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on in
stance */}, | 5319 {"shortAttr", TestObjectV8Internal::shortAttrAttributeGetterCallback, TestOb
jectV8Internal::shortAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acces
sControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on in
stance */}, |
5304 {"unsignedShortAttr", TestObjectV8Internal::unsignedShortAttrAttributeGetter
Callback, TestObjectV8Internal::unsignedShortAttrAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, | 5320 {"unsignedShortAttr", TestObjectV8Internal::unsignedShortAttrAttributeGetter
Callback, TestObjectV8Internal::unsignedShortAttrAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, |
5305 {"longAttr", TestObjectV8Internal::longAttrAttributeGetterCallback, TestObje
ctV8Internal::longAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta
nce */}, | 5321 {"longAttr", TestObjectV8Internal::longAttrAttributeGetterCallback, TestObje
ctV8Internal::longAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta
nce */}, |
5306 {"longLongAttr", TestObjectV8Internal::longLongAttrAttributeGetterCallback,
TestObjectV8Internal::longLongAttrAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, | 5322 {"longLongAttr", TestObjectV8Internal::longLongAttrAttributeGetterCallback,
TestObjectV8Internal::longLongAttrAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, |
5307 {"unsignedLongLongAttr", TestObjectV8Internal::unsignedLongLongAttrAttribute
GetterCallback, TestObjectV8Internal::unsignedLongLongAttrAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, | 5323 {"unsignedLongLongAttr", TestObjectV8Internal::unsignedLongLongAttrAttribute
GetterCallback, TestObjectV8Internal::unsignedLongLongAttrAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, |
5308 {"stringAttr", TestObjectV8Internal::stringAttrAttributeGetterCallback, Test
ObjectV8Internal::stringAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::Ac
cessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on
instance */}, | 5324 {"stringAttr", TestObjectV8Internal::stringAttrAttributeGetterCallback, Test
ObjectV8Internal::stringAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::Ac
cessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on
instance */}, |
5309 {"treatNullAsNullStringStringAttr", TestObjectV8Internal::treatNullAsNullStr
ingStringAttrAttributeGetterCallback, TestObjectV8Internal::treatNullAsNullStrin
gStringAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::
DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5325 {"treatNullAsNullStringStringAttr", TestObjectV8Internal::treatNullAsNullStr
ingStringAttrAttributeGetterCallback, TestObjectV8Internal::treatNullAsNullStrin
gStringAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::
DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
5310 {"treatNullAsNullStringTreatUndefinedAsNullStringStringAttr", TestObjectV8In
ternal::treatNullAsNullStringTreatUndefinedAsNullStringStringAttrAttributeGetter
Callback, TestObjectV8Internal::treatNullAsNullStringTreatUndefinedAsNullStringS
tringAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DE
FAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5326 {"treatNullAsNullStringTreatUndefinedAsNullStringStringAttr", TestObjectV8In
ternal::treatNullAsNullStringTreatUndefinedAsNullStringStringAttrAttributeGetter
Callback, TestObjectV8Internal::treatNullAsNullStringTreatUndefinedAsNullStringS
tringAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DE
FAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
5311 {"eventHandlerAttr", TestObjectV8Internal::eventHandlerAttrAttributeGetterCa
llback, TestObjectV8Internal::eventHandlerAttrAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, | 5327 {"eventHandlerAttr", TestObjectV8Internal::eventHandlerAttrAttributeGetterCa
llback, TestObjectV8Internal::eventHandlerAttrAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, |
5312 {"testObjAttr", TestObjectV8Internal::testObjAttrAttributeGetterCallback, Te
stObjectV8Internal::testObjAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8:
:AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}, | 5328 {"testObjAttr", TestObjectV8Internal::testObjAttrAttributeGetterCallback, Te
stObjectV8Internal::testObjAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8:
:AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}, |
| 5329 {"TestSubObjMeasured", TestObjectV8Internal::TestSubObjMeasuredConstructorGe
tterCallback, TestObjectV8Internal::TestObjectReplaceableAttributeSetterCallback
, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestSubObj::wrapperTypeInfo), static_cas
t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEn
um), 0 /* on instance */}, |
5313 {"XMLObjAttr", TestObjectV8Internal::XMLObjAttrAttributeGetterCallback, Test
ObjectV8Internal::XMLObjAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::Ac
cessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on
instance */}, | 5330 {"XMLObjAttr", TestObjectV8Internal::XMLObjAttrAttributeGetterCallback, Test
ObjectV8Internal::XMLObjAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::Ac
cessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on
instance */}, |
5314 {"reflectedStringAttr", TestObjectV8Internal::reflectedStringAttrAttributeGe
tterCallback, TestObjectV8Internal::reflectedStringAttrAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, | 5331 {"reflectedStringAttr", TestObjectV8Internal::reflectedStringAttrAttributeGe
tterCallback, TestObjectV8Internal::reflectedStringAttrAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, |
5315 {"reflectedTreatNullAsNullStringStringAttr", TestObjectV8Internal::reflected
TreatNullAsNullStringStringAttrAttributeGetterCallback, TestObjectV8Internal::re
flectedTreatNullAsNullStringStringAttrAttributeSetterCallback, 0, 0, 0, static_c
ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None
), 0 /* on instance */}, | 5332 {"reflectedTreatNullAsNullStringStringAttr", TestObjectV8Internal::reflected
TreatNullAsNullStringStringAttrAttributeGetterCallback, TestObjectV8Internal::re
flectedTreatNullAsNullStringStringAttrAttributeSetterCallback, 0, 0, 0, static_c
ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None
), 0 /* on instance */}, |
5316 {"reflectedTreatNullAsNullStringTreatUndefinedAsNullStringStringAttr", TestO
bjectV8Internal::reflectedTreatNullAsNullStringTreatUndefinedAsNullStringStringA
ttrAttributeGetterCallback, TestObjectV8Internal::reflectedTreatNullAsNullString
TreatUndefinedAsNullStringStringAttrAttributeSetterCallback, 0, 0, 0, static_cas
t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None),
0 /* on instance */}, | 5333 {"reflectedTreatNullAsNullStringTreatUndefinedAsNullStringStringAttr", TestO
bjectV8Internal::reflectedTreatNullAsNullStringTreatUndefinedAsNullStringStringA
ttrAttributeGetterCallback, TestObjectV8Internal::reflectedTreatNullAsNullString
TreatUndefinedAsNullStringStringAttrAttributeSetterCallback, 0, 0, 0, static_cas
t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None),
0 /* on instance */}, |
5317 {"reflectedIntegralAttr", TestObjectV8Internal::reflectedIntegralAttrAttribu
teGetterCallback, TestObjectV8Internal::reflectedIntegralAttrAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, | 5334 {"reflectedIntegralAttr", TestObjectV8Internal::reflectedIntegralAttrAttribu
teGetterCallback, TestObjectV8Internal::reflectedIntegralAttrAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, |
5318 {"reflectedUnsignedIntegralAttr", TestObjectV8Internal::reflectedUnsignedInt
egralAttrAttributeGetterCallback, TestObjectV8Internal::reflectedUnsignedIntegra
lAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5335 {"reflectedUnsignedIntegralAttr", TestObjectV8Internal::reflectedUnsignedInt
egralAttrAttributeGetterCallback, TestObjectV8Internal::reflectedUnsignedIntegra
lAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
5319 {"reflectedBooleanAttr", TestObjectV8Internal::reflectedBooleanAttrAttribute
GetterCallback, TestObjectV8Internal::reflectedBooleanAttrAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, | 5336 {"reflectedBooleanAttr", TestObjectV8Internal::reflectedBooleanAttrAttribute
GetterCallback, TestObjectV8Internal::reflectedBooleanAttrAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, |
5320 {"reflectedURLAttr", TestObjectV8Internal::reflectedURLAttrAttributeGetterCa
llback, TestObjectV8Internal::reflectedURLAttrAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, | 5337 {"reflectedURLAttr", TestObjectV8Internal::reflectedURLAttrAttributeGetterCa
llback, TestObjectV8Internal::reflectedURLAttrAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, |
5321 {"reflectedTreatNullAsNullStringURLAttr", TestObjectV8Internal::reflectedTre
atNullAsNullStringURLAttrAttributeGetterCallback, TestObjectV8Internal::reflecte
dTreatNullAsNullStringURLAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::A
ccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* o
n instance */}, | 5338 {"reflectedTreatNullAsNullStringURLAttr", TestObjectV8Internal::reflectedTre
atNullAsNullStringURLAttrAttributeGetterCallback, TestObjectV8Internal::reflecte
dTreatNullAsNullStringURLAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::A
ccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* o
n instance */}, |
5322 {"reflectedTreatNullAsNullStringTreatUndefinedAsNullStringURLAttr", TestObje
ctV8Internal::reflectedTreatNullAsNullStringTreatUndefinedAsNullStringURLAttrAtt
ributeGetterCallback, TestObjectV8Internal::reflectedTreatNullAsNullStringTreatU
ndefinedAsNullStringURLAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acc
essControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on
instance */}, | 5339 {"reflectedTreatNullAsNullStringTreatUndefinedAsNullStringURLAttr", TestObje
ctV8Internal::reflectedTreatNullAsNullStringTreatUndefinedAsNullStringURLAttrAtt
ributeGetterCallback, TestObjectV8Internal::reflectedTreatNullAsNullStringTreatU
ndefinedAsNullStringURLAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acc
essControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on
instance */}, |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5395 {"activityLoggedAttr2", TestObjectV8Internal::activityLoggedAttr2AttributeGe
tterCallback, TestObjectV8Internal::activityLoggedAttr2AttributeSetterCallback,
TestObjectV8Internal::activityLoggedAttr2AttributeGetterCallbackForMainWorld, Te
stObjectV8Internal::activityLoggedAttr2AttributeSetterCallbackForMainWorld, 0, s
tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v
8::None), 0 /* on instance */}, | 5412 {"activityLoggedAttr2", TestObjectV8Internal::activityLoggedAttr2AttributeGe
tterCallback, TestObjectV8Internal::activityLoggedAttr2AttributeSetterCallback,
TestObjectV8Internal::activityLoggedAttr2AttributeGetterCallbackForMainWorld, Te
stObjectV8Internal::activityLoggedAttr2AttributeSetterCallbackForMainWorld, 0, s
tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v
8::None), 0 /* on instance */}, |
5396 {"activityLoggedInIsolatedWorldsAttr", TestObjectV8Internal::activityLoggedI
nIsolatedWorldsAttrAttributeGetterCallback, TestObjectV8Internal::activityLogged
InIsolatedWorldsAttrAttributeSetterCallback, TestObjectV8Internal::activityLogge
dInIsolatedWorldsAttrAttributeGetterCallbackForMainWorld, TestObjectV8Internal::
activityLoggedInIsolatedWorldsAttrAttributeSetterCallbackForMainWorld, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, | 5413 {"activityLoggedInIsolatedWorldsAttr", TestObjectV8Internal::activityLoggedI
nIsolatedWorldsAttrAttributeGetterCallback, TestObjectV8Internal::activityLogged
InIsolatedWorldsAttrAttributeSetterCallback, TestObjectV8Internal::activityLogge
dInIsolatedWorldsAttrAttributeGetterCallbackForMainWorld, TestObjectV8Internal::
activityLoggedInIsolatedWorldsAttrAttributeSetterCallbackForMainWorld, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, |
5397 {"activityLoggedAttrSetter1", TestObjectV8Internal::activityLoggedAttrSetter
1AttributeGetterCallback, TestObjectV8Internal::activityLoggedAttrSetter1Attribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5414 {"activityLoggedAttrSetter1", TestObjectV8Internal::activityLoggedAttrSetter
1AttributeGetterCallback, TestObjectV8Internal::activityLoggedAttrSetter1Attribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
5398 {"activityLoggedAttrSetter2", TestObjectV8Internal::activityLoggedAttrSetter
2AttributeGetterCallback, TestObjectV8Internal::activityLoggedAttrSetter2Attribu
teSetterCallback, TestObjectV8Internal::activityLoggedAttrSetter2AttributeGetter
CallbackForMainWorld, TestObjectV8Internal::activityLoggedAttrSetter2AttributeSe
tterCallbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static
_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5415 {"activityLoggedAttrSetter2", TestObjectV8Internal::activityLoggedAttrSetter
2AttributeGetterCallback, TestObjectV8Internal::activityLoggedAttrSetter2Attribu
teSetterCallback, TestObjectV8Internal::activityLoggedAttrSetter2AttributeGetter
CallbackForMainWorld, TestObjectV8Internal::activityLoggedAttrSetter2AttributeSe
tterCallbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static
_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
5399 {"activityLoggedInIsolatedWorldsAttrSetter", TestObjectV8Internal::activityL
oggedInIsolatedWorldsAttrSetterAttributeGetterCallback, TestObjectV8Internal::ac
tivityLoggedInIsolatedWorldsAttrSetterAttributeSetterCallback, TestObjectV8Inter
nal::activityLoggedInIsolatedWorldsAttrSetterAttributeGetterCallbackForMainWorld
, TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrSetterAttributeSetterC
allbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5416 {"activityLoggedInIsolatedWorldsAttrSetter", TestObjectV8Internal::activityL
oggedInIsolatedWorldsAttrSetterAttributeGetterCallback, TestObjectV8Internal::ac
tivityLoggedInIsolatedWorldsAttrSetterAttributeSetterCallback, TestObjectV8Inter
nal::activityLoggedInIsolatedWorldsAttrSetterAttributeGetterCallbackForMainWorld
, TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrSetterAttributeSetterC
allbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
5400 {"activityLoggedAttrGetter1", TestObjectV8Internal::activityLoggedAttrGetter
1AttributeGetterCallback, TestObjectV8Internal::activityLoggedAttrGetter1Attribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5417 {"activityLoggedAttrGetter1", TestObjectV8Internal::activityLoggedAttrGetter
1AttributeGetterCallback, TestObjectV8Internal::activityLoggedAttrGetter1Attribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
5401 {"activityLoggedAttrGetter2", TestObjectV8Internal::activityLoggedAttrGetter
2AttributeGetterCallback, TestObjectV8Internal::activityLoggedAttrGetter2Attribu
teSetterCallback, TestObjectV8Internal::activityLoggedAttrGetter2AttributeGetter
CallbackForMainWorld, TestObjectV8Internal::activityLoggedAttrGetter2AttributeSe
tterCallbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static
_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5418 {"activityLoggedAttrGetter2", TestObjectV8Internal::activityLoggedAttrGetter
2AttributeGetterCallback, TestObjectV8Internal::activityLoggedAttrGetter2Attribu
teSetterCallback, TestObjectV8Internal::activityLoggedAttrGetter2AttributeGetter
CallbackForMainWorld, TestObjectV8Internal::activityLoggedAttrGetter2AttributeSe
tterCallbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static
_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
5402 {"activityLoggedInIsolatedWorldsAttrGetter", TestObjectV8Internal::activityL
oggedInIsolatedWorldsAttrGetterAttributeGetterCallback, TestObjectV8Internal::ac
tivityLoggedInIsolatedWorldsAttrGetterAttributeSetterCallback, TestObjectV8Inter
nal::activityLoggedInIsolatedWorldsAttrGetterAttributeGetterCallbackForMainWorld
, TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrGetterAttributeSetterC
allbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5419 {"activityLoggedInIsolatedWorldsAttrGetter", TestObjectV8Internal::activityL
oggedInIsolatedWorldsAttrGetterAttributeGetterCallback, TestObjectV8Internal::ac
tivityLoggedInIsolatedWorldsAttrGetterAttributeSetterCallback, TestObjectV8Inter
nal::activityLoggedInIsolatedWorldsAttrGetterAttributeGetterCallbackForMainWorld
, TestObjectV8Internal::activityLoggedInIsolatedWorldsAttrGetterAttributeSetterC
allbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
5403 {"deprecatedReadonlyAttr", TestObjectV8Internal::deprecatedReadonlyAttrAttri
buteGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), sta
tic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 5420 {"deprecatedReadonlyAttr", TestObjectV8Internal::deprecatedReadonlyAttrAttri
buteGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), sta
tic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
5404 {"deprecatedAttr", TestObjectV8Internal::deprecatedAttrAttributeGetterCallba
ck, TestObjectV8Internal::deprecatedAttrAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, | 5421 {"deprecatedAttr", TestObjectV8Internal::deprecatedAttrAttributeGetterCallba
ck, TestObjectV8Internal::deprecatedAttrAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, |
| 5422 {"deprecatedConstructor", TestObjectV8Internal::deprecatedConstructorConstru
ctorGetterCallback, TestObjectV8Internal::TestObjectReplaceableAttributeSetterCa
llback, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestSubObj::wrapperTypeInfo), stat
ic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::
DontEnum), 0 /* on instance */}, |
5405 {"location", TestObjectV8Internal::locationAttributeGetterCallback, TestObje
ctV8Internal::locationAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta
nce */}, | 5423 {"location", TestObjectV8Internal::locationAttributeGetterCallback, TestObje
ctV8Internal::locationAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta
nce */}, |
5406 {"locationWithException", TestObjectV8Internal::locationWithExceptionAttribu
teGetterCallback, TestObjectV8Internal::locationWithExceptionAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, | 5424 {"locationWithException", TestObjectV8Internal::locationWithExceptionAttribu
teGetterCallback, TestObjectV8Internal::locationWithExceptionAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, |
5407 }; | 5425 }; |
5408 | 5426 |
5409 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] =
{ | 5427 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] =
{ |
5410 {"attrWithJSGetterAndSetter", TestObjectV8Internal::attrWithJSGetterAndSette
rAttributeGetterCallback, TestObjectV8Internal::attrWithJSGetterAndSetterAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None)}, | 5428 {"attrWithJSGetterAndSetter", TestObjectV8Internal::attrWithJSGetterAndSette
rAttributeGetterCallback, TestObjectV8Internal::attrWithJSGetterAndSetterAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None)}, |
5411 }; | 5429 }; |
5412 | 5430 |
5413 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { | 5431 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { |
5414 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0}, | 5432 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0}, |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5611 fromInternalPointer(object)->deref(); | 5629 fromInternalPointer(object)->deref(); |
5612 } | 5630 } |
5613 | 5631 |
5614 template<> | 5632 template<> |
5615 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 5633 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
5616 { | 5634 { |
5617 return toV8(impl, creationContext, isolate); | 5635 return toV8(impl, creationContext, isolate); |
5618 } | 5636 } |
5619 | 5637 |
5620 } // namespace WebCore | 5638 } // namespace WebCore |
OLD | NEW |