| OLD | NEW |
| 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, |
| 11 but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 Library General Public License for more details. | 13 Library General Public License for more details. |
| 14 | 14 |
| 15 You should have received a copy of the GNU Library General Public License | 15 You should have received a copy of the GNU Library General Public License |
| 16 along with this library; see the file COPYING.LIB. If not, write to | 16 along with this library; see the file COPYING.LIB. If not, write to |
| 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 18 Boston, MA 02111-1307, USA. | 18 Boston, MA 02111-1307, USA. |
| 19 */ | 19 */ |
| 20 | 20 |
| 21 #include "config.h" | 21 #include "config.h" |
| 22 #include "V8TestObjectPython.h" | 22 #include "V8TestObjectPython.h" |
| 23 | 23 |
| 24 #include "HTMLNames.h" | 24 #include "HTMLNames.h" |
| 25 #include "RuntimeEnabledFeatures.h" | 25 #include "RuntimeEnabledFeatures.h" |
| 26 #include "V8Attr.h" | 26 #include "V8Attr.h" |
| 27 #include "V8CompareHow.h" | 27 #include "V8CompareHow.h" |
| 28 #include "V8DOMStringList.h" | |
| 29 #include "V8Dictionary.h" | 28 #include "V8Dictionary.h" |
| 30 #include "V8Document.h" | 29 #include "V8Document.h" |
| 31 #include "V8DocumentFragment.h" | 30 #include "V8DocumentFragment.h" |
| 32 #include "V8DocumentType.h" | 31 #include "V8DocumentType.h" |
| 33 #include "V8Element.h" | 32 #include "V8Element.h" |
| 34 #include "V8Entity.h" | 33 #include "V8Entity.h" |
| 35 #include "V8HTMLCollection.h" | 34 #include "V8HTMLCollection.h" |
| 36 #include "V8HTMLElement.h" | 35 #include "V8HTMLElement.h" |
| 37 #include "V8MediaQueryListListener.h" | 36 #include "V8MediaQueryListListener.h" |
| 38 #include "V8Node.h" | 37 #include "V8Node.h" |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 imp->setAnyAttribute(cppValue); | 692 imp->setAnyAttribute(cppValue); |
| 694 } | 693 } |
| 695 | 694 |
| 696 static void anyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 695 static void anyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 697 { | 696 { |
| 698 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 697 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 699 TestObjectPythonV8Internal::anyAttributeAttributeSetter(jsValue, info); | 698 TestObjectPythonV8Internal::anyAttributeAttributeSetter(jsValue, info); |
| 700 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 699 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 701 } | 700 } |
| 702 | 701 |
| 703 static void domStringListAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | |
| 704 { | |
| 705 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | |
| 706 v8SetReturnValueFast(info, imp->domStringListAttribute(), imp); | |
| 707 } | |
| 708 | |
| 709 static void domStringListAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | |
| 710 { | |
| 711 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | |
| 712 TestObjectPythonV8Internal::domStringListAttributeAttributeGetter(info); | |
| 713 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | |
| 714 } | |
| 715 | |
| 716 static void domStringListAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) | |
| 717 { | |
| 718 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | |
| 719 V8TRYCATCH_VOID(RefPtr<DOMStringList>, cppValue, toDOMStringList(jsValue, in
fo.GetIsolate())); | |
| 720 imp->setDomStringListAttribute(WTF::getPtr(cppValue)); | |
| 721 } | |
| 722 | |
| 723 static void domStringListAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | |
| 724 { | |
| 725 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | |
| 726 TestObjectPythonV8Internal::domStringListAttributeAttributeSetter(jsValue, i
nfo); | |
| 727 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | |
| 728 } | |
| 729 | |
| 730 static void promiseAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) | 702 static void promiseAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) |
| 731 { | 703 { |
| 732 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 704 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 733 v8SetReturnValue(info, imp->promiseAttribute().v8Value()); | 705 v8SetReturnValue(info, imp->promiseAttribute().v8Value()); |
| 734 } | 706 } |
| 735 | 707 |
| 736 static void promiseAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 708 static void promiseAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 737 { | 709 { |
| 738 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 710 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 739 TestObjectPythonV8Internal::promiseAttributeAttributeGetter(info); | 711 TestObjectPythonV8Internal::promiseAttributeAttributeGetter(info); |
| (...skipping 2987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3727 v8SetReturnValue(info, imp->compareHowMethod()); | 3699 v8SetReturnValue(info, imp->compareHowMethod()); |
| 3728 } | 3700 } |
| 3729 | 3701 |
| 3730 static void compareHowMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 3702 static void compareHowMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 3731 { | 3703 { |
| 3732 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3704 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3733 TestObjectPythonV8Internal::compareHowMethodMethod(info); | 3705 TestObjectPythonV8Internal::compareHowMethodMethod(info); |
| 3734 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3706 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3735 } | 3707 } |
| 3736 | 3708 |
| 3737 static void domStringListMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | |
| 3738 { | |
| 3739 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | |
| 3740 v8SetReturnValue(info, imp->domStringListMethod()); | |
| 3741 } | |
| 3742 | |
| 3743 static void domStringListMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | |
| 3744 { | |
| 3745 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | |
| 3746 TestObjectPythonV8Internal::domStringListMethodMethod(info); | |
| 3747 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | |
| 3748 } | |
| 3749 | |
| 3750 static void mediaQueryListListenerMethodMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) | 3709 static void mediaQueryListListenerMethodMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 3751 { | 3710 { |
| 3752 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3711 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3753 v8SetReturnValue(info, imp->mediaQueryListListenerMethod()); | 3712 v8SetReturnValue(info, imp->mediaQueryListListenerMethod()); |
| 3754 } | 3713 } |
| 3755 | 3714 |
| 3756 static void mediaQueryListListenerMethodMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 3715 static void mediaQueryListListenerMethodMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 3757 { | 3716 { |
| 3758 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3717 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3759 TestObjectPythonV8Internal::mediaQueryListListenerMethodMethod(info); | 3718 TestObjectPythonV8Internal::mediaQueryListListenerMethodMethod(info); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3802 imp->voidMethodCompareHowArg(compareHowArg); | 3761 imp->voidMethodCompareHowArg(compareHowArg); |
| 3803 } | 3762 } |
| 3804 | 3763 |
| 3805 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 3764 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 3806 { | 3765 { |
| 3807 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 3766 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 3808 TestObjectPythonV8Internal::voidMethodCompareHowArgMethod(info); | 3767 TestObjectPythonV8Internal::voidMethodCompareHowArgMethod(info); |
| 3809 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 3768 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 3810 } | 3769 } |
| 3811 | 3770 |
| 3812 static void voidMethodDOMStringListArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | |
| 3813 { | |
| 3814 if (UNLIKELY(info.Length() < 1)) { | |
| 3815 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDOMStringLi
stArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length
())), info.GetIsolate()); | |
| 3816 return; | |
| 3817 } | |
| 3818 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | |
| 3819 V8TRYCATCH_VOID(RefPtr<DOMStringList>, domStringListArg, toDOMStringList(inf
o[0], info.GetIsolate())); | |
| 3820 imp->voidMethodDOMStringListArg(domStringListArg); | |
| 3821 } | |
| 3822 | |
| 3823 static void voidMethodDOMStringListArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | |
| 3824 { | |
| 3825 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | |
| 3826 TestObjectPythonV8Internal::voidMethodDOMStringListArgMethod(info); | |
| 3827 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | |
| 3828 } | |
| 3829 | |
| 3830 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 3771 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 3831 { | 3772 { |
| 3832 if (UNLIKELY(info.Length() < 1)) { | 3773 if (UNLIKELY(info.Length() < 1)) { |
| 3833 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAnyArg", "T
estObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info
.GetIsolate()); | 3774 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAnyArg", "T
estObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info
.GetIsolate()); |
| 3834 return; | 3775 return; |
| 3835 } | 3776 } |
| 3836 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3777 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 3837 V8TRYCATCH_VOID(ScriptValue, anyArg, ScriptValue(info[0], info.GetIsolate())
); | 3778 V8TRYCATCH_VOID(ScriptValue, anyArg, ScriptValue(info[0], info.GetIsolate())
); |
| 3838 imp->voidMethodAnyArg(anyArg); | 3779 imp->voidMethodAnyArg(anyArg); |
| 3839 } | 3780 } |
| (...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4954 {"unsignedLongAttribute", TestObjectPythonV8Internal::unsignedLongAttributeA
ttributeGetterCallback, TestObjectPythonV8Internal::unsignedLongAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4895 {"unsignedLongAttribute", TestObjectPythonV8Internal::unsignedLongAttributeA
ttributeGetterCallback, TestObjectPythonV8Internal::unsignedLongAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 4955 {"unsignedLongLongAttribute", TestObjectPythonV8Internal::unsignedLongLongAt
tributeAttributeGetterCallback, TestObjectPythonV8Internal::unsignedLongLongAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4896 {"unsignedLongLongAttribute", TestObjectPythonV8Internal::unsignedLongLongAt
tributeAttributeGetterCallback, TestObjectPythonV8Internal::unsignedLongLongAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 4956 {"unsignedShortAttribute", TestObjectPythonV8Internal::unsignedShortAttribut
eAttributeGetterCallback, TestObjectPythonV8Internal::unsignedShortAttributeAttr
ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4897 {"unsignedShortAttribute", TestObjectPythonV8Internal::unsignedShortAttribut
eAttributeGetterCallback, TestObjectPythonV8Internal::unsignedShortAttributeAttr
ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 4957 {"cssAttribute", TestObjectPythonV8Internal::cssAttributeAttributeGetterCall
back, TestObjectPythonV8Internal::cssAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, | 4898 {"cssAttribute", TestObjectPythonV8Internal::cssAttributeAttributeGetterCall
back, TestObjectPythonV8Internal::cssAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, |
| 4958 {"imeAttribute", TestObjectPythonV8Internal::imeAttributeAttributeGetterCall
back, TestObjectPythonV8Internal::imeAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, | 4899 {"imeAttribute", TestObjectPythonV8Internal::imeAttributeAttributeGetterCall
back, TestObjectPythonV8Internal::imeAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, |
| 4959 {"svgAttribute", TestObjectPythonV8Internal::svgAttributeAttributeGetterCall
back, TestObjectPythonV8Internal::svgAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, | 4900 {"svgAttribute", TestObjectPythonV8Internal::svgAttributeAttributeGetterCall
back, TestObjectPythonV8Internal::svgAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, |
| 4960 {"xmlAttribute", TestObjectPythonV8Internal::xmlAttributeAttributeGetterCall
back, TestObjectPythonV8Internal::xmlAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, | 4901 {"xmlAttribute", TestObjectPythonV8Internal::xmlAttributeAttributeGetterCall
back, TestObjectPythonV8Internal::xmlAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, |
| 4961 {"nodeFilterAttribute", TestObjectPythonV8Internal::nodeFilterAttributeAttri
buteGetterCallback, TestObjectPythonV8Internal::nodeFilterAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4902 {"nodeFilterAttribute", TestObjectPythonV8Internal::nodeFilterAttributeAttri
buteGetterCallback, TestObjectPythonV8Internal::nodeFilterAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 4962 {"serializedScriptValueAttribute", TestObjectPythonV8Internal::serializedScr
iptValueAttributeAttributeGetterCallback, TestObjectPythonV8Internal::serialized
ScriptValueAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc
e */}, | 4903 {"serializedScriptValueAttribute", TestObjectPythonV8Internal::serializedScr
iptValueAttributeAttributeGetterCallback, TestObjectPythonV8Internal::serialized
ScriptValueAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instanc
e */}, |
| 4963 {"anyAttribute", TestObjectPythonV8Internal::anyAttributeAttributeGetterCall
back, TestObjectPythonV8Internal::anyAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, | 4904 {"anyAttribute", TestObjectPythonV8Internal::anyAttributeAttributeGetterCall
back, TestObjectPythonV8Internal::anyAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, |
| 4964 {"domStringListAttribute", TestObjectPythonV8Internal::domStringListAttribut
eAttributeGetterCallback, TestObjectPythonV8Internal::domStringListAttributeAttr
ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | |
| 4965 {"promiseAttribute", TestObjectPythonV8Internal::promiseAttributeAttributeGe
tterCallback, TestObjectPythonV8Internal::promiseAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, | 4905 {"promiseAttribute", TestObjectPythonV8Internal::promiseAttributeAttributeGe
tterCallback, TestObjectPythonV8Internal::promiseAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, |
| 4966 {"documentAttribute", TestObjectPythonV8Internal::documentAttributeAttribute
GetterCallback, TestObjectPythonV8Internal::documentAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, | 4906 {"documentAttribute", TestObjectPythonV8Internal::documentAttributeAttribute
GetterCallback, TestObjectPythonV8Internal::documentAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, |
| 4967 {"documentFragmentAttribute", TestObjectPythonV8Internal::documentFragmentAt
tributeAttributeGetterCallback, TestObjectPythonV8Internal::documentFragmentAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4907 {"documentFragmentAttribute", TestObjectPythonV8Internal::documentFragmentAt
tributeAttributeGetterCallback, TestObjectPythonV8Internal::documentFragmentAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 4968 {"documentTypeAttribute", TestObjectPythonV8Internal::documentTypeAttributeA
ttributeGetterCallback, TestObjectPythonV8Internal::documentTypeAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4908 {"documentTypeAttribute", TestObjectPythonV8Internal::documentTypeAttributeA
ttributeGetterCallback, TestObjectPythonV8Internal::documentTypeAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 4969 {"elementAttribute", TestObjectPythonV8Internal::elementAttributeAttributeGe
tterCallback, TestObjectPythonV8Internal::elementAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, | 4909 {"elementAttribute", TestObjectPythonV8Internal::elementAttributeAttributeGe
tterCallback, TestObjectPythonV8Internal::elementAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, |
| 4970 {"entityAttribute", TestObjectPythonV8Internal::entityAttributeAttributeGett
erCallback, TestObjectPythonV8Internal::entityAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, | 4910 {"entityAttribute", TestObjectPythonV8Internal::entityAttributeAttributeGett
erCallback, TestObjectPythonV8Internal::entityAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, |
| 4971 {"nodeAttribute", TestObjectPythonV8Internal::nodeAttributeAttributeGetterCa
llback, TestObjectPythonV8Internal::nodeAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, | 4911 {"nodeAttribute", TestObjectPythonV8Internal::nodeAttributeAttributeGetterCa
llback, TestObjectPythonV8Internal::nodeAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, |
| 4972 {"shadowRootAttribute", TestObjectPythonV8Internal::shadowRootAttributeAttri
buteGetterCallback, TestObjectPythonV8Internal::shadowRootAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4912 {"shadowRootAttribute", TestObjectPythonV8Internal::shadowRootAttributeAttri
buteGetterCallback, TestObjectPythonV8Internal::shadowRootAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 4973 {"arrayBufferAttribute", TestObjectPythonV8Internal::arrayBufferAttributeAtt
ributeGetterCallback, TestObjectPythonV8Internal::arrayBufferAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4913 {"arrayBufferAttribute", TestObjectPythonV8Internal::arrayBufferAttributeAtt
ributeGetterCallback, TestObjectPythonV8Internal::arrayBufferAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 4974 {"float32ArrayAttribute", TestObjectPythonV8Internal::float32ArrayAttributeA
ttributeGetterCallback, TestObjectPythonV8Internal::float32ArrayAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4914 {"float32ArrayAttribute", TestObjectPythonV8Internal::float32ArrayAttributeA
ttributeGetterCallback, TestObjectPythonV8Internal::float32ArrayAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5078 {"voidMethodFloatArg", TestObjectPythonV8Internal::voidMethodFloatArgMethodC
allback, 0, 1}, | 5018 {"voidMethodFloatArg", TestObjectPythonV8Internal::voidMethodFloatArgMethodC
allback, 0, 1}, |
| 5079 {"voidMethodLongArg", TestObjectPythonV8Internal::voidMethodLongArgMethodCal
lback, 0, 1}, | 5019 {"voidMethodLongArg", TestObjectPythonV8Internal::voidMethodLongArgMethodCal
lback, 0, 1}, |
| 5080 {"voidMethodLongLongArg", TestObjectPythonV8Internal::voidMethodLongLongArgM
ethodCallback, 0, 1}, | 5020 {"voidMethodLongLongArg", TestObjectPythonV8Internal::voidMethodLongLongArgM
ethodCallback, 0, 1}, |
| 5081 {"voidMethodOctetArg", TestObjectPythonV8Internal::voidMethodOctetArgMethodC
allback, 0, 1}, | 5021 {"voidMethodOctetArg", TestObjectPythonV8Internal::voidMethodOctetArgMethodC
allback, 0, 1}, |
| 5082 {"voidMethodShortArg", TestObjectPythonV8Internal::voidMethodShortArgMethodC
allback, 0, 1}, | 5022 {"voidMethodShortArg", TestObjectPythonV8Internal::voidMethodShortArgMethodC
allback, 0, 1}, |
| 5083 {"voidMethodUnsignedLongArg", TestObjectPythonV8Internal::voidMethodUnsigned
LongArgMethodCallback, 0, 1}, | 5023 {"voidMethodUnsignedLongArg", TestObjectPythonV8Internal::voidMethodUnsigned
LongArgMethodCallback, 0, 1}, |
| 5084 {"voidMethodUnsignedLongLongArg", TestObjectPythonV8Internal::voidMethodUnsi
gnedLongLongArgMethodCallback, 0, 1}, | 5024 {"voidMethodUnsignedLongLongArg", TestObjectPythonV8Internal::voidMethodUnsi
gnedLongLongArgMethodCallback, 0, 1}, |
| 5085 {"voidMethodUnsignedShortArg", TestObjectPythonV8Internal::voidMethodUnsigne
dShortArgMethodCallback, 0, 1}, | 5025 {"voidMethodUnsignedShortArg", TestObjectPythonV8Internal::voidMethodUnsigne
dShortArgMethodCallback, 0, 1}, |
| 5086 {"testInterfaceEmptyMethod", TestObjectPythonV8Internal::testInterfaceEmptyM
ethodMethodCallback, 0, 0}, | 5026 {"testInterfaceEmptyMethod", TestObjectPythonV8Internal::testInterfaceEmptyM
ethodMethodCallback, 0, 0}, |
| 5087 {"compareHowMethod", TestObjectPythonV8Internal::compareHowMethodMethodCallb
ack, 0, 0}, | 5027 {"compareHowMethod", TestObjectPythonV8Internal::compareHowMethodMethodCallb
ack, 0, 0}, |
| 5088 {"domStringListMethod", TestObjectPythonV8Internal::domStringListMethodMetho
dCallback, 0, 0}, | |
| 5089 {"mediaQueryListListenerMethod", TestObjectPythonV8Internal::mediaQueryListL
istenerMethodMethodCallback, 0, 0}, | 5028 {"mediaQueryListListenerMethod", TestObjectPythonV8Internal::mediaQueryListL
istenerMethodMethodCallback, 0, 0}, |
| 5090 {"anyMethod", TestObjectPythonV8Internal::anyMethodMethodCallback, 0, 0}, | 5029 {"anyMethod", TestObjectPythonV8Internal::anyMethodMethodCallback, 0, 0}, |
| 5091 {"voidMethodMediaQueryListListenerArg", TestObjectPythonV8Internal::voidMeth
odMediaQueryListListenerArgMethodCallback, 0, 1}, | 5030 {"voidMethodMediaQueryListListenerArg", TestObjectPythonV8Internal::voidMeth
odMediaQueryListListenerArgMethodCallback, 0, 1}, |
| 5092 {"voidMethodCompareHowArg", TestObjectPythonV8Internal::voidMethodCompareHow
ArgMethodCallback, 0, 1}, | 5031 {"voidMethodCompareHowArg", TestObjectPythonV8Internal::voidMethodCompareHow
ArgMethodCallback, 0, 1}, |
| 5093 {"voidMethodAnyArg", TestObjectPythonV8Internal::voidMethodAnyArgMethodCallb
ack, 0, 1}, | 5032 {"voidMethodAnyArg", TestObjectPythonV8Internal::voidMethodAnyArgMethodCallb
ack, 0, 1}, |
| 5094 {"arrayBufferMethod", TestObjectPythonV8Internal::arrayBufferMethodMethodCal
lback, 0, 0}, | 5033 {"arrayBufferMethod", TestObjectPythonV8Internal::arrayBufferMethodMethodCal
lback, 0, 0}, |
| 5095 {"arrayBufferViewMethod", TestObjectPythonV8Internal::arrayBufferViewMethodM
ethodCallback, 0, 0}, | 5034 {"arrayBufferViewMethod", TestObjectPythonV8Internal::arrayBufferViewMethodM
ethodCallback, 0, 0}, |
| 5096 {"float32ArrayMethod", TestObjectPythonV8Internal::float32ArrayMethodMethodC
allback, 0, 0}, | 5035 {"float32ArrayMethod", TestObjectPythonV8Internal::float32ArrayMethodMethodC
allback, 0, 0}, |
| 5097 {"int32ArrayMethod", TestObjectPythonV8Internal::int32ArrayMethodMethodCallb
ack, 0, 0}, | 5036 {"int32ArrayMethod", TestObjectPythonV8Internal::int32ArrayMethodMethodCallb
ack, 0, 0}, |
| 5098 {"uint8ArrayMethod", TestObjectPythonV8Internal::uint8ArrayMethodMethodCallb
ack, 0, 0}, | 5037 {"uint8ArrayMethod", TestObjectPythonV8Internal::uint8ArrayMethodMethodCallb
ack, 0, 0}, |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5173 v8::Handle<v8::FunctionTemplate> voidMethodTestInterfaceEmptyArgArgv[voidMet
hodTestInterfaceEmptyArgArgc] = { V8PerIsolateData::from(isolate)->rawTemplate(&
V8TestInterfaceEmpty::wrapperTypeInfo, currentWorldType) }; | 5112 v8::Handle<v8::FunctionTemplate> voidMethodTestInterfaceEmptyArgArgv[voidMet
hodTestInterfaceEmptyArgArgc] = { V8PerIsolateData::from(isolate)->rawTemplate(&
V8TestInterfaceEmpty::wrapperTypeInfo, currentWorldType) }; |
| 5174 v8::Handle<v8::Signature> voidMethodTestInterfaceEmptyArgSignature = v8::Sig
nature::New(desc, voidMethodTestInterfaceEmptyArgArgc, voidMethodTestInterfaceEm
ptyArgArgv); | 5113 v8::Handle<v8::Signature> voidMethodTestInterfaceEmptyArgSignature = v8::Sig
nature::New(desc, voidMethodTestInterfaceEmptyArgArgc, voidMethodTestInterfaceEm
ptyArgArgv); |
| 5175 proto->Set(v8::String::NewSymbol("voidMethodTestInterfaceEmptyArg"), v8::Fun
ctionTemplate::New(TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgMe
thodCallback, v8Undefined(), voidMethodTestInterfaceEmptyArgSignature, 1)); | 5114 proto->Set(v8::String::NewSymbol("voidMethodTestInterfaceEmptyArg"), v8::Fun
ctionTemplate::New(TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgMe
thodCallback, v8Undefined(), voidMethodTestInterfaceEmptyArgSignature, 1)); |
| 5176 | 5115 |
| 5177 // Custom Signature 'voidMethodLongArgTestInterfaceEmptyArg' | 5116 // Custom Signature 'voidMethodLongArgTestInterfaceEmptyArg' |
| 5178 const int voidMethodLongArgTestInterfaceEmptyArgArgc = 2; | 5117 const int voidMethodLongArgTestInterfaceEmptyArgArgc = 2; |
| 5179 v8::Handle<v8::FunctionTemplate> voidMethodLongArgTestInterfaceEmptyArgArgv[
voidMethodLongArgTestInterfaceEmptyArgArgc] = { v8::Handle<v8::FunctionTemplate>
(), V8PerIsolateData::from(isolate)->rawTemplate(&V8TestInterfaceEmpty::wrapperT
ypeInfo, currentWorldType) }; | 5118 v8::Handle<v8::FunctionTemplate> voidMethodLongArgTestInterfaceEmptyArgArgv[
voidMethodLongArgTestInterfaceEmptyArgArgc] = { v8::Handle<v8::FunctionTemplate>
(), V8PerIsolateData::from(isolate)->rawTemplate(&V8TestInterfaceEmpty::wrapperT
ypeInfo, currentWorldType) }; |
| 5180 v8::Handle<v8::Signature> voidMethodLongArgTestInterfaceEmptyArgSignature =
v8::Signature::New(desc, voidMethodLongArgTestInterfaceEmptyArgArgc, voidMethodL
ongArgTestInterfaceEmptyArgArgv); | 5119 v8::Handle<v8::Signature> voidMethodLongArgTestInterfaceEmptyArgSignature =
v8::Signature::New(desc, voidMethodLongArgTestInterfaceEmptyArgArgc, voidMethodL
ongArgTestInterfaceEmptyArgArgv); |
| 5181 proto->Set(v8::String::NewSymbol("voidMethodLongArgTestInterfaceEmptyArg"),
v8::FunctionTemplate::New(TestObjectPythonV8Internal::voidMethodLongArgTestInter
faceEmptyArgMethodCallback, v8Undefined(), voidMethodLongArgTestInterfaceEmptyAr
gSignature, 2)); | 5120 proto->Set(v8::String::NewSymbol("voidMethodLongArgTestInterfaceEmptyArg"),
v8::FunctionTemplate::New(TestObjectPythonV8Internal::voidMethodLongArgTestInter
faceEmptyArgMethodCallback, v8Undefined(), voidMethodLongArgTestInterfaceEmptyAr
gSignature, 2)); |
| 5182 | 5121 |
| 5183 // Custom Signature 'voidMethodDOMStringListArg' | |
| 5184 const int voidMethodDOMStringListArgArgc = 1; | |
| 5185 v8::Handle<v8::FunctionTemplate> voidMethodDOMStringListArgArgv[voidMethodDO
MStringListArgArgc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8DOMStrin
gList::wrapperTypeInfo, currentWorldType) }; | |
| 5186 v8::Handle<v8::Signature> voidMethodDOMStringListArgSignature = v8::Signatur
e::New(desc, voidMethodDOMStringListArgArgc, voidMethodDOMStringListArgArgv); | |
| 5187 proto->Set(v8::String::NewSymbol("voidMethodDOMStringListArg"), v8::Function
Template::New(TestObjectPythonV8Internal::voidMethodDOMStringListArgMethodCallba
ck, v8Undefined(), voidMethodDOMStringListArgSignature, 1)); | |
| 5188 | |
| 5189 // Custom Signature 'voidMethodAttrArg' | 5122 // Custom Signature 'voidMethodAttrArg' |
| 5190 const int voidMethodAttrArgArgc = 1; | 5123 const int voidMethodAttrArgArgc = 1; |
| 5191 v8::Handle<v8::FunctionTemplate> voidMethodAttrArgArgv[voidMethodAttrArgArgc
] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8Attr::wrapperTypeInfo, cur
rentWorldType) }; | 5124 v8::Handle<v8::FunctionTemplate> voidMethodAttrArgArgv[voidMethodAttrArgArgc
] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8Attr::wrapperTypeInfo, cur
rentWorldType) }; |
| 5192 v8::Handle<v8::Signature> voidMethodAttrArgSignature = v8::Signature::New(de
sc, voidMethodAttrArgArgc, voidMethodAttrArgArgv); | 5125 v8::Handle<v8::Signature> voidMethodAttrArgSignature = v8::Signature::New(de
sc, voidMethodAttrArgArgc, voidMethodAttrArgArgv); |
| 5193 proto->Set(v8::String::NewSymbol("voidMethodAttrArg"), v8::FunctionTemplate:
:New(TestObjectPythonV8Internal::voidMethodAttrArgMethodCallback, v8Undefined(),
voidMethodAttrArgSignature, 1)); | 5126 proto->Set(v8::String::NewSymbol("voidMethodAttrArg"), v8::FunctionTemplate:
:New(TestObjectPythonV8Internal::voidMethodAttrArgMethodCallback, v8Undefined(),
voidMethodAttrArgSignature, 1)); |
| 5194 | 5127 |
| 5195 // Custom Signature 'voidMethodDocumentArg' | 5128 // Custom Signature 'voidMethodDocumentArg' |
| 5196 const int voidMethodDocumentArgArgc = 1; | 5129 const int voidMethodDocumentArgArgc = 1; |
| 5197 v8::Handle<v8::FunctionTemplate> voidMethodDocumentArgArgv[voidMethodDocumen
tArgArgc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8Document::wrapperT
ypeInfo, currentWorldType) }; | 5130 v8::Handle<v8::FunctionTemplate> voidMethodDocumentArgArgv[voidMethodDocumen
tArgArgc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8Document::wrapperT
ypeInfo, currentWorldType) }; |
| 5198 v8::Handle<v8::Signature> voidMethodDocumentArgSignature = v8::Signature::Ne
w(desc, voidMethodDocumentArgArgc, voidMethodDocumentArgArgv); | 5131 v8::Handle<v8::Signature> voidMethodDocumentArgSignature = v8::Signature::Ne
w(desc, voidMethodDocumentArgArgc, voidMethodDocumentArgArgv); |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5339 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &wrapperT
ypeInfo, wrapper, isolate, WrapperConfiguration::Independent); | 5272 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &wrapperT
ypeInfo, wrapper, isolate, WrapperConfiguration::Independent); |
| 5340 return wrapper; | 5273 return wrapper; |
| 5341 } | 5274 } |
| 5342 | 5275 |
| 5343 void V8TestObjectPython::derefObject(void* object) | 5276 void V8TestObjectPython::derefObject(void* object) |
| 5344 { | 5277 { |
| 5345 fromInternalPointer(object)->deref(); | 5278 fromInternalPointer(object)->deref(); |
| 5346 } | 5279 } |
| 5347 | 5280 |
| 5348 } // namespace WebCore | 5281 } // namespace WebCore |
| OLD | NEW |