OLD | NEW |
1 /* | 1 /* |
2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. 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, |
(...skipping 3215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3226 static void TestObjectPythonReplaceableAttributeSetter(v8::Local<v8::String> nam
e, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3226 static void TestObjectPythonReplaceableAttributeSetter(v8::Local<v8::String> nam
e, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3227 { | 3227 { |
3228 info.This()->ForceSet(name, jsValue); | 3228 info.This()->ForceSet(name, jsValue); |
3229 } | 3229 } |
3230 | 3230 |
3231 static void TestObjectPythonReplaceableAttributeSetterCallback(v8::Local<v8::Str
ing> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i
nfo) | 3231 static void TestObjectPythonReplaceableAttributeSetterCallback(v8::Local<v8::Str
ing> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i
nfo) |
3232 { | 3232 { |
3233 TestObjectPythonV8Internal::TestObjectPythonReplaceableAttributeSetter(name,
jsValue, info); | 3233 TestObjectPythonV8Internal::TestObjectPythonReplaceableAttributeSetter(name,
jsValue, info); |
3234 } | 3234 } |
3235 | 3235 |
| 3236 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& args) |
| 3237 { |
| 3238 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); |
| 3239 imp->voidMethod(); |
| 3240 |
| 3241 return; |
| 3242 } |
| 3243 |
| 3244 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
args) |
| 3245 { |
| 3246 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3247 TestObjectPythonV8Internal::voidMethodMethod(args); |
| 3248 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3249 } |
| 3250 |
3236 } // namespace TestObjectPythonV8Internal | 3251 } // namespace TestObjectPythonV8Internal |
3237 | 3252 |
3238 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectPythonAttrib
utes[] = { | 3253 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectPythonAttrib
utes[] = { |
3239 {"readonlyStringAttribute", TestObjectPythonV8Internal::readonlyStringAttrib
uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3254 {"readonlyStringAttribute", TestObjectPythonV8Internal::readonlyStringAttrib
uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
3240 {"readonlyTestInterfaceEmptyAttribute", TestObjectPythonV8Internal::readonly
TestInterfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}, | 3255 {"readonlyTestInterfaceEmptyAttribute", TestObjectPythonV8Internal::readonly
TestInterfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}, |
3241 {"readonlyLongAttribute", TestObjectPythonV8Internal::readonlyLongAttributeA
ttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3256 {"readonlyLongAttribute", TestObjectPythonV8Internal::readonlyLongAttributeA
ttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
3242 {"dateAttribute", TestObjectPythonV8Internal::dateAttributeAttributeGetterCa
llback, TestObjectPythonV8Internal::dateAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, | 3257 {"dateAttribute", TestObjectPythonV8Internal::dateAttributeAttributeGetterCa
llback, TestObjectPythonV8Internal::dateAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, |
3243 {"stringAttribute", TestObjectPythonV8Internal::stringAttributeAttributeGett
erCallback, TestObjectPythonV8Internal::stringAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, | 3258 {"stringAttribute", TestObjectPythonV8Internal::stringAttributeAttributeGett
erCallback, TestObjectPythonV8Internal::stringAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, |
3244 {"readonlyDOMTimeStampAttribute", TestObjectPythonV8Internal::readonlyDOMTim
eStampAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessContro
l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance
*/}, | 3259 {"readonlyDOMTimeStampAttribute", TestObjectPythonV8Internal::readonlyDOMTim
eStampAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessContro
l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance
*/}, |
3245 {"booleanAttribute", TestObjectPythonV8Internal::booleanAttributeAttributeGe
tterCallback, TestObjectPythonV8Internal::booleanAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, | 3260 {"booleanAttribute", TestObjectPythonV8Internal::booleanAttributeAttributeGe
tterCallback, TestObjectPythonV8Internal::booleanAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3346 {"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 */}, | 3361 {"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 */}, |
3347 {"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 */}, | 3362 {"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 */}, |
3348 {"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 */}, | 3363 {"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 */}, |
3349 {"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 */}, | 3364 {"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 */}, |
3350 {"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 */}, | 3365 {"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 */}, |
3351 {"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 */}, | 3366 {"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 */}, |
3352 {"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 */}, | 3367 {"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 */}, |
3353 {"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 */}, | 3368 {"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 */}, |
3354 }; | 3369 }; |
3355 | 3370 |
| 3371 static const V8DOMConfiguration::MethodConfiguration V8TestObjectPythonMethods[]
= { |
| 3372 {"voidMethod", TestObjectPythonV8Internal::voidMethodMethodCallback, 0, 0}, |
| 3373 }; |
| 3374 |
3356 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectPythonTemplate(v8::
Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType curren
tWorldType) | 3375 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectPythonTemplate(v8::
Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType curren
tWorldType) |
3357 { | 3376 { |
3358 desc->ReadOnlyPrototype(); | 3377 desc->ReadOnlyPrototype(); |
3359 | 3378 |
3360 v8::Local<v8::Signature> defaultSignature; | 3379 v8::Local<v8::Signature> defaultSignature; |
3361 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestOb
jectPython", v8::Local<v8::FunctionTemplate>(), V8TestObjectPython::internalFiel
dCount, | 3380 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestOb
jectPython", v8::Local<v8::FunctionTemplate>(), V8TestObjectPython::internalFiel
dCount, |
3362 V8TestObjectPythonAttributes, WTF_ARRAY_LENGTH(V8TestObjectPythonAttribu
tes), | 3381 V8TestObjectPythonAttributes, WTF_ARRAY_LENGTH(V8TestObjectPythonAttribu
tes), |
3363 0, 0, isolate, currentWorldType); | 3382 V8TestObjectPythonMethods, WTF_ARRAY_LENGTH(V8TestObjectPythonMethods),
isolate, currentWorldType); |
3364 UNUSED_PARAM(defaultSignature); | 3383 UNUSED_PARAM(defaultSignature); |
3365 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); | 3384 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); |
3366 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); | 3385 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); |
3367 UNUSED_PARAM(instance); | 3386 UNUSED_PARAM(instance); |
3368 UNUSED_PARAM(proto); | 3387 UNUSED_PARAM(proto); |
3369 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 3388 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
3370 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 3389 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ |
3371 {"runtimeEnabledLongAttribute", TestObjectPythonV8Internal::runtimeEnabl
edLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::runtimeEnabl
edLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(
v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}
; | 3390 {"runtimeEnabledLongAttribute", TestObjectPythonV8Internal::runtimeEnabl
edLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::runtimeEnabl
edLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(
v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}
; |
3372 V8DOMConfiguration::installAttribute(instance, proto, attributeConfigura
tion, isolate, currentWorldType); | 3391 V8DOMConfiguration::installAttribute(instance, proto, attributeConfigura
tion, isolate, currentWorldType); |
3373 } | 3392 } |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3442 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &wrapperT
ypeInfo, wrapper, isolate, WrapperConfiguration::Independent); | 3461 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &wrapperT
ypeInfo, wrapper, isolate, WrapperConfiguration::Independent); |
3443 return wrapper; | 3462 return wrapper; |
3444 } | 3463 } |
3445 | 3464 |
3446 void V8TestObjectPython::derefObject(void* object) | 3465 void V8TestObjectPython::derefObject(void* object) |
3447 { | 3466 { |
3448 fromInternalPointer(object)->deref(); | 3467 fromInternalPointer(object)->deref(); |
3449 } | 3468 } |
3450 | 3469 |
3451 } // namespace WebCore | 3470 } // namespace WebCore |
OLD | NEW |