| 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 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 info.Holder()->DeleteHiddenValue(v8::String::NewSymbol("cachedAttributeAnyAt
tribute")); // Invalidate the cached value. | 1185 info.Holder()->DeleteHiddenValue(v8::String::NewSymbol("cachedAttributeAnyAt
tribute")); // Invalidate the cached value. |
| 1186 } | 1186 } |
| 1187 | 1187 |
| 1188 static void cachedAttributeAnyAttributeAttributeSetterCallback(v8::Local<v8::Str
ing> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i
nfo) | 1188 static void cachedAttributeAnyAttributeAttributeSetterCallback(v8::Local<v8::Str
ing> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i
nfo) |
| 1189 { | 1189 { |
| 1190 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1190 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1191 TestObjectPythonV8Internal::cachedAttributeAnyAttributeAttributeSetter(name,
jsValue, info); | 1191 TestObjectPythonV8Internal::cachedAttributeAnyAttributeAttributeSetter(name,
jsValue, info); |
| 1192 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1192 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1193 } | 1193 } |
| 1194 | 1194 |
| 1195 static void callWithExecutionContextReadonlyAnyAttributeAttributeGetter(v8::Loca
l<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) | 1195 static void callWithExecutionContextAnyAttributeAttributeGetter(v8::Local<v8::St
ring> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1196 { | 1196 { |
| 1197 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1197 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1198 ExecutionContext* scriptContext = getExecutionContext(); | 1198 ExecutionContext* scriptContext = getExecutionContext(); |
| 1199 v8SetReturnValue(info, imp->callWithExecutionContextReadonlyAnyAttribute(scr
iptContext).v8Value()); | 1199 v8SetReturnValue(info, imp->callWithExecutionContextAnyAttribute(scriptConte
xt).v8Value()); |
| 1200 } | 1200 } |
| 1201 | 1201 |
| 1202 static void callWithExecutionContextReadonlyAnyAttributeAttributeGetterCallback(
v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) | 1202 static void callWithExecutionContextAnyAttributeAttributeGetterCallback(v8::Loca
l<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1203 { | 1203 { |
| 1204 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1204 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1205 TestObjectPythonV8Internal::callWithExecutionContextReadonlyAnyAttributeAttr
ibuteGetter(name, info); | 1205 TestObjectPythonV8Internal::callWithExecutionContextAnyAttributeAttributeGet
ter(name, info); |
| 1206 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1206 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1207 } | 1207 } |
| 1208 | 1208 |
| 1209 static void callWithExecutionContextAnyAttributeAttributeSetter(v8::Local<v8::St
ring> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>&
info) |
| 1210 { |
| 1211 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1212 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate(
))); |
| 1213 ExecutionContext* scriptContext = getExecutionContext(); |
| 1214 imp->setCallWithExecutionContextAnyAttribute(scriptContext, cppValue); |
| 1215 } |
| 1216 |
| 1217 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca
l<v8::String> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo
<void>& info) |
| 1218 { |
| 1219 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 1220 TestObjectPythonV8Internal::callWithExecutionContextAnyAttributeAttributeSet
ter(name, jsValue, info); |
| 1221 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1222 } |
| 1223 |
| 1209 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(v8::Loc
al<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) | 1224 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(v8::Loc
al<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1210 { | 1225 { |
| 1211 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1226 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1212 ExceptionState es(info.GetIsolate()); | 1227 ExceptionState es(info.GetIsolate()); |
| 1213 if (!BindingSecurity::shouldAllowAccessToNode(imp->checkSecurityForNodeReado
nlyDocumentAttribute(), es)) { | 1228 if (!BindingSecurity::shouldAllowAccessToNode(imp->checkSecurityForNodeReado
nlyDocumentAttribute(), es)) { |
| 1214 v8SetReturnValueNull(info); | 1229 v8SetReturnValueNull(info); |
| 1215 es.throwIfNeeded(); | 1230 es.throwIfNeeded(); |
| 1216 return; | 1231 return; |
| 1217 } | 1232 } |
| 1218 v8SetReturnValueFast(info, imp->checkSecurityForNodeReadonlyDocumentAttribut
e(), imp); | 1233 v8SetReturnValueFast(info, imp->checkSecurityForNodeReadonlyDocumentAttribut
e(), imp); |
| (...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2043 {"readonlyTestInterfaceEmptyArrayAttribute", TestObjectPythonV8Internal::rea
donlyTestInterfaceEmptyArrayAttributeAttributeGetterCallback, 0, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, | 2058 {"readonlyTestInterfaceEmptyArrayAttribute", TestObjectPythonV8Internal::rea
donlyTestInterfaceEmptyArrayAttributeAttributeGetterCallback, 0, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, |
| 2044 {"readonlyFloatArrayAttribute", TestObjectPythonV8Internal::readonlyFloatArr
ayAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 2059 {"readonlyFloatArrayAttribute", TestObjectPythonV8Internal::readonlyFloatArr
ayAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 2045 {"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 */}, | 2060 {"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 */}, |
| 2046 {"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 */}, | 2061 {"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 */}, |
| 2047 {"readonlyTestEnumAttribute", TestObjectPythonV8Internal::readonlyTestEnumAt
tributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::D
EFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 2062 {"readonlyTestEnumAttribute", TestObjectPythonV8Internal::readonlyTestEnumAt
tributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::D
EFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 2048 {"readonlyEventHandlerAttribute", TestObjectPythonV8Internal::readonlyEventH
andlerAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessContro
l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance
*/}, | 2063 {"readonlyEventHandlerAttribute", TestObjectPythonV8Internal::readonlyEventH
andlerAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessContro
l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance
*/}, |
| 2049 {"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 */}, | 2064 {"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 */}, |
| 2050 {"activityLogAccessReadonlyLongAttribute", TestObjectPythonV8Internal::activ
ityLogAccessReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cas
t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None),
0 /* on instance */}, | 2065 {"activityLogAccessReadonlyLongAttribute", TestObjectPythonV8Internal::activ
ityLogAccessReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cas
t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None),
0 /* on instance */}, |
| 2051 {"activityLogGetterReadonlyLongAttribute", TestObjectPythonV8Internal::activ
ityLogGetterReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cas
t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None),
0 /* on instance */}, | 2066 {"activityLogGetterReadonlyLongAttribute", TestObjectPythonV8Internal::activ
ityLogGetterReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cas
t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None),
0 /* on instance */}, |
| 2052 {"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 */}, | 2067 {"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 */}, |
| 2053 {"callWithExecutionContextReadonlyAnyAttribute", TestObjectPythonV8Internal:
:callWithExecutionContextReadonlyAnyAttributeAttributeGetterCallback, 0, 0, 0, 0
, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute
>(v8::None), 0 /* on instance */}, | 2068 {"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 */}, |
| 2054 {"checkSecurityForNodeReadonlyDocumentAttribute", TestObjectPythonV8Internal
::checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback, 0, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, | 2069 {"checkSecurityForNodeReadonlyDocumentAttribute", TestObjectPythonV8Internal
::checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback, 0, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, |
| 2055 #if ENABLE(Condition) | 2070 #if ENABLE(Condition) |
| 2056 {"conditionalReadonlyLongAttribute", TestObjectPythonV8Internal::conditional
ReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access
Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on ins
tance */}, | 2071 {"conditionalReadonlyLongAttribute", TestObjectPythonV8Internal::conditional
ReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access
Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on ins
tance */}, |
| 2057 #endif // ENABLE(Condition) | 2072 #endif // ENABLE(Condition) |
| 2058 #if ENABLE(Condition1) && ENABLE(Condition2) | 2073 #if ENABLE(Condition1) && ENABLE(Condition2) |
| 2059 {"conditionalAndReadonlyLongAttribute", TestObjectPythonV8Internal::conditio
nalAndReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}, | 2074 {"conditionalAndReadonlyLongAttribute", TestObjectPythonV8Internal::conditio
nalAndReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}, |
| 2060 #endif // ENABLE(Condition1) && ENABLE(Condition2) | 2075 #endif // ENABLE(Condition1) && ENABLE(Condition2) |
| 2061 #if ENABLE(Condition1) || ENABLE(Condition2) | 2076 #if ENABLE(Condition1) || ENABLE(Condition2) |
| 2062 {"conditionalOrReadonlyLongAttribute", TestObjectPythonV8Internal::condition
alOrReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Ac
cessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on
instance */}, | 2077 {"conditionalOrReadonlyLongAttribute", TestObjectPythonV8Internal::condition
alOrReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Ac
cessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on
instance */}, |
| 2063 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 2078 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2201 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr
apper, isolate, WrapperConfiguration::Independent); | 2216 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr
apper, isolate, WrapperConfiguration::Independent); |
| 2202 return wrapper; | 2217 return wrapper; |
| 2203 } | 2218 } |
| 2204 | 2219 |
| 2205 void V8TestObjectPython::derefObject(void* object) | 2220 void V8TestObjectPython::derefObject(void* object) |
| 2206 { | 2221 { |
| 2207 fromInternalPointer(object)->deref(); | 2222 fromInternalPointer(object)->deref(); |
| 2208 } | 2223 } |
| 2209 | 2224 |
| 2210 } // namespace WebCore | 2225 } // namespace WebCore |
| OLD | NEW |