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

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

Issue 27003002: IDL compiler: [Reflect] for getters (+ remove unnecessary WebCore::) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reupload Created 7 years, 2 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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 static void createAttributeSetterCallback(v8::Local<v8::String> name, v8::Local< v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 546 static void createAttributeSetterCallback(v8::Local<v8::String> name, v8::Local< v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
547 { 547 {
548 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 548 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
549 TestObjV8Internal::createAttributeSetter(name, value, info); 549 TestObjV8Internal::createAttributeSetter(name, value, info);
550 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 550 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
551 } 551 }
552 552
553 static void reflectedStringAttrAttributeGetter(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) 553 static void reflectedStringAttrAttributeGetter(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info)
554 { 554 {
555 TestObj* imp = V8TestObject::toNative(info.Holder()); 555 TestObj* imp = V8TestObject::toNative(info.Holder());
556 v8SetReturnValueString(info, imp->fastGetAttribute(WebCore::HTMLNames::refle ctedstringattrAttr), info.GetIsolate()); 556 v8SetReturnValueString(info, imp->fastGetAttribute(HTMLNames::reflectedstrin gattrAttr), info.GetIsolate());
557 } 557 }
558 558
559 static void reflectedStringAttrAttributeGetterCallback(v8::Local<v8::String> nam e, const v8::PropertyCallbackInfo<v8::Value>& info) 559 static void reflectedStringAttrAttributeGetterCallback(v8::Local<v8::String> nam e, const v8::PropertyCallbackInfo<v8::Value>& info)
560 { 560 {
561 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 561 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
562 TestObjV8Internal::reflectedStringAttrAttributeGetter(name, info); 562 TestObjV8Internal::reflectedStringAttrAttributeGetter(name, info);
563 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 563 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
564 } 564 }
565 565
566 static void reflectedStringAttrAttributeSetter(v8::Local<v8::String> name, v8::L ocal<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 566 static void reflectedStringAttrAttributeSetter(v8::Local<v8::String> name, v8::L ocal<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
567 { 567 {
568 TestObj* imp = V8TestObject::toNative(info.Holder()); 568 TestObj* imp = V8TestObject::toNative(info.Holder());
569 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, v, val ue); 569 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, v, val ue);
570 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 570 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
571 imp->setAttribute(WebCore::HTMLNames::reflectedstringattrAttr, v); 571 imp->setAttribute(HTMLNames::reflectedstringattrAttr, v);
572 } 572 }
573 573
574 static void reflectedStringAttrAttributeSetterCallback(v8::Local<v8::String> nam e, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 574 static void reflectedStringAttrAttributeSetterCallback(v8::Local<v8::String> nam e, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
575 { 575 {
576 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 576 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
577 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 577 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
578 TestObjV8Internal::reflectedStringAttrAttributeSetter(name, value, info); 578 TestObjV8Internal::reflectedStringAttrAttributeSetter(name, value, info);
579 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 579 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
580 } 580 }
581 581
582 static void reflectedIntegralAttrAttributeGetter(v8::Local<v8::String> name, con st v8::PropertyCallbackInfo<v8::Value>& info) 582 static void reflectedIntegralAttrAttributeGetter(v8::Local<v8::String> name, con st v8::PropertyCallbackInfo<v8::Value>& info)
583 { 583 {
584 TestObj* imp = V8TestObject::toNative(info.Holder()); 584 TestObj* imp = V8TestObject::toNative(info.Holder());
585 v8SetReturnValueInt(info, imp->getIntegralAttribute(WebCore::HTMLNames::refl ectedintegralattrAttr)); 585 v8SetReturnValueInt(info, imp->getIntegralAttribute(HTMLNames::reflectedinte gralattrAttr));
586 } 586 }
587 587
588 static void reflectedIntegralAttrAttributeGetterCallback(v8::Local<v8::String> n ame, const v8::PropertyCallbackInfo<v8::Value>& info) 588 static void reflectedIntegralAttrAttributeGetterCallback(v8::Local<v8::String> n ame, const v8::PropertyCallbackInfo<v8::Value>& info)
589 { 589 {
590 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 590 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
591 TestObjV8Internal::reflectedIntegralAttrAttributeGetter(name, info); 591 TestObjV8Internal::reflectedIntegralAttrAttributeGetter(name, info);
592 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 592 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
593 } 593 }
594 594
595 static void reflectedIntegralAttrAttributeSetter(v8::Local<v8::String> name, v8: :Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 595 static void reflectedIntegralAttrAttributeSetter(v8::Local<v8::String> name, v8: :Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
596 { 596 {
597 TestObj* imp = V8TestObject::toNative(info.Holder()); 597 TestObj* imp = V8TestObject::toNative(info.Holder());
598 V8TRYCATCH_VOID(int, v, toInt32(value)); 598 V8TRYCATCH_VOID(int, v, toInt32(value));
599 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 599 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
600 imp->setIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr, v); 600 imp->setIntegralAttribute(HTMLNames::reflectedintegralattrAttr, v);
601 } 601 }
602 602
603 static void reflectedIntegralAttrAttributeSetterCallback(v8::Local<v8::String> n ame, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 603 static void reflectedIntegralAttrAttributeSetterCallback(v8::Local<v8::String> n ame, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
604 { 604 {
605 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 605 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
606 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 606 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
607 TestObjV8Internal::reflectedIntegralAttrAttributeSetter(name, value, info); 607 TestObjV8Internal::reflectedIntegralAttrAttributeSetter(name, value, info);
608 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 608 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
609 } 609 }
610 610
611 static void reflectedUnsignedIntegralAttrAttributeGetter(v8::Local<v8::String> n ame, const v8::PropertyCallbackInfo<v8::Value>& info) 611 static void reflectedUnsignedIntegralAttrAttributeGetter(v8::Local<v8::String> n ame, const v8::PropertyCallbackInfo<v8::Value>& info)
612 { 612 {
613 TestObj* imp = V8TestObject::toNative(info.Holder()); 613 TestObj* imp = V8TestObject::toNative(info.Holder());
614 v8SetReturnValueUnsigned(info, std::max(0, imp->getIntegralAttribute(WebCore ::HTMLNames::reflectedunsignedintegralattrAttr))); 614 v8SetReturnValueUnsigned(info, std::max(0, imp->getIntegralAttribute(HTMLNam es::reflectedunsignedintegralattrAttr)));
615 } 615 }
616 616
617 static void reflectedUnsignedIntegralAttrAttributeGetterCallback(v8::Local<v8::S tring> name, const v8::PropertyCallbackInfo<v8::Value>& info) 617 static void reflectedUnsignedIntegralAttrAttributeGetterCallback(v8::Local<v8::S tring> name, const v8::PropertyCallbackInfo<v8::Value>& info)
618 { 618 {
619 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 619 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
620 TestObjV8Internal::reflectedUnsignedIntegralAttrAttributeGetter(name, info); 620 TestObjV8Internal::reflectedUnsignedIntegralAttrAttributeGetter(name, info);
621 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 621 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
622 } 622 }
623 623
624 static void reflectedUnsignedIntegralAttrAttributeSetter(v8::Local<v8::String> n ame, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 624 static void reflectedUnsignedIntegralAttrAttributeSetter(v8::Local<v8::String> n ame, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
625 { 625 {
626 TestObj* imp = V8TestObject::toNative(info.Holder()); 626 TestObj* imp = V8TestObject::toNative(info.Holder());
627 V8TRYCATCH_VOID(unsigned, v, toUInt32(value)); 627 V8TRYCATCH_VOID(unsigned, v, toUInt32(value));
628 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 628 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
629 imp->setUnsignedIntegralAttribute(WebCore::HTMLNames::reflectedunsignedinteg ralattrAttr, v); 629 imp->setUnsignedIntegralAttribute(HTMLNames::reflectedunsignedintegralattrAt tr, v);
630 } 630 }
631 631
632 static void reflectedUnsignedIntegralAttrAttributeSetterCallback(v8::Local<v8::S tring> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& i nfo) 632 static void reflectedUnsignedIntegralAttrAttributeSetterCallback(v8::Local<v8::S tring> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& i nfo)
633 { 633 {
634 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 634 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
635 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 635 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
636 TestObjV8Internal::reflectedUnsignedIntegralAttrAttributeSetter(name, value, info); 636 TestObjV8Internal::reflectedUnsignedIntegralAttrAttributeSetter(name, value, info);
637 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 637 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
638 } 638 }
639 639
640 static void reflectedBooleanAttrAttributeGetter(v8::Local<v8::String> name, cons t v8::PropertyCallbackInfo<v8::Value>& info) 640 static void reflectedBooleanAttrAttributeGetter(v8::Local<v8::String> name, cons t v8::PropertyCallbackInfo<v8::Value>& info)
641 { 641 {
642 TestObj* imp = V8TestObject::toNative(info.Holder()); 642 TestObj* imp = V8TestObject::toNative(info.Holder());
643 v8SetReturnValueBool(info, imp->fastHasAttribute(WebCore::HTMLNames::reflect edbooleanattrAttr)); 643 v8SetReturnValueBool(info, imp->fastHasAttribute(HTMLNames::reflectedboolean attrAttr));
644 } 644 }
645 645
646 static void reflectedBooleanAttrAttributeGetterCallback(v8::Local<v8::String> na me, const v8::PropertyCallbackInfo<v8::Value>& info) 646 static void reflectedBooleanAttrAttributeGetterCallback(v8::Local<v8::String> na me, const v8::PropertyCallbackInfo<v8::Value>& info)
647 { 647 {
648 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 648 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
649 TestObjV8Internal::reflectedBooleanAttrAttributeGetter(name, info); 649 TestObjV8Internal::reflectedBooleanAttrAttributeGetter(name, info);
650 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 650 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
651 } 651 }
652 652
653 static void reflectedBooleanAttrAttributeSetter(v8::Local<v8::String> name, v8:: Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 653 static void reflectedBooleanAttrAttributeSetter(v8::Local<v8::String> name, v8:: Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
654 { 654 {
655 TestObj* imp = V8TestObject::toNative(info.Holder()); 655 TestObj* imp = V8TestObject::toNative(info.Holder());
656 V8TRYCATCH_VOID(bool, v, value->BooleanValue()); 656 V8TRYCATCH_VOID(bool, v, value->BooleanValue());
657 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 657 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
658 imp->setBooleanAttribute(WebCore::HTMLNames::reflectedbooleanattrAttr, v); 658 imp->setBooleanAttribute(HTMLNames::reflectedbooleanattrAttr, v);
659 } 659 }
660 660
661 static void reflectedBooleanAttrAttributeSetterCallback(v8::Local<v8::String> na me, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 661 static void reflectedBooleanAttrAttributeSetterCallback(v8::Local<v8::String> na me, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
662 { 662 {
663 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 663 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
664 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 664 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
665 TestObjV8Internal::reflectedBooleanAttrAttributeSetter(name, value, info); 665 TestObjV8Internal::reflectedBooleanAttrAttributeSetter(name, value, info);
666 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 666 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
667 } 667 }
668 668
669 static void reflectedURLAttrAttributeGetter(v8::Local<v8::String> name, const v8 ::PropertyCallbackInfo<v8::Value>& info) 669 static void reflectedURLAttrAttributeGetter(v8::Local<v8::String> name, const v8 ::PropertyCallbackInfo<v8::Value>& info)
670 { 670 {
671 TestObj* imp = V8TestObject::toNative(info.Holder()); 671 TestObj* imp = V8TestObject::toNative(info.Holder());
672 v8SetReturnValueString(info, imp->getURLAttribute(WebCore::HTMLNames::reflec tedurlattrAttr), info.GetIsolate()); 672 v8SetReturnValueString(info, imp->getURLAttribute(HTMLNames::reflectedurlatt rAttr), info.GetIsolate());
673 } 673 }
674 674
675 static void reflectedURLAttrAttributeGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) 675 static void reflectedURLAttrAttributeGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info)
676 { 676 {
677 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 677 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
678 TestObjV8Internal::reflectedURLAttrAttributeGetter(name, info); 678 TestObjV8Internal::reflectedURLAttrAttributeGetter(name, info);
679 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 679 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
680 } 680 }
681 681
682 static void reflectedURLAttrAttributeSetter(v8::Local<v8::String> name, v8::Loca l<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 682 static void reflectedURLAttrAttributeSetter(v8::Local<v8::String> name, v8::Loca l<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
683 { 683 {
684 TestObj* imp = V8TestObject::toNative(info.Holder()); 684 TestObj* imp = V8TestObject::toNative(info.Holder());
685 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, v, val ue); 685 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, v, val ue);
686 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 686 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
687 imp->setAttribute(WebCore::HTMLNames::reflectedurlattrAttr, v); 687 imp->setAttribute(HTMLNames::reflectedurlattrAttr, v);
688 } 688 }
689 689
690 static void reflectedURLAttrAttributeSetterCallback(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 690 static void reflectedURLAttrAttributeSetterCallback(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
691 { 691 {
692 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 692 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
693 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 693 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
694 TestObjV8Internal::reflectedURLAttrAttributeSetter(name, value, info); 694 TestObjV8Internal::reflectedURLAttrAttributeSetter(name, value, info);
695 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 695 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
696 } 696 }
697 697
698 static void reflectedStringAttrAttributeGetter(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) 698 static void reflectedStringAttrAttributeGetter(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info)
699 { 699 {
700 TestObj* imp = V8TestObject::toNative(info.Holder()); 700 TestObj* imp = V8TestObject::toNative(info.Holder());
701 v8SetReturnValueString(info, imp->fastGetAttribute(WebCore::HTMLNames::custo mContentStringAttrAttr), info.GetIsolate()); 701 v8SetReturnValueString(info, imp->fastGetAttribute(HTMLNames::customContentS tringAttrAttr), info.GetIsolate());
702 } 702 }
703 703
704 static void reflectedStringAttrAttributeGetterCallback(v8::Local<v8::String> nam e, const v8::PropertyCallbackInfo<v8::Value>& info) 704 static void reflectedStringAttrAttributeGetterCallback(v8::Local<v8::String> nam e, const v8::PropertyCallbackInfo<v8::Value>& info)
705 { 705 {
706 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 706 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
707 TestObjV8Internal::reflectedStringAttrAttributeGetter(name, info); 707 TestObjV8Internal::reflectedStringAttrAttributeGetter(name, info);
708 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 708 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
709 } 709 }
710 710
711 static void reflectedStringAttrAttributeSetter(v8::Local<v8::String> name, v8::L ocal<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 711 static void reflectedStringAttrAttributeSetter(v8::Local<v8::String> name, v8::L ocal<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
712 { 712 {
713 TestObj* imp = V8TestObject::toNative(info.Holder()); 713 TestObj* imp = V8TestObject::toNative(info.Holder());
714 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, v, val ue); 714 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, v, val ue);
715 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 715 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
716 imp->setAttribute(WebCore::HTMLNames::customContentStringAttrAttr, v); 716 imp->setAttribute(HTMLNames::customContentStringAttrAttr, v);
717 } 717 }
718 718
719 static void reflectedStringAttrAttributeSetterCallback(v8::Local<v8::String> nam e, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 719 static void reflectedStringAttrAttributeSetterCallback(v8::Local<v8::String> nam e, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
720 { 720 {
721 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 721 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
722 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 722 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
723 TestObjV8Internal::reflectedStringAttrAttributeSetter(name, value, info); 723 TestObjV8Internal::reflectedStringAttrAttributeSetter(name, value, info);
724 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 724 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
725 } 725 }
726 726
727 static void reflectedCustomIntegralAttrAttributeGetter(v8::Local<v8::String> nam e, const v8::PropertyCallbackInfo<v8::Value>& info) 727 static void reflectedCustomIntegralAttrAttributeGetter(v8::Local<v8::String> nam e, const v8::PropertyCallbackInfo<v8::Value>& info)
728 { 728 {
729 TestObj* imp = V8TestObject::toNative(info.Holder()); 729 TestObj* imp = V8TestObject::toNative(info.Holder());
730 v8SetReturnValueInt(info, imp->getIntegralAttribute(WebCore::HTMLNames::cust omContentIntegralAttrAttr)); 730 v8SetReturnValueInt(info, imp->getIntegralAttribute(HTMLNames::customContent IntegralAttrAttr));
731 } 731 }
732 732
733 static void reflectedCustomIntegralAttrAttributeGetterCallback(v8::Local<v8::Str ing> name, const v8::PropertyCallbackInfo<v8::Value>& info) 733 static void reflectedCustomIntegralAttrAttributeGetterCallback(v8::Local<v8::Str ing> name, const v8::PropertyCallbackInfo<v8::Value>& info)
734 { 734 {
735 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 735 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
736 TestObjV8Internal::reflectedCustomIntegralAttrAttributeGetter(name, info); 736 TestObjV8Internal::reflectedCustomIntegralAttrAttributeGetter(name, info);
737 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 737 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
738 } 738 }
739 739
740 static void reflectedCustomIntegralAttrAttributeSetter(v8::Local<v8::String> nam e, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 740 static void reflectedCustomIntegralAttrAttributeSetter(v8::Local<v8::String> nam e, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
741 { 741 {
742 TestObj* imp = V8TestObject::toNative(info.Holder()); 742 TestObj* imp = V8TestObject::toNative(info.Holder());
743 V8TRYCATCH_VOID(int, v, toInt32(value)); 743 V8TRYCATCH_VOID(int, v, toInt32(value));
744 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 744 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
745 imp->setIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr, v); 745 imp->setIntegralAttribute(HTMLNames::customContentIntegralAttrAttr, v);
746 } 746 }
747 747
748 static void reflectedCustomIntegralAttrAttributeSetterCallback(v8::Local<v8::Str ing> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& inf o) 748 static void reflectedCustomIntegralAttrAttributeSetterCallback(v8::Local<v8::Str ing> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& inf o)
749 { 749 {
750 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 750 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
751 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 751 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
752 TestObjV8Internal::reflectedCustomIntegralAttrAttributeSetter(name, value, i nfo); 752 TestObjV8Internal::reflectedCustomIntegralAttrAttributeSetter(name, value, i nfo);
753 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 753 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
754 } 754 }
755 755
756 static void reflectedCustomBooleanAttrAttributeGetter(v8::Local<v8::String> name , const v8::PropertyCallbackInfo<v8::Value>& info) 756 static void reflectedCustomBooleanAttrAttributeGetter(v8::Local<v8::String> name , const v8::PropertyCallbackInfo<v8::Value>& info)
757 { 757 {
758 TestObj* imp = V8TestObject::toNative(info.Holder()); 758 TestObj* imp = V8TestObject::toNative(info.Holder());
759 v8SetReturnValueBool(info, imp->fastHasAttribute(WebCore::HTMLNames::customC ontentBooleanAttrAttr)); 759 v8SetReturnValueBool(info, imp->fastHasAttribute(HTMLNames::customContentBoo leanAttrAttr));
760 } 760 }
761 761
762 static void reflectedCustomBooleanAttrAttributeGetterCallback(v8::Local<v8::Stri ng> name, const v8::PropertyCallbackInfo<v8::Value>& info) 762 static void reflectedCustomBooleanAttrAttributeGetterCallback(v8::Local<v8::Stri ng> name, const v8::PropertyCallbackInfo<v8::Value>& info)
763 { 763 {
764 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 764 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
765 TestObjV8Internal::reflectedCustomBooleanAttrAttributeGetter(name, info); 765 TestObjV8Internal::reflectedCustomBooleanAttrAttributeGetter(name, info);
766 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 766 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
767 } 767 }
768 768
769 static void reflectedCustomBooleanAttrAttributeSetter(v8::Local<v8::String> name , v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 769 static void reflectedCustomBooleanAttrAttributeSetter(v8::Local<v8::String> name , v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
770 { 770 {
771 TestObj* imp = V8TestObject::toNative(info.Holder()); 771 TestObj* imp = V8TestObject::toNative(info.Holder());
772 V8TRYCATCH_VOID(bool, v, value->BooleanValue()); 772 V8TRYCATCH_VOID(bool, v, value->BooleanValue());
773 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 773 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
774 imp->setBooleanAttribute(WebCore::HTMLNames::customContentBooleanAttrAttr, v ); 774 imp->setBooleanAttribute(HTMLNames::customContentBooleanAttrAttr, v);
775 } 775 }
776 776
777 static void reflectedCustomBooleanAttrAttributeSetterCallback(v8::Local<v8::Stri ng> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info ) 777 static void reflectedCustomBooleanAttrAttributeSetterCallback(v8::Local<v8::Stri ng> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info )
778 { 778 {
779 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 779 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
780 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 780 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
781 TestObjV8Internal::reflectedCustomBooleanAttrAttributeSetter(name, value, in fo); 781 TestObjV8Internal::reflectedCustomBooleanAttrAttributeSetter(name, value, in fo);
782 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 782 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
783 } 783 }
784 784
785 static void reflectedCustomURLAttrAttributeGetter(v8::Local<v8::String> name, co nst v8::PropertyCallbackInfo<v8::Value>& info) 785 static void reflectedCustomURLAttrAttributeGetter(v8::Local<v8::String> name, co nst v8::PropertyCallbackInfo<v8::Value>& info)
786 { 786 {
787 TestObj* imp = V8TestObject::toNative(info.Holder()); 787 TestObj* imp = V8TestObject::toNative(info.Holder());
788 v8SetReturnValueString(info, imp->getURLAttribute(WebCore::HTMLNames::custom ContentURLAttrAttr), info.GetIsolate()); 788 v8SetReturnValueString(info, imp->getURLAttribute(HTMLNames::customContentUR LAttrAttr), info.GetIsolate());
789 } 789 }
790 790
791 static void reflectedCustomURLAttrAttributeGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) 791 static void reflectedCustomURLAttrAttributeGetterCallback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info)
792 { 792 {
793 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 793 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
794 TestObjV8Internal::reflectedCustomURLAttrAttributeGetter(name, info); 794 TestObjV8Internal::reflectedCustomURLAttrAttributeGetter(name, info);
795 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 795 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
796 } 796 }
797 797
798 static void reflectedCustomURLAttrAttributeSetter(v8::Local<v8::String> name, v8 ::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 798 static void reflectedCustomURLAttrAttributeSetter(v8::Local<v8::String> name, v8 ::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
799 { 799 {
800 TestObj* imp = V8TestObject::toNative(info.Holder()); 800 TestObj* imp = V8TestObject::toNative(info.Holder());
801 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, v, val ue); 801 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, v, val ue);
802 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 802 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
803 imp->setAttribute(WebCore::HTMLNames::customContentURLAttrAttr, v); 803 imp->setAttribute(HTMLNames::customContentURLAttrAttr, v);
804 } 804 }
805 805
806 static void reflectedCustomURLAttrAttributeSetterCallback(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 806 static void reflectedCustomURLAttrAttributeSetterCallback(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
807 { 807 {
808 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 808 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
809 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 809 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
810 TestObjV8Internal::reflectedCustomURLAttrAttributeSetter(name, value, info); 810 TestObjV8Internal::reflectedCustomURLAttrAttributeSetter(name, value, info);
811 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 811 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
812 } 812 }
813 813
(...skipping 4733 matching lines...) Expand 10 before | Expand all | Expand 10 after
5547 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent); 5547 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent);
5548 return wrapper; 5548 return wrapper;
5549 } 5549 }
5550 5550
5551 void V8TestObject::derefObject(void* object) 5551 void V8TestObject::derefObject(void* object)
5552 { 5552 {
5553 fromInternalPointer(object)->deref(); 5553 fromInternalPointer(object)->deref();
5554 } 5554 }
5555 5555
5556 } // namespace WebCore 5556 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/TestObjectPython.idl ('k') | Source/bindings/tests/results/V8TestObjectPython.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698