OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
6 | 6 |
7 #ifndef UnionTypeCore_h | 7 #ifndef UnionTypeCore_h |
8 #define UnionTypeCore_h | 8 #define UnionTypeCore_h |
9 | 9 |
10 #include "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 CORE_EXPORT static TestEnumOrDouble nativeValue(v8::Isolate*, v8::Local<v8::
Value>, ExceptionState&); | 524 CORE_EXPORT static TestEnumOrDouble nativeValue(v8::Isolate*, v8::Local<v8::
Value>, ExceptionState&); |
525 }; | 525 }; |
526 | 526 |
527 class CORE_EXPORT TestInterface2OrUint8Array final { | 527 class CORE_EXPORT TestInterface2OrUint8Array final { |
528 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 528 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
529 public: | 529 public: |
530 TestInterface2OrUint8Array(); | 530 TestInterface2OrUint8Array(); |
531 bool isNull() const { return m_type == SpecificTypeNone; } | 531 bool isNull() const { return m_type == SpecificTypeNone; } |
532 | 532 |
533 bool isTestInterface2() const { return m_type == SpecificTypeTestInterface2;
} | 533 bool isTestInterface2() const { return m_type == SpecificTypeTestInterface2;
} |
534 PassRefPtr<TestInterface2> getAsTestInterface2() const; | 534 TestInterface2* getAsTestInterface2() const; |
535 void setTestInterface2(PassRefPtr<TestInterface2>); | 535 void setTestInterface2(TestInterface2*); |
536 static TestInterface2OrUint8Array fromTestInterface2(PassRefPtr<TestInterfac
e2>); | 536 static TestInterface2OrUint8Array fromTestInterface2(TestInterface2*); |
537 | 537 |
538 bool isUint8Array() const { return m_type == SpecificTypeUint8Array; } | 538 bool isUint8Array() const { return m_type == SpecificTypeUint8Array; } |
539 DOMUint8Array* getAsUint8Array() const; | 539 DOMUint8Array* getAsUint8Array() const; |
540 void setUint8Array(DOMUint8Array*); | 540 void setUint8Array(DOMUint8Array*); |
541 static TestInterface2OrUint8Array fromUint8Array(DOMUint8Array*); | 541 static TestInterface2OrUint8Array fromUint8Array(DOMUint8Array*); |
542 | 542 |
543 TestInterface2OrUint8Array(const TestInterface2OrUint8Array&); | 543 TestInterface2OrUint8Array(const TestInterface2OrUint8Array&); |
544 ~TestInterface2OrUint8Array(); | 544 ~TestInterface2OrUint8Array(); |
545 TestInterface2OrUint8Array& operator=(const TestInterface2OrUint8Array&); | 545 TestInterface2OrUint8Array& operator=(const TestInterface2OrUint8Array&); |
546 DECLARE_TRACE(); | 546 DECLARE_TRACE(); |
547 | 547 |
548 private: | 548 private: |
549 enum SpecificTypes { | 549 enum SpecificTypes { |
550 SpecificTypeNone, | 550 SpecificTypeNone, |
551 SpecificTypeTestInterface2, | 551 SpecificTypeTestInterface2, |
552 SpecificTypeUint8Array, | 552 SpecificTypeUint8Array, |
553 }; | 553 }; |
554 SpecificTypes m_type; | 554 SpecificTypes m_type; |
555 | 555 |
556 RefPtr<TestInterface2> m_testInterface2; | 556 Member<TestInterface2> m_testInterface2; |
557 Member<DOMUint8Array> m_uint8Array; | 557 Member<DOMUint8Array> m_uint8Array; |
558 | 558 |
559 friend CORE_EXPORT v8::Local<v8::Value> toV8(const TestInterface2OrUint8Arra
y&, v8::Local<v8::Object>, v8::Isolate*); | 559 friend CORE_EXPORT v8::Local<v8::Value> toV8(const TestInterface2OrUint8Arra
y&, v8::Local<v8::Object>, v8::Isolate*); |
560 }; | 560 }; |
561 | 561 |
562 class V8TestInterface2OrUint8Array final { | 562 class V8TestInterface2OrUint8Array final { |
563 public: | 563 public: |
564 CORE_EXPORT static void toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInter
face2OrUint8Array&, UnionTypeConversionMode, ExceptionState&); | 564 CORE_EXPORT static void toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInter
face2OrUint8Array&, UnionTypeConversionMode, ExceptionState&); |
565 }; | 565 }; |
566 | 566 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 CORE_EXPORT static TestInterfaceGarbageCollectedOrString nativeValue(v8::Iso
late*, v8::Local<v8::Value>, ExceptionState&); | 630 CORE_EXPORT static TestInterfaceGarbageCollectedOrString nativeValue(v8::Iso
late*, v8::Local<v8::Value>, ExceptionState&); |
631 }; | 631 }; |
632 | 632 |
633 class CORE_EXPORT TestInterfaceOrLong final { | 633 class CORE_EXPORT TestInterfaceOrLong final { |
634 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 634 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
635 public: | 635 public: |
636 TestInterfaceOrLong(); | 636 TestInterfaceOrLong(); |
637 bool isNull() const { return m_type == SpecificTypeNone; } | 637 bool isNull() const { return m_type == SpecificTypeNone; } |
638 | 638 |
639 bool isTestInterface() const { return m_type == SpecificTypeTestInterface; } | 639 bool isTestInterface() const { return m_type == SpecificTypeTestInterface; } |
640 PassRefPtr<TestInterfaceImplementation> getAsTestInterface() const; | 640 TestInterfaceImplementation* getAsTestInterface() const; |
641 void setTestInterface(PassRefPtr<TestInterfaceImplementation>); | 641 void setTestInterface(TestInterfaceImplementation*); |
642 static TestInterfaceOrLong fromTestInterface(PassRefPtr<TestInterfaceImpleme
ntation>); | 642 static TestInterfaceOrLong fromTestInterface(TestInterfaceImplementation*); |
643 | 643 |
644 bool isLong() const { return m_type == SpecificTypeLong; } | 644 bool isLong() const { return m_type == SpecificTypeLong; } |
645 int getAsLong() const; | 645 int getAsLong() const; |
646 void setLong(int); | 646 void setLong(int); |
647 static TestInterfaceOrLong fromLong(int); | 647 static TestInterfaceOrLong fromLong(int); |
648 | 648 |
649 TestInterfaceOrLong(const TestInterfaceOrLong&); | 649 TestInterfaceOrLong(const TestInterfaceOrLong&); |
650 ~TestInterfaceOrLong(); | 650 ~TestInterfaceOrLong(); |
651 TestInterfaceOrLong& operator=(const TestInterfaceOrLong&); | 651 TestInterfaceOrLong& operator=(const TestInterfaceOrLong&); |
652 DECLARE_TRACE(); | 652 DECLARE_TRACE(); |
653 | 653 |
654 private: | 654 private: |
655 enum SpecificTypes { | 655 enum SpecificTypes { |
656 SpecificTypeNone, | 656 SpecificTypeNone, |
657 SpecificTypeTestInterface, | 657 SpecificTypeTestInterface, |
658 SpecificTypeLong, | 658 SpecificTypeLong, |
659 }; | 659 }; |
660 SpecificTypes m_type; | 660 SpecificTypes m_type; |
661 | 661 |
662 RefPtr<TestInterfaceImplementation> m_testInterface; | 662 Member<TestInterfaceImplementation> m_testInterface; |
663 int m_long; | 663 int m_long; |
664 | 664 |
665 friend CORE_EXPORT v8::Local<v8::Value> toV8(const TestInterfaceOrLong&, v8:
:Local<v8::Object>, v8::Isolate*); | 665 friend CORE_EXPORT v8::Local<v8::Value> toV8(const TestInterfaceOrLong&, v8:
:Local<v8::Object>, v8::Isolate*); |
666 }; | 666 }; |
667 | 667 |
668 class V8TestInterfaceOrLong final { | 668 class V8TestInterfaceOrLong final { |
669 public: | 669 public: |
670 CORE_EXPORT static void toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInter
faceOrLong&, UnionTypeConversionMode, ExceptionState&); | 670 CORE_EXPORT static void toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInter
faceOrLong&, UnionTypeConversionMode, ExceptionState&); |
671 }; | 671 }; |
672 | 672 |
(...skipping 10 matching lines...) Expand all Loading... |
683 CORE_EXPORT static TestInterfaceOrLong nativeValue(v8::Isolate*, v8::Local<v
8::Value>, ExceptionState&); | 683 CORE_EXPORT static TestInterfaceOrLong nativeValue(v8::Isolate*, v8::Local<v
8::Value>, ExceptionState&); |
684 }; | 684 }; |
685 | 685 |
686 class CORE_EXPORT TestInterfaceOrTestInterfaceEmpty final { | 686 class CORE_EXPORT TestInterfaceOrTestInterfaceEmpty final { |
687 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); | 687 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
688 public: | 688 public: |
689 TestInterfaceOrTestInterfaceEmpty(); | 689 TestInterfaceOrTestInterfaceEmpty(); |
690 bool isNull() const { return m_type == SpecificTypeNone; } | 690 bool isNull() const { return m_type == SpecificTypeNone; } |
691 | 691 |
692 bool isTestInterface() const { return m_type == SpecificTypeTestInterface; } | 692 bool isTestInterface() const { return m_type == SpecificTypeTestInterface; } |
693 PassRefPtr<TestInterfaceImplementation> getAsTestInterface() const; | 693 TestInterfaceImplementation* getAsTestInterface() const; |
694 void setTestInterface(PassRefPtr<TestInterfaceImplementation>); | 694 void setTestInterface(TestInterfaceImplementation*); |
695 static TestInterfaceOrTestInterfaceEmpty fromTestInterface(PassRefPtr<TestIn
terfaceImplementation>); | 695 static TestInterfaceOrTestInterfaceEmpty fromTestInterface(TestInterfaceImpl
ementation*); |
696 | 696 |
697 bool isTestInterfaceEmpty() const { return m_type == SpecificTypeTestInterfa
ceEmpty; } | 697 bool isTestInterfaceEmpty() const { return m_type == SpecificTypeTestInterfa
ceEmpty; } |
698 PassRefPtr<TestInterfaceEmpty> getAsTestInterfaceEmpty() const; | 698 TestInterfaceEmpty* getAsTestInterfaceEmpty() const; |
699 void setTestInterfaceEmpty(PassRefPtr<TestInterfaceEmpty>); | 699 void setTestInterfaceEmpty(TestInterfaceEmpty*); |
700 static TestInterfaceOrTestInterfaceEmpty fromTestInterfaceEmpty(PassRefPtr<T
estInterfaceEmpty>); | 700 static TestInterfaceOrTestInterfaceEmpty fromTestInterfaceEmpty(TestInterfac
eEmpty*); |
701 | 701 |
702 TestInterfaceOrTestInterfaceEmpty(const TestInterfaceOrTestInterfaceEmpty&); | 702 TestInterfaceOrTestInterfaceEmpty(const TestInterfaceOrTestInterfaceEmpty&); |
703 ~TestInterfaceOrTestInterfaceEmpty(); | 703 ~TestInterfaceOrTestInterfaceEmpty(); |
704 TestInterfaceOrTestInterfaceEmpty& operator=(const TestInterfaceOrTestInterf
aceEmpty&); | 704 TestInterfaceOrTestInterfaceEmpty& operator=(const TestInterfaceOrTestInterf
aceEmpty&); |
705 DECLARE_TRACE(); | 705 DECLARE_TRACE(); |
706 | 706 |
707 private: | 707 private: |
708 enum SpecificTypes { | 708 enum SpecificTypes { |
709 SpecificTypeNone, | 709 SpecificTypeNone, |
710 SpecificTypeTestInterface, | 710 SpecificTypeTestInterface, |
711 SpecificTypeTestInterfaceEmpty, | 711 SpecificTypeTestInterfaceEmpty, |
712 }; | 712 }; |
713 SpecificTypes m_type; | 713 SpecificTypes m_type; |
714 | 714 |
715 RefPtr<TestInterfaceImplementation> m_testInterface; | 715 Member<TestInterfaceImplementation> m_testInterface; |
716 RefPtr<TestInterfaceEmpty> m_testInterfaceEmpty; | 716 Member<TestInterfaceEmpty> m_testInterfaceEmpty; |
717 | 717 |
718 friend CORE_EXPORT v8::Local<v8::Value> toV8(const TestInterfaceOrTestInterf
aceEmpty&, v8::Local<v8::Object>, v8::Isolate*); | 718 friend CORE_EXPORT v8::Local<v8::Value> toV8(const TestInterfaceOrTestInterf
aceEmpty&, v8::Local<v8::Object>, v8::Isolate*); |
719 }; | 719 }; |
720 | 720 |
721 class V8TestInterfaceOrTestInterfaceEmpty final { | 721 class V8TestInterfaceOrTestInterfaceEmpty final { |
722 public: | 722 public: |
723 CORE_EXPORT static void toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInter
faceOrTestInterfaceEmpty&, UnionTypeConversionMode, ExceptionState&); | 723 CORE_EXPORT static void toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInter
faceOrTestInterfaceEmpty&, UnionTypeConversionMode, ExceptionState&); |
724 }; | 724 }; |
725 | 725 |
726 CORE_EXPORT v8::Local<v8::Value> toV8(const TestInterfaceOrTestInterfaceEmpty&,
v8::Local<v8::Object>, v8::Isolate*); | 726 CORE_EXPORT v8::Local<v8::Value> toV8(const TestInterfaceOrTestInterfaceEmpty&,
v8::Local<v8::Object>, v8::Isolate*); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::StringOrDouble); | 804 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::StringOrDouble); |
805 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::StringOrStringSequence); | 805 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::StringOrStringSequence); |
806 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TestEnumOrDouble); | 806 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TestEnumOrDouble); |
807 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TestInterface2OrUint8Array); | 807 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TestInterface2OrUint8Array); |
808 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TestInterfaceGarbageCollectedO
rString); | 808 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TestInterfaceGarbageCollectedO
rString); |
809 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TestInterfaceOrLong); | 809 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TestInterfaceOrLong); |
810 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TestInterfaceOrTestInterfaceEm
pty); | 810 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TestInterfaceOrTestInterfaceEm
pty); |
811 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::UnrestrictedDoubleOrString); | 811 WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::UnrestrictedDoubleOrString); |
812 | 812 |
813 #endif // UnionTypeCore_h | 813 #endif // UnionTypeCore_h |
OLD | NEW |