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 3384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3395 v8SetReturnValueInt(info, imp->replaceableReadonlyLongAttribute()); | 3395 v8SetReturnValueInt(info, imp->replaceableReadonlyLongAttribute()); |
3396 } | 3396 } |
3397 | 3397 |
3398 static void replaceableReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3398 static void replaceableReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3399 { | 3399 { |
3400 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3400 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3401 TestObjectPythonV8Internal::replaceableReadonlyLongAttributeAttributeGetter(
info); | 3401 TestObjectPythonV8Internal::replaceableReadonlyLongAttributeAttributeGetter(
info); |
3402 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3402 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3403 } | 3403 } |
3404 | 3404 |
| 3405 static void locationReplaceableAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
| 3406 { |
| 3407 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3408 v8SetReturnValueFast(info, imp->locationReplaceable(), imp); |
| 3409 } |
| 3410 |
| 3411 static void locationReplaceableAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
| 3412 { |
| 3413 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 3414 TestObjectPythonV8Internal::locationReplaceableAttributeGetter(info); |
| 3415 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 3416 } |
| 3417 |
| 3418 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) |
| 3419 { |
| 3420 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); |
| 3421 TestNode* imp = proxyImp->locationReplaceable(); |
| 3422 if (!imp) |
| 3423 return; |
| 3424 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
| 3425 imp->setHref(cppValue); |
| 3426 } |
| 3427 |
| 3428 static void locationReplaceableAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 3429 { |
| 3430 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 3431 TestObjectPythonV8Internal::locationReplaceableAttributeSetter(jsValue, info
); |
| 3432 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 3433 } |
| 3434 |
3405 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 3435 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
3406 { | 3436 { |
3407 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3437 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
3408 v8SetReturnValueInt(info, imp->runtimeEnabledLongAttribute()); | 3438 v8SetReturnValueInt(info, imp->runtimeEnabledLongAttribute()); |
3409 } | 3439 } |
3410 | 3440 |
3411 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3441 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3412 { | 3442 { |
3413 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3443 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3414 TestObjectPythonV8Internal::runtimeEnabledLongAttributeAttributeGetter(info)
; | 3444 TestObjectPythonV8Internal::runtimeEnabledLongAttributeAttributeGetter(info)
; |
3415 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3445 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3416 } | 3446 } |
3417 | 3447 |
3418 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) | 3448 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) |
3419 { | 3449 { |
3420 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled
LongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 3450 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled
LongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
3421 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3451 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
3422 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 3452 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
3423 imp->setRuntimeEnabledLongAttribute(cppValue); | 3453 imp->setRuntimeEnabledLongAttribute(cppValue); |
3424 } | 3454 } |
3425 | 3455 |
3426 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3456 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3427 { | 3457 { |
3428 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3458 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3429 TestObjectPythonV8Internal::runtimeEnabledLongAttributeAttributeSetter(jsVal
ue, info); | 3459 TestObjectPythonV8Internal::runtimeEnabledLongAttributeAttributeSetter(jsVal
ue, info); |
3430 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3460 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3431 } | 3461 } |
3432 | 3462 |
| 3463 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) |
| 3464 { |
| 3465 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3466 v8SetReturnValueInt(info, imp->perContextEnabledRuntimeEnabledLongAttribute(
)); |
| 3467 } |
| 3468 |
| 3469 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 3470 { |
| 3471 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 3472 TestObjectPythonV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttr
ibuteGetter(info); |
| 3473 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 3474 } |
| 3475 |
| 3476 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 3477 { |
| 3478 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledRuntimeEnabledLongAttribute", "TestObjectPython", info.Holder(), info.GetIsol
ate()); |
| 3479 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3480 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
| 3481 imp->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue); |
| 3482 } |
| 3483 |
| 3484 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackI
nfo<void>& info) |
| 3485 { |
| 3486 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 3487 TestObjectPythonV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttr
ibuteSetter(jsValue, info); |
| 3488 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 3489 } |
| 3490 |
3433 #if ENABLE(CONDITION) | 3491 #if ENABLE(CONDITION) |
3434 static void conditionalRuntimeEnabledLongAttributeAttributeGetter(const v8::Prop
ertyCallbackInfo<v8::Value>& info) | 3492 static void conditionalRuntimeEnabledLongAttributeAttributeGetter(const v8::Prop
ertyCallbackInfo<v8::Value>& info) |
3435 { | 3493 { |
3436 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3494 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
3437 v8SetReturnValueInt(info, imp->conditionalRuntimeEnabledLongAttribute()); | 3495 v8SetReturnValueInt(info, imp->conditionalRuntimeEnabledLongAttribute()); |
3438 } | 3496 } |
3439 #endif // ENABLE(CONDITION) | 3497 #endif // ENABLE(CONDITION) |
3440 | 3498 |
3441 #if ENABLE(CONDITION) | 3499 #if ENABLE(CONDITION) |
3442 static void conditionalRuntimeEnabledLongAttributeAttributeGetterCallback(v8::Lo
cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3500 static void conditionalRuntimeEnabledLongAttributeAttributeGetterCallback(v8::Lo
cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
(...skipping 3787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7230 {"reflectedName", TestObjectPythonV8Internal::reflectedNameAttributeGetterCa
llback, TestObjectPythonV8Internal::reflectedNameAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, | 7288 {"reflectedName", TestObjectPythonV8Internal::reflectedNameAttributeGetterCa
llback, TestObjectPythonV8Internal::reflectedNameAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, |
7231 {"reflectedClass", TestObjectPythonV8Internal::reflectedClassAttributeGetter
Callback, TestObjectPythonV8Internal::reflectedClassAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), 0 /* on instance */}, | 7289 {"reflectedClass", TestObjectPythonV8Internal::reflectedClassAttributeGetter
Callback, TestObjectPythonV8Internal::reflectedClassAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), 0 /* on instance */}, |
7232 {"limitedToOnlyOneAttribute", TestObjectPythonV8Internal::limitedToOnlyOneAt
tributeAttributeGetterCallback, TestObjectPythonV8Internal::limitedToOnlyOneAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7290 {"limitedToOnlyOneAttribute", TestObjectPythonV8Internal::limitedToOnlyOneAt
tributeAttributeGetterCallback, TestObjectPythonV8Internal::limitedToOnlyOneAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7233 {"limitedToOnlyAttribute", TestObjectPythonV8Internal::limitedToOnlyAttribut
eAttributeGetterCallback, TestObjectPythonV8Internal::limitedToOnlyAttributeAttr
ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7291 {"limitedToOnlyAttribute", TestObjectPythonV8Internal::limitedToOnlyAttribut
eAttributeGetterCallback, TestObjectPythonV8Internal::limitedToOnlyAttributeAttr
ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7234 {"limitedToOnlyOtherAttribute", TestObjectPythonV8Internal::limitedToOnlyOth
erAttributeAttributeGetterCallback, TestObjectPythonV8Internal::limitedToOnlyOth
erAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::
DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7292 {"limitedToOnlyOtherAttribute", TestObjectPythonV8Internal::limitedToOnlyOth
erAttributeAttributeGetterCallback, TestObjectPythonV8Internal::limitedToOnlyOth
erAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::
DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7235 {"limitedWithMissingDefaultAttribute", TestObjectPythonV8Internal::limitedWi
thMissingDefaultAttributeAttributeGetterCallback, TestObjectPythonV8Internal::li
mitedWithMissingDefaultAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, | 7293 {"limitedWithMissingDefaultAttribute", TestObjectPythonV8Internal::limitedWi
thMissingDefaultAttributeAttributeGetterCallback, TestObjectPythonV8Internal::li
mitedWithMissingDefaultAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, |
7236 {"limitedWithInvalidMissingDefaultAttribute", TestObjectPythonV8Internal::li
mitedWithInvalidMissingDefaultAttributeAttributeGetterCallback, TestObjectPython
V8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr
ibute>(v8::None), 0 /* on instance */}, | 7294 {"limitedWithInvalidMissingDefaultAttribute", TestObjectPythonV8Internal::li
mitedWithInvalidMissingDefaultAttributeAttributeGetterCallback, TestObjectPython
V8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr
ibute>(v8::None), 0 /* on instance */}, |
7237 {"corsSettingAttribute", TestObjectPythonV8Internal::corsSettingAttributeAtt
ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s
tatic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7295 {"corsSettingAttribute", TestObjectPythonV8Internal::corsSettingAttributeAtt
ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s
tatic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7238 {"limitedWithEmptyMissingInvalidAttribute", TestObjectPythonV8Internal::limi
tedWithEmptyMissingInvalidAttributeAttributeGetterCallback, 0, 0, 0, 0, static_c
ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None
), 0 /* on instance */}, | 7296 {"limitedWithEmptyMissingInvalidAttribute", TestObjectPythonV8Internal::limi
tedWithEmptyMissingInvalidAttributeAttributeGetterCallback, 0, 0, 0, 0, static_c
ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None
), 0 /* on instance */}, |
7239 {"replaceableReadonlyLongAttribute", TestObjectPythonV8Internal::replaceable
ReadonlyLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::TestOb
jectPythonReplaceableAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCon
trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instan
ce */}, | 7297 {"replaceableReadonlyLongAttribute", TestObjectPythonV8Internal::replaceable
ReadonlyLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::TestOb
jectPythonReplaceableAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCon
trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instan
ce */}, |
| 7298 {"locationReplaceable", TestObjectPythonV8Internal::locationReplaceableAttri
buteGetterCallback, TestObjectPythonV8Internal::locationReplaceableAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7240 {"setterCallWithActiveWindowAndFirstWindowStringAttribute", TestObjectPython
V8Internal::setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett
erCallback, TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindow
StringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(
v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}
, | 7299 {"setterCallWithActiveWindowAndFirstWindowStringAttribute", TestObjectPython
V8Internal::setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett
erCallback, TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindow
StringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(
v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}
, |
7241 {"setterCallWithExecutionContextStringAttribute", TestObjectPythonV8Internal
::setterCallWithExecutionContextStringAttributeAttributeGetterCallback, TestObje
ctPythonV8Internal::setterCallWithExecutionContextStringAttributeAttributeSetter
Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::
PropertyAttribute>(v8::None), 0 /* on instance */}, | 7300 {"setterCallWithExecutionContextStringAttribute", TestObjectPythonV8Internal
::setterCallWithExecutionContextStringAttributeAttributeGetterCallback, TestObje
ctPythonV8Internal::setterCallWithExecutionContextStringAttributeAttributeSetter
Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::
PropertyAttribute>(v8::None), 0 /* on instance */}, |
7242 {"strictTypeCheckingFloatAttribute", TestObjectPythonV8Internal::strictTypeC
heckingFloatAttributeAttributeGetterCallback, TestObjectPythonV8Internal::strict
TypeCheckingFloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, | 7301 {"strictTypeCheckingFloatAttribute", TestObjectPythonV8Internal::strictTypeC
heckingFloatAttributeAttributeGetterCallback, TestObjectPythonV8Internal::strict
TypeCheckingFloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, |
7243 {"strictTypeCheckingTestInterfaceAttribute", TestObjectPythonV8Internal::str
ictTypeCheckingTestInterfaceAttributeAttributeGetterCallback, TestObjectPythonV8
Internal::strictTypeCheckingTestInterfaceAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, | 7302 {"strictTypeCheckingTestInterfaceAttribute", TestObjectPythonV8Internal::str
ictTypeCheckingTestInterfaceAttributeAttributeGetterCallback, TestObjectPythonV8
Internal::strictTypeCheckingTestInterfaceAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, |
7244 {"treatNullAsNullStringStringAttribute", TestObjectPythonV8Internal::treatNu
llAsNullStringStringAttributeAttributeGetterCallback, TestObjectPythonV8Internal
::treatNullAsNullStringStringAttributeAttributeSetterCallback, 0, 0, 0, static_c
ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None
), 0 /* on instance */}, | 7303 {"treatNullAsNullStringStringAttribute", TestObjectPythonV8Internal::treatNu
llAsNullStringStringAttributeAttributeGetterCallback, TestObjectPythonV8Internal
::treatNullAsNullStringStringAttributeAttributeSetterCallback, 0, 0, 0, static_c
ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None
), 0 /* on instance */}, |
7245 {"treatReturnedNullStringAsNullStringAttribute", TestObjectPythonV8Internal:
:treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback, TestObject
PythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeSetterCal
lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro
pertyAttribute>(v8::None), 0 /* on instance */}, | 7304 {"treatReturnedNullStringAsNullStringAttribute", TestObjectPythonV8Internal:
:treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback, TestObject
PythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeSetterCal
lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro
pertyAttribute>(v8::None), 0 /* on instance */}, |
7246 {"treatReturnedNullStringAsUndefinedStringAttribute", TestObjectPythonV8Inte
rnal::treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCallback,
TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAtt
ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat
ic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 7305 {"treatReturnedNullStringAsUndefinedStringAttribute", TestObjectPythonV8Inte
rnal::treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCallback,
TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAtt
ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat
ic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
7247 {"urlStringAttribute", TestObjectPythonV8Internal::urlStringAttributeAttribu
teGetterCallback, TestObjectPythonV8Internal::urlStringAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), 0 /* on instance */}, | 7306 {"urlStringAttribute", TestObjectPythonV8Internal::urlStringAttributeAttribu
teGetterCallback, TestObjectPythonV8Internal::urlStringAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), 0 /* on instance */}, |
7248 {"urlStringAttribute", TestObjectPythonV8Internal::urlStringAttributeAttribu
teGetterCallback, TestObjectPythonV8Internal::urlStringAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), 0 /* on instance */}, | 7307 {"urlStringAttribute", TestObjectPythonV8Internal::urlStringAttributeAttribu
teGetterCallback, TestObjectPythonV8Internal::urlStringAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), 0 /* on instance */}, |
7249 {"unforgeableLongAttribute", TestObjectPythonV8Internal::unforgeableLongAttr
ibuteAttributeGetterCallback, TestObjectPythonV8Internal::unforgeableLongAttribu
teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS
_OVERWRITING), static_cast<v8::PropertyAttribute>(v8::DontDelete), 0 /* on insta
nce */}, | 7308 {"unforgeableLongAttribute", TestObjectPythonV8Internal::unforgeableLongAttr
ibuteAttributeGetterCallback, TestObjectPythonV8Internal::unforgeableLongAttribu
teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS
_OVERWRITING), static_cast<v8::PropertyAttribute>(v8::DontDelete), 0 /* on insta
nce */}, |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7532 } | 7591 } |
7533 | 7592 |
7534 void V8TestObjectPython::installPerContextEnabledProperties(v8::Handle<v8::Objec
t> instanceTemplate, TestObjectPython* impl, v8::Isolate* isolate) | 7593 void V8TestObjectPython::installPerContextEnabledProperties(v8::Handle<v8::Objec
t> instanceTemplate, TestObjectPython* impl, v8::Isolate* isolate) |
7535 { | 7594 { |
7536 v8::Local<v8::Object> prototypeTemplate = v8::Local<v8::Object>::Cast(instan
ceTemplate->GetPrototype()); | 7595 v8::Local<v8::Object> prototypeTemplate = v8::Local<v8::Object>::Cast(instan
ceTemplate->GetPrototype()); |
7537 if (ContextFeatures::featureNameEnabled(impl->document())) { | 7596 if (ContextFeatures::featureNameEnabled(impl->document())) { |
7538 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 7597 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ |
7539 {"perContextEnabledLongAttribute", TestObjectPythonV8Internal::perContex
tEnabledLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::perCon
textEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Access
Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on ins
tance */}; | 7598 {"perContextEnabledLongAttribute", TestObjectPythonV8Internal::perContex
tEnabledLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::perCon
textEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Access
Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on ins
tance */}; |
7540 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate
, attributeConfiguration, isolate); | 7599 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate
, attributeConfiguration, isolate); |
7541 } | 7600 } |
| 7601 if (ContextFeatures::featureNameEnabled(impl->document())) { |
| 7602 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ |
| 7603 {"perContextEnabledRuntimeEnabledLongAttribute", TestObjectPythonV8Inter
nal::perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback, TestOb
jectPythonV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttributeSette
rCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:
:PropertyAttribute>(v8::None), 0 /* on instance */}; |
| 7604 V8DOMConfiguration::installAttribute(instanceTemplate, prototypeTemplate
, attributeConfiguration, isolate); |
| 7605 } |
7542 } | 7606 } |
7543 | 7607 |
7544 void V8TestObjectPython::installPerContextEnabledMethods(v8::Handle<v8::Object>
prototypeTemplate, v8::Isolate* isolate) | 7608 void V8TestObjectPython::installPerContextEnabledMethods(v8::Handle<v8::Object>
prototypeTemplate, v8::Isolate* isolate) |
7545 { | 7609 { |
7546 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate, worldType(isolate))); | 7610 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate, worldType(isolate))); |
7547 | 7611 |
7548 ExecutionContext* context = toExecutionContext(prototypeTemplate->CreationCo
ntext()); | 7612 ExecutionContext* context = toExecutionContext(prototypeTemplate->CreationCo
ntext()); |
7549 if (context && context->isDocument() && ContextFeatures::featureNameEnabled(
toDocument(context))) | 7613 if (context && context->isDocument() && ContextFeatures::featureNameEnabled(
toDocument(context))) |
7550 prototypeTemplate->Set(v8AtomicString(isolate, "perContextEnabledVoidMet
hod"), v8::FunctionTemplate::New(isolate, TestObjectPythonV8Internal::perContext
EnabledVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunctio
n()); | 7614 prototypeTemplate->Set(v8AtomicString(isolate, "perContextEnabledVoidMet
hod"), v8::FunctionTemplate::New(isolate, TestObjectPythonV8Internal::perContext
EnabledVoidMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunctio
n()); |
7551 } | 7615 } |
(...skipping 23 matching lines...) Expand all Loading... |
7575 fromInternalPointer(object)->deref(); | 7639 fromInternalPointer(object)->deref(); |
7576 } | 7640 } |
7577 | 7641 |
7578 template<> | 7642 template<> |
7579 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object
> creationContext, v8::Isolate* isolate) | 7643 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object
> creationContext, v8::Isolate* isolate) |
7580 { | 7644 { |
7581 return toV8(impl, creationContext, isolate); | 7645 return toV8(impl, creationContext, isolate); |
7582 } | 7646 } |
7583 | 7647 |
7584 } // namespace WebCore | 7648 } // namespace WebCore |
OLD | NEW |