| 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, |
| 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 "V8TestObjectPython.h" | 22 #include "V8TestObjectPython.h" |
| 23 | 23 |
| 24 #include "HTMLNames.h" |
| 24 #include "RuntimeEnabledFeatures.h" | 25 #include "RuntimeEnabledFeatures.h" |
| 25 #include "V8Document.h" | 26 #include "V8Document.h" |
| 26 #include "V8DocumentFragment.h" | 27 #include "V8DocumentFragment.h" |
| 27 #include "V8DocumentType.h" | 28 #include "V8DocumentType.h" |
| 28 #include "V8Element.h" | 29 #include "V8Element.h" |
| 29 #include "V8Entity.h" | 30 #include "V8Entity.h" |
| 30 #include "V8HTMLCollection.h" | 31 #include "V8HTMLCollection.h" |
| 31 #include "V8HTMLElement.h" | 32 #include "V8HTMLElement.h" |
| 32 #include "V8Node.h" | 33 #include "V8Node.h" |
| 33 #include "V8NodeFilter.h" | 34 #include "V8NodeFilter.h" |
| 34 #include "V8ShadowRoot.h" | 35 #include "V8ShadowRoot.h" |
| 36 #include "V8TestInterface.h" |
| 35 #include "V8TestInterfaceEmpty.h" | 37 #include "V8TestInterfaceEmpty.h" |
| 36 #include "V8Window.h" | 38 #include "V8Window.h" |
| 37 #include "bindings/v8/BindingSecurity.h" | 39 #include "bindings/v8/BindingSecurity.h" |
| 38 #include "bindings/v8/ExceptionMessages.h" | 40 #include "bindings/v8/ExceptionMessages.h" |
| 39 #include "bindings/v8/ExceptionState.h" | 41 #include "bindings/v8/ExceptionState.h" |
| 40 #include "bindings/v8/ScriptController.h" | 42 #include "bindings/v8/ScriptController.h" |
| 41 #include "bindings/v8/SerializedScriptValue.h" | 43 #include "bindings/v8/SerializedScriptValue.h" |
| 42 #include "bindings/v8/V8AbstractEventListener.h" | 44 #include "bindings/v8/V8AbstractEventListener.h" |
| 43 #include "bindings/v8/V8Binding.h" | 45 #include "bindings/v8/V8Binding.h" |
| 44 #include "bindings/v8/V8DOMActivityLogger.h" | 46 #include "bindings/v8/V8DOMActivityLogger.h" |
| (...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1021 v8SetReturnValueInt(info, value); | 1023 v8SetReturnValueInt(info, value); |
| 1022 } | 1024 } |
| 1023 | 1025 |
| 1024 static void raisesExceptionReadonlyLongAttributeAttributeGetterCallback(v8::Loca
l<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) | 1026 static void raisesExceptionReadonlyLongAttributeAttributeGetterCallback(v8::Loca
l<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1025 { | 1027 { |
| 1026 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1028 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1027 TestObjectPythonV8Internal::raisesExceptionReadonlyLongAttributeAttributeGet
ter(name, info); | 1029 TestObjectPythonV8Internal::raisesExceptionReadonlyLongAttributeAttributeGet
ter(name, info); |
| 1028 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 1030 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1029 } | 1031 } |
| 1030 | 1032 |
| 1033 static void reflectReadonlyTestInterfaceAttributeAttributeGetter(v8::Local<v8::S
tring> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1034 { |
| 1035 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1036 RefPtr<TestInterface> result = imp->fastGetAttribute(HTMLNames::reflectreado
nlytestinterfaceattributeAttr); |
| 1037 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterface>(info.
GetReturnValue(), result.get())) |
| 1038 return; |
| 1039 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); |
| 1040 if (!wrapper.IsEmpty()) { |
| 1041 V8HiddenPropertyName::setNamedHiddenReference(info.Holder(), "reflectRea
donlyTestInterfaceAttribute", wrapper); |
| 1042 v8SetReturnValue(info, wrapper); |
| 1043 } |
| 1044 } |
| 1045 |
| 1046 static void reflectReadonlyTestInterfaceAttributeAttributeGetterCallback(v8::Loc
al<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1047 { |
| 1048 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1049 TestObjectPythonV8Internal::reflectReadonlyTestInterfaceAttributeAttributeGe
tter(name, info); |
| 1050 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1051 } |
| 1052 |
| 1053 static void reflectReflectedNameAttributeReadonlyTestAttributeAttributeGetter(v8
::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1054 { |
| 1055 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1056 RefPtr<TestInterface> result = imp->fastGetAttribute(HTMLNames::reflectedNam
eAttributeAttr); |
| 1057 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterface>(info.
GetReturnValue(), result.get())) |
| 1058 return; |
| 1059 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); |
| 1060 if (!wrapper.IsEmpty()) { |
| 1061 V8HiddenPropertyName::setNamedHiddenReference(info.Holder(), "reflectRef
lectedNameAttributeReadonlyTestAttribute", wrapper); |
| 1062 v8SetReturnValue(info, wrapper); |
| 1063 } |
| 1064 } |
| 1065 |
| 1066 static void reflectReflectedNameAttributeReadonlyTestAttributeAttributeGetterCal
lback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& inf
o) |
| 1067 { |
| 1068 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1069 TestObjectPythonV8Internal::reflectReflectedNameAttributeReadonlyTestAttribu
teAttributeGetter(name, info); |
| 1070 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1071 } |
| 1072 |
| 1073 static void reflectReadonlyBooleanAttributeAttributeGetter(v8::Local<v8::String>
name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1074 { |
| 1075 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1076 v8SetReturnValueBool(info, imp->fastHasAttribute(HTMLNames::reflectreadonlyb
ooleanattributeAttr)); |
| 1077 } |
| 1078 |
| 1079 static void reflectReadonlyBooleanAttributeAttributeGetterCallback(v8::Local<v8:
:String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1080 { |
| 1081 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1082 TestObjectPythonV8Internal::reflectReadonlyBooleanAttributeAttributeGetter(n
ame, info); |
| 1083 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1084 } |
| 1085 |
| 1086 static void reflectReadonlyLongAttributeAttributeGetter(v8::Local<v8::String> na
me, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1087 { |
| 1088 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1089 v8SetReturnValueInt(info, imp->getIntegralAttribute(HTMLNames::reflectreadon
lylongattributeAttr)); |
| 1090 } |
| 1091 |
| 1092 static void reflectReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8::St
ring> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1093 { |
| 1094 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1095 TestObjectPythonV8Internal::reflectReadonlyLongAttributeAttributeGetter(name
, info); |
| 1096 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1097 } |
| 1098 |
| 1099 static void reflectReadonlyUnsignedShortAttributeAttributeGetter(v8::Local<v8::S
tring> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1100 { |
| 1101 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1102 v8SetReturnValueUnsigned(info, std::max(0, imp->fastGetAttribute(HTMLNames::
reflectreadonlyunsignedshortattributeAttr))); |
| 1103 } |
| 1104 |
| 1105 static void reflectReadonlyUnsignedShortAttributeAttributeGetterCallback(v8::Loc
al<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1106 { |
| 1107 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1108 TestObjectPythonV8Internal::reflectReadonlyUnsignedShortAttributeAttributeGe
tter(name, info); |
| 1109 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1110 } |
| 1111 |
| 1112 static void reflectReadonlyUnsignedLongAttributeAttributeGetter(v8::Local<v8::St
ring> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1113 { |
| 1114 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1115 v8SetReturnValueUnsigned(info, std::max(0, imp->getIntegralAttribute(HTMLNam
es::reflectreadonlyunsignedlongattributeAttr))); |
| 1116 } |
| 1117 |
| 1118 static void reflectReadonlyUnsignedLongAttributeAttributeGetterCallback(v8::Loca
l<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1119 { |
| 1120 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1121 TestObjectPythonV8Internal::reflectReadonlyUnsignedLongAttributeAttributeGet
ter(name, info); |
| 1122 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1123 } |
| 1124 |
| 1125 static void idAttributeGetter(v8::Local<v8::String> name, const v8::PropertyCall
backInfo<v8::Value>& info) |
| 1126 { |
| 1127 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1128 v8SetReturnValueString(info, imp->getIdAttribute(), info.GetIsolate()); |
| 1129 } |
| 1130 |
| 1131 static void idAttributeGetterCallback(v8::Local<v8::String> name, const v8::Prop
ertyCallbackInfo<v8::Value>& info) |
| 1132 { |
| 1133 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1134 TestObjectPythonV8Internal::idAttributeGetter(name, info); |
| 1135 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1136 } |
| 1137 |
| 1138 static void nameAttributeGetter(v8::Local<v8::String> name, const v8::PropertyCa
llbackInfo<v8::Value>& info) |
| 1139 { |
| 1140 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1141 v8SetReturnValueString(info, imp->getNameAttribute(), info.GetIsolate()); |
| 1142 } |
| 1143 |
| 1144 static void nameAttributeGetterCallback(v8::Local<v8::String> name, const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
| 1145 { |
| 1146 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1147 TestObjectPythonV8Internal::nameAttributeGetter(name, info); |
| 1148 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1149 } |
| 1150 |
| 1151 static void classAttributeGetter(v8::Local<v8::String> name, const v8::PropertyC
allbackInfo<v8::Value>& info) |
| 1152 { |
| 1153 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1154 v8SetReturnValueString(info, imp->getClassAttribute(), info.GetIsolate()); |
| 1155 } |
| 1156 |
| 1157 static void classAttributeGetterCallback(v8::Local<v8::String> name, const v8::P
ropertyCallbackInfo<v8::Value>& info) |
| 1158 { |
| 1159 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1160 TestObjectPythonV8Internal::classAttributeGetter(name, info); |
| 1161 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1162 } |
| 1163 |
| 1164 static void reflectedIdAttributeGetter(v8::Local<v8::String> name, const v8::Pro
pertyCallbackInfo<v8::Value>& info) |
| 1165 { |
| 1166 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1167 v8SetReturnValueString(info, imp->getIdAttribute(), info.GetIsolate()); |
| 1168 } |
| 1169 |
| 1170 static void reflectedIdAttributeGetterCallback(v8::Local<v8::String> name, const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 1171 { |
| 1172 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1173 TestObjectPythonV8Internal::reflectedIdAttributeGetter(name, info); |
| 1174 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1175 } |
| 1176 |
| 1177 static void reflectedNameAttributeGetter(v8::Local<v8::String> name, const v8::P
ropertyCallbackInfo<v8::Value>& info) |
| 1178 { |
| 1179 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1180 v8SetReturnValueString(info, imp->getNameAttribute(), info.GetIsolate()); |
| 1181 } |
| 1182 |
| 1183 static void reflectedNameAttributeGetterCallback(v8::Local<v8::String> name, con
st v8::PropertyCallbackInfo<v8::Value>& info) |
| 1184 { |
| 1185 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1186 TestObjectPythonV8Internal::reflectedNameAttributeGetter(name, info); |
| 1187 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1188 } |
| 1189 |
| 1190 static void reflectedClassAttributeGetter(v8::Local<v8::String> name, const v8::
PropertyCallbackInfo<v8::Value>& info) |
| 1191 { |
| 1192 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1193 v8SetReturnValueString(info, imp->getClassAttribute(), info.GetIsolate()); |
| 1194 } |
| 1195 |
| 1196 static void reflectedClassAttributeGetterCallback(v8::Local<v8::String> name, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
| 1197 { |
| 1198 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1199 TestObjectPythonV8Internal::reflectedClassAttributeGetter(name, info); |
| 1200 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1201 } |
| 1202 |
| 1031 static void enabledAtRuntimeReadonlyLongAttributeAttributeGetter(v8::Local<v8::S
tring> name, const v8::PropertyCallbackInfo<v8::Value>& info) | 1203 static void enabledAtRuntimeReadonlyLongAttributeAttributeGetter(v8::Local<v8::S
tring> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1032 { | 1204 { |
| 1033 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1205 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1034 v8SetReturnValueInt(info, imp->enabledAtRuntimeReadonlyLongAttribute()); | 1206 v8SetReturnValueInt(info, imp->enabledAtRuntimeReadonlyLongAttribute()); |
| 1035 } | 1207 } |
| 1036 | 1208 |
| 1037 static void enabledAtRuntimeReadonlyLongAttributeAttributeGetterCallback(v8::Loc
al<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) | 1209 static void enabledAtRuntimeReadonlyLongAttributeAttributeGetterCallback(v8::Loc
al<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1038 { | 1210 { |
| 1039 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1211 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1040 TestObjectPythonV8Internal::enabledAtRuntimeReadonlyLongAttributeAttributeGe
tter(name, info); | 1212 TestObjectPythonV8Internal::enabledAtRuntimeReadonlyLongAttributeAttributeGe
tter(name, info); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1130 {"doNotCheckSecurityOnSetterReadonlyLongAttribute", TestObjectPythonV8Intern
al::doNotCheckSecurityOnSetterReadonlyLongAttributeAttributeGetterCallback, 0, 0
, 0, 0, static_cast<v8::AccessControl>(v8::ALL_CAN_WRITE), static_cast<v8::Prope
rtyAttribute>(v8::None), 0 /* on instance */}, | 1302 {"doNotCheckSecurityOnSetterReadonlyLongAttribute", TestObjectPythonV8Intern
al::doNotCheckSecurityOnSetterReadonlyLongAttributeAttributeGetterCallback, 0, 0
, 0, 0, static_cast<v8::AccessControl>(v8::ALL_CAN_WRITE), static_cast<v8::Prope
rtyAttribute>(v8::None), 0 /* on instance */}, |
| 1131 {"enforceRangeReadonlyLongAttribute", TestObjectPythonV8Internal::enforceRan
geReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, | 1303 {"enforceRangeReadonlyLongAttribute", TestObjectPythonV8Internal::enforceRan
geReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, |
| 1132 {"getterRaisesExceptionReadonlyLongAttribute", TestObjectPythonV8Internal::g
etterRaisesExceptionReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), 0 /* on instance */}, | 1304 {"getterRaisesExceptionReadonlyLongAttribute", TestObjectPythonV8Internal::g
etterRaisesExceptionReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), 0 /* on instance */}, |
| 1133 {"implementedAsReadonlyLongAttribute", TestObjectPythonV8Internal::implement
edAsReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Ac
cessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on
instance */}, | 1305 {"implementedAsReadonlyLongAttribute", TestObjectPythonV8Internal::implement
edAsReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Ac
cessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on
instance */}, |
| 1134 {"customImplementedAsReadonlyLongAttribute", TestObjectPythonV8Internal::cus
tomImplementedAsReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, | 1306 {"customImplementedAsReadonlyLongAttribute", TestObjectPythonV8Internal::cus
tomImplementedAsReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, |
| 1135 {"customGetterImplementedAsReadonlyLongAttribute", TestObjectPythonV8Interna
l::customGetterImplementedAsReadonlyLongAttributeAttributeGetterCallback, 0, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), 0 /* on instance */}, | 1307 {"customGetterImplementedAsReadonlyLongAttribute", TestObjectPythonV8Interna
l::customGetterImplementedAsReadonlyLongAttributeAttributeGetterCallback, 0, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), 0 /* on instance */}, |
| 1136 {"readonlyDocumentFragmentAttribute", TestObjectPythonV8Internal::readonlyDo
cumentFragmentAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, | 1308 {"readonlyDocumentFragmentAttribute", TestObjectPythonV8Internal::readonlyDo
cumentFragmentAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, |
| 1137 {"measureAsReadonlyLongAttribute", TestObjectPythonV8Internal::measureAsRead
onlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc
e */}, | 1309 {"measureAsReadonlyLongAttribute", TestObjectPythonV8Internal::measureAsRead
onlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc
e */}, |
| 1138 {"notEnumerableReadonlyLongAttribute", TestObjectPythonV8Internal::notEnumer
ableReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Ac
cessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), 0 /
* on instance */}, | 1310 {"notEnumerableReadonlyLongAttribute", TestObjectPythonV8Internal::notEnumer
ableReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Ac
cessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), 0 /
* on instance */}, |
| 1139 {"raisesExceptionReadonlyLongAttribute", TestObjectPythonV8Internal::raisesE
xceptionReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, | 1311 {"raisesExceptionReadonlyLongAttribute", TestObjectPythonV8Internal::raisesE
xceptionReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, |
| 1312 {"reflectReadonlyTestInterfaceAttribute", TestObjectPythonV8Internal::reflec
tReadonlyTestInterfaceAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, |
| 1313 {"reflectReflectedNameAttributeReadonlyTestAttribute", TestObjectPythonV8Int
ernal::reflectReflectedNameAttributeReadonlyTestAttributeAttributeGetterCallback
, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prope
rtyAttribute>(v8::None), 0 /* on instance */}, |
| 1314 {"reflectReadonlyBooleanAttribute", TestObjectPythonV8Internal::reflectReado
nlyBooleanAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta
nce */}, |
| 1315 {"reflectReadonlyLongAttribute", TestObjectPythonV8Internal::reflectReadonly
LongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>
(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */
}, |
| 1316 {"reflectReadonlyUnsignedShortAttribute", TestObjectPythonV8Internal::reflec
tReadonlyUnsignedShortAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, |
| 1317 {"reflectReadonlyUnsignedLongAttribute", TestObjectPythonV8Internal::reflect
ReadonlyUnsignedLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, |
| 1318 {"id", TestObjectPythonV8Internal::idAttributeGetterCallback, 0, 0, 0, 0, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), 0 /* on instance */}, |
| 1319 {"name", TestObjectPythonV8Internal::nameAttributeGetterCallback, 0, 0, 0, 0
, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute
>(v8::None), 0 /* on instance */}, |
| 1320 {"class", TestObjectPythonV8Internal::classAttributeGetterCallback, 0, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, |
| 1321 {"reflectedId", TestObjectPythonV8Internal::reflectedIdAttributeGetterCallba
ck, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro
pertyAttribute>(v8::None), 0 /* on instance */}, |
| 1322 {"reflectedName", TestObjectPythonV8Internal::reflectedNameAttributeGetterCa
llback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:
:PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 1323 {"reflectedClass", TestObjectPythonV8Internal::reflectedClassAttributeGetter
Callback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 1140 }; | 1324 }; |
| 1141 | 1325 |
| 1142 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectPythonTemplate(v8::
Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType curren
tWorldType) | 1326 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectPythonTemplate(v8::
Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType curren
tWorldType) |
| 1143 { | 1327 { |
| 1144 desc->ReadOnlyPrototype(); | 1328 desc->ReadOnlyPrototype(); |
| 1145 | 1329 |
| 1146 v8::Local<v8::Signature> defaultSignature; | 1330 v8::Local<v8::Signature> defaultSignature; |
| 1147 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestOb
jectPython", v8::Local<v8::FunctionTemplate>(), V8TestObjectPython::internalFiel
dCount, | 1331 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestOb
jectPython", v8::Local<v8::FunctionTemplate>(), V8TestObjectPython::internalFiel
dCount, |
| 1148 V8TestObjectPythonAttributes, WTF_ARRAY_LENGTH(V8TestObjectPythonAttribu
tes), | 1332 V8TestObjectPythonAttributes, WTF_ARRAY_LENGTH(V8TestObjectPythonAttribu
tes), |
| 1149 0, 0, isolate, currentWorldType); | 1333 0, 0, isolate, currentWorldType); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1218 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr
apper, isolate, WrapperConfiguration::Independent); | 1402 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr
apper, isolate, WrapperConfiguration::Independent); |
| 1219 return wrapper; | 1403 return wrapper; |
| 1220 } | 1404 } |
| 1221 | 1405 |
| 1222 void V8TestObjectPython::derefObject(void* object) | 1406 void V8TestObjectPython::derefObject(void* object) |
| 1223 { | 1407 { |
| 1224 fromInternalPointer(object)->deref(); | 1408 fromInternalPointer(object)->deref(); |
| 1225 } | 1409 } |
| 1226 | 1410 |
| 1227 } // namespace WebCore | 1411 } // namespace WebCore |
| OLD | NEW |