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

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

Issue 18789002: Implement Custom Elements' attributeChangedCallback. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Sync to tip. Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 This file is part of the Blink open source project. 2 This file is part of the Blink open source project.
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "bindings/v8/ScriptValue.h" 43 #include "bindings/v8/ScriptValue.h"
44 #include "bindings/v8/SerializedScriptValue.h" 44 #include "bindings/v8/SerializedScriptValue.h"
45 #include "bindings/v8/V8Binding.h" 45 #include "bindings/v8/V8Binding.h"
46 #include "bindings/v8/V8DOMActivityLogger.h" 46 #include "bindings/v8/V8DOMActivityLogger.h"
47 #include "bindings/v8/V8DOMConfiguration.h" 47 #include "bindings/v8/V8DOMConfiguration.h"
48 #include "bindings/v8/V8DOMWrapper.h" 48 #include "bindings/v8/V8DOMWrapper.h"
49 #include "bindings/v8/V8EventListenerList.h" 49 #include "bindings/v8/V8EventListenerList.h"
50 #include "bindings/v8/V8HiddenPropertyName.h" 50 #include "bindings/v8/V8HiddenPropertyName.h"
51 #include "bindings/v8/V8ObjectConstructor.h" 51 #include "bindings/v8/V8ObjectConstructor.h"
52 #include "core/dom/ContextFeatures.h" 52 #include "core/dom/ContextFeatures.h"
53 #include "core/dom/CustomElementCallbackDispatcher.h"
53 #include "core/dom/Document.h" 54 #include "core/dom/Document.h"
54 #include "core/dom/ExceptionCode.h" 55 #include "core/dom/ExceptionCode.h"
55 #include "core/page/Frame.h" 56 #include "core/page/Frame.h"
56 #include "core/page/PageConsole.h" 57 #include "core/page/PageConsole.h"
57 #include "core/page/UseCounter.h" 58 #include "core/page/UseCounter.h"
58 #include "core/platform/chromium/TraceEvent.h" 59 #include "core/platform/chromium/TraceEvent.h"
59 #include "core/svg/properties/SVGPropertyTearOff.h" 60 #include "core/svg/properties/SVGPropertyTearOff.h"
60 #include "core/svg/properties/SVGStaticPropertyTearOff.h" 61 #include "core/svg/properties/SVGStaticPropertyTearOff.h"
61 #include "wtf/GetPtr.h" 62 #include "wtf/GetPtr.h"
62 #include "wtf/RefCounted.h" 63 #include "wtf/RefCounted.h"
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 522
522 static void reflectedStringAttrAttrGetterCallback(v8::Local<v8::String> name, co nst v8::PropertyCallbackInfo<v8::Value>& info) 523 static void reflectedStringAttrAttrGetterCallback(v8::Local<v8::String> name, co nst v8::PropertyCallbackInfo<v8::Value>& info)
523 { 524 {
524 TestObjV8Internal::reflectedStringAttrAttrGetter(name, info); 525 TestObjV8Internal::reflectedStringAttrAttrGetter(name, info);
525 } 526 }
526 527
527 static void reflectedStringAttrAttrSetter(v8::Local<v8::String> name, v8::Local< v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 528 static void reflectedStringAttrAttrSetter(v8::Local<v8::String> name, v8::Local< v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
528 { 529 {
529 TestObj* imp = V8TestObject::toNative(info.Holder()); 530 TestObj* imp = V8TestObject::toNative(info.Holder());
530 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, v, val ue); 531 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, v, val ue);
532 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
531 imp->setAttribute(WebCore::HTMLNames::reflectedstringattrAttr, v); 533 imp->setAttribute(WebCore::HTMLNames::reflectedstringattrAttr, v);
532 return; 534 return;
533 } 535 }
534 536
535 static void reflectedStringAttrAttrSetterCallback(v8::Local<v8::String> name, v8 ::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 537 static void reflectedStringAttrAttrSetterCallback(v8::Local<v8::String> name, v8 ::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
536 { 538 {
537 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 539 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
540 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
538 TestObjV8Internal::reflectedStringAttrAttrSetter(name, value, info); 541 TestObjV8Internal::reflectedStringAttrAttrSetter(name, value, info);
539 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 542 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
540 } 543 }
541 544
542 static void reflectedIntegralAttrAttrGetter(v8::Local<v8::String> name, const v8 ::PropertyCallbackInfo<v8::Value>& info) 545 static void reflectedIntegralAttrAttrGetter(v8::Local<v8::String> name, const v8 ::PropertyCallbackInfo<v8::Value>& info)
543 { 546 {
544 TestObj* imp = V8TestObject::toNative(info.Holder()); 547 TestObj* imp = V8TestObject::toNative(info.Holder());
545 v8SetReturnValueInt(info, imp->getIntegralAttribute(WebCore::HTMLNames::refl ectedintegralattrAttr)); 548 v8SetReturnValueInt(info, imp->getIntegralAttribute(WebCore::HTMLNames::refl ectedintegralattrAttr));
546 return; 549 return;
547 } 550 }
548 551
549 static void reflectedIntegralAttrAttrGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) 552 static void reflectedIntegralAttrAttrGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info)
550 { 553 {
551 TestObjV8Internal::reflectedIntegralAttrAttrGetter(name, info); 554 TestObjV8Internal::reflectedIntegralAttrAttrGetter(name, info);
552 } 555 }
553 556
554 static void reflectedIntegralAttrAttrSetter(v8::Local<v8::String> name, v8::Loca l<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 557 static void reflectedIntegralAttrAttrSetter(v8::Local<v8::String> name, v8::Loca l<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
555 { 558 {
556 TestObj* imp = V8TestObject::toNative(info.Holder()); 559 TestObj* imp = V8TestObject::toNative(info.Holder());
557 V8TRYCATCH_VOID(int, v, toInt32(value)); 560 V8TRYCATCH_VOID(int, v, toInt32(value));
561 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
558 imp->setIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr, v); 562 imp->setIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr, v);
559 return; 563 return;
560 } 564 }
561 565
562 static void reflectedIntegralAttrAttrSetterCallback(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 566 static void reflectedIntegralAttrAttrSetterCallback(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
563 { 567 {
564 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 568 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
569 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
565 TestObjV8Internal::reflectedIntegralAttrAttrSetter(name, value, info); 570 TestObjV8Internal::reflectedIntegralAttrAttrSetter(name, value, info);
566 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 571 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
567 } 572 }
568 573
569 static void reflectedUnsignedIntegralAttrAttrGetter(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) 574 static void reflectedUnsignedIntegralAttrAttrGetter(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info)
570 { 575 {
571 TestObj* imp = V8TestObject::toNative(info.Holder()); 576 TestObj* imp = V8TestObject::toNative(info.Holder());
572 v8SetReturnValueUnsigned(info, std::max(0, imp->getIntegralAttribute(WebCore ::HTMLNames::reflectedunsignedintegralattrAttr))); 577 v8SetReturnValueUnsigned(info, std::max(0, imp->getIntegralAttribute(WebCore ::HTMLNames::reflectedunsignedintegralattrAttr)));
573 return; 578 return;
574 } 579 }
575 580
576 static void reflectedUnsignedIntegralAttrAttrGetterCallback(v8::Local<v8::String > name, const v8::PropertyCallbackInfo<v8::Value>& info) 581 static void reflectedUnsignedIntegralAttrAttrGetterCallback(v8::Local<v8::String > name, const v8::PropertyCallbackInfo<v8::Value>& info)
577 { 582 {
578 TestObjV8Internal::reflectedUnsignedIntegralAttrAttrGetter(name, info); 583 TestObjV8Internal::reflectedUnsignedIntegralAttrAttrGetter(name, info);
579 } 584 }
580 585
581 static void reflectedUnsignedIntegralAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 586 static void reflectedUnsignedIntegralAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
582 { 587 {
583 TestObj* imp = V8TestObject::toNative(info.Holder()); 588 TestObj* imp = V8TestObject::toNative(info.Holder());
584 V8TRYCATCH_VOID(unsigned, v, toUInt32(value)); 589 V8TRYCATCH_VOID(unsigned, v, toUInt32(value));
590 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
585 imp->setUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedinteg ralattrAttr, v); 591 imp->setUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedinteg ralattrAttr, v);
586 return; 592 return;
587 } 593 }
588 594
589 static void reflectedUnsignedIntegralAttrAttrSetterCallback(v8::Local<v8::String > name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 595 static void reflectedUnsignedIntegralAttrAttrSetterCallback(v8::Local<v8::String > name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
590 { 596 {
591 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 597 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
598 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
592 TestObjV8Internal::reflectedUnsignedIntegralAttrAttrSetter(name, value, info ); 599 TestObjV8Internal::reflectedUnsignedIntegralAttrAttrSetter(name, value, info );
593 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 600 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
594 } 601 }
595 602
596 static void reflectedBooleanAttrAttrGetter(v8::Local<v8::String> name, const v8: :PropertyCallbackInfo<v8::Value>& info) 603 static void reflectedBooleanAttrAttrGetter(v8::Local<v8::String> name, const v8: :PropertyCallbackInfo<v8::Value>& info)
597 { 604 {
598 TestObj* imp = V8TestObject::toNative(info.Holder()); 605 TestObj* imp = V8TestObject::toNative(info.Holder());
599 v8SetReturnValueBool(info, imp->fastHasAttribute(WebCore::HTMLNames::reflect edbooleanattrAttr)); 606 v8SetReturnValueBool(info, imp->fastHasAttribute(WebCore::HTMLNames::reflect edbooleanattrAttr));
600 return; 607 return;
601 } 608 }
602 609
603 static void reflectedBooleanAttrAttrGetterCallback(v8::Local<v8::String> name, c onst v8::PropertyCallbackInfo<v8::Value>& info) 610 static void reflectedBooleanAttrAttrGetterCallback(v8::Local<v8::String> name, c onst v8::PropertyCallbackInfo<v8::Value>& info)
604 { 611 {
605 TestObjV8Internal::reflectedBooleanAttrAttrGetter(name, info); 612 TestObjV8Internal::reflectedBooleanAttrAttrGetter(name, info);
606 } 613 }
607 614
608 static void reflectedBooleanAttrAttrSetter(v8::Local<v8::String> name, v8::Local <v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 615 static void reflectedBooleanAttrAttrSetter(v8::Local<v8::String> name, v8::Local <v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
609 { 616 {
610 TestObj* imp = V8TestObject::toNative(info.Holder()); 617 TestObj* imp = V8TestObject::toNative(info.Holder());
611 V8TRYCATCH_VOID(bool, v, value->BooleanValue()); 618 V8TRYCATCH_VOID(bool, v, value->BooleanValue());
619 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
612 imp->setBooleanAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr, v); 620 imp->setBooleanAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr, v);
613 return; 621 return;
614 } 622 }
615 623
616 static void reflectedBooleanAttrAttrSetterCallback(v8::Local<v8::String> name, v 8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 624 static void reflectedBooleanAttrAttrSetterCallback(v8::Local<v8::String> name, v 8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
617 { 625 {
618 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 626 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
627 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
619 TestObjV8Internal::reflectedBooleanAttrAttrSetter(name, value, info); 628 TestObjV8Internal::reflectedBooleanAttrAttrSetter(name, value, info);
620 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 629 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
621 } 630 }
622 631
623 static void reflectedURLAttrAttrGetter(v8::Local<v8::String> name, const v8::Pro pertyCallbackInfo<v8::Value>& info) 632 static void reflectedURLAttrAttrGetter(v8::Local<v8::String> name, const v8::Pro pertyCallbackInfo<v8::Value>& info)
624 { 633 {
625 TestObj* imp = V8TestObject::toNative(info.Holder()); 634 TestObj* imp = V8TestObject::toNative(info.Holder());
626 v8SetReturnValueString(info, imp->getURLAttribute(WebCore::HTMLNames::reflec tedurlattrAttr), info.GetIsolate(), NullStringAsEmpty); 635 v8SetReturnValueString(info, imp->getURLAttribute(WebCore::HTMLNames::reflec tedurlattrAttr), info.GetIsolate(), NullStringAsEmpty);
627 return; 636 return;
628 } 637 }
629 638
630 static void reflectedURLAttrAttrGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) 639 static void reflectedURLAttrAttrGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info)
631 { 640 {
632 TestObjV8Internal::reflectedURLAttrAttrGetter(name, info); 641 TestObjV8Internal::reflectedURLAttrAttrGetter(name, info);
633 } 642 }
634 643
635 static void reflectedURLAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8: :Value> value, const v8::PropertyCallbackInfo<void>& info) 644 static void reflectedURLAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8: :Value> value, const v8::PropertyCallbackInfo<void>& info)
636 { 645 {
637 TestObj* imp = V8TestObject::toNative(info.Holder()); 646 TestObj* imp = V8TestObject::toNative(info.Holder());
638 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, v, val ue); 647 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, v, val ue);
648 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
639 imp->setAttribute(WebCore::HTMLNames::reflectedurlattrAttr, v); 649 imp->setAttribute(WebCore::HTMLNames::reflectedurlattrAttr, v);
640 return; 650 return;
641 } 651 }
642 652
643 static void reflectedURLAttrAttrSetterCallback(v8::Local<v8::String> name, v8::L ocal<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 653 static void reflectedURLAttrAttrSetterCallback(v8::Local<v8::String> name, v8::L ocal<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
644 { 654 {
645 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 655 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
656 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
646 TestObjV8Internal::reflectedURLAttrAttrSetter(name, value, info); 657 TestObjV8Internal::reflectedURLAttrAttrSetter(name, value, info);
647 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 658 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
648 } 659 }
649 660
650 static void reflectedStringAttrAttrGetter(v8::Local<v8::String> name, const v8:: PropertyCallbackInfo<v8::Value>& info) 661 static void reflectedStringAttrAttrGetter(v8::Local<v8::String> name, const v8:: PropertyCallbackInfo<v8::Value>& info)
651 { 662 {
652 TestObj* imp = V8TestObject::toNative(info.Holder()); 663 TestObj* imp = V8TestObject::toNative(info.Holder());
653 v8SetReturnValueString(info, imp->fastGetAttribute(WebCore::HTMLNames::custo mContentStringAttrAttr), info.GetIsolate(), NullStringAsEmpty); 664 v8SetReturnValueString(info, imp->fastGetAttribute(WebCore::HTMLNames::custo mContentStringAttrAttr), info.GetIsolate(), NullStringAsEmpty);
654 return; 665 return;
655 } 666 }
656 667
657 static void reflectedStringAttrAttrGetterCallback(v8::Local<v8::String> name, co nst v8::PropertyCallbackInfo<v8::Value>& info) 668 static void reflectedStringAttrAttrGetterCallback(v8::Local<v8::String> name, co nst v8::PropertyCallbackInfo<v8::Value>& info)
658 { 669 {
659 TestObjV8Internal::reflectedStringAttrAttrGetter(name, info); 670 TestObjV8Internal::reflectedStringAttrAttrGetter(name, info);
660 } 671 }
661 672
662 static void reflectedStringAttrAttrSetter(v8::Local<v8::String> name, v8::Local< v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 673 static void reflectedStringAttrAttrSetter(v8::Local<v8::String> name, v8::Local< v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
663 { 674 {
664 TestObj* imp = V8TestObject::toNative(info.Holder()); 675 TestObj* imp = V8TestObject::toNative(info.Holder());
665 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, v, val ue); 676 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, v, val ue);
677 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
666 imp->setAttribute(WebCore::HTMLNames::customContentStringAttrAttr, v); 678 imp->setAttribute(WebCore::HTMLNames::customContentStringAttrAttr, v);
667 return; 679 return;
668 } 680 }
669 681
670 static void reflectedStringAttrAttrSetterCallback(v8::Local<v8::String> name, v8 ::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 682 static void reflectedStringAttrAttrSetterCallback(v8::Local<v8::String> name, v8 ::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
671 { 683 {
672 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 684 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
685 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
673 TestObjV8Internal::reflectedStringAttrAttrSetter(name, value, info); 686 TestObjV8Internal::reflectedStringAttrAttrSetter(name, value, info);
674 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 687 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
675 } 688 }
676 689
677 static void reflectedCustomIntegralAttrAttrGetter(v8::Local<v8::String> name, co nst v8::PropertyCallbackInfo<v8::Value>& info) 690 static void reflectedCustomIntegralAttrAttrGetter(v8::Local<v8::String> name, co nst v8::PropertyCallbackInfo<v8::Value>& info)
678 { 691 {
679 TestObj* imp = V8TestObject::toNative(info.Holder()); 692 TestObj* imp = V8TestObject::toNative(info.Holder());
680 v8SetReturnValueInt(info, imp->getIntegralAttribute(WebCore::HTMLNames::cust omContentIntegralAttrAttr)); 693 v8SetReturnValueInt(info, imp->getIntegralAttribute(WebCore::HTMLNames::cust omContentIntegralAttrAttr));
681 return; 694 return;
682 } 695 }
683 696
684 static void reflectedCustomIntegralAttrAttrGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) 697 static void reflectedCustomIntegralAttrAttrGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info)
685 { 698 {
686 TestObjV8Internal::reflectedCustomIntegralAttrAttrGetter(name, info); 699 TestObjV8Internal::reflectedCustomIntegralAttrAttrGetter(name, info);
687 } 700 }
688 701
689 static void reflectedCustomIntegralAttrAttrSetter(v8::Local<v8::String> name, v8 ::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 702 static void reflectedCustomIntegralAttrAttrSetter(v8::Local<v8::String> name, v8 ::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
690 { 703 {
691 TestObj* imp = V8TestObject::toNative(info.Holder()); 704 TestObj* imp = V8TestObject::toNative(info.Holder());
692 V8TRYCATCH_VOID(int, v, toInt32(value)); 705 V8TRYCATCH_VOID(int, v, toInt32(value));
706 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
693 imp->setIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr, v); 707 imp->setIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr, v);
694 return; 708 return;
695 } 709 }
696 710
697 static void reflectedCustomIntegralAttrAttrSetterCallback(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 711 static void reflectedCustomIntegralAttrAttrSetterCallback(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
698 { 712 {
699 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 713 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
714 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
700 TestObjV8Internal::reflectedCustomIntegralAttrAttrSetter(name, value, info); 715 TestObjV8Internal::reflectedCustomIntegralAttrAttrSetter(name, value, info);
701 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 716 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
702 } 717 }
703 718
704 static void reflectedCustomBooleanAttrAttrGetter(v8::Local<v8::String> name, con st v8::PropertyCallbackInfo<v8::Value>& info) 719 static void reflectedCustomBooleanAttrAttrGetter(v8::Local<v8::String> name, con st v8::PropertyCallbackInfo<v8::Value>& info)
705 { 720 {
706 TestObj* imp = V8TestObject::toNative(info.Holder()); 721 TestObj* imp = V8TestObject::toNative(info.Holder());
707 v8SetReturnValueBool(info, imp->fastHasAttribute(WebCore::HTMLNames::customC ontentBooleanAttrAttr)); 722 v8SetReturnValueBool(info, imp->fastHasAttribute(WebCore::HTMLNames::customC ontentBooleanAttrAttr));
708 return; 723 return;
709 } 724 }
710 725
711 static void reflectedCustomBooleanAttrAttrGetterCallback(v8::Local<v8::String> n ame, const v8::PropertyCallbackInfo<v8::Value>& info) 726 static void reflectedCustomBooleanAttrAttrGetterCallback(v8::Local<v8::String> n ame, const v8::PropertyCallbackInfo<v8::Value>& info)
712 { 727 {
713 TestObjV8Internal::reflectedCustomBooleanAttrAttrGetter(name, info); 728 TestObjV8Internal::reflectedCustomBooleanAttrAttrGetter(name, info);
714 } 729 }
715 730
716 static void reflectedCustomBooleanAttrAttrSetter(v8::Local<v8::String> name, v8: :Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 731 static void reflectedCustomBooleanAttrAttrSetter(v8::Local<v8::String> name, v8: :Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
717 { 732 {
718 TestObj* imp = V8TestObject::toNative(info.Holder()); 733 TestObj* imp = V8TestObject::toNative(info.Holder());
719 V8TRYCATCH_VOID(bool, v, value->BooleanValue()); 734 V8TRYCATCH_VOID(bool, v, value->BooleanValue());
735 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
720 imp->setBooleanAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr, v ); 736 imp->setBooleanAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr, v );
721 return; 737 return;
722 } 738 }
723 739
724 static void reflectedCustomBooleanAttrAttrSetterCallback(v8::Local<v8::String> n ame, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 740 static void reflectedCustomBooleanAttrAttrSetterCallback(v8::Local<v8::String> n ame, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
725 { 741 {
726 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 742 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
743 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
727 TestObjV8Internal::reflectedCustomBooleanAttrAttrSetter(name, value, info); 744 TestObjV8Internal::reflectedCustomBooleanAttrAttrSetter(name, value, info);
728 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 745 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
729 } 746 }
730 747
731 static void reflectedCustomURLAttrAttrGetter(v8::Local<v8::String> name, const v 8::PropertyCallbackInfo<v8::Value>& info) 748 static void reflectedCustomURLAttrAttrGetter(v8::Local<v8::String> name, const v 8::PropertyCallbackInfo<v8::Value>& info)
732 { 749 {
733 TestObj* imp = V8TestObject::toNative(info.Holder()); 750 TestObj* imp = V8TestObject::toNative(info.Holder());
734 v8SetReturnValueString(info, imp->getURLAttribute(WebCore::HTMLNames::custom ContentURLAttrAttr), info.GetIsolate(), NullStringAsEmpty); 751 v8SetReturnValueString(info, imp->getURLAttribute(WebCore::HTMLNames::custom ContentURLAttrAttr), info.GetIsolate(), NullStringAsEmpty);
735 return; 752 return;
736 } 753 }
737 754
738 static void reflectedCustomURLAttrAttrGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) 755 static void reflectedCustomURLAttrAttrGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info)
739 { 756 {
740 TestObjV8Internal::reflectedCustomURLAttrAttrGetter(name, info); 757 TestObjV8Internal::reflectedCustomURLAttrAttrGetter(name, info);
741 } 758 }
742 759
743 static void reflectedCustomURLAttrAttrSetter(v8::Local<v8::String> name, v8::Loc al<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 760 static void reflectedCustomURLAttrAttrSetter(v8::Local<v8::String> name, v8::Loc al<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
744 { 761 {
745 TestObj* imp = V8TestObject::toNative(info.Holder()); 762 TestObj* imp = V8TestObject::toNative(info.Holder());
746 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, v, val ue); 763 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, v, val ue);
764 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
747 imp->setAttribute(WebCore::HTMLNames::customContentURLAttrAttr, v); 765 imp->setAttribute(WebCore::HTMLNames::customContentURLAttrAttr, v);
748 return; 766 return;
749 } 767 }
750 768
751 static void reflectedCustomURLAttrAttrSetterCallback(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 769 static void reflectedCustomURLAttrAttrSetterCallback(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
752 { 770 {
753 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 771 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
772 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
754 TestObjV8Internal::reflectedCustomURLAttrAttrSetter(name, value, info); 773 TestObjV8Internal::reflectedCustomURLAttrAttrSetter(name, value, info);
755 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 774 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
756 } 775 }
757 776
758 static void typedArrayAttrAttrGetter(v8::Local<v8::String> name, const v8::Prope rtyCallbackInfo<v8::Value>& info) 777 static void typedArrayAttrAttrGetter(v8::Local<v8::String> name, const v8::Prope rtyCallbackInfo<v8::Value>& info)
759 { 778 {
760 TestObj* imp = V8TestObject::toNative(info.Holder()); 779 TestObj* imp = V8TestObject::toNative(info.Holder());
761 v8SetReturnValue(info, toV8Fast(imp->typedArrayAttr(), info, imp)); 780 v8SetReturnValue(info, toV8Fast(imp->typedArrayAttr(), info, imp));
762 return; 781 return;
763 } 782 }
(...skipping 4711 matching lines...) Expand 10 before | Expand all | Expand 10 after
5475 installPerContextProperties(wrapper, impl.get(), isolate); 5494 installPerContextProperties(wrapper, impl.get(), isolate);
5476 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap perConfiguration::Independent); 5495 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap perConfiguration::Independent);
5477 return wrapper; 5496 return wrapper;
5478 } 5497 }
5479 void V8TestObject::derefObject(void* object) 5498 void V8TestObject::derefObject(void* object)
5480 { 5499 {
5481 static_cast<TestObj*>(object)->deref(); 5500 static_cast<TestObj*>(object)->deref();
5482 } 5501 }
5483 5502
5484 } // namespace WebCore 5503 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/scripts/CodeGeneratorV8.pm ('k') | Source/bindings/v8/CustomElementConstructorBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698