OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
6 | 6 |
7 #include "config.h" | 7 #include "config.h" |
8 #include "V8TestObjectPython.h" | 8 #include "V8TestObjectPython.h" |
9 | 9 |
10 #include "HTMLNames.h" | 10 #include "HTMLNames.h" |
(...skipping 3190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3201 { | 3201 { |
3202 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3202 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3203 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3203 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3204 TestObjectPythonV8Internal::reflectedClassAttributeSetter(jsValue, info); | 3204 TestObjectPythonV8Internal::reflectedClassAttributeSetter(jsValue, info); |
3205 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3205 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3206 } | 3206 } |
3207 | 3207 |
3208 static void limitedToOnlyOneAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 3208 static void limitedToOnlyOneAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
3209 { | 3209 { |
3210 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); | 3210 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3211 String resultValue = impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattri
buteAttr); | 3211 String jsValue = impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattribute
Attr); |
3212 if (resultValue.isEmpty()) { | 3212 if (jsValue.isEmpty()) { |
3213 ; | 3213 ; |
3214 } else if (equalIgnoringCase(resultValue, "unique")) { | 3214 } else if (equalIgnoringCase(jsValue, "unique")) { |
3215 resultValue = "unique"; | 3215 jsValue = "unique"; |
3216 } else { | 3216 } else { |
3217 resultValue = ""; | 3217 jsValue = ""; |
3218 } | 3218 } |
3219 v8SetReturnValueString(info, resultValue, info.GetIsolate()); | 3219 v8SetReturnValueString(info, jsValue, info.GetIsolate()); |
3220 } | 3220 } |
3221 | 3221 |
3222 static void limitedToOnlyOneAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3222 static void limitedToOnlyOneAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3223 { | 3223 { |
3224 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3224 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3225 TestObjectPythonV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); | 3225 TestObjectPythonV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); |
3226 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3226 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3227 } | 3227 } |
3228 | 3228 |
3229 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) | 3229 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) |
3230 { | 3230 { |
3231 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); | 3231 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3232 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3232 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3233 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3233 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3234 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); | 3234 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); |
3235 } | 3235 } |
3236 | 3236 |
3237 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3237 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3238 { | 3238 { |
3239 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3239 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3240 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3240 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3241 TestObjectPythonV8Internal::limitedToOnlyOneAttributeAttributeSetter(jsValue
, info); | 3241 TestObjectPythonV8Internal::limitedToOnlyOneAttributeAttributeSetter(jsValue
, info); |
3242 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3242 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3243 } | 3243 } |
3244 | 3244 |
3245 static void limitedToOnlyAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 3245 static void limitedToOnlyAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) |
3246 { | 3246 { |
3247 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); | 3247 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3248 String resultValue = impl->fastGetAttribute(HTMLNames::limitedtoonlyattribut
eAttr); | 3248 String jsValue = impl->fastGetAttribute(HTMLNames::limitedtoonlyattributeAtt
r); |
3249 if (resultValue.isEmpty()) { | 3249 if (jsValue.isEmpty()) { |
3250 ; | 3250 ; |
3251 } else if (equalIgnoringCase(resultValue, "Per")) { | 3251 } else if (equalIgnoringCase(jsValue, "Per")) { |
3252 resultValue = "Per"; | 3252 jsValue = "Per"; |
3253 } else if (equalIgnoringCase(resultValue, "Paal")) { | 3253 } else if (equalIgnoringCase(jsValue, "Paal")) { |
3254 resultValue = "Paal"; | 3254 jsValue = "Paal"; |
3255 } else if (equalIgnoringCase(resultValue, "Espen")) { | 3255 } else if (equalIgnoringCase(jsValue, "Espen")) { |
3256 resultValue = "Espen"; | 3256 jsValue = "Espen"; |
3257 } else { | 3257 } else { |
3258 resultValue = ""; | 3258 jsValue = ""; |
3259 } | 3259 } |
3260 v8SetReturnValueString(info, resultValue, info.GetIsolate()); | 3260 v8SetReturnValueString(info, jsValue, info.GetIsolate()); |
3261 } | 3261 } |
3262 | 3262 |
3263 static void limitedToOnlyAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 3263 static void limitedToOnlyAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
3264 { | 3264 { |
3265 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3265 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3266 TestObjectPythonV8Internal::limitedToOnlyAttributeAttributeGetter(info); | 3266 TestObjectPythonV8Internal::limitedToOnlyAttributeAttributeGetter(info); |
3267 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3267 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3268 } | 3268 } |
3269 | 3269 |
3270 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) | 3270 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) |
3271 { | 3271 { |
3272 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); | 3272 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3273 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3273 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3274 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3274 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3275 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); | 3275 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); |
3276 } | 3276 } |
3277 | 3277 |
3278 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3278 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3279 { | 3279 { |
3280 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3280 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3281 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3281 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3282 TestObjectPythonV8Internal::limitedToOnlyAttributeAttributeSetter(jsValue, i
nfo); | 3282 TestObjectPythonV8Internal::limitedToOnlyAttributeAttributeSetter(jsValue, i
nfo); |
3283 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3283 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3284 } | 3284 } |
3285 | 3285 |
3286 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 3286 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
3287 { | 3287 { |
3288 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); | 3288 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3289 String resultValue = impl->fastGetAttribute(HTMLNames::OtherAttr); | 3289 String jsValue = impl->fastGetAttribute(HTMLNames::OtherAttr); |
3290 if (resultValue.isEmpty()) { | 3290 if (jsValue.isEmpty()) { |
3291 ; | 3291 ; |
3292 } else if (equalIgnoringCase(resultValue, "Value1")) { | 3292 } else if (equalIgnoringCase(jsValue, "Value1")) { |
3293 resultValue = "Value1"; | 3293 jsValue = "Value1"; |
3294 } else if (equalIgnoringCase(resultValue, "Value2")) { | 3294 } else if (equalIgnoringCase(jsValue, "Value2")) { |
3295 resultValue = "Value2"; | 3295 jsValue = "Value2"; |
3296 } else { | 3296 } else { |
3297 resultValue = ""; | 3297 jsValue = ""; |
3298 } | 3298 } |
3299 v8SetReturnValueString(info, resultValue, info.GetIsolate()); | 3299 v8SetReturnValueString(info, jsValue, info.GetIsolate()); |
3300 } | 3300 } |
3301 | 3301 |
3302 static void limitedToOnlyOtherAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3302 static void limitedToOnlyOtherAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3303 { | 3303 { |
3304 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3304 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3305 TestObjectPythonV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info)
; | 3305 TestObjectPythonV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info)
; |
3306 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3306 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3307 } | 3307 } |
3308 | 3308 |
3309 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) | 3309 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) |
3310 { | 3310 { |
3311 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); | 3311 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3312 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3312 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3313 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3313 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3314 impl->setAttribute(HTMLNames::OtherAttr, cppValue); | 3314 impl->setAttribute(HTMLNames::OtherAttr, cppValue); |
3315 } | 3315 } |
3316 | 3316 |
3317 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3317 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3318 { | 3318 { |
3319 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3319 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3320 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3320 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3321 TestObjectPythonV8Internal::limitedToOnlyOtherAttributeAttributeSetter(jsVal
ue, info); | 3321 TestObjectPythonV8Internal::limitedToOnlyOtherAttributeAttributeSetter(jsVal
ue, info); |
3322 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3322 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3323 } | 3323 } |
3324 | 3324 |
3325 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) | 3325 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) |
3326 { | 3326 { |
3327 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); | 3327 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3328 String resultValue = impl->fastGetAttribute(HTMLNames::limitedwithmissingdef
aultattributeAttr); | 3328 String jsValue = impl->fastGetAttribute(HTMLNames::limitedwithmissingdefault
attributeAttr); |
3329 if (resultValue.isEmpty()) { | 3329 if (jsValue.isEmpty()) { |
3330 resultValue = "rsa"; | 3330 jsValue = "rsa"; |
3331 } else if (equalIgnoringCase(resultValue, "rsa")) { | 3331 } else if (equalIgnoringCase(jsValue, "rsa")) { |
3332 resultValue = "rsa"; | 3332 jsValue = "rsa"; |
3333 } else if (equalIgnoringCase(resultValue, "dsa")) { | 3333 } else if (equalIgnoringCase(jsValue, "dsa")) { |
3334 resultValue = "dsa"; | 3334 jsValue = "dsa"; |
3335 } else { | 3335 } else { |
3336 resultValue = ""; | 3336 jsValue = ""; |
3337 } | 3337 } |
3338 v8SetReturnValueString(info, resultValue, info.GetIsolate()); | 3338 v8SetReturnValueString(info, jsValue, info.GetIsolate()); |
3339 } | 3339 } |
3340 | 3340 |
3341 static void limitedWithMissingDefaultAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3341 static void limitedWithMissingDefaultAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3342 { | 3342 { |
3343 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3343 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3344 TestObjectPythonV8Internal::limitedWithMissingDefaultAttributeAttributeGette
r(info); | 3344 TestObjectPythonV8Internal::limitedWithMissingDefaultAttributeAttributeGette
r(info); |
3345 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3345 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3346 } | 3346 } |
3347 | 3347 |
3348 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu
e> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3348 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu
e> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3349 { | 3349 { |
3350 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); | 3350 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3351 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3351 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3352 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3352 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3353 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal
ue); | 3353 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal
ue); |
3354 } | 3354 } |
3355 | 3355 |
3356 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>&
info) | 3356 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>&
info) |
3357 { | 3357 { |
3358 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3358 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3359 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3359 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3360 TestObjectPythonV8Internal::limitedWithMissingDefaultAttributeAttributeSette
r(jsValue, info); | 3360 TestObjectPythonV8Internal::limitedWithMissingDefaultAttributeAttributeSette
r(jsValue, info); |
3361 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3361 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3362 } | 3362 } |
3363 | 3363 |
3364 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::P
ropertyCallbackInfo<v8::Value>& info) | 3364 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::P
ropertyCallbackInfo<v8::Value>& info) |
3365 { | 3365 { |
3366 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); | 3366 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3367 String resultValue = impl->fastGetAttribute(HTMLNames::limitedwithinvalidmis
singdefaultattributeAttr); | 3367 String jsValue = impl->fastGetAttribute(HTMLNames::limitedwithinvalidmissing
defaultattributeAttr); |
3368 if (resultValue.isEmpty()) { | 3368 if (jsValue.isEmpty()) { |
3369 resultValue = "auto"; | 3369 jsValue = "auto"; |
3370 } else if (equalIgnoringCase(resultValue, "ltr")) { | 3370 } else if (equalIgnoringCase(jsValue, "ltr")) { |
3371 resultValue = "ltr"; | 3371 jsValue = "ltr"; |
3372 } else if (equalIgnoringCase(resultValue, "rtl")) { | 3372 } else if (equalIgnoringCase(jsValue, "rtl")) { |
3373 resultValue = "rtl"; | 3373 jsValue = "rtl"; |
3374 } else if (equalIgnoringCase(resultValue, "auto")) { | 3374 } else if (equalIgnoringCase(jsValue, "auto")) { |
3375 resultValue = "auto"; | 3375 jsValue = "auto"; |
3376 } else { | 3376 } else { |
3377 resultValue = "ltr"; | 3377 jsValue = "ltr"; |
3378 } | 3378 } |
3379 v8SetReturnValueString(info, resultValue, info.GetIsolate()); | 3379 v8SetReturnValueString(info, jsValue, info.GetIsolate()); |
3380 } | 3380 } |
3381 | 3381 |
3382 static void limitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(v8:
:Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3382 static void limitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(v8:
:Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3383 { | 3383 { |
3384 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3384 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3385 TestObjectPythonV8Internal::limitedWithInvalidMissingDefaultAttributeAttribu
teGetter(info); | 3385 TestObjectPythonV8Internal::limitedWithInvalidMissingDefaultAttributeAttribu
teGetter(info); |
3386 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3386 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3387 } | 3387 } |
3388 | 3388 |
3389 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v
8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3389 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v
8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3390 { | 3390 { |
3391 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); | 3391 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3392 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3392 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3393 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3393 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3394 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr,
cppValue); | 3394 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr,
cppValue); |
3395 } | 3395 } |
3396 | 3396 |
3397 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8:
:Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo
<void>& info) | 3397 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8:
:Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo
<void>& info) |
3398 { | 3398 { |
3399 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3399 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3400 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3400 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3401 TestObjectPythonV8Internal::limitedWithInvalidMissingDefaultAttributeAttribu
teSetter(jsValue, info); | 3401 TestObjectPythonV8Internal::limitedWithInvalidMissingDefaultAttributeAttribu
teSetter(jsValue, info); |
3402 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3402 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3403 } | 3403 } |
3404 | 3404 |
3405 static void corsSettingAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 3405 static void corsSettingAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
3406 { | 3406 { |
3407 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); | 3407 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3408 String resultValue = impl->fastGetAttribute(HTMLNames::corssettingattributeA
ttr); | 3408 String jsValue = impl->fastGetAttribute(HTMLNames::corssettingattributeAttr)
; |
3409 if (resultValue.isNull()) { | 3409 if (jsValue.isNull()) { |
3410 ; | 3410 ; |
3411 } else if (resultValue.isEmpty()) { | 3411 } else if (jsValue.isEmpty()) { |
3412 resultValue = "anonymous"; | 3412 jsValue = "anonymous"; |
3413 } else if (equalIgnoringCase(resultValue, "anonymous")) { | 3413 } else if (equalIgnoringCase(jsValue, "anonymous")) { |
3414 resultValue = "anonymous"; | 3414 jsValue = "anonymous"; |
3415 } else if (equalIgnoringCase(resultValue, "use-credentials")) { | 3415 } else if (equalIgnoringCase(jsValue, "use-credentials")) { |
3416 resultValue = "use-credentials"; | 3416 jsValue = "use-credentials"; |
3417 } else { | 3417 } else { |
3418 resultValue = "anonymous"; | 3418 jsValue = "anonymous"; |
3419 } | 3419 } |
3420 v8SetReturnValueString(info, resultValue, info.GetIsolate()); | 3420 v8SetReturnValueString(info, jsValue, info.GetIsolate()); |
3421 } | 3421 } |
3422 | 3422 |
3423 static void corsSettingAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 3423 static void corsSettingAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
3424 { | 3424 { |
3425 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3425 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3426 TestObjectPythonV8Internal::corsSettingAttributeAttributeGetter(info); | 3426 TestObjectPythonV8Internal::corsSettingAttributeAttributeGetter(info); |
3427 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3427 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3428 } | 3428 } |
3429 | 3429 |
3430 static void limitedWithEmptyMissingInvalidAttributeAttributeGetter(const v8::Pro
pertyCallbackInfo<v8::Value>& info) | 3430 static void limitedWithEmptyMissingInvalidAttributeAttributeGetter(const v8::Pro
pertyCallbackInfo<v8::Value>& info) |
3431 { | 3431 { |
3432 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); | 3432 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3433 String resultValue = impl->fastGetAttribute(HTMLNames::limitedwithemptymissi
nginvalidattributeAttr); | 3433 String jsValue = impl->fastGetAttribute(HTMLNames::limitedwithemptymissingin
validattributeAttr); |
3434 if (resultValue.isNull()) { | 3434 if (jsValue.isNull()) { |
3435 resultValue = "missing"; | 3435 jsValue = "missing"; |
3436 } else if (resultValue.isEmpty()) { | 3436 } else if (jsValue.isEmpty()) { |
3437 resultValue = "empty"; | 3437 jsValue = "empty"; |
3438 } else if (equalIgnoringCase(resultValue, "empty")) { | 3438 } else if (equalIgnoringCase(jsValue, "empty")) { |
3439 resultValue = "empty"; | 3439 jsValue = "empty"; |
3440 } else if (equalIgnoringCase(resultValue, "missing")) { | 3440 } else if (equalIgnoringCase(jsValue, "missing")) { |
3441 resultValue = "missing"; | 3441 jsValue = "missing"; |
3442 } else if (equalIgnoringCase(resultValue, "invalid")) { | 3442 } else if (equalIgnoringCase(jsValue, "invalid")) { |
3443 resultValue = "invalid"; | 3443 jsValue = "invalid"; |
3444 } else if (equalIgnoringCase(resultValue, "a-normal")) { | 3444 } else if (equalIgnoringCase(jsValue, "a-normal")) { |
3445 resultValue = "a-normal"; | 3445 jsValue = "a-normal"; |
3446 } else { | 3446 } else { |
3447 resultValue = "invalid"; | 3447 jsValue = "invalid"; |
3448 } | 3448 } |
3449 v8SetReturnValueString(info, resultValue, info.GetIsolate()); | 3449 v8SetReturnValueString(info, jsValue, info.GetIsolate()); |
3450 } | 3450 } |
3451 | 3451 |
3452 static void limitedWithEmptyMissingInvalidAttributeAttributeGetterCallback(v8::L
ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3452 static void limitedWithEmptyMissingInvalidAttributeAttributeGetterCallback(v8::L
ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3453 { | 3453 { |
3454 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3454 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3455 TestObjectPythonV8Internal::limitedWithEmptyMissingInvalidAttributeAttribute
Getter(info); | 3455 TestObjectPythonV8Internal::limitedWithEmptyMissingInvalidAttributeAttribute
Getter(info); |
3456 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3456 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3457 } | 3457 } |
3458 | 3458 |
3459 static void replaceableReadonlyLongAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) | 3459 static void replaceableReadonlyLongAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) |
(...skipping 4329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7789 fromInternalPointer(object)->deref(); | 7789 fromInternalPointer(object)->deref(); |
7790 } | 7790 } |
7791 | 7791 |
7792 template<> | 7792 template<> |
7793 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object
> creationContext, v8::Isolate* isolate) | 7793 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object
> creationContext, v8::Isolate* isolate) |
7794 { | 7794 { |
7795 return toV8(impl, creationContext, isolate); | 7795 return toV8(impl, creationContext, isolate); |
7796 } | 7796 } |
7797 | 7797 |
7798 } // namespace WebCore | 7798 } // namespace WebCore |
OLD | NEW |