OLD | NEW |
1 /* | 1 /* |
2 This file is part of the WebKit open source project. | 2 This file is part of the WebKit open source project. |
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY! | 3 This file has been generated by generate-bindings.pl. DO NOT MODIFY! |
4 | 4 |
5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
9 | 9 |
10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
11 but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 Library General Public License for more details. | 13 Library General Public License for more details. |
14 | 14 |
15 You should have received a copy of the GNU Library General Public License | 15 You should have received a copy of the GNU Library General Public License |
16 along with this library; see the file COPYING.LIB. If not, write to | 16 along with this library; see the file COPYING.LIB. If not, write to |
17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 Boston, MA 02111-1307, USA. | 18 Boston, MA 02111-1307, USA. |
19 */ | 19 */ |
20 | 20 |
21 #include "config.h" | 21 #include "config.h" |
22 #include "V8TestObj.h" | 22 #include "V8TestObj.h" |
23 | 23 |
24 #include "BindingState.h" | 24 #include "BindingState.h" |
25 #include "ContextFeatures.h" | 25 #include "ContextFeatures.h" |
26 #include "DOMStringList.h" | 26 #include "DOMStringList.h" |
27 #include "Dictionary.h" | 27 #include "Dictionary.h" |
28 #include "ExceptionCode.h" | 28 #include "ExceptionCode.h" |
29 #include "UseCounter.h" | |
30 #include "Frame.h" | 29 #include "Frame.h" |
31 #include "HTMLNames.h" | 30 #include "HTMLNames.h" |
32 #include "RuntimeEnabledFeatures.h" | 31 #include "RuntimeEnabledFeatures.h" |
33 #include "SVGPropertyTearOff.h" | 32 #include "SVGPropertyTearOff.h" |
34 #include "SVGStaticPropertyTearOff.h" | 33 #include "SVGStaticPropertyTearOff.h" |
| 34 #include "ScriptController.h" |
35 #include "ScriptProfile.h" | 35 #include "ScriptProfile.h" |
36 #include "ScriptValue.h" | 36 #include "ScriptValue.h" |
37 #include "SerializedScriptValue.h" | 37 #include "SerializedScriptValue.h" |
| 38 #include "UseCounter.h" |
38 #include "V8Binding.h" | 39 #include "V8Binding.h" |
39 #include "V8DOMStringList.h" | 40 #include "V8DOMStringList.h" |
40 #include "V8DOMWrapper.h" | 41 #include "V8DOMWrapper.h" |
41 #include "V8Document.h" | 42 #include "V8Document.h" |
42 #include "V8EventListenerList.h" | 43 #include "V8EventListenerList.h" |
43 #include "V8Float32Array.h" | 44 #include "V8Float32Array.h" |
44 #include "V8Node.h" | 45 #include "V8Node.h" |
45 #include "V8SVGDocument.h" | 46 #include "V8SVGDocument.h" |
46 #include "V8SVGPoint.h" | 47 #include "V8SVGPoint.h" |
47 #include "V8ScriptProfile.h" | 48 #include "V8ScriptProfile.h" |
(...skipping 3356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3404 {"nullableLongSettableAttribute", TestObjV8Internal::nullableLongSettableAtt
ributeAttrGetterCallback, TestObjV8Internal::nullableLongSettableAttributeAttrSe
tterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3405 {"nullableLongSettableAttribute", TestObjV8Internal::nullableLongSettableAtt
ributeAttrGetterCallback, TestObjV8Internal::nullableLongSettableAttributeAttrSe
tterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
3405 // Attribute 'nullableStringValue' (Type: 'attribute' ExtAttr: 'GetterRaises
Exception') | 3406 // Attribute 'nullableStringValue' (Type: 'attribute' ExtAttr: 'GetterRaises
Exception') |
3406 {"nullableStringValue", TestObjV8Internal::nullableStringValueAttrGetterCall
back, TestObjV8Internal::nullableStringValueAttrSetterCallback, 0, 0, 0 /* no da
ta */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr
ibute>(v8::None), 0 /* on instance */}, | 3407 {"nullableStringValue", TestObjV8Internal::nullableStringValueAttrGetterCall
back, TestObjV8Internal::nullableStringValueAttrSetterCallback, 0, 0, 0 /* no da
ta */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr
ibute>(v8::None), 0 /* on instance */}, |
3407 // Attribute 'perWorldReadOnlyAttribute' (Type: 'readonly attribute' ExtAttr
: 'PerWorldBindings') | 3408 // Attribute 'perWorldReadOnlyAttribute' (Type: 'readonly attribute' ExtAttr
: 'PerWorldBindings') |
3408 {"perWorldReadOnlyAttribute", TestObjV8Internal::perWorldReadOnlyAttributeAt
trGetterCallback, 0, TestObjV8Internal::perWorldReadOnlyAttributeAttrGetterCallb
ackForMainWorld, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3409 {"perWorldReadOnlyAttribute", TestObjV8Internal::perWorldReadOnlyAttributeAt
trGetterCallback, 0, TestObjV8Internal::perWorldReadOnlyAttributeAttrGetterCallb
ackForMainWorld, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
3409 // Attribute 'perWorldAttribute' (Type: 'attribute' ExtAttr: 'PerWorldBindin
gs') | 3410 // Attribute 'perWorldAttribute' (Type: 'attribute' ExtAttr: 'PerWorldBindin
gs') |
3410 {"perWorldAttribute", TestObjV8Internal::perWorldAttributeAttrGetterCallback
, TestObjV8Internal::perWorldAttributeAttrSetterCallback, TestObjV8Internal::per
WorldAttributeAttrGetterCallbackForMainWorld, TestObjV8Internal::perWorldAttribu
teAttrSetterCallbackForMainWorld, 0 /* no data */, static_cast<v8::AccessControl
>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance *
/}, | 3411 {"perWorldAttribute", TestObjV8Internal::perWorldAttributeAttrGetterCallback
, TestObjV8Internal::perWorldAttributeAttrSetterCallback, TestObjV8Internal::per
WorldAttributeAttrGetterCallbackForMainWorld, TestObjV8Internal::perWorldAttribu
teAttrSetterCallbackForMainWorld, 0 /* no data */, static_cast<v8::AccessControl
>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance *
/}, |
3411 }; | 3412 }; |
3412 | 3413 |
3413 static const V8DOMConfiguration::BatchedMethod V8TestObjMethods[] = { | 3414 static const V8DOMConfiguration::BatchedMethod V8TestObjMethods[] = { |
3414 {"voidMethod", TestObjV8Internal::voidMethodMethodCallback, 0}, | 3415 {"voidMethod", TestObjV8Internal::voidMethodMethodCallback, 0, 0}, |
3415 {"longMethod", TestObjV8Internal::longMethodMethodCallback, 0}, | 3416 {"longMethod", TestObjV8Internal::longMethodMethodCallback, 0, 0}, |
3416 {"objMethod", TestObjV8Internal::objMethodMethodCallback, 0}, | 3417 {"objMethod", TestObjV8Internal::objMethodMethodCallback, 0, 0}, |
3417 {"methodReturningSequence", TestObjV8Internal::methodReturningSequenceMethod
Callback, 0}, | 3418 {"methodReturningSequence", TestObjV8Internal::methodReturningSequenceMethod
Callback, 0, 1}, |
3418 {"serializedValue", TestObjV8Internal::serializedValueMethodCallback, 0}, | 3419 {"serializedValue", TestObjV8Internal::serializedValueMethodCallback, 0, 1}, |
3419 {"optionsObject", TestObjV8Internal::optionsObjectMethodCallback, 0}, | 3420 {"optionsObject", TestObjV8Internal::optionsObjectMethodCallback, 0, 1}, |
3420 {"methodWithException", TestObjV8Internal::methodWithExceptionMethodCallback
, 0}, | 3421 {"methodWithException", TestObjV8Internal::methodWithExceptionMethodCallback
, 0, 0}, |
3421 {"customMethod", TestObjV8Internal::customMethodMethodCallback, 0}, | 3422 {"customMethod", TestObjV8Internal::customMethodMethodCallback, 0, 0}, |
3422 {"customMethodWithArgs", TestObjV8Internal::customMethodWithArgsMethodCallba
ck, 0}, | 3423 {"customMethodWithArgs", TestObjV8Internal::customMethodWithArgsMethodCallba
ck, 0, 3}, |
3423 {"addEventListener", TestObjV8Internal::addEventListenerMethodCallback, 0}, | 3424 {"addEventListener", TestObjV8Internal::addEventListenerMethodCallback, 0, 2
}, |
3424 {"removeEventListener", TestObjV8Internal::removeEventListenerMethodCallback
, 0}, | 3425 {"removeEventListener", TestObjV8Internal::removeEventListenerMethodCallback
, 0, 2}, |
3425 {"withScriptStateVoid", TestObjV8Internal::withScriptStateVoidMethodCallback
, 0}, | 3426 {"withScriptStateVoid", TestObjV8Internal::withScriptStateVoidMethodCallback
, 0, 0}, |
3426 {"withScriptStateObj", TestObjV8Internal::withScriptStateObjMethodCallback,
0}, | 3427 {"withScriptStateObj", TestObjV8Internal::withScriptStateObjMethodCallback,
0, 0}, |
3427 {"withScriptStateVoidException", TestObjV8Internal::withScriptStateVoidExcep
tionMethodCallback, 0}, | 3428 {"withScriptStateVoidException", TestObjV8Internal::withScriptStateVoidExcep
tionMethodCallback, 0, 0}, |
3428 {"withScriptStateObjException", TestObjV8Internal::withScriptStateObjExcepti
onMethodCallback, 0}, | 3429 {"withScriptStateObjException", TestObjV8Internal::withScriptStateObjExcepti
onMethodCallback, 0, 0}, |
3429 {"withScriptExecutionContext", TestObjV8Internal::withScriptExecutionContext
MethodCallback, 0}, | 3430 {"withScriptExecutionContext", TestObjV8Internal::withScriptExecutionContext
MethodCallback, 0, 0}, |
3430 {"withScriptExecutionContextAndScriptState", TestObjV8Internal::withScriptEx
ecutionContextAndScriptStateMethodCallback, 0}, | 3431 {"withScriptExecutionContextAndScriptState", TestObjV8Internal::withScriptEx
ecutionContextAndScriptStateMethodCallback, 0, 0}, |
3431 {"withScriptExecutionContextAndScriptStateObjException", TestObjV8Internal::
withScriptExecutionContextAndScriptStateObjExceptionMethodCallback, 0}, | 3432 {"withScriptExecutionContextAndScriptStateObjException", TestObjV8Internal::
withScriptExecutionContextAndScriptStateObjExceptionMethodCallback, 0, 0}, |
3432 {"withScriptExecutionContextAndScriptStateWithSpaces", TestObjV8Internal::wi
thScriptExecutionContextAndScriptStateWithSpacesMethodCallback, 0}, | 3433 {"withScriptExecutionContextAndScriptStateWithSpaces", TestObjV8Internal::wi
thScriptExecutionContextAndScriptStateWithSpacesMethodCallback, 0, 0}, |
3433 {"methodWithOptionalArg", TestObjV8Internal::methodWithOptionalArgMethodCall
back, 0}, | 3434 {"methodWithOptionalArg", TestObjV8Internal::methodWithOptionalArgMethodCall
back, 0, 0}, |
3434 {"methodWithNonOptionalArgAndOptionalArg", TestObjV8Internal::methodWithNonO
ptionalArgAndOptionalArgMethodCallback, 0}, | 3435 {"methodWithNonOptionalArgAndOptionalArg", TestObjV8Internal::methodWithNonO
ptionalArgAndOptionalArgMethodCallback, 0, 1}, |
3435 {"methodWithNonOptionalArgAndTwoOptionalArgs", TestObjV8Internal::methodWith
NonOptionalArgAndTwoOptionalArgsMethodCallback, 0}, | 3436 {"methodWithNonOptionalArgAndTwoOptionalArgs", TestObjV8Internal::methodWith
NonOptionalArgAndTwoOptionalArgsMethodCallback, 0, 1}, |
3436 {"methodWithOptionalString", TestObjV8Internal::methodWithOptionalStringMeth
odCallback, 0}, | 3437 {"methodWithOptionalString", TestObjV8Internal::methodWithOptionalStringMeth
odCallback, 0, 0}, |
3437 {"methodWithOptionalStringIsUndefined", TestObjV8Internal::methodWithOptiona
lStringIsUndefinedMethodCallback, 0}, | 3438 {"methodWithOptionalStringIsUndefined", TestObjV8Internal::methodWithOptiona
lStringIsUndefinedMethodCallback, 0, 0}, |
3438 {"methodWithOptionalStringIsNullString", TestObjV8Internal::methodWithOption
alStringIsNullStringMethodCallback, 0}, | 3439 {"methodWithOptionalStringIsNullString", TestObjV8Internal::methodWithOption
alStringIsNullStringMethodCallback, 0, 0}, |
3439 {"methodWithCallbackArg", TestObjV8Internal::methodWithCallbackArgMethodCall
back, 0}, | 3440 {"methodWithCallbackArg", TestObjV8Internal::methodWithCallbackArgMethodCall
back, 0, 1}, |
3440 {"methodWithNonCallbackArgAndCallbackArg", TestObjV8Internal::methodWithNonC
allbackArgAndCallbackArgMethodCallback, 0}, | 3441 {"methodWithNonCallbackArgAndCallbackArg", TestObjV8Internal::methodWithNonC
allbackArgAndCallbackArgMethodCallback, 0, 2}, |
3441 {"methodWithCallbackAndOptionalArg", TestObjV8Internal::methodWithCallbackAn
dOptionalArgMethodCallback, 0}, | 3442 {"methodWithCallbackAndOptionalArg", TestObjV8Internal::methodWithCallbackAn
dOptionalArgMethodCallback, 0, 0}, |
3442 {"methodWithEnforceRangeInt32", TestObjV8Internal::methodWithEnforceRangeInt
32MethodCallback, 0}, | 3443 {"methodWithEnforceRangeInt32", TestObjV8Internal::methodWithEnforceRangeInt
32MethodCallback, 0, 1}, |
3443 {"methodWithEnforceRangeUInt32", TestObjV8Internal::methodWithEnforceRangeUI
nt32MethodCallback, 0}, | 3444 {"methodWithEnforceRangeUInt32", TestObjV8Internal::methodWithEnforceRangeUI
nt32MethodCallback, 0, 1}, |
3444 {"methodWithEnforceRangeInt64", TestObjV8Internal::methodWithEnforceRangeInt
64MethodCallback, 0}, | 3445 {"methodWithEnforceRangeInt64", TestObjV8Internal::methodWithEnforceRangeInt
64MethodCallback, 0, 1}, |
3445 {"methodWithEnforceRangeUInt64", TestObjV8Internal::methodWithEnforceRangeUI
nt64MethodCallback, 0}, | 3446 {"methodWithEnforceRangeUInt64", TestObjV8Internal::methodWithEnforceRangeUI
nt64MethodCallback, 0, 1}, |
3446 #if ENABLE(Condition1) | 3447 #if ENABLE(Condition1) |
3447 {"conditionalMethod1", TestObjV8Internal::conditionalMethod1MethodCallback,
0}, | 3448 {"conditionalMethod1", TestObjV8Internal::conditionalMethod1MethodCallback,
0, 0}, |
3448 #endif | 3449 #endif |
3449 #if ENABLE(Condition1) && ENABLE(Condition2) | 3450 #if ENABLE(Condition1) && ENABLE(Condition2) |
3450 {"conditionalMethod2", TestObjV8Internal::conditionalMethod2MethodCallback,
0}, | 3451 {"conditionalMethod2", TestObjV8Internal::conditionalMethod2MethodCallback,
0, 0}, |
3451 #endif | 3452 #endif |
3452 #if ENABLE(Condition1) || ENABLE(Condition2) | 3453 #if ENABLE(Condition1) || ENABLE(Condition2) |
3453 {"conditionalMethod3", TestObjV8Internal::conditionalMethod3MethodCallback,
0}, | 3454 {"conditionalMethod3", TestObjV8Internal::conditionalMethod3MethodCallback,
0, 0}, |
3454 #endif | 3455 #endif |
3455 {"overloadedMethod", TestObjV8Internal::overloadedMethodMethodCallback, 0}, | 3456 {"overloadedMethod", TestObjV8Internal::overloadedMethodMethodCallback, 0, 2
}, |
3456 {"classMethodWithClamp", TestObjV8Internal::classMethodWithClampMethodCallba
ck, 0}, | 3457 {"classMethodWithClamp", TestObjV8Internal::classMethodWithClampMethodCallba
ck, 0, 2}, |
3457 {"getSVGDocument", TestObjV8Internal::getSVGDocumentMethodCallback, 0}, | 3458 {"getSVGDocument", TestObjV8Internal::getSVGDocumentMethodCallback, 0, 0}, |
3458 {"mutablePointFunction", TestObjV8Internal::mutablePointFunctionMethodCallba
ck, 0}, | 3459 {"mutablePointFunction", TestObjV8Internal::mutablePointFunctionMethodCallba
ck, 0, 0}, |
3459 {"immutablePointFunction", TestObjV8Internal::immutablePointFunctionMethodCa
llback, 0}, | 3460 {"immutablePointFunction", TestObjV8Internal::immutablePointFunctionMethodCa
llback, 0, 0}, |
3460 {"orange", TestObjV8Internal::orangeMethodCallback, 0}, | 3461 {"orange", TestObjV8Internal::orangeMethodCallback, 0, 0}, |
3461 {"strictFunction", TestObjV8Internal::strictFunctionMethodCallback, 0}, | 3462 {"strictFunction", TestObjV8Internal::strictFunctionMethodCallback, 0, 3}, |
3462 {"variadicStringMethod", TestObjV8Internal::variadicStringMethodMethodCallba
ck, 0}, | 3463 {"variadicStringMethod", TestObjV8Internal::variadicStringMethodMethodCallba
ck, 0, 2}, |
3463 {"variadicDoubleMethod", TestObjV8Internal::variadicDoubleMethodMethodCallba
ck, 0}, | 3464 {"variadicDoubleMethod", TestObjV8Internal::variadicDoubleMethodMethodCallba
ck, 0, 2}, |
3464 {"perWorldMethod", TestObjV8Internal::perWorldMethodMethodCallback, TestObjV
8Internal::perWorldMethodMethodCallbackForMainWorld}, | 3465 {"perWorldMethod", TestObjV8Internal::perWorldMethodMethodCallback, TestObjV
8Internal::perWorldMethodMethodCallbackForMainWorld, 0}, |
3465 {"overloadedPerWorldMethod", TestObjV8Internal::overloadedPerWorldMethodMeth
odCallback, TestObjV8Internal::overloadedPerWorldMethodMethodCallbackForMainWorl
d}, | 3466 {"overloadedPerWorldMethod", TestObjV8Internal::overloadedPerWorldMethodMeth
odCallback, TestObjV8Internal::overloadedPerWorldMethodMethodCallbackForMainWorl
d, 1}, |
3466 }; | 3467 }; |
3467 | 3468 |
3468 static const V8DOMConfiguration::BatchedConstant V8TestObjConsts[] = { | 3469 static const V8DOMConfiguration::BatchedConstant V8TestObjConsts[] = { |
3469 #if ENABLE(Condition1) | 3470 #if ENABLE(Condition1) |
3470 {"CONDITIONAL_CONST", 0}, | 3471 {"CONDITIONAL_CONST", 0}, |
3471 #endif | 3472 #endif |
3472 {"CONST_VALUE_0", 0}, | 3473 {"CONST_VALUE_0", 0}, |
3473 {"CONST_VALUE_1", 1}, | 3474 {"CONST_VALUE_1", 1}, |
3474 {"CONST_VALUE_2", 2}, | 3475 {"CONST_VALUE_2", 2}, |
3475 {"CONST_VALUE_4", 4}, | 3476 {"CONST_VALUE_4", 4}, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3514 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestObjTemplate(v8::Persi
stent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType current
WorldType) | 3515 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestObjTemplate(v8::Persi
stent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType current
WorldType) |
3515 { | 3516 { |
3516 desc->ReadOnlyPrototype(); | 3517 desc->ReadOnlyPrototype(); |
3517 | 3518 |
3518 v8::Local<v8::Signature> defaultSignature; | 3519 v8::Local<v8::Signature> defaultSignature; |
3519 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestObject",
v8::Persistent<v8::FunctionTemplate>(), V8TestObj::internalFieldCount, | 3520 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestObject",
v8::Persistent<v8::FunctionTemplate>(), V8TestObj::internalFieldCount, |
3520 V8TestObjAttrs, WTF_ARRAY_LENGTH(V8TestObjAttrs), | 3521 V8TestObjAttrs, WTF_ARRAY_LENGTH(V8TestObjAttrs), |
3521 V8TestObjMethods, WTF_ARRAY_LENGTH(V8TestObjMethods), isolate, currentWo
rldType); | 3522 V8TestObjMethods, WTF_ARRAY_LENGTH(V8TestObjMethods), isolate, currentWo
rldType); |
3522 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. | 3523 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. |
3523 desc->SetCallHandler(V8TestObj::constructorCallback); | 3524 desc->SetCallHandler(V8TestObj::constructorCallback); |
| 3525 desc->SetLength(1); |
3524 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); | 3526 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); |
3525 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); | 3527 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); |
3526 UNUSED_PARAM(instance); // In some cases, it will not be used. | 3528 UNUSED_PARAM(instance); // In some cases, it will not be used. |
3527 UNUSED_PARAM(proto); // In some cases, it will not be used. | 3529 UNUSED_PARAM(proto); // In some cases, it will not be used. |
3528 if (RuntimeEnabledFeatures::enabledAtRuntimeAttr1Enabled()) { | 3530 if (RuntimeEnabledFeatures::enabledAtRuntimeAttr1Enabled()) { |
3529 static const V8DOMConfiguration::BatchedAttribute attrData =\ | 3531 static const V8DOMConfiguration::BatchedAttribute attrData =\ |
3530 // Attribute 'enabledAtRuntimeAttr1' (Type: 'attribute' ExtAttr: 'Enable
dAtRuntime') | 3532 // Attribute 'enabledAtRuntimeAttr1' (Type: 'attribute' ExtAttr: 'Enable
dAtRuntime') |
3531 {"enabledAtRuntimeAttr1", TestObjV8Internal::enabledAtRuntimeAttr1AttrGe
tterCallback, TestObjV8Internal::enabledAtRuntimeAttr1AttrSetterCallback, 0, 0,
0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr
opertyAttribute>(v8::None), 0 /* on instance */}; | 3533 {"enabledAtRuntimeAttr1", TestObjV8Internal::enabledAtRuntimeAttr1AttrGe
tterCallback, TestObjV8Internal::enabledAtRuntimeAttr1AttrSetterCallback, 0, 0,
0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr
opertyAttribute>(v8::None), 0 /* on instance */}; |
3532 V8DOMConfiguration::configureAttribute(instance, proto, attrData, isolat
e, currentWorldType); | 3534 V8DOMConfiguration::configureAttribute(instance, proto, attrData, isolat
e, currentWorldType); |
3533 } | 3535 } |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3717 installPerContextProperties(wrapper, impl.get(), isolate); | 3719 installPerContextProperties(wrapper, impl.get(), isolate); |
3718 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD
ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep
endent); | 3720 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD
ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep
endent); |
3719 return wrapper; | 3721 return wrapper; |
3720 } | 3722 } |
3721 void V8TestObj::derefObject(void* object) | 3723 void V8TestObj::derefObject(void* object) |
3722 { | 3724 { |
3723 static_cast<TestObj*>(object)->deref(); | 3725 static_cast<TestObj*>(object)->deref(); |
3724 } | 3726 } |
3725 | 3727 |
3726 } // namespace WebCore | 3728 } // namespace WebCore |
OLD | NEW |