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 3156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3205 imp->setUnforgeableLongAttribute(cppValue); | 3206 imp->setUnforgeableLongAttribute(cppValue); |
3206 } | 3207 } |
3207 | 3208 |
3208 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String
> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info
) | 3209 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String
> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info
) |
3209 { | 3210 { |
3210 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3211 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3211 TestObjectPythonV8Internal::unforgeableLongAttributeAttributeSetter(name, js
Value, info); | 3212 TestObjectPythonV8Internal::unforgeableLongAttributeAttributeSetter(name, js
Value, info); |
3212 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3213 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
3213 } | 3214 } |
3214 | 3215 |
| 3216 static void TestObjectPythonConstructorGetter(v8::Local<v8::String> name, const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 3217 { |
| 3218 v8::Handle<v8::Value> data = info.Data(); |
| 3219 ASSERT(data->IsExternal()); |
| 3220 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); |
| 3221 if (!perContextData) |
| 3222 return; |
| 3223 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); |
| 3224 } |
| 3225 |
3215 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) |
3216 { | 3227 { |
3217 info.This()->ForceSet(name, jsValue); | 3228 info.This()->ForceSet(name, jsValue); |
3218 } | 3229 } |
3219 | 3230 |
3220 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) |
3221 { | 3232 { |
3222 TestObjectPythonV8Internal::TestObjectPythonReplaceableAttributeSetter(name,
jsValue, info); | 3233 TestObjectPythonV8Internal::TestObjectPythonReplaceableAttributeSetter(name,
jsValue, info); |
3223 } | 3234 } |
3224 | 3235 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3264 {"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 */}, | 3275 {"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 */}, |
3265 {"readonlyWindowAttribute", TestObjectPythonV8Internal::readonlyWindowAttrib
uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 3276 {"readonlyWindowAttribute", TestObjectPythonV8Internal::readonlyWindowAttrib
uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
3266 {"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 */}, | 3277 {"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 */}, |
3267 {"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 */}, | 3278 {"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 */}, |
3268 {"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 */}, | 3279 {"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 */}, |
3269 {"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 */}, | 3280 {"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 */}, |
3270 {"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 */}, | 3281 {"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 */}, |
3271 {"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 */}, | 3282 {"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 */}, |
3272 {"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 */}, | 3283 {"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 */}, |
3273 {"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 */}, | 3284 {"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 */}, |
| 3285 {"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 */}, |
3274 {"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 */}, | 3286 {"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 */}, |
3275 {"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 */}, | 3287 {"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 */}, |
3276 {"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 */}, | 3288 {"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 */}, |
3277 {"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 */}, | 3289 {"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 */}, |
3278 {"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 */}, | 3290 {"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 */}, |
3279 {"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 */}, | 3291 {"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 */}, |
3280 {"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 */}, | 3292 {"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 */}, |
3281 {"checkSecurityForNodeReadonlyDocumentAttribute", TestObjectPythonV8Internal
::checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback, 0, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, | 3293 {"checkSecurityForNodeReadonlyDocumentAttribute", TestObjectPythonV8Internal
::checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback, 0, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, |
3282 #if ENABLE(Condition) | 3294 #if ENABLE(Condition) |
3283 {"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 */}, | 3295 {"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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3430 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr
apper, isolate, WrapperConfiguration::Independent); | 3442 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr
apper, isolate, WrapperConfiguration::Independent); |
3431 return wrapper; | 3443 return wrapper; |
3432 } | 3444 } |
3433 | 3445 |
3434 void V8TestObjectPython::derefObject(void* object) | 3446 void V8TestObjectPython::derefObject(void* object) |
3435 { | 3447 { |
3436 fromInternalPointer(object)->deref(); | 3448 fromInternalPointer(object)->deref(); |
3437 } | 3449 } |
3438 | 3450 |
3439 } // namespace WebCore | 3451 } // namespace WebCore |
OLD | NEW |