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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 TestObj* imp = V8TestObject::toNative(info.Holder()); | 202 TestObj* imp = V8TestObject::toNative(info.Holder()); |
203 v8SetReturnValue(info, v8String(imp->readOnlyEnumAttr(), info.GetIsolate(),
ReturnUnsafeHandle)); | 203 v8SetReturnValue(info, v8String(imp->readOnlyEnumAttr(), info.GetIsolate(),
ReturnUnsafeHandle)); |
204 return; | 204 return; |
205 } | 205 } |
206 | 206 |
207 static void readOnlyEnumAttrAttrGetterCallback(v8::Local<v8::String> name, const
v8::PropertyCallbackInfo<v8::Value>& info) | 207 static void readOnlyEnumAttrAttrGetterCallback(v8::Local<v8::String> name, const
v8::PropertyCallbackInfo<v8::Value>& info) |
208 { | 208 { |
209 TestObjV8Internal::readOnlyEnumAttrAttrGetter(name, info); | 209 TestObjV8Internal::readOnlyEnumAttrAttrGetter(name, info); |
210 } | 210 } |
211 | 211 |
| 212 static void byteAttrAttrGetter(v8::Local<v8::String> name, const v8::PropertyCal
lbackInfo<v8::Value>& info) |
| 213 { |
| 214 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 215 v8SetReturnValueInt(info, imp->byteAttr()); |
| 216 return; |
| 217 } |
| 218 |
| 219 static void byteAttrAttrGetterCallback(v8::Local<v8::String> name, const v8::Pro
pertyCallbackInfo<v8::Value>& info) |
| 220 { |
| 221 TestObjV8Internal::byteAttrAttrGetter(name, info); |
| 222 } |
| 223 |
| 224 static void byteAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value>
value, const v8::PropertyCallbackInfo<void>& info) |
| 225 { |
| 226 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 227 V8TRYCATCH_VOID(int, v, toInt8(value)); |
| 228 imp->setByteAttr(v); |
| 229 return; |
| 230 } |
| 231 |
| 232 static void byteAttrAttrSetterCallback(v8::Local<v8::String> name, v8::Local<v8:
:Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 233 { |
| 234 TestObjV8Internal::byteAttrAttrSetter(name, value, info); |
| 235 } |
| 236 |
| 237 static void octetAttrAttrGetter(v8::Local<v8::String> name, const v8::PropertyCa
llbackInfo<v8::Value>& info) |
| 238 { |
| 239 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 240 v8SetReturnValueUnsigned(info, imp->octetAttr()); |
| 241 return; |
| 242 } |
| 243 |
| 244 static void octetAttrAttrGetterCallback(v8::Local<v8::String> name, const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
| 245 { |
| 246 TestObjV8Internal::octetAttrAttrGetter(name, info); |
| 247 } |
| 248 |
| 249 static void octetAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value>
value, const v8::PropertyCallbackInfo<void>& info) |
| 250 { |
| 251 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 252 V8TRYCATCH_VOID(unsigned, v, toUInt8(value)); |
| 253 imp->setOctetAttr(v); |
| 254 return; |
| 255 } |
| 256 |
| 257 static void octetAttrAttrSetterCallback(v8::Local<v8::String> name, v8::Local<v8
::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 258 { |
| 259 TestObjV8Internal::octetAttrAttrSetter(name, value, info); |
| 260 } |
| 261 |
212 static void shortAttrAttrGetter(v8::Local<v8::String> name, const v8::PropertyCa
llbackInfo<v8::Value>& info) | 262 static void shortAttrAttrGetter(v8::Local<v8::String> name, const v8::PropertyCa
llbackInfo<v8::Value>& info) |
213 { | 263 { |
214 TestObj* imp = V8TestObject::toNative(info.Holder()); | 264 TestObj* imp = V8TestObject::toNative(info.Holder()); |
215 v8SetReturnValueInt(info, imp->shortAttr()); | 265 v8SetReturnValueInt(info, imp->shortAttr()); |
216 return; | 266 return; |
217 } | 267 } |
218 | 268 |
219 static void shortAttrAttrGetterCallback(v8::Local<v8::String> name, const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 269 static void shortAttrAttrGetterCallback(v8::Local<v8::String> name, const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
220 { | 270 { |
221 TestObjV8Internal::shortAttrAttrGetter(name, info); | 271 TestObjV8Internal::shortAttrAttrGetter(name, info); |
222 } | 272 } |
223 | 273 |
224 static void shortAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value>
value, const v8::PropertyCallbackInfo<void>& info) | 274 static void shortAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value>
value, const v8::PropertyCallbackInfo<void>& info) |
225 { | 275 { |
226 TestObj* imp = V8TestObject::toNative(info.Holder()); | 276 TestObj* imp = V8TestObject::toNative(info.Holder()); |
227 V8TRYCATCH_VOID(int, v, toInt32(value)); | 277 V8TRYCATCH_VOID(int, v, toInt32(value)); |
228 imp->setShortAttr(v); | 278 imp->setShortAttr(v); |
229 return; | 279 return; |
230 } | 280 } |
231 | 281 |
232 static void shortAttrAttrSetterCallback(v8::Local<v8::String> name, v8::Local<v8
::Value> value, const v8::PropertyCallbackInfo<void>& info) | 282 static void shortAttrAttrSetterCallback(v8::Local<v8::String> name, v8::Local<v8
::Value> value, const v8::PropertyCallbackInfo<void>& info) |
233 { | 283 { |
234 TestObjV8Internal::shortAttrAttrSetter(name, value, info); | 284 TestObjV8Internal::shortAttrAttrSetter(name, value, info); |
235 } | 285 } |
236 | 286 |
237 static void unsignedShortAttrAttrGetter(v8::Local<v8::String> name, const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 287 static void unsignedShortAttrAttrGetter(v8::Local<v8::String> name, const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
238 { | 288 { |
239 TestObj* imp = V8TestObject::toNative(info.Holder()); | 289 TestObj* imp = V8TestObject::toNative(info.Holder()); |
240 v8SetReturnValueInt(info, imp->unsignedShortAttr()); | 290 v8SetReturnValueUnsigned(info, imp->unsignedShortAttr()); |
241 return; | 291 return; |
242 } | 292 } |
243 | 293 |
244 static void unsignedShortAttrAttrGetterCallback(v8::Local<v8::String> name, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 294 static void unsignedShortAttrAttrGetterCallback(v8::Local<v8::String> name, cons
t v8::PropertyCallbackInfo<v8::Value>& info) |
245 { | 295 { |
246 TestObjV8Internal::unsignedShortAttrAttrGetter(name, info); | 296 TestObjV8Internal::unsignedShortAttrAttrGetter(name, info); |
247 } | 297 } |
248 | 298 |
249 static void unsignedShortAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8
::Value> value, const v8::PropertyCallbackInfo<void>& info) | 299 static void unsignedShortAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8
::Value> value, const v8::PropertyCallbackInfo<void>& info) |
250 { | 300 { |
251 TestObj* imp = V8TestObject::toNative(info.Holder()); | 301 TestObj* imp = V8TestObject::toNative(info.Holder()); |
252 V8TRYCATCH_VOID(int, v, toUInt32(value)); | 302 V8TRYCATCH_VOID(unsigned, v, toUInt32(value)); |
253 imp->setUnsignedShortAttr(v); | 303 imp->setUnsignedShortAttr(v); |
254 return; | 304 return; |
255 } | 305 } |
256 | 306 |
257 static void unsignedShortAttrAttrSetterCallback(v8::Local<v8::String> name, v8::
Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 307 static void unsignedShortAttrAttrSetterCallback(v8::Local<v8::String> name, v8::
Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
258 { | 308 { |
259 TestObjV8Internal::unsignedShortAttrAttrSetter(name, value, info); | 309 TestObjV8Internal::unsignedShortAttrAttrSetter(name, value, info); |
260 } | 310 } |
261 | 311 |
262 static void longAttrAttrGetter(v8::Local<v8::String> name, const v8::PropertyCal
lbackInfo<v8::Value>& info) | 312 static void longAttrAttrGetter(v8::Local<v8::String> name, const v8::PropertyCal
lbackInfo<v8::Value>& info) |
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1093 if (state.hadException()) | 1143 if (state.hadException()) |
1094 throwError(state.exception(), info.GetIsolate()); | 1144 throwError(state.exception(), info.GetIsolate()); |
1095 return; | 1145 return; |
1096 } | 1146 } |
1097 | 1147 |
1098 static void withScriptExecutionContextAndScriptStateWithSpacesAttributeAttrSette
rCallback(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::Prop
ertyCallbackInfo<void>& info) | 1148 static void withScriptExecutionContextAndScriptStateWithSpacesAttributeAttrSette
rCallback(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::Prop
ertyCallbackInfo<void>& info) |
1099 { | 1149 { |
1100 TestObjV8Internal::withScriptExecutionContextAndScriptStateWithSpacesAttribu
teAttrSetter(name, value, info); | 1150 TestObjV8Internal::withScriptExecutionContextAndScriptStateWithSpacesAttribu
teAttrSetter(name, value, info); |
1101 } | 1151 } |
1102 | 1152 |
| 1153 static void enforcedRangeByteAttrAttrGetter(v8::Local<v8::String> name, const v8
::PropertyCallbackInfo<v8::Value>& info) |
| 1154 { |
| 1155 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 1156 v8SetReturnValueInt(info, imp->enforcedRangeByteAttr()); |
| 1157 return; |
| 1158 } |
| 1159 |
| 1160 static void enforcedRangeByteAttrAttrGetterCallback(v8::Local<v8::String> name,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1161 { |
| 1162 TestObjV8Internal::enforcedRangeByteAttrAttrGetter(name, info); |
| 1163 } |
| 1164 |
| 1165 static void enforcedRangeByteAttrAttrSetter(v8::Local<v8::String> name, v8::Loca
l<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 1166 { |
| 1167 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 1168 V8TRYCATCH_WITH_TYPECHECK_VOID(int, v, toInt8(value, EnforceRange, ok), info
.GetIsolate()); |
| 1169 imp->setEnforcedRangeByteAttr(v); |
| 1170 return; |
| 1171 } |
| 1172 |
| 1173 static void enforcedRangeByteAttrAttrSetterCallback(v8::Local<v8::String> name,
v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 1174 { |
| 1175 TestObjV8Internal::enforcedRangeByteAttrAttrSetter(name, value, info); |
| 1176 } |
| 1177 |
| 1178 static void enforcedRangeOctetAttrAttrGetter(v8::Local<v8::String> name, const v
8::PropertyCallbackInfo<v8::Value>& info) |
| 1179 { |
| 1180 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 1181 v8SetReturnValueUnsigned(info, imp->enforcedRangeOctetAttr()); |
| 1182 return; |
| 1183 } |
| 1184 |
| 1185 static void enforcedRangeOctetAttrAttrGetterCallback(v8::Local<v8::String> name,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1186 { |
| 1187 TestObjV8Internal::enforcedRangeOctetAttrAttrGetter(name, info); |
| 1188 } |
| 1189 |
| 1190 static void enforcedRangeOctetAttrAttrSetter(v8::Local<v8::String> name, v8::Loc
al<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 1191 { |
| 1192 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 1193 V8TRYCATCH_WITH_TYPECHECK_VOID(unsigned, v, toUInt8(value, EnforceRange, ok)
, info.GetIsolate()); |
| 1194 imp->setEnforcedRangeOctetAttr(v); |
| 1195 return; |
| 1196 } |
| 1197 |
| 1198 static void enforcedRangeOctetAttrAttrSetterCallback(v8::Local<v8::String> name,
v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 1199 { |
| 1200 TestObjV8Internal::enforcedRangeOctetAttrAttrSetter(name, value, info); |
| 1201 } |
| 1202 |
1103 static void enforcedRangeLongAttrAttrGetter(v8::Local<v8::String> name, const v8
::PropertyCallbackInfo<v8::Value>& info) | 1203 static void enforcedRangeLongAttrAttrGetter(v8::Local<v8::String> name, const v8
::PropertyCallbackInfo<v8::Value>& info) |
1104 { | 1204 { |
1105 TestObj* imp = V8TestObject::toNative(info.Holder()); | 1205 TestObj* imp = V8TestObject::toNative(info.Holder()); |
1106 v8SetReturnValueInt(info, imp->enforcedRangeLongAttr()); | 1206 v8SetReturnValueInt(info, imp->enforcedRangeLongAttr()); |
1107 return; | 1207 return; |
1108 } | 1208 } |
1109 | 1209 |
1110 static void enforcedRangeLongAttrAttrGetterCallback(v8::Local<v8::String> name,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1210 static void enforcedRangeLongAttrAttrGetterCallback(v8::Local<v8::String> name,
const v8::PropertyCallbackInfo<v8::Value>& info) |
1111 { | 1211 { |
1112 TestObjV8Internal::enforcedRangeLongAttrAttrGetter(name, info); | 1212 TestObjV8Internal::enforcedRangeLongAttrAttrGetter(name, info); |
(...skipping 2084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3197 TestObj::staticMethodWithCallbackArg(callback); | 3297 TestObj::staticMethodWithCallbackArg(callback); |
3198 | 3298 |
3199 return; | 3299 return; |
3200 } | 3300 } |
3201 | 3301 |
3202 static void staticMethodWithCallbackArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& args) | 3302 static void staticMethodWithCallbackArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& args) |
3203 { | 3303 { |
3204 TestObjV8Internal::staticMethodWithCallbackArgMethod(args); | 3304 TestObjV8Internal::staticMethodWithCallbackArgMethod(args); |
3205 } | 3305 } |
3206 | 3306 |
| 3307 static void methodWithEnforceRangeInt8Method(const v8::FunctionCallbackInfo<v8::
Value>& args) |
| 3308 { |
| 3309 if (args.Length() < 1) { |
| 3310 throwNotEnoughArgumentsError(args.GetIsolate()); |
| 3311 return; |
| 3312 } |
| 3313 TestObj* imp = V8TestObject::toNative(args.Holder()); |
| 3314 V8TRYCATCH_WITH_TYPECHECK_VOID(int, value, toInt8(args[0], EnforceRange, ok)
, args.GetIsolate()); |
| 3315 imp->methodWithEnforceRangeInt8(value); |
| 3316 |
| 3317 return; |
| 3318 } |
| 3319 |
| 3320 static void methodWithEnforceRangeInt8MethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& args) |
| 3321 { |
| 3322 TestObjV8Internal::methodWithEnforceRangeInt8Method(args); |
| 3323 } |
| 3324 |
| 3325 static void methodWithEnforceRangeUInt8Method(const v8::FunctionCallbackInfo<v8:
:Value>& args) |
| 3326 { |
| 3327 if (args.Length() < 1) { |
| 3328 throwNotEnoughArgumentsError(args.GetIsolate()); |
| 3329 return; |
| 3330 } |
| 3331 TestObj* imp = V8TestObject::toNative(args.Holder()); |
| 3332 V8TRYCATCH_WITH_TYPECHECK_VOID(unsigned, value, toUInt8(args[0], EnforceRang
e, ok), args.GetIsolate()); |
| 3333 imp->methodWithEnforceRangeUInt8(value); |
| 3334 |
| 3335 return; |
| 3336 } |
| 3337 |
| 3338 static void methodWithEnforceRangeUInt8MethodCallback(const v8::FunctionCallback
Info<v8::Value>& args) |
| 3339 { |
| 3340 TestObjV8Internal::methodWithEnforceRangeUInt8Method(args); |
| 3341 } |
| 3342 |
3207 static void methodWithEnforceRangeInt32Method(const v8::FunctionCallbackInfo<v8:
:Value>& args) | 3343 static void methodWithEnforceRangeInt32Method(const v8::FunctionCallbackInfo<v8:
:Value>& args) |
3208 { | 3344 { |
3209 if (args.Length() < 1) { | 3345 if (args.Length() < 1) { |
3210 throwNotEnoughArgumentsError(args.GetIsolate()); | 3346 throwNotEnoughArgumentsError(args.GetIsolate()); |
3211 return; | 3347 return; |
3212 } | 3348 } |
3213 TestObj* imp = V8TestObject::toNative(args.Holder()); | 3349 TestObj* imp = V8TestObject::toNative(args.Holder()); |
3214 V8TRYCATCH_WITH_TYPECHECK_VOID(int, value, toInt32(args[0], EnforceRange, ok
), args.GetIsolate()); | 3350 V8TRYCATCH_WITH_TYPECHECK_VOID(int, value, toInt32(args[0], EnforceRange, ok
), args.GetIsolate()); |
3215 imp->methodWithEnforceRangeInt32(value); | 3351 imp->methodWithEnforceRangeInt32(value); |
3216 | 3352 |
(...skipping 1209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4426 // Attribute 'staticReadOnlyLongAttr' (Type: 'attribute' ExtAttr: '') | 4562 // Attribute 'staticReadOnlyLongAttr' (Type: 'attribute' ExtAttr: '') |
4427 {"staticReadOnlyLongAttr", TestObjV8Internal::staticReadOnlyLongAttrAttrGett
erCallback, 0, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT
), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4563 {"staticReadOnlyLongAttr", TestObjV8Internal::staticReadOnlyLongAttrAttrGett
erCallback, 0, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT
), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
4428 // Attribute 'staticStringAttr' (Type: 'attribute' ExtAttr: '') | 4564 // Attribute 'staticStringAttr' (Type: 'attribute' ExtAttr: '') |
4429 {"staticStringAttr", TestObjV8Internal::staticStringAttrAttrGetterCallback,
TestObjV8Internal::staticStringAttrAttrSetterCallback, 0, 0, 0 /* no data */, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), 0 /* on instance */}, | 4565 {"staticStringAttr", TestObjV8Internal::staticStringAttrAttrGetterCallback,
TestObjV8Internal::staticStringAttrAttrSetterCallback, 0, 0, 0 /* no data */, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), 0 /* on instance */}, |
4430 // Attribute 'TestSubObj' (Type: 'attribute' ExtAttr: '') | 4566 // Attribute 'TestSubObj' (Type: 'attribute' ExtAttr: '') |
4431 {"TestSubObj", TestObjV8Internal::TestObjConstructorGetter, 0, 0, 0, &V8Test
SubObj::info, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prope
rtyAttribute>(v8::None | v8::DontEnum), 0 /* on instance */}, | 4567 {"TestSubObj", TestObjV8Internal::TestObjConstructorGetter, 0, 0, 0, &V8Test
SubObj::info, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prope
rtyAttribute>(v8::None | v8::DontEnum), 0 /* on instance */}, |
4432 // Attribute 'enumAttr' (Type: 'attribute' ExtAttr: '') | 4568 // Attribute 'enumAttr' (Type: 'attribute' ExtAttr: '') |
4433 {"enumAttr", TestObjV8Internal::enumAttrAttrGetterCallback, TestObjV8Interna
l::enumAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc
e */}, | 4569 {"enumAttr", TestObjV8Internal::enumAttrAttrGetterCallback, TestObjV8Interna
l::enumAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc
e */}, |
4434 // Attribute 'readOnlyEnumAttr' (Type: 'attribute' ExtAttr: '') | 4570 // Attribute 'readOnlyEnumAttr' (Type: 'attribute' ExtAttr: '') |
4435 {"readOnlyEnumAttr", TestObjV8Internal::readOnlyEnumAttrAttrGetterCallback,
0, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_ca
st<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4571 {"readOnlyEnumAttr", TestObjV8Internal::readOnlyEnumAttrAttrGetterCallback,
0, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_ca
st<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 4572 // Attribute 'byteAttr' (Type: 'attribute' ExtAttr: '') |
| 4573 {"byteAttr", TestObjV8Internal::byteAttrAttrGetterCallback, TestObjV8Interna
l::byteAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc
e */}, |
| 4574 // Attribute 'octetAttr' (Type: 'attribute' ExtAttr: '') |
| 4575 {"octetAttr", TestObjV8Internal::octetAttrAttrGetterCallback, TestObjV8Inter
nal::octetAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessC
ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on inst
ance */}, |
4436 // Attribute 'shortAttr' (Type: 'attribute' ExtAttr: '') | 4576 // Attribute 'shortAttr' (Type: 'attribute' ExtAttr: '') |
4437 {"shortAttr", TestObjV8Internal::shortAttrAttrGetterCallback, TestObjV8Inter
nal::shortAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessC
ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on inst
ance */}, | 4577 {"shortAttr", TestObjV8Internal::shortAttrAttrGetterCallback, TestObjV8Inter
nal::shortAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessC
ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on inst
ance */}, |
4438 // Attribute 'unsignedShortAttr' (Type: 'attribute' ExtAttr: '') | 4578 // Attribute 'unsignedShortAttr' (Type: 'attribute' ExtAttr: '') |
4439 {"unsignedShortAttr", TestObjV8Internal::unsignedShortAttrAttrGetterCallback
, TestObjV8Internal::unsignedShortAttrAttrSetterCallback, 0, 0, 0 /* no data */,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>
(v8::None), 0 /* on instance */}, | 4579 {"unsignedShortAttr", TestObjV8Internal::unsignedShortAttrAttrGetterCallback
, TestObjV8Internal::unsignedShortAttrAttrSetterCallback, 0, 0, 0 /* no data */,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>
(v8::None), 0 /* on instance */}, |
4440 // Attribute 'longAttr' (Type: 'attribute' ExtAttr: '') | 4580 // Attribute 'longAttr' (Type: 'attribute' ExtAttr: '') |
4441 {"longAttr", TestObjV8Internal::longAttrAttrGetterCallback, TestObjV8Interna
l::longAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc
e */}, | 4581 {"longAttr", TestObjV8Internal::longAttrAttrGetterCallback, TestObjV8Interna
l::longAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc
e */}, |
4442 // Attribute 'longLongAttr' (Type: 'attribute' ExtAttr: '') | 4582 // Attribute 'longLongAttr' (Type: 'attribute' ExtAttr: '') |
4443 {"longLongAttr", TestObjV8Internal::longLongAttrAttrGetterCallback, TestObjV
8Internal::longLongAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, | 4583 {"longLongAttr", TestObjV8Internal::longLongAttrAttrGetterCallback, TestObjV
8Internal::longLongAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, |
4444 // Attribute 'unsignedLongLongAttr' (Type: 'attribute' ExtAttr: '') | 4584 // Attribute 'unsignedLongLongAttr' (Type: 'attribute' ExtAttr: '') |
4445 {"unsignedLongLongAttr", TestObjV8Internal::unsignedLongLongAttrAttrGetterCa
llback, TestObjV8Internal::unsignedLongLongAttrAttrSetterCallback, 0, 0, 0 /* no
data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, | 4585 {"unsignedLongLongAttr", TestObjV8Internal::unsignedLongLongAttrAttrGetterCa
llback, TestObjV8Internal::unsignedLongLongAttrAttrSetterCallback, 0, 0, 0 /* no
data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4490 // Attribute 'withScriptStateAttributeRaises' (Type: 'attribute' ExtAttr: 'G
etterRaisesException CallWith') | 4630 // Attribute 'withScriptStateAttributeRaises' (Type: 'attribute' ExtAttr: 'G
etterRaisesException CallWith') |
4491 {"withScriptStateAttributeRaises", TestObjV8Internal::withScriptStateAttribu
teRaisesAttrGetterCallback, TestObjV8Internal::withScriptStateAttributeRaisesAtt
rSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4631 {"withScriptStateAttributeRaises", TestObjV8Internal::withScriptStateAttribu
teRaisesAttrGetterCallback, TestObjV8Internal::withScriptStateAttributeRaisesAtt
rSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
4492 // Attribute 'withScriptExecutionContextAttributeRaises' (Type: 'attribute'
ExtAttr: 'GetterRaisesException CallWith') | 4632 // Attribute 'withScriptExecutionContextAttributeRaises' (Type: 'attribute'
ExtAttr: 'GetterRaisesException CallWith') |
4493 {"withScriptExecutionContextAttributeRaises", TestObjV8Internal::withScriptE
xecutionContextAttributeRaisesAttrGetterCallback, TestObjV8Internal::withScriptE
xecutionContextAttributeRaisesAttrSetterCallback, 0, 0, 0 /* no data */, static_
cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::Non
e), 0 /* on instance */}, | 4633 {"withScriptExecutionContextAttributeRaises", TestObjV8Internal::withScriptE
xecutionContextAttributeRaisesAttrGetterCallback, TestObjV8Internal::withScriptE
xecutionContextAttributeRaisesAttrSetterCallback, 0, 0, 0 /* no data */, static_
cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::Non
e), 0 /* on instance */}, |
4494 // Attribute 'withScriptExecutionContextAndScriptStateAttribute' (Type: 'att
ribute' ExtAttr: 'CallWith') | 4634 // Attribute 'withScriptExecutionContextAndScriptStateAttribute' (Type: 'att
ribute' ExtAttr: 'CallWith') |
4495 {"withScriptExecutionContextAndScriptStateAttribute", TestObjV8Internal::wit
hScriptExecutionContextAndScriptStateAttributeAttrGetterCallback, TestObjV8Inter
nal::withScriptExecutionContextAndScriptStateAttributeAttrSetterCallback, 0, 0,
0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr
opertyAttribute>(v8::None), 0 /* on instance */}, | 4635 {"withScriptExecutionContextAndScriptStateAttribute", TestObjV8Internal::wit
hScriptExecutionContextAndScriptStateAttributeAttrGetterCallback, TestObjV8Inter
nal::withScriptExecutionContextAndScriptStateAttributeAttrSetterCallback, 0, 0,
0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr
opertyAttribute>(v8::None), 0 /* on instance */}, |
4496 // Attribute 'withScriptExecutionContextAndScriptStateAttributeRaises' (Type
: 'attribute' ExtAttr: 'GetterRaisesException CallWith') | 4636 // Attribute 'withScriptExecutionContextAndScriptStateAttributeRaises' (Type
: 'attribute' ExtAttr: 'GetterRaisesException CallWith') |
4497 {"withScriptExecutionContextAndScriptStateAttributeRaises", TestObjV8Interna
l::withScriptExecutionContextAndScriptStateAttributeRaisesAttrGetterCallback, Te
stObjV8Internal::withScriptExecutionContextAndScriptStateAttributeRaisesAttrSett
erCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4637 {"withScriptExecutionContextAndScriptStateAttributeRaises", TestObjV8Interna
l::withScriptExecutionContextAndScriptStateAttributeRaisesAttrGetterCallback, Te
stObjV8Internal::withScriptExecutionContextAndScriptStateAttributeRaisesAttrSett
erCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
4498 // Attribute 'withScriptExecutionContextAndScriptStateWithSpacesAttribute' (
Type: 'attribute' ExtAttr: 'CallWith') | 4638 // Attribute 'withScriptExecutionContextAndScriptStateWithSpacesAttribute' (
Type: 'attribute' ExtAttr: 'CallWith') |
4499 {"withScriptExecutionContextAndScriptStateWithSpacesAttribute", TestObjV8Int
ernal::withScriptExecutionContextAndScriptStateWithSpacesAttributeAttrGetterCall
back, TestObjV8Internal::withScriptExecutionContextAndScriptStateWithSpacesAttri
buteAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8
::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4639 {"withScriptExecutionContextAndScriptStateWithSpacesAttribute", TestObjV8Int
ernal::withScriptExecutionContextAndScriptStateWithSpacesAttributeAttrGetterCall
back, TestObjV8Internal::withScriptExecutionContextAndScriptStateWithSpacesAttri
buteAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8
::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 4640 // Attribute 'enforcedRangeByteAttr' (Type: 'attribute' ExtAttr: 'EnforceRan
ge') |
| 4641 {"enforcedRangeByteAttr", TestObjV8Internal::enforcedRangeByteAttrAttrGetter
Callback, TestObjV8Internal::enforcedRangeByteAttrAttrSetterCallback, 0, 0, 0 /*
no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Proper
tyAttribute>(v8::None), 0 /* on instance */}, |
| 4642 // Attribute 'enforcedRangeOctetAttr' (Type: 'attribute' ExtAttr: 'EnforceRa
nge') |
| 4643 {"enforcedRangeOctetAttr", TestObjV8Internal::enforcedRangeOctetAttrAttrGett
erCallback, TestObjV8Internal::enforcedRangeOctetAttrAttrSetterCallback, 0, 0, 0
/* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro
pertyAttribute>(v8::None), 0 /* on instance */}, |
4500 // Attribute 'enforcedRangeLongAttr' (Type: 'attribute' ExtAttr: 'EnforceRan
ge') | 4644 // Attribute 'enforcedRangeLongAttr' (Type: 'attribute' ExtAttr: 'EnforceRan
ge') |
4501 {"enforcedRangeLongAttr", TestObjV8Internal::enforcedRangeLongAttrAttrGetter
Callback, TestObjV8Internal::enforcedRangeLongAttrAttrSetterCallback, 0, 0, 0 /*
no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Proper
tyAttribute>(v8::None), 0 /* on instance */}, | 4645 {"enforcedRangeLongAttr", TestObjV8Internal::enforcedRangeLongAttrAttrGetter
Callback, TestObjV8Internal::enforcedRangeLongAttrAttrSetterCallback, 0, 0, 0 /*
no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Proper
tyAttribute>(v8::None), 0 /* on instance */}, |
4502 // Attribute 'enforcedRangeUnsignedLongAttr' (Type: 'attribute' ExtAttr: 'En
forceRange') | 4646 // Attribute 'enforcedRangeUnsignedLongAttr' (Type: 'attribute' ExtAttr: 'En
forceRange') |
4503 {"enforcedRangeUnsignedLongAttr", TestObjV8Internal::enforcedRangeUnsignedLo
ngAttrAttrGetterCallback, TestObjV8Internal::enforcedRangeUnsignedLongAttrAttrSe
tterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4647 {"enforcedRangeUnsignedLongAttr", TestObjV8Internal::enforcedRangeUnsignedLo
ngAttrAttrGetterCallback, TestObjV8Internal::enforcedRangeUnsignedLongAttrAttrSe
tterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
4504 // Attribute 'enforcedRangeLongLongAttr' (Type: 'attribute' ExtAttr: 'Enforc
eRange') | 4648 // Attribute 'enforcedRangeLongLongAttr' (Type: 'attribute' ExtAttr: 'Enforc
eRange') |
4505 {"enforcedRangeLongLongAttr", TestObjV8Internal::enforcedRangeLongLongAttrAt
trGetterCallback, TestObjV8Internal::enforcedRangeLongLongAttrAttrSetterCallback
, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cas
t<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4649 {"enforcedRangeLongLongAttr", TestObjV8Internal::enforcedRangeLongLongAttrAt
trGetterCallback, TestObjV8Internal::enforcedRangeLongLongAttrAttrSetterCallback
, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cas
t<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
4506 // Attribute 'enforcedRangeUnsignedLongLongAttr' (Type: 'attribute' ExtAttr:
'EnforceRange') | 4650 // Attribute 'enforcedRangeUnsignedLongLongAttr' (Type: 'attribute' ExtAttr:
'EnforceRange') |
4507 {"enforcedRangeUnsignedLongLongAttr", TestObjV8Internal::enforcedRangeUnsign
edLongLongAttrAttrGetterCallback, TestObjV8Internal::enforcedRangeUnsignedLongLo
ngAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(
v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}
, | 4651 {"enforcedRangeUnsignedLongLongAttr", TestObjV8Internal::enforcedRangeUnsign
edLongLongAttrAttrGetterCallback, TestObjV8Internal::enforcedRangeUnsignedLongLo
ngAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(
v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}
, |
4508 #if ENABLE(Condition1) | 4652 #if ENABLE(Condition1) |
4509 // Attribute 'conditionalAttr1' (Type: 'attribute' ExtAttr: 'Conditional') | 4653 // Attribute 'conditionalAttr1' (Type: 'attribute' ExtAttr: 'Conditional') |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4628 {"withActiveWindowAndFirstWindow", TestObjV8Internal::withActiveWindowAndFir
stWindowMethodCallback, 0, 0}, | 4772 {"withActiveWindowAndFirstWindow", TestObjV8Internal::withActiveWindowAndFir
stWindowMethodCallback, 0, 0}, |
4629 {"methodWithOptionalArg", TestObjV8Internal::methodWithOptionalArgMethodCall
back, 0, 0}, | 4773 {"methodWithOptionalArg", TestObjV8Internal::methodWithOptionalArgMethodCall
back, 0, 0}, |
4630 {"methodWithNonOptionalArgAndOptionalArg", TestObjV8Internal::methodWithNonO
ptionalArgAndOptionalArgMethodCallback, 0, 1}, | 4774 {"methodWithNonOptionalArgAndOptionalArg", TestObjV8Internal::methodWithNonO
ptionalArgAndOptionalArgMethodCallback, 0, 1}, |
4631 {"methodWithNonOptionalArgAndTwoOptionalArgs", TestObjV8Internal::methodWith
NonOptionalArgAndTwoOptionalArgsMethodCallback, 0, 1}, | 4775 {"methodWithNonOptionalArgAndTwoOptionalArgs", TestObjV8Internal::methodWith
NonOptionalArgAndTwoOptionalArgsMethodCallback, 0, 1}, |
4632 {"methodWithOptionalString", TestObjV8Internal::methodWithOptionalStringMeth
odCallback, 0, 0}, | 4776 {"methodWithOptionalString", TestObjV8Internal::methodWithOptionalStringMeth
odCallback, 0, 0}, |
4633 {"methodWithOptionalStringIsUndefined", TestObjV8Internal::methodWithOptiona
lStringIsUndefinedMethodCallback, 0, 0}, | 4777 {"methodWithOptionalStringIsUndefined", TestObjV8Internal::methodWithOptiona
lStringIsUndefinedMethodCallback, 0, 0}, |
4634 {"methodWithOptionalStringIsNullString", TestObjV8Internal::methodWithOption
alStringIsNullStringMethodCallback, 0, 0}, | 4778 {"methodWithOptionalStringIsNullString", TestObjV8Internal::methodWithOption
alStringIsNullStringMethodCallback, 0, 0}, |
4635 {"methodWithCallbackArg", TestObjV8Internal::methodWithCallbackArgMethodCall
back, 0, 1}, | 4779 {"methodWithCallbackArg", TestObjV8Internal::methodWithCallbackArgMethodCall
back, 0, 1}, |
4636 {"methodWithNonCallbackArgAndCallbackArg", TestObjV8Internal::methodWithNonC
allbackArgAndCallbackArgMethodCallback, 0, 2}, | 4780 {"methodWithNonCallbackArgAndCallbackArg", TestObjV8Internal::methodWithNonC
allbackArgAndCallbackArgMethodCallback, 0, 2}, |
4637 {"methodWithCallbackAndOptionalArg", TestObjV8Internal::methodWithCallbackAn
dOptionalArgMethodCallback, 0, 0}, | 4781 {"methodWithCallbackAndOptionalArg", TestObjV8Internal::methodWithCallbackAn
dOptionalArgMethodCallback, 0, 0}, |
| 4782 {"methodWithEnforceRangeInt8", TestObjV8Internal::methodWithEnforceRangeInt8
MethodCallback, 0, 1}, |
| 4783 {"methodWithEnforceRangeUInt8", TestObjV8Internal::methodWithEnforceRangeUIn
t8MethodCallback, 0, 1}, |
4638 {"methodWithEnforceRangeInt32", TestObjV8Internal::methodWithEnforceRangeInt
32MethodCallback, 0, 1}, | 4784 {"methodWithEnforceRangeInt32", TestObjV8Internal::methodWithEnforceRangeInt
32MethodCallback, 0, 1}, |
4639 {"methodWithEnforceRangeUInt32", TestObjV8Internal::methodWithEnforceRangeUI
nt32MethodCallback, 0, 1}, | 4785 {"methodWithEnforceRangeUInt32", TestObjV8Internal::methodWithEnforceRangeUI
nt32MethodCallback, 0, 1}, |
4640 {"methodWithEnforceRangeInt64", TestObjV8Internal::methodWithEnforceRangeInt
64MethodCallback, 0, 1}, | 4786 {"methodWithEnforceRangeInt64", TestObjV8Internal::methodWithEnforceRangeInt
64MethodCallback, 0, 1}, |
4641 {"methodWithEnforceRangeUInt64", TestObjV8Internal::methodWithEnforceRangeUI
nt64MethodCallback, 0, 1}, | 4787 {"methodWithEnforceRangeUInt64", TestObjV8Internal::methodWithEnforceRangeUI
nt64MethodCallback, 0, 1}, |
4642 #if ENABLE(Condition1) | 4788 #if ENABLE(Condition1) |
4643 {"conditionalMethod1", TestObjV8Internal::conditionalMethod1MethodCallback,
0, 0}, | 4789 {"conditionalMethod1", TestObjV8Internal::conditionalMethod1MethodCallback,
0, 0}, |
4644 #endif | 4790 #endif |
4645 #if ENABLE(Condition1) && ENABLE(Condition2) | 4791 #if ENABLE(Condition1) && ENABLE(Condition2) |
4646 {"conditionalMethod2", TestObjV8Internal::conditionalMethod2MethodCallback,
0, 0}, | 4792 {"conditionalMethod2", TestObjV8Internal::conditionalMethod2MethodCallback,
0, 0}, |
4647 #endif | 4793 #endif |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4942 installPerContextProperties(wrapper, impl.get(), isolate); | 5088 installPerContextProperties(wrapper, impl.get(), isolate); |
4943 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); | 5089 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); |
4944 return wrapper; | 5090 return wrapper; |
4945 } | 5091 } |
4946 void V8TestObject::derefObject(void* object) | 5092 void V8TestObject::derefObject(void* object) |
4947 { | 5093 { |
4948 static_cast<TestObj*>(object)->deref(); | 5094 static_cast<TestObj*>(object)->deref(); |
4949 } | 5095 } |
4950 | 5096 |
4951 } // namespace WebCore | 5097 } // namespace WebCore |
OLD | NEW |