| 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 "RuntimeEnabledFeatures.h" | 25 #include "RuntimeEnabledFeatures.h" |
| 25 #include "V8Document.h" | 26 #include "V8Document.h" |
| 26 #include "V8DocumentFragment.h" | 27 #include "V8DocumentFragment.h" |
| 27 #include "V8DocumentType.h" | 28 #include "V8DocumentType.h" |
| 28 #include "V8Element.h" | 29 #include "V8Element.h" |
| 29 #include "V8Entity.h" | 30 #include "V8Entity.h" |
| 30 #include "V8HTMLCollection.h" | 31 #include "V8HTMLCollection.h" |
| 31 #include "V8HTMLElement.h" | 32 #include "V8HTMLElement.h" |
| 32 #include "V8Node.h" | 33 #include "V8Node.h" |
| 33 #include "V8NodeFilter.h" | 34 #include "V8NodeFilter.h" |
| 34 #include "V8ShadowRoot.h" | 35 #include "V8ShadowRoot.h" |
| 36 #include "V8TestInterface.h" |
| 35 #include "V8TestInterfaceEmpty.h" | 37 #include "V8TestInterfaceEmpty.h" |
| 36 #include "V8Window.h" | 38 #include "V8Window.h" |
| 37 #include "bindings/v8/BindingSecurity.h" | 39 #include "bindings/v8/BindingSecurity.h" |
| 38 #include "bindings/v8/ExceptionMessages.h" | 40 #include "bindings/v8/ExceptionMessages.h" |
| 39 #include "bindings/v8/ExceptionState.h" | 41 #include "bindings/v8/ExceptionState.h" |
| 40 #include "bindings/v8/ScriptController.h" | 42 #include "bindings/v8/ScriptController.h" |
| 41 #include "bindings/v8/SerializedScriptValue.h" | 43 #include "bindings/v8/SerializedScriptValue.h" |
| 42 #include "bindings/v8/V8AbstractEventListener.h" | 44 #include "bindings/v8/V8AbstractEventListener.h" |
| 43 #include "bindings/v8/V8Binding.h" | 45 #include "bindings/v8/V8Binding.h" |
| 44 #include "bindings/v8/V8DOMActivityLogger.h" | 46 #include "bindings/v8/V8DOMActivityLogger.h" |
| (...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 } | 883 } |
| 882 } | 884 } |
| 883 | 885 |
| 884 static void readonlyDocumentFragmentAttributeAttributeGetterCallback(v8::Local<v
8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) | 886 static void readonlyDocumentFragmentAttributeAttributeGetterCallback(v8::Local<v
8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 885 { | 887 { |
| 886 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 888 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 887 TestObjectPythonV8Internal::readonlyDocumentFragmentAttributeAttributeGetter
(name, info); | 889 TestObjectPythonV8Internal::readonlyDocumentFragmentAttributeAttributeGetter
(name, info); |
| 888 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 890 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 889 } | 891 } |
| 890 | 892 |
| 893 static void reflectReadonlyTestInterfaceAttributeAttributeGetter(v8::Local<v8::S
tring> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 894 { |
| 895 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 896 RefPtr<TestInterface> result = imp->fastGetAttribute(WebCore::HTMLNames::ref
lectreadonlytestinterfaceattributeAttr); |
| 897 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterface>(info.
GetReturnValue(), result.get())) |
| 898 return; |
| 899 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); |
| 900 if (!wrapper.IsEmpty()) { |
| 901 V8HiddenPropertyName::setNamedHiddenReference(info.Holder(), "reflectRea
donlyTestInterfaceAttribute", wrapper); |
| 902 v8SetReturnValue(info, wrapper); |
| 903 } |
| 904 } |
| 905 |
| 906 static void reflectReadonlyTestInterfaceAttributeAttributeGetterCallback(v8::Loc
al<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 907 { |
| 908 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 909 TestObjectPythonV8Internal::reflectReadonlyTestInterfaceAttributeAttributeGe
tter(name, info); |
| 910 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 911 } |
| 912 |
| 913 static void reflectReflectedNameAttributeReadonlyTestAttributeAttributeGetter(v8
::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 914 { |
| 915 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 916 RefPtr<TestInterface> result = imp->fastGetAttribute(WebCore::HTMLNames::ref
lectedNameAttributeAttr); |
| 917 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterface>(info.
GetReturnValue(), result.get())) |
| 918 return; |
| 919 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); |
| 920 if (!wrapper.IsEmpty()) { |
| 921 V8HiddenPropertyName::setNamedHiddenReference(info.Holder(), "reflectRef
lectedNameAttributeReadonlyTestAttribute", wrapper); |
| 922 v8SetReturnValue(info, wrapper); |
| 923 } |
| 924 } |
| 925 |
| 926 static void reflectReflectedNameAttributeReadonlyTestAttributeAttributeGetterCal
lback(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& inf
o) |
| 927 { |
| 928 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 929 TestObjectPythonV8Internal::reflectReflectedNameAttributeReadonlyTestAttribu
teAttributeGetter(name, info); |
| 930 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 931 } |
| 932 |
| 933 static void reflectReadonlyBooleanAttributeAttributeGetter(v8::Local<v8::String>
name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 934 { |
| 935 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 936 v8SetReturnValueBool(info, imp->fastHasAttribute(WebCore::HTMLNames::reflect
readonlybooleanattributeAttr)); |
| 937 } |
| 938 |
| 939 static void reflectReadonlyBooleanAttributeAttributeGetterCallback(v8::Local<v8:
:String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 940 { |
| 941 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 942 TestObjectPythonV8Internal::reflectReadonlyBooleanAttributeAttributeGetter(n
ame, info); |
| 943 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 944 } |
| 945 |
| 946 static void reflectReadonlyLongAttributeAttributeGetter(v8::Local<v8::String> na
me, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 947 { |
| 948 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 949 v8SetReturnValueInt(info, imp->getIntegralAttribute(WebCore::HTMLNames::refl
ectreadonlylongattributeAttr)); |
| 950 } |
| 951 |
| 952 static void reflectReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8::St
ring> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 953 { |
| 954 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 955 TestObjectPythonV8Internal::reflectReadonlyLongAttributeAttributeGetter(name
, info); |
| 956 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 957 } |
| 958 |
| 959 static void reflectReadonlyUnsignedShortAttributeAttributeGetter(v8::Local<v8::S
tring> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 960 { |
| 961 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 962 v8SetReturnValueUnsigned(info, std::max(0, imp->fastGetAttribute(WebCore::HT
MLNames::reflectreadonlyunsignedshortattributeAttr))); |
| 963 } |
| 964 |
| 965 static void reflectReadonlyUnsignedShortAttributeAttributeGetterCallback(v8::Loc
al<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 966 { |
| 967 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 968 TestObjectPythonV8Internal::reflectReadonlyUnsignedShortAttributeAttributeGe
tter(name, info); |
| 969 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 970 } |
| 971 |
| 972 static void reflectReadonlyUnsignedLongAttributeAttributeGetter(v8::Local<v8::St
ring> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 973 { |
| 974 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 975 v8SetReturnValueUnsigned(info, std::max(0, imp->getIntegralAttribute(WebCore
::HTMLNames::reflectreadonlyunsignedlongattributeAttr))); |
| 976 } |
| 977 |
| 978 static void reflectReadonlyUnsignedLongAttributeAttributeGetterCallback(v8::Loca
l<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 979 { |
| 980 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 981 TestObjectPythonV8Internal::reflectReadonlyUnsignedLongAttributeAttributeGet
ter(name, info); |
| 982 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 983 } |
| 984 |
| 985 static void idAttributeGetter(v8::Local<v8::String> name, const v8::PropertyCall
backInfo<v8::Value>& info) |
| 986 { |
| 987 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 988 v8SetReturnValueString(info, imp->getIdAttribute(), info.GetIsolate()); |
| 989 } |
| 990 |
| 991 static void idAttributeGetterCallback(v8::Local<v8::String> name, const v8::Prop
ertyCallbackInfo<v8::Value>& info) |
| 992 { |
| 993 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 994 TestObjectPythonV8Internal::idAttributeGetter(name, info); |
| 995 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 996 } |
| 997 |
| 998 static void nameAttributeGetter(v8::Local<v8::String> name, const v8::PropertyCa
llbackInfo<v8::Value>& info) |
| 999 { |
| 1000 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1001 v8SetReturnValueString(info, imp->getNameAttribute(), info.GetIsolate()); |
| 1002 } |
| 1003 |
| 1004 static void nameAttributeGetterCallback(v8::Local<v8::String> name, const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
| 1005 { |
| 1006 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1007 TestObjectPythonV8Internal::nameAttributeGetter(name, info); |
| 1008 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1009 } |
| 1010 |
| 1011 static void classAttributeGetter(v8::Local<v8::String> name, const v8::PropertyC
allbackInfo<v8::Value>& info) |
| 1012 { |
| 1013 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1014 v8SetReturnValueString(info, imp->getClassAttribute(), info.GetIsolate()); |
| 1015 } |
| 1016 |
| 1017 static void classAttributeGetterCallback(v8::Local<v8::String> name, const v8::P
ropertyCallbackInfo<v8::Value>& info) |
| 1018 { |
| 1019 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1020 TestObjectPythonV8Internal::classAttributeGetter(name, info); |
| 1021 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1022 } |
| 1023 |
| 1024 static void reflectedIdAttributeGetter(v8::Local<v8::String> name, const v8::Pro
pertyCallbackInfo<v8::Value>& info) |
| 1025 { |
| 1026 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1027 v8SetReturnValueString(info, imp->getIdAttribute(), info.GetIsolate()); |
| 1028 } |
| 1029 |
| 1030 static void reflectedIdAttributeGetterCallback(v8::Local<v8::String> name, const
v8::PropertyCallbackInfo<v8::Value>& info) |
| 1031 { |
| 1032 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1033 TestObjectPythonV8Internal::reflectedIdAttributeGetter(name, info); |
| 1034 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1035 } |
| 1036 |
| 1037 static void reflectedNameAttributeGetter(v8::Local<v8::String> name, const v8::P
ropertyCallbackInfo<v8::Value>& info) |
| 1038 { |
| 1039 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1040 v8SetReturnValueString(info, imp->getNameAttribute(), info.GetIsolate()); |
| 1041 } |
| 1042 |
| 1043 static void reflectedNameAttributeGetterCallback(v8::Local<v8::String> name, con
st v8::PropertyCallbackInfo<v8::Value>& info) |
| 1044 { |
| 1045 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1046 TestObjectPythonV8Internal::reflectedNameAttributeGetter(name, info); |
| 1047 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1048 } |
| 1049 |
| 1050 static void reflectedClassAttributeGetter(v8::Local<v8::String> name, const v8::
PropertyCallbackInfo<v8::Value>& info) |
| 1051 { |
| 1052 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); |
| 1053 v8SetReturnValueString(info, imp->getClassAttribute(), info.GetIsolate()); |
| 1054 } |
| 1055 |
| 1056 static void reflectedClassAttributeGetterCallback(v8::Local<v8::String> name, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
| 1057 { |
| 1058 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 1059 TestObjectPythonV8Internal::reflectedClassAttributeGetter(name, info); |
| 1060 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 1061 } |
| 1062 |
| 891 } // namespace TestObjectPythonV8Internal | 1063 } // namespace TestObjectPythonV8Internal |
| 892 | 1064 |
| 893 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectPythonAttrib
utes[] = { | 1065 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectPythonAttrib
utes[] = { |
| 894 {"readonlyDateAttribute", TestObjectPythonV8Internal::readonlyDateAttributeA
ttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 1066 {"readonlyDateAttribute", TestObjectPythonV8Internal::readonlyDateAttributeA
ttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 895 {"readonlyStringAttribute", TestObjectPythonV8Internal::readonlyStringAttrib
uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 1067 {"readonlyStringAttribute", TestObjectPythonV8Internal::readonlyStringAttrib
uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 896 {"readonlyDOMTimeStampAttribute", TestObjectPythonV8Internal::readonlyDOMTim
eStampAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessContro
l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance
*/}, | 1068 {"readonlyDOMTimeStampAttribute", TestObjectPythonV8Internal::readonlyDOMTim
eStampAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessContro
l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance
*/}, |
| 897 {"readonlyBooleanAttribute", TestObjectPythonV8Internal::readonlyBooleanAttr
ibuteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF
AULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 1069 {"readonlyBooleanAttribute", TestObjectPythonV8Internal::readonlyBooleanAttr
ibuteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF
AULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 898 {"readonlyByteAttribute", TestObjectPythonV8Internal::readonlyByteAttributeA
ttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 1070 {"readonlyByteAttribute", TestObjectPythonV8Internal::readonlyByteAttributeA
ttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 899 {"readonlyDoubleAttribute", TestObjectPythonV8Internal::readonlyDoubleAttrib
uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 1071 {"readonlyDoubleAttribute", TestObjectPythonV8Internal::readonlyDoubleAttrib
uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 900 {"readonlyFloatAttribute", TestObjectPythonV8Internal::readonlyFloatAttribut
eAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT
), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 1072 {"readonlyFloatAttribute", TestObjectPythonV8Internal::readonlyFloatAttribut
eAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT
), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 949 {"customGetterReadonlyLongAttribute", TestObjectPythonV8Internal::customGett
erReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, | 1121 {"customGetterReadonlyLongAttribute", TestObjectPythonV8Internal::customGett
erReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, |
| 950 #if ENABLE(Condition) | 1122 #if ENABLE(Condition) |
| 951 {"customReadonlyLongAttribute", TestObjectPythonV8Internal::customReadonlyLo
ngAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 1123 {"customReadonlyLongAttribute", TestObjectPythonV8Internal::customReadonlyLo
ngAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 952 #endif // ENABLE(Condition) | 1124 #endif // ENABLE(Condition) |
| 953 #if ENABLE(Condition) | 1125 #if ENABLE(Condition) |
| 954 {"customGetterReadonlyLongAttribute", TestObjectPythonV8Internal::customGett
erReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, | 1126 {"customGetterReadonlyLongAttribute", TestObjectPythonV8Internal::customGett
erReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, |
| 955 #endif // ENABLE(Condition) | 1127 #endif // ENABLE(Condition) |
| 956 {"customElementsCallbacksReadonlyLongAttribute", TestObjectPythonV8Internal:
:customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0
, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute
>(v8::None), 0 /* on instance */}, | 1128 {"customElementsCallbacksReadonlyLongAttribute", TestObjectPythonV8Internal:
:customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0
, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute
>(v8::None), 0 /* on instance */}, |
| 957 {"deprecatedReadonlyLongAttribute", TestObjectPythonV8Internal::deprecatedRe
adonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta
nce */}, | 1129 {"deprecatedReadonlyLongAttribute", TestObjectPythonV8Internal::deprecatedRe
adonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta
nce */}, |
| 958 {"readonlyDocumentFragmentAttribute", TestObjectPythonV8Internal::readonlyDo
cumentFragmentAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, | 1130 {"readonlyDocumentFragmentAttribute", TestObjectPythonV8Internal::readonlyDo
cumentFragmentAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, |
| 1131 {"reflectReadonlyTestInterfaceAttribute", TestObjectPythonV8Internal::reflec
tReadonlyTestInterfaceAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, |
| 1132 {"reflectReflectedNameAttributeReadonlyTestAttribute", TestObjectPythonV8Int
ernal::reflectReflectedNameAttributeReadonlyTestAttributeAttributeGetterCallback
, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prope
rtyAttribute>(v8::None), 0 /* on instance */}, |
| 1133 {"reflectReadonlyBooleanAttribute", TestObjectPythonV8Internal::reflectReado
nlyBooleanAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta
nce */}, |
| 1134 {"reflectReadonlyLongAttribute", TestObjectPythonV8Internal::reflectReadonly
LongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>
(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */
}, |
| 1135 {"reflectReadonlyUnsignedShortAttribute", TestObjectPythonV8Internal::reflec
tReadonlyUnsignedShortAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0
/* on instance */}, |
| 1136 {"reflectReadonlyUnsignedLongAttribute", TestObjectPythonV8Internal::reflect
ReadonlyUnsignedLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /
* on instance */}, |
| 1137 {"id", TestObjectPythonV8Internal::idAttributeGetterCallback, 0, 0, 0, 0, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), 0 /* on instance */}, |
| 1138 {"name", TestObjectPythonV8Internal::nameAttributeGetterCallback, 0, 0, 0, 0
, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute
>(v8::None), 0 /* on instance */}, |
| 1139 {"class", TestObjectPythonV8Internal::classAttributeGetterCallback, 0, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, |
| 1140 {"reflectedId", TestObjectPythonV8Internal::reflectedIdAttributeGetterCallba
ck, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro
pertyAttribute>(v8::None), 0 /* on instance */}, |
| 1141 {"reflectedName", TestObjectPythonV8Internal::reflectedNameAttributeGetterCa
llback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:
:PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 1142 {"reflectedClass", TestObjectPythonV8Internal::reflectedClassAttributeGetter
Callback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 959 }; | 1143 }; |
| 960 | 1144 |
| 961 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectPythonTemplate(v8::
Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType curren
tWorldType) | 1145 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectPythonTemplate(v8::
Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType curren
tWorldType) |
| 962 { | 1146 { |
| 963 desc->ReadOnlyPrototype(); | 1147 desc->ReadOnlyPrototype(); |
| 964 | 1148 |
| 965 v8::Local<v8::Signature> defaultSignature; | 1149 v8::Local<v8::Signature> defaultSignature; |
| 966 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestOb
jectPython", v8::Local<v8::FunctionTemplate>(), V8TestObjectPython::internalFiel
dCount, | 1150 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestOb
jectPython", v8::Local<v8::FunctionTemplate>(), V8TestObjectPython::internalFiel
dCount, |
| 967 V8TestObjectPythonAttributes, WTF_ARRAY_LENGTH(V8TestObjectPythonAttribu
tes), | 1151 V8TestObjectPythonAttributes, WTF_ARRAY_LENGTH(V8TestObjectPythonAttribu
tes), |
| 968 0, 0, isolate, currentWorldType); | 1152 0, 0, isolate, currentWorldType); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1021 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr
apper, isolate, WrapperConfiguration::Independent); | 1205 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr
apper, isolate, WrapperConfiguration::Independent); |
| 1022 return wrapper; | 1206 return wrapper; |
| 1023 } | 1207 } |
| 1024 | 1208 |
| 1025 void V8TestObjectPython::derefObject(void* object) | 1209 void V8TestObjectPython::derefObject(void* object) |
| 1026 { | 1210 { |
| 1027 fromInternalPointer(object)->deref(); | 1211 fromInternalPointer(object)->deref(); |
| 1028 } | 1212 } |
| 1029 | 1213 |
| 1030 } // namespace WebCore | 1214 } // namespace WebCore |
| OLD | NEW |