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

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

Powered by Google App Engine
This is Rietveld 408576698