Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: Source/bindings/tests/results/V8TestObject.cpp

Issue 503043003: Rename CustomElementCallbackDispatcher (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Full patch Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #include "bindings/tests/v8/V8TestNode.h" 47 #include "bindings/tests/v8/V8TestNode.h"
48 #include "bindings/tests/v8/V8TestObject.h" 48 #include "bindings/tests/v8/V8TestObject.h"
49 #include "bindings/tests/v8/V8Window.h" 49 #include "bindings/tests/v8/V8Window.h"
50 #include "bindings/tests/v8/V8XPathNSResolver.h" 50 #include "bindings/tests/v8/V8XPathNSResolver.h"
51 #include "core/HTMLNames.h" 51 #include "core/HTMLNames.h"
52 #include "core/css/MediaQueryListListener.h" 52 #include "core/css/MediaQueryListListener.h"
53 #include "core/dom/ClassCollection.h" 53 #include "core/dom/ClassCollection.h"
54 #include "core/dom/ContextFeatures.h" 54 #include "core/dom/ContextFeatures.h"
55 #include "core/dom/Document.h" 55 #include "core/dom/Document.h"
56 #include "core/dom/TagCollection.h" 56 #include "core/dom/TagCollection.h"
57 #include "core/dom/custom/CustomElementCallbackDispatcher.h" 57 #include "core/dom/custom/CustomElementProcessingStack.h"
58 #include "core/frame/LocalFrame.h" 58 #include "core/frame/LocalFrame.h"
59 #include "core/frame/UseCounter.h" 59 #include "core/frame/UseCounter.h"
60 #include "core/html/HTMLCollection.h" 60 #include "core/html/HTMLCollection.h"
61 #include "core/html/HTMLDataListOptionsCollection.h" 61 #include "core/html/HTMLDataListOptionsCollection.h"
62 #include "core/html/HTMLFormControlsCollection.h" 62 #include "core/html/HTMLFormControlsCollection.h"
63 #include "core/html/HTMLTableRowsCollection.h" 63 #include "core/html/HTMLTableRowsCollection.h"
64 #include "core/inspector/ScriptArguments.h" 64 #include "core/inspector/ScriptArguments.h"
65 #include "platform/RuntimeEnabledFeatures.h" 65 #include "platform/RuntimeEnabledFeatures.h"
66 #include "platform/ScriptForbiddenScope.h" 66 #include "platform/ScriptForbiddenScope.h"
67 #include "platform/TraceEvent.h" 67 #include "platform/TraceEvent.h"
(...skipping 3223 matching lines...) Expand 10 before | Expand all | Expand 10 after
3291 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3291 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3292 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeGetter(info); 3292 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeGetter(info);
3293 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3293 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3294 } 3294 }
3295 3295
3296 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info) 3296 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info)
3297 { 3297 {
3298 v8::Handle<v8::Object> holder = info.Holder(); 3298 v8::Handle<v8::Object> holder = info.Holder();
3299 TestObject* impl = V8TestObject::toNative(holder); 3299 TestObject* impl = V8TestObject::toNative(holder);
3300 TONATIVE_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toNat iveWithTypeCheck(info.GetIsolate(), v8Value)); 3300 TONATIVE_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toNat iveWithTypeCheck(info.GetIsolate(), v8Value));
3301 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3301 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3302 impl->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr (cppValue)); 3302 impl->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr (cppValue));
3303 } 3303 }
3304 3304
3305 static void reflectTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info ) 3305 static void reflectTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info )
3306 { 3306 {
3307 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3307 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3308 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3308 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3309 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeSetter(v8Value, info); 3309 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeSetter(v8Value, info);
3310 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3310 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3311 } 3311 }
3312 3312
3313 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info) 3313 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info)
3314 { 3314 {
3315 v8::Handle<v8::Object> holder = info.Holder(); 3315 v8::Handle<v8::Object> holder = info.Holder();
3316 TestObject* impl = V8TestObject::toNative(holder); 3316 TestObject* impl = V8TestObject::toNative(holder);
3317 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref lectedNameAttributeAttr)), impl); 3317 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref lectedNameAttributeAttr)), impl);
3318 } 3318 }
3319 3319
3320 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(v8 ::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3320 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(v8 ::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3321 { 3321 {
3322 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3322 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3323 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeGet ter(info); 3323 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeGet ter(info);
3324 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3324 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3325 } 3325 }
3326 3326
3327 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3327 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3328 { 3328 {
3329 v8::Handle<v8::Object> holder = info.Holder(); 3329 v8::Handle<v8::Object> holder = info.Holder();
3330 TestObject* impl = V8TestObject::toNative(holder); 3330 TestObject* impl = V8TestObject::toNative(holder);
3331 TONATIVE_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toNat iveWithTypeCheck(info.GetIsolate(), v8Value)); 3331 TONATIVE_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toNat iveWithTypeCheck(info.GetIsolate(), v8Value));
3332 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3332 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3333 impl->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppVal ue)); 3333 impl->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppVal ue));
3334 } 3334 }
3335 3335
3336 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info) 3336 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info)
3337 { 3337 {
3338 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3338 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3339 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3339 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3340 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeSet ter(v8Value, info); 3340 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeSet ter(v8Value, info);
3341 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3341 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3342 } 3342 }
3343 3343
3344 static void reflectBooleanAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 3344 static void reflectBooleanAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
3345 { 3345 {
3346 v8::Handle<v8::Object> holder = info.Holder(); 3346 v8::Handle<v8::Object> holder = info.Holder();
3347 TestObject* impl = V8TestObject::toNative(holder); 3347 TestObject* impl = V8TestObject::toNative(holder);
3348 v8SetReturnValueBool(info, impl->fastHasAttribute(HTMLNames::reflectbooleana ttributeAttr)); 3348 v8SetReturnValueBool(info, impl->fastHasAttribute(HTMLNames::reflectbooleana ttributeAttr));
3349 } 3349 }
3350 3350
3351 static void reflectBooleanAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 3351 static void reflectBooleanAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info)
3352 { 3352 {
3353 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3353 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3354 TestObjectV8Internal::reflectBooleanAttributeAttributeGetter(info); 3354 TestObjectV8Internal::reflectBooleanAttributeAttributeGetter(info);
3355 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3355 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3356 } 3356 }
3357 3357
3358 static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3358 static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3359 { 3359 {
3360 v8::Handle<v8::Object> holder = info.Holder(); 3360 v8::Handle<v8::Object> holder = info.Holder();
3361 TestObject* impl = V8TestObject::toNative(holder); 3361 TestObject* impl = V8TestObject::toNative(holder);
3362 TONATIVE_VOID(bool, cppValue, v8Value->BooleanValue()); 3362 TONATIVE_VOID(bool, cppValue, v8Value->BooleanValue());
3363 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3363 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3364 impl->setBooleanAttribute(HTMLNames::reflectbooleanattributeAttr, cppValue); 3364 impl->setBooleanAttribute(HTMLNames::reflectbooleanattributeAttr, cppValue);
3365 } 3365 }
3366 3366
3367 static void reflectBooleanAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3367 static void reflectBooleanAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3368 { 3368 {
3369 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3369 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3370 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3370 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3371 TestObjectV8Internal::reflectBooleanAttributeAttributeSetter(v8Value, info); 3371 TestObjectV8Internal::reflectBooleanAttributeAttributeSetter(v8Value, info);
3372 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3372 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3373 } 3373 }
3374 3374
3375 static void reflectLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 3375 static void reflectLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
3376 { 3376 {
3377 v8::Handle<v8::Object> holder = info.Holder(); 3377 v8::Handle<v8::Object> holder = info.Holder();
3378 TestObject* impl = V8TestObject::toNative(holder); 3378 TestObject* impl = V8TestObject::toNative(holder);
3379 v8SetReturnValueInt(info, impl->getIntegralAttribute(HTMLNames::reflectlonga ttributeAttr)); 3379 v8SetReturnValueInt(info, impl->getIntegralAttribute(HTMLNames::reflectlonga ttributeAttr));
3380 } 3380 }
3381 3381
3382 static void reflectLongAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 3382 static void reflectLongAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
3383 { 3383 {
3384 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3384 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3385 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info); 3385 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info);
3386 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3386 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3387 } 3387 }
3388 3388
3389 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 3389 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
3390 { 3390 {
3391 v8::Handle<v8::Object> holder = info.Holder(); 3391 v8::Handle<v8::Object> holder = info.Holder();
3392 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt ribute", "TestObject", holder, info.GetIsolate()); 3392 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt ribute", "TestObject", holder, info.GetIsolate());
3393 TestObject* impl = V8TestObject::toNative(holder); 3393 TestObject* impl = V8TestObject::toNative(holder);
3394 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState); 3394 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState) , exceptionState);
3395 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3395 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3396 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); 3396 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue);
3397 } 3397 }
3398 3398
3399 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3399 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3400 { 3400 {
3401 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3401 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3402 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3402 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3403 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info); 3403 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info);
3404 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3404 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3405 } 3405 }
3406 3406
3407 static void reflectUnsignedShortAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 3407 static void reflectUnsignedShortAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
3408 { 3408 {
3409 v8::Handle<v8::Object> holder = info.Holder(); 3409 v8::Handle<v8::Object> holder = info.Holder();
3410 TestObject* impl = V8TestObject::toNative(holder); 3410 TestObject* impl = V8TestObject::toNative(holder);
3411 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->fastGetAtt ribute(HTMLNames::reflectunsignedshortattributeAttr)))); 3411 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->fastGetAtt ribute(HTMLNames::reflectunsignedshortattributeAttr))));
3412 } 3412 }
3413 3413
3414 static void reflectUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 3414 static void reflectUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info)
3415 { 3415 {
3416 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3416 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3417 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info); 3417 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info);
3418 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3418 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3419 } 3419 }
3420 3420
3421 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info) 3421 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info)
3422 { 3422 {
3423 v8::Handle<v8::Object> holder = info.Holder(); 3423 v8::Handle<v8::Object> holder = info.Holder();
3424 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dShortAttribute", "TestObject", holder, info.GetIsolate()); 3424 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dShortAttribute", "TestObject", holder, info.GetIsolate());
3425 TestObject* impl = V8TestObject::toNative(holder); 3425 TestObject* impl = V8TestObject::toNative(holder);
3426 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt16(v8Value, exception State), exceptionState); 3426 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt16(v8Value, exception State), exceptionState);
3427 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3427 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3428 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); 3428 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue);
3429 } 3429 }
3430 3430
3431 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info ) 3431 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info )
3432 { 3432 {
3433 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3433 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3434 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3434 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3435 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value, info); 3435 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value, info);
3436 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3436 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3437 } 3437 }
3438 3438
3439 static void reflectUnsignedLongAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 3439 static void reflectUnsignedLongAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info)
3440 { 3440 {
3441 v8::Handle<v8::Object> holder = info.Holder(); 3441 v8::Handle<v8::Object> holder = info.Holder();
3442 TestObject* impl = V8TestObject::toNative(holder); 3442 TestObject* impl = V8TestObject::toNative(holder);
3443 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->getIntegra lAttribute(HTMLNames::reflectunsignedlongattributeAttr)))); 3443 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->getIntegra lAttribute(HTMLNames::reflectunsignedlongattributeAttr))));
3444 } 3444 }
3445 3445
3446 static void reflectUnsignedLongAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info) 3446 static void reflectUnsignedLongAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info)
3447 { 3447 {
3448 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3448 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3449 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info); 3449 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info);
3450 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3450 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3451 } 3451 }
3452 3452
3453 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info) 3453 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
3454 { 3454 {
3455 v8::Handle<v8::Object> holder = info.Holder(); 3455 v8::Handle<v8::Object> holder = info.Holder();
3456 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dLongAttribute", "TestObject", holder, info.GetIsolate()); 3456 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dLongAttribute", "TestObject", holder, info.GetIsolate());
3457 TestObject* impl = V8TestObject::toNative(holder); 3457 TestObject* impl = V8TestObject::toNative(holder);
3458 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt32(v8Value, exception State), exceptionState); 3458 TONATIVE_VOID_EXCEPTIONSTATE(unsigned, cppValue, toUInt32(v8Value, exception State), exceptionState);
3459 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3459 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3460 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt tr, cppValue); 3460 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt tr, cppValue);
3461 } 3461 }
3462 3462
3463 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3463 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3464 { 3464 {
3465 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3465 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3466 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3466 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3467 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i nfo); 3467 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i nfo);
3468 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3468 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3469 } 3469 }
3470 3470
3471 static void idAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 3471 static void idAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
3472 { 3472 {
3473 v8::Handle<v8::Object> holder = info.Holder(); 3473 v8::Handle<v8::Object> holder = info.Holder();
3474 TestObject* impl = V8TestObject::toNative(holder); 3474 TestObject* impl = V8TestObject::toNative(holder);
3475 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate()); 3475 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate());
3476 } 3476 }
3477 3477
3478 static void idAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyC allbackInfo<v8::Value>& info) 3478 static void idAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyC allbackInfo<v8::Value>& info)
3479 { 3479 {
3480 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3480 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3481 TestObjectV8Internal::idAttributeGetter(info); 3481 TestObjectV8Internal::idAttributeGetter(info);
3482 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3482 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3483 } 3483 }
3484 3484
3485 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCa llbackInfo<void>& info) 3485 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCa llbackInfo<void>& info)
3486 { 3486 {
3487 v8::Handle<v8::Object> holder = info.Holder(); 3487 v8::Handle<v8::Object> holder = info.Holder();
3488 TestObject* impl = V8TestObject::toNative(holder); 3488 TestObject* impl = V8TestObject::toNative(holder);
3489 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3489 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3490 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3490 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3491 impl->setAttribute(HTMLNames::idAttr, cppValue); 3491 impl->setAttribute(HTMLNames::idAttr, cppValue);
3492 } 3492 }
3493 3493
3494 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value > v8Value, const v8::PropertyCallbackInfo<void>& info) 3494 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value > v8Value, const v8::PropertyCallbackInfo<void>& info)
3495 { 3495 {
3496 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3496 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3497 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3497 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3498 TestObjectV8Internal::idAttributeSetter(v8Value, info); 3498 TestObjectV8Internal::idAttributeSetter(v8Value, info);
3499 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3499 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3500 } 3500 }
3501 3501
3502 static void nameAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 3502 static void nameAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
3503 { 3503 {
3504 v8::Handle<v8::Object> holder = info.Holder(); 3504 v8::Handle<v8::Object> holder = info.Holder();
3505 TestObject* impl = V8TestObject::toNative(holder); 3505 TestObject* impl = V8TestObject::toNative(holder);
3506 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate()); 3506 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate());
3507 } 3507 }
3508 3508
3509 static void nameAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert yCallbackInfo<v8::Value>& info) 3509 static void nameAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert yCallbackInfo<v8::Value>& info)
3510 { 3510 {
3511 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3511 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3512 TestObjectV8Internal::nameAttributeGetter(info); 3512 TestObjectV8Internal::nameAttributeGetter(info);
3513 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3513 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3514 } 3514 }
3515 3515
3516 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info) 3516 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info)
3517 { 3517 {
3518 v8::Handle<v8::Object> holder = info.Holder(); 3518 v8::Handle<v8::Object> holder = info.Holder();
3519 TestObject* impl = V8TestObject::toNative(holder); 3519 TestObject* impl = V8TestObject::toNative(holder);
3520 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3520 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3521 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3521 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3522 impl->setAttribute(HTMLNames::nameAttr, cppValue); 3522 impl->setAttribute(HTMLNames::nameAttr, cppValue);
3523 } 3523 }
3524 3524
3525 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info) 3525 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info)
3526 { 3526 {
3527 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3527 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3528 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3528 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3529 TestObjectV8Internal::nameAttributeSetter(v8Value, info); 3529 TestObjectV8Internal::nameAttributeSetter(v8Value, info);
3530 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3530 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3531 } 3531 }
3532 3532
3533 static void classAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info ) 3533 static void classAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info )
3534 { 3534 {
3535 v8::Handle<v8::Object> holder = info.Holder(); 3535 v8::Handle<v8::Object> holder = info.Holder();
3536 TestObject* impl = V8TestObject::toNative(holder); 3536 TestObject* impl = V8TestObject::toNative(holder);
3537 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate()); 3537 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate());
3538 } 3538 }
3539 3539
3540 static void classAttributeGetterCallback(v8::Local<v8::String>, const v8::Proper tyCallbackInfo<v8::Value>& info) 3540 static void classAttributeGetterCallback(v8::Local<v8::String>, const v8::Proper tyCallbackInfo<v8::Value>& info)
3541 { 3541 {
3542 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3542 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3543 TestObjectV8Internal::classAttributeGetter(info); 3543 TestObjectV8Internal::classAttributeGetter(info);
3544 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3544 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3545 } 3545 }
3546 3546
3547 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert yCallbackInfo<void>& info) 3547 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert yCallbackInfo<void>& info)
3548 { 3548 {
3549 v8::Handle<v8::Object> holder = info.Holder(); 3549 v8::Handle<v8::Object> holder = info.Holder();
3550 TestObject* impl = V8TestObject::toNative(holder); 3550 TestObject* impl = V8TestObject::toNative(holder);
3551 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3551 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3552 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3552 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3553 impl->setAttribute(HTMLNames::classAttr, cppValue); 3553 impl->setAttribute(HTMLNames::classAttr, cppValue);
3554 } 3554 }
3555 3555
3556 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info) 3556 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info)
3557 { 3557 {
3558 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3558 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3559 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3559 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3560 TestObjectV8Internal::classAttributeSetter(v8Value, info); 3560 TestObjectV8Internal::classAttributeSetter(v8Value, info);
3561 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3561 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3562 } 3562 }
3563 3563
3564 static void reflectedIdAttributeGetter(const v8::PropertyCallbackInfo<v8::Value> & info) 3564 static void reflectedIdAttributeGetter(const v8::PropertyCallbackInfo<v8::Value> & info)
3565 { 3565 {
3566 v8::Handle<v8::Object> holder = info.Holder(); 3566 v8::Handle<v8::Object> holder = info.Holder();
3567 TestObject* impl = V8TestObject::toNative(holder); 3567 TestObject* impl = V8TestObject::toNative(holder);
3568 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate()); 3568 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate());
3569 } 3569 }
3570 3570
3571 static void reflectedIdAttributeGetterCallback(v8::Local<v8::String>, const v8:: PropertyCallbackInfo<v8::Value>& info) 3571 static void reflectedIdAttributeGetterCallback(v8::Local<v8::String>, const v8:: PropertyCallbackInfo<v8::Value>& info)
3572 { 3572 {
3573 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3573 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3574 TestObjectV8Internal::reflectedIdAttributeGetter(info); 3574 TestObjectV8Internal::reflectedIdAttributeGetter(info);
3575 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3575 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3576 } 3576 }
3577 3577
3578 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::P ropertyCallbackInfo<void>& info) 3578 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::P ropertyCallbackInfo<void>& info)
3579 { 3579 {
3580 v8::Handle<v8::Object> holder = info.Holder(); 3580 v8::Handle<v8::Object> holder = info.Holder();
3581 TestObject* impl = V8TestObject::toNative(holder); 3581 TestObject* impl = V8TestObject::toNative(holder);
3582 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3582 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3583 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3583 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3584 impl->setAttribute(HTMLNames::idAttr, cppValue); 3584 impl->setAttribute(HTMLNames::idAttr, cppValue);
3585 } 3585 }
3586 3586
3587 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3587 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3588 { 3588 {
3589 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3589 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3590 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3590 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3591 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info); 3591 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info);
3592 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3592 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3593 } 3593 }
3594 3594
3595 static void reflectedNameAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 3595 static void reflectedNameAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
3596 { 3596 {
3597 v8::Handle<v8::Object> holder = info.Holder(); 3597 v8::Handle<v8::Object> holder = info.Holder();
3598 TestObject* impl = V8TestObject::toNative(holder); 3598 TestObject* impl = V8TestObject::toNative(holder);
3599 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate()); 3599 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate());
3600 } 3600 }
3601 3601
3602 static void reflectedNameAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 3602 static void reflectedNameAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info)
3603 { 3603 {
3604 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3604 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3605 TestObjectV8Internal::reflectedNameAttributeGetter(info); 3605 TestObjectV8Internal::reflectedNameAttributeGetter(info);
3606 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3606 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3607 } 3607 }
3608 3608
3609 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info) 3609 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
3610 { 3610 {
3611 v8::Handle<v8::Object> holder = info.Holder(); 3611 v8::Handle<v8::Object> holder = info.Holder();
3612 TestObject* impl = V8TestObject::toNative(holder); 3612 TestObject* impl = V8TestObject::toNative(holder);
3613 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3613 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3614 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3614 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3615 impl->setAttribute(HTMLNames::nameAttr, cppValue); 3615 impl->setAttribute(HTMLNames::nameAttr, cppValue);
3616 } 3616 }
3617 3617
3618 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3618 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3619 { 3619 {
3620 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3620 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3621 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3621 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3622 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info); 3622 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info);
3623 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3623 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3624 } 3624 }
3625 3625
3626 static void reflectedClassAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 3626 static void reflectedClassAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
3627 { 3627 {
3628 v8::Handle<v8::Object> holder = info.Holder(); 3628 v8::Handle<v8::Object> holder = info.Holder();
3629 TestObject* impl = V8TestObject::toNative(holder); 3629 TestObject* impl = V8TestObject::toNative(holder);
3630 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate()); 3630 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate());
3631 } 3631 }
3632 3632
3633 static void reflectedClassAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 3633 static void reflectedClassAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info)
3634 { 3634 {
3635 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3635 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3636 TestObjectV8Internal::reflectedClassAttributeGetter(info); 3636 TestObjectV8Internal::reflectedClassAttributeGetter(info);
3637 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3637 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3638 } 3638 }
3639 3639
3640 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info) 3640 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
3641 { 3641 {
3642 v8::Handle<v8::Object> holder = info.Holder(); 3642 v8::Handle<v8::Object> holder = info.Holder();
3643 TestObject* impl = V8TestObject::toNative(holder); 3643 TestObject* impl = V8TestObject::toNative(holder);
3644 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3644 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3645 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3645 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3646 impl->setAttribute(HTMLNames::classAttr, cppValue); 3646 impl->setAttribute(HTMLNames::classAttr, cppValue);
3647 } 3647 }
3648 3648
3649 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3649 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3650 { 3650 {
3651 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3651 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3652 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3652 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3653 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info); 3653 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info);
3654 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3654 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3655 } 3655 }
3656 3656
3657 static void limitedToOnlyOneAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 3657 static void limitedToOnlyOneAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
3658 { 3658 {
3659 v8::Handle<v8::Object> holder = info.Holder(); 3659 v8::Handle<v8::Object> holder = info.Holder();
3660 TestObject* impl = V8TestObject::toNative(holder); 3660 TestObject* impl = V8TestObject::toNative(holder);
3661 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattributeA ttr)); 3661 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattributeA ttr));
3662 if (cppValue.isEmpty()) { 3662 if (cppValue.isEmpty()) {
(...skipping 11 matching lines...) Expand all
3674 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3674 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3675 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); 3675 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info);
3676 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3676 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3677 } 3677 }
3678 3678
3679 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info) 3679 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
3680 { 3680 {
3681 v8::Handle<v8::Object> holder = info.Holder(); 3681 v8::Handle<v8::Object> holder = info.Holder();
3682 TestObject* impl = V8TestObject::toNative(holder); 3682 TestObject* impl = V8TestObject::toNative(holder);
3683 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3683 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3684 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3684 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3685 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); 3685 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue);
3686 } 3686 }
3687 3687
3688 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3688 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3689 { 3689 {
3690 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3690 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3691 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3691 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3692 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info ); 3692 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info );
3693 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3693 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3694 } 3694 }
3695 3695
3696 static void limitedToOnlyAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 3696 static void limitedToOnlyAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
3697 { 3697 {
3698 v8::Handle<v8::Object> holder = info.Holder(); 3698 v8::Handle<v8::Object> holder = info.Holder();
3699 TestObject* impl = V8TestObject::toNative(holder); 3699 TestObject* impl = V8TestObject::toNative(holder);
3700 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyattributeAttr )); 3700 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyattributeAttr ));
3701 if (cppValue.isEmpty()) { 3701 if (cppValue.isEmpty()) {
(...skipping 15 matching lines...) Expand all
3717 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3717 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3718 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info); 3718 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info);
3719 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3719 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3720 } 3720 }
3721 3721
3722 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3722 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3723 { 3723 {
3724 v8::Handle<v8::Object> holder = info.Holder(); 3724 v8::Handle<v8::Object> holder = info.Holder();
3725 TestObject* impl = V8TestObject::toNative(holder); 3725 TestObject* impl = V8TestObject::toNative(holder);
3726 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3726 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3727 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3727 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3728 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); 3728 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue);
3729 } 3729 }
3730 3730
3731 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3731 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3732 { 3732 {
3733 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3733 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3734 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3734 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3735 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info); 3735 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info);
3736 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3736 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3737 } 3737 }
3738 3738
3739 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 3739 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
3740 { 3740 {
3741 v8::Handle<v8::Object> holder = info.Holder(); 3741 v8::Handle<v8::Object> holder = info.Holder();
3742 TestObject* impl = V8TestObject::toNative(holder); 3742 TestObject* impl = V8TestObject::toNative(holder);
3743 String cppValue(impl->fastGetAttribute(HTMLNames::otherAttr)); 3743 String cppValue(impl->fastGetAttribute(HTMLNames::otherAttr));
3744 if (cppValue.isEmpty()) { 3744 if (cppValue.isEmpty()) {
(...skipping 13 matching lines...) Expand all
3758 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3758 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3759 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info); 3759 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info);
3760 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3760 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3761 } 3761 }
3762 3762
3763 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info) 3763 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
3764 { 3764 {
3765 v8::Handle<v8::Object> holder = info.Holder(); 3765 v8::Handle<v8::Object> holder = info.Holder();
3766 TestObject* impl = V8TestObject::toNative(holder); 3766 TestObject* impl = V8TestObject::toNative(holder);
3767 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3767 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3768 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3768 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3769 impl->setAttribute(HTMLNames::otherAttr, cppValue); 3769 impl->setAttribute(HTMLNames::otherAttr, cppValue);
3770 } 3770 }
3771 3771
3772 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3772 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3773 { 3773 {
3774 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3774 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3775 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3775 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3776 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in fo); 3776 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in fo);
3777 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3777 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3778 } 3778 }
3779 3779
3780 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) 3780 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info)
3781 { 3781 {
3782 v8::Handle<v8::Object> holder = info.Holder(); 3782 v8::Handle<v8::Object> holder = info.Holder();
3783 TestObject* impl = V8TestObject::toNative(holder); 3783 TestObject* impl = V8TestObject::toNative(holder);
3784 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithmissingdefaulta ttributeAttr)); 3784 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithmissingdefaulta ttributeAttr));
3785 if (cppValue.isEmpty()) { 3785 if (cppValue.isEmpty()) {
(...skipping 13 matching lines...) Expand all
3799 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3799 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3800 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info ); 3800 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info );
3801 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3801 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3802 } 3802 }
3803 3803
3804 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info) 3804 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info)
3805 { 3805 {
3806 v8::Handle<v8::Object> holder = info.Holder(); 3806 v8::Handle<v8::Object> holder = info.Holder();
3807 TestObject* impl = V8TestObject::toNative(holder); 3807 TestObject* impl = V8TestObject::toNative(holder);
3808 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3808 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3809 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3809 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3810 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal ue); 3810 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal ue);
3811 } 3811 }
3812 3812
3813 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3813 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3814 { 3814 {
3815 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3815 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3816 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3816 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3817 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va lue, info); 3817 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va lue, info);
3818 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3818 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3819 } 3819 }
3820 3820
3821 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::P ropertyCallbackInfo<v8::Value>& info) 3821 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::P ropertyCallbackInfo<v8::Value>& info)
3822 { 3822 {
3823 v8::Handle<v8::Object> holder = info.Holder(); 3823 v8::Handle<v8::Object> holder = info.Holder();
3824 TestObject* impl = V8TestObject::toNative(holder); 3824 TestObject* impl = V8TestObject::toNative(holder);
3825 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithinvalidmissingd efaultattributeAttr)); 3825 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithinvalidmissingd efaultattributeAttr));
3826 if (cppValue.isEmpty()) { 3826 if (cppValue.isEmpty()) {
(...skipping 15 matching lines...) Expand all
3842 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 3842 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
3843 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett er(info); 3843 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett er(info);
3844 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3844 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3845 } 3845 }
3846 3846
3847 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 3847 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3848 { 3848 {
3849 v8::Handle<v8::Object> holder = info.Holder(); 3849 v8::Handle<v8::Object> holder = info.Holder();
3850 TestObject* impl = V8TestObject::toNative(holder); 3850 TestObject* impl = V8TestObject::toNative(holder);
3851 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 3851 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
3852 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3852 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3853 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr, cppValue); 3853 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr, cppValue);
3854 } 3854 }
3855 3855
3856 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8: :Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo <void>& info) 3856 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8: :Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo <void>& info)
3857 { 3857 {
3858 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 3858 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
3859 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3859 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
3860 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett er(v8Value, info); 3860 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett er(v8Value, info);
3861 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 3861 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
3862 } 3862 }
3863 3863
3864 static void corsSettingAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 3864 static void corsSettingAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
3865 { 3865 {
3866 v8::Handle<v8::Object> holder = info.Holder(); 3866 v8::Handle<v8::Object> holder = info.Holder();
3867 TestObject* impl = V8TestObject::toNative(holder); 3867 TestObject* impl = V8TestObject::toNative(holder);
3868 String cppValue(impl->fastGetAttribute(HTMLNames::corssettingattributeAttr)) ; 3868 String cppValue(impl->fastGetAttribute(HTMLNames::corssettingattributeAttr)) ;
3869 if (cppValue.isNull()) { 3869 if (cppValue.isNull()) {
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
4507 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4507 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4508 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); 4508 TestObjectV8Internal::urlStringAttributeAttributeGetter(info);
4509 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4509 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4510 } 4510 }
4511 4511
4512 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 4512 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
4513 { 4513 {
4514 v8::Handle<v8::Object> holder = info.Holder(); 4514 v8::Handle<v8::Object> holder = info.Holder();
4515 TestObject* impl = V8TestObject::toNative(holder); 4515 TestObject* impl = V8TestObject::toNative(holder);
4516 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 4516 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4517 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 4517 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4518 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); 4518 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue);
4519 } 4519 }
4520 4520
4521 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4521 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4522 { 4522 {
4523 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4523 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4524 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 4524 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4525 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); 4525 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info);
4526 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4526 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4527 } 4527 }
4528 4528
4529 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info) 4529 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info)
4530 { 4530 {
4531 v8::Handle<v8::Object> holder = info.Holder(); 4531 v8::Handle<v8::Object> holder = info.Holder();
4532 TestObject* impl = V8TestObject::toNative(holder); 4532 TestObject* impl = V8TestObject::toNative(holder);
4533 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflectUrlAttr ibuteAttr), info.GetIsolate()); 4533 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflectUrlAttr ibuteAttr), info.GetIsolate());
4534 } 4534 }
4535 4535
4536 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info) 4536 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info)
4537 { 4537 {
4538 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 4538 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
4539 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); 4539 TestObjectV8Internal::urlStringAttributeAttributeGetter(info);
4540 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4540 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4541 } 4541 }
4542 4542
4543 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info) 4543 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
4544 { 4544 {
4545 v8::Handle<v8::Object> holder = info.Holder(); 4545 v8::Handle<v8::Object> holder = info.Holder();
4546 TestObject* impl = V8TestObject::toNative(holder); 4546 TestObject* impl = V8TestObject::toNative(holder);
4547 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); 4547 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
4548 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 4548 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4549 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue); 4549 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue);
4550 } 4550 }
4551 4551
4552 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 4552 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4553 { 4553 {
4554 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 4554 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
4555 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 4555 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
4556 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); 4556 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info);
4557 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 4557 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
4558 } 4558 }
4559 4559
4560 static void unforgeableLongAttributeAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info) 4560 static void unforgeableLongAttributeAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info)
4561 { 4561 {
4562 v8::Handle<v8::Object> holder = info.Holder(); 4562 v8::Handle<v8::Object> holder = info.Holder();
4563 TestObject* impl = V8TestObject::toNative(holder); 4563 TestObject* impl = V8TestObject::toNative(holder);
4564 v8SetReturnValueInt(info, impl->unforgeableLongAttribute()); 4564 v8SetReturnValueInt(info, impl->unforgeableLongAttribute());
4565 } 4565 }
(...skipping 4231 matching lines...) Expand 10 before | Expand all | Expand 10 after
8797 { 8797 {
8798 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8798 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8799 V8TestObject::conditionalConditionCustomVoidMethodMethodCustom(info); 8799 V8TestObject::conditionalConditionCustomVoidMethodMethodCustom(info);
8800 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8800 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8801 } 8801 }
8802 #endif // ENABLE(CONDITION) 8802 #endif // ENABLE(CONDITION)
8803 8803
8804 static void customElementCallbacksVoidMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 8804 static void customElementCallbacksVoidMethodMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
8805 { 8805 {
8806 TestObject* impl = V8TestObject::toNative(info.Holder()); 8806 TestObject* impl = V8TestObject::toNative(info.Holder());
8807 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 8807 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
8808 impl->customElementCallbacksVoidMethod(); 8808 impl->customElementCallbacksVoidMethod();
8809 } 8809 }
8810 8810
8811 static void customElementCallbacksVoidMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 8811 static void customElementCallbacksVoidMethodMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
8812 { 8812 {
8813 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 8813 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
8814 TestObjectV8Internal::customElementCallbacksVoidMethodMethod(info); 8814 TestObjectV8Internal::customElementCallbacksVoidMethodMethod(info);
8815 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 8815 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
8816 } 8816 }
8817 8817
(...skipping 2514 matching lines...) Expand 10 before | Expand all | Expand 10 after
11332 // FIXME: We should support more exceptions. 11332 // FIXME: We should support more exceptions.
11333 RELEASE_ASSERT_NOT_REACHED(); 11333 RELEASE_ASSERT_NOT_REACHED();
11334 } 11334 }
11335 block.ReThrow(); 11335 block.ReThrow();
11336 return false; 11336 return false;
11337 } 11337 }
11338 return true; 11338 return true;
11339 } 11339 }
11340 11340
11341 } // namespace blink 11341 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698