| 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 18 matching lines...) Expand all Loading... |
| 29 #include "V8DocumentType.h" | 29 #include "V8DocumentType.h" |
| 30 #include "V8Element.h" | 30 #include "V8Element.h" |
| 31 #include "V8Entity.h" | 31 #include "V8Entity.h" |
| 32 #include "V8HTMLCollection.h" | 32 #include "V8HTMLCollection.h" |
| 33 #include "V8HTMLElement.h" | 33 #include "V8HTMLElement.h" |
| 34 #include "V8Node.h" | 34 #include "V8Node.h" |
| 35 #include "V8NodeFilter.h" | 35 #include "V8NodeFilter.h" |
| 36 #include "V8ShadowRoot.h" | 36 #include "V8ShadowRoot.h" |
| 37 #include "V8TestInterface.h" | 37 #include "V8TestInterface.h" |
| 38 #include "V8TestInterfaceEmpty.h" | 38 #include "V8TestInterfaceEmpty.h" |
| 39 #include "V8TestObjectA.h" |
| 39 #include "V8Window.h" | 40 #include "V8Window.h" |
| 40 #include "bindings/v8/BindingSecurity.h" | 41 #include "bindings/v8/BindingSecurity.h" |
| 41 #include "bindings/v8/ExceptionMessages.h" | 42 #include "bindings/v8/ExceptionMessages.h" |
| 42 #include "bindings/v8/ExceptionState.h" | 43 #include "bindings/v8/ExceptionState.h" |
| 43 #include "bindings/v8/ScriptController.h" | 44 #include "bindings/v8/ScriptController.h" |
| 44 #include "bindings/v8/ScriptPromise.h" | 45 #include "bindings/v8/ScriptPromise.h" |
| 45 #include "bindings/v8/ScriptValue.h" | 46 #include "bindings/v8/ScriptValue.h" |
| 46 #include "bindings/v8/SerializedScriptValue.h" | 47 #include "bindings/v8/SerializedScriptValue.h" |
| 47 #include "bindings/v8/V8AbstractEventListener.h" | 48 #include "bindings/v8/V8AbstractEventListener.h" |
| 48 #include "bindings/v8/V8Binding.h" | 49 #include "bindings/v8/V8Binding.h" |
| (...skipping 3190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3239 imp->setUnforgeableLongAttribute(cppValue); | 3240 imp->setUnforgeableLongAttribute(cppValue); |
| 3240 } | 3241 } |
| 3241 | 3242 |
| 3242 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String
> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info
) | 3243 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String
> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info
) |
| 3243 { | 3244 { |
| 3244 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3245 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 3245 TestObjectPythonV8Internal::unforgeableLongAttributeAttributeSetter(name, js
Value, info); | 3246 TestObjectPythonV8Internal::unforgeableLongAttributeAttributeSetter(name, js
Value, info); |
| 3246 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3247 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3247 } | 3248 } |
| 3248 | 3249 |
| 3250 static void TestObjectPythonConstructorGetter(v8::Local<v8::String> name, const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 3251 { |
| 3252 v8::Handle<v8::Value> data = info.Data(); |
| 3253 ASSERT(data->IsExternal()); |
| 3254 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); |
| 3255 if (!perContextData) |
| 3256 return; |
| 3257 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); |
| 3258 } |
| 3259 |
| 3249 static void TestObjectPythonReplaceableAttributeSetter(v8::Local<v8::String> nam
e, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3260 static void TestObjectPythonReplaceableAttributeSetter(v8::Local<v8::String> nam
e, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 3250 { | 3261 { |
| 3251 info.This()->ForceSet(name, jsValue); | 3262 info.This()->ForceSet(name, jsValue); |
| 3252 } | 3263 } |
| 3253 | 3264 |
| 3254 static void TestObjectPythonReplaceableAttributeSetterCallback(v8::Local<v8::Str
ing> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i
nfo) | 3265 static void TestObjectPythonReplaceableAttributeSetterCallback(v8::Local<v8::Str
ing> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i
nfo) |
| 3255 { | 3266 { |
| 3256 TestObjectPythonV8Internal::TestObjectPythonReplaceableAttributeSetter(name,
jsValue, info); | 3267 TestObjectPythonV8Internal::TestObjectPythonReplaceableAttributeSetter(name,
jsValue, info); |
| 3257 } | 3268 } |
| 3258 | 3269 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3298 {"self", TestObjectPythonV8Internal::selfAttributeGetterCallback, TestObject
PythonV8Internal::selfAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta
nce */}, | 3309 {"self", TestObjectPythonV8Internal::selfAttributeGetterCallback, TestObject
PythonV8Internal::selfAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta
nce */}, |
| 3299 {"readonlyWindowAttribute", TestObjectPythonV8Internal::readonlyWindowAttrib
uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3310 {"readonlyWindowAttribute", TestObjectPythonV8Internal::readonlyWindowAttrib
uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 3300 {"htmlCollectionAttribute", TestObjectPythonV8Internal::htmlCollectionAttrib
uteAttributeGetterCallback, TestObjectPythonV8Internal::htmlCollectionAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3311 {"htmlCollectionAttribute", TestObjectPythonV8Internal::htmlCollectionAttrib
uteAttributeGetterCallback, TestObjectPythonV8Internal::htmlCollectionAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 3301 {"htmlElementAttribute", TestObjectPythonV8Internal::htmlElementAttributeAtt
ributeGetterCallback, TestObjectPythonV8Internal::htmlElementAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3312 {"htmlElementAttribute", TestObjectPythonV8Internal::htmlElementAttributeAtt
ributeGetterCallback, TestObjectPythonV8Internal::htmlElementAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 3302 {"stringArrayAttribute", TestObjectPythonV8Internal::stringArrayAttributeAtt
ributeGetterCallback, TestObjectPythonV8Internal::stringArrayAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3313 {"stringArrayAttribute", TestObjectPythonV8Internal::stringArrayAttributeAtt
ributeGetterCallback, TestObjectPythonV8Internal::stringArrayAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 3303 {"testInterfaceEmptyArrayAttribute", TestObjectPythonV8Internal::testInterfa
ceEmptyArrayAttributeAttributeGetterCallback, TestObjectPythonV8Internal::testIn
terfaceEmptyArrayAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, | 3314 {"testInterfaceEmptyArrayAttribute", TestObjectPythonV8Internal::testInterfa
ceEmptyArrayAttributeAttributeGetterCallback, TestObjectPythonV8Internal::testIn
terfaceEmptyArrayAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, |
| 3304 {"floatArrayAttribute", TestObjectPythonV8Internal::floatArrayAttributeAttri
buteGetterCallback, TestObjectPythonV8Internal::floatArrayAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3315 {"floatArrayAttribute", TestObjectPythonV8Internal::floatArrayAttributeAttri
buteGetterCallback, TestObjectPythonV8Internal::floatArrayAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 3305 {"nullableStringAttribute", TestObjectPythonV8Internal::nullableStringAttrib
uteAttributeGetterCallback, TestObjectPythonV8Internal::nullableStringAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3316 {"nullableStringAttribute", TestObjectPythonV8Internal::nullableStringAttrib
uteAttributeGetterCallback, TestObjectPythonV8Internal::nullableStringAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 3306 {"nullableLongAttribute", TestObjectPythonV8Internal::nullableLongAttributeA
ttributeGetterCallback, TestObjectPythonV8Internal::nullableLongAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3317 {"nullableLongAttribute", TestObjectPythonV8Internal::nullableLongAttributeA
ttributeGetterCallback, TestObjectPythonV8Internal::nullableLongAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 3307 {"testEnumAttribute", TestObjectPythonV8Internal::testEnumAttributeAttribute
GetterCallback, TestObjectPythonV8Internal::testEnumAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, | 3318 {"testEnumAttribute", TestObjectPythonV8Internal::testEnumAttributeAttribute
GetterCallback, TestObjectPythonV8Internal::testEnumAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, |
| 3319 {"testObjectAConstructorAttribute", TestObjectPythonV8Internal::TestObjectPy
thonConstructorGetter, TestObjectPythonV8Internal::TestObjectPythonReplaceableAt
tributeSetterCallback, 0, 0, &V8TestObjectA::info, static_cast<v8::AccessControl
>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), 0 /* on instan
ce */}, |
| 3308 {"eventHandlerAttribute", TestObjectPythonV8Internal::eventHandlerAttributeA
ttributeGetterCallback, TestObjectPythonV8Internal::eventHandlerAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3320 {"eventHandlerAttribute", TestObjectPythonV8Internal::eventHandlerAttributeA
ttributeGetterCallback, TestObjectPythonV8Internal::eventHandlerAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 3309 {"promiseAttribute", TestObjectPythonV8Internal::promiseAttributeAttributeGe
tterCallback, TestObjectPythonV8Internal::promiseAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, | 3321 {"promiseAttribute", TestObjectPythonV8Internal::promiseAttributeAttributeGe
tterCallback, TestObjectPythonV8Internal::promiseAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, |
| 3310 {"activityLoggingAccessForAllWorldsLongAttribute", TestObjectPythonV8Interna
l::activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallback, TestOb
jectPythonV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttributeSet
terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3322 {"activityLoggingAccessForAllWorldsLongAttribute", TestObjectPythonV8Interna
l::activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallback, TestOb
jectPythonV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttributeSet
terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 3311 {"activityLoggingGetterForAllWorldsLongAttribute", TestObjectPythonV8Interna
l::activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallback, TestOb
jectPythonV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttributeSet
terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3323 {"activityLoggingGetterForAllWorldsLongAttribute", TestObjectPythonV8Interna
l::activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallback, TestOb
jectPythonV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttributeSet
terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 3312 {"activityLoggingSetterForAllWorldsLongAttribute", TestObjectPythonV8Interna
l::activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallback, TestOb
jectPythonV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttributeSet
terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3324 {"activityLoggingSetterForAllWorldsLongAttribute", TestObjectPythonV8Interna
l::activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallback, TestOb
jectPythonV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttributeSet
terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 3313 {"cachedAttributeAnyAttribute", TestObjectPythonV8Internal::cachedAttributeA
nyAttributeAttributeGetterCallback, TestObjectPythonV8Internal::cachedAttributeA
nyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::
DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3325 {"cachedAttributeAnyAttribute", TestObjectPythonV8Internal::cachedAttributeA
nyAttributeAttributeGetterCallback, TestObjectPythonV8Internal::cachedAttributeA
nyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::
DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 3314 {"callWithExecutionContextAnyAttribute", TestObjectPythonV8Internal::callWit
hExecutionContextAnyAttributeAttributeGetterCallback, TestObjectPythonV8Internal
::callWithExecutionContextAnyAttributeAttributeSetterCallback, 0, 0, 0, static_c
ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None
), 0 /* on instance */}, | 3326 {"callWithExecutionContextAnyAttribute", TestObjectPythonV8Internal::callWit
hExecutionContextAnyAttributeAttributeGetterCallback, TestObjectPythonV8Internal
::callWithExecutionContextAnyAttributeAttributeSetterCallback, 0, 0, 0, static_c
ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None
), 0 /* on instance */}, |
| 3315 {"checkSecurityForNodeReadonlyDocumentAttribute", TestObjectPythonV8Internal
::checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback, 0, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, | 3327 {"checkSecurityForNodeReadonlyDocumentAttribute", TestObjectPythonV8Internal
::checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback, 0, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, |
| 3316 #if ENABLE(Condition) | 3328 #if ENABLE(Condition) |
| 3317 {"conditionalLongAttribute", TestObjectPythonV8Internal::conditionalLongAttr
ibuteAttributeGetterCallback, TestObjectPythonV8Internal::conditionalLongAttribu
teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3329 {"conditionalLongAttribute", TestObjectPythonV8Internal::conditionalLongAttr
ibuteAttributeGetterCallback, TestObjectPythonV8Internal::conditionalLongAttribu
teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3466 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr
apper, isolate, WrapperConfiguration::Independent); | 3478 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr
apper, isolate, WrapperConfiguration::Independent); |
| 3467 return wrapper; | 3479 return wrapper; |
| 3468 } | 3480 } |
| 3469 | 3481 |
| 3470 void V8TestObjectPython::derefObject(void* object) | 3482 void V8TestObjectPython::derefObject(void* object) |
| 3471 { | 3483 { |
| 3472 fromInternalPointer(object)->deref(); | 3484 fromInternalPointer(object)->deref(); |
| 3473 } | 3485 } |
| 3474 | 3486 |
| 3475 } // namespace WebCore | 3487 } // namespace WebCore |
| OLD | NEW |