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, |
(...skipping 4747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4758 imp->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInterf
aceEmptyArg, variadicTestInterfaceEmptyArgs); | 4758 imp->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInterf
aceEmptyArg, variadicTestInterfaceEmptyArgs); |
4759 } | 4759 } |
4760 | 4760 |
4761 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa
llback(const v8::FunctionCallbackInfo<v8::Value>& args) | 4761 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa
llback(const v8::FunctionCallbackInfo<v8::Value>& args) |
4762 { | 4762 { |
4763 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4763 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4764 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInter
faceEmptyArgMethod(args); | 4764 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInter
faceEmptyArgMethod(args); |
4765 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4765 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
4766 } | 4766 } |
4767 | 4767 |
4768 static void voidMethodClampUnsignedShortArgClampUnsignedLongArgMethod(const v8::
FunctionCallbackInfo<v8::Value>& args) | 4768 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& args) |
4769 { | 4769 { |
4770 if (UNLIKELY(args.Length() < 2)) { | 4770 if (UNLIKELY(args.Length() < 1)) { |
4771 throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsign
edShortArgClampUnsignedLongArg", "TestObjectPython", ExceptionMessages::notEnoug
hArguments(2, args.Length())), args.GetIsolate()); | 4771 throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsign
edShortArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.L
ength())), args.GetIsolate()); |
4772 return; | 4772 return; |
4773 } | 4773 } |
4774 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); | 4774 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); |
4775 unsigned short clampUnsignedShortArg = 0; | 4775 unsigned short clampUnsignedShortArg = 0; |
4776 V8TRYCATCH_VOID(double, clampUnsignedShortArgNativeValue, args[0]->NumberVal
ue()); | 4776 V8TRYCATCH_VOID(double, clampUnsignedShortArgNativeValue, args[0]->NumberVal
ue()); |
4777 if (!std::isnan(clampUnsignedShortArgNativeValue)) | 4777 if (!std::isnan(clampUnsignedShortArgNativeValue)) |
4778 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNat
iveValue); | 4778 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNat
iveValue); |
4779 unsigned long clampUnsignedLongArg = 0; | 4779 imp->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); |
4780 V8TRYCATCH_VOID(double, clampUnsignedLongArgNativeValue, args[1]->NumberValu
e()); | |
4781 if (!std::isnan(clampUnsignedLongArgNativeValue)) | |
4782 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNative
Value); | |
4783 imp->voidMethodClampUnsignedShortArgClampUnsignedLongArg(clampUnsignedShortA
rg, clampUnsignedLongArg); | |
4784 } | 4780 } |
4785 | 4781 |
4786 static void voidMethodClampUnsignedShortArgClampUnsignedLongArgMethodCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& args) | 4782 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& args) |
4787 { | 4783 { |
4788 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4784 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4789 TestObjectPythonV8Internal::voidMethodClampUnsignedShortArgClampUnsignedLong
ArgMethod(args); | 4785 TestObjectPythonV8Internal::voidMethodClampUnsignedShortArgMethod(args); |
4790 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 4786 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
4791 } | 4787 } |
4792 | 4788 |
| 4789 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& args) |
| 4790 { |
| 4791 if (UNLIKELY(args.Length() < 1)) { |
| 4792 throwTypeError(ExceptionMessages::failedToExecute("voidMethodClampUnsign
edLongArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, args.Le
ngth())), args.GetIsolate()); |
| 4793 return; |
| 4794 } |
| 4795 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); |
| 4796 unsigned long clampUnsignedLongArg = 0; |
| 4797 V8TRYCATCH_VOID(double, clampUnsignedLongArgNativeValue, args[0]->NumberValu
e()); |
| 4798 if (!std::isnan(clampUnsignedLongArgNativeValue)) |
| 4799 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNative
Value); |
| 4800 imp->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); |
| 4801 } |
| 4802 |
| 4803 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& args) |
| 4804 { |
| 4805 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4806 TestObjectPythonV8Internal::voidMethodClampUnsignedLongArgMethod(args); |
| 4807 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4808 } |
| 4809 |
| 4810 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& args) |
| 4811 { |
| 4812 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); |
| 4813 V8TRYCATCH_VOID(TestInterfaceEmpty*, defaultUndefinedTestInterfaceEmptyArg,
V8TestInterfaceEmpty::HasInstance(args[0], args.GetIsolate(), worldType(args.Get
Isolate())) ? V8TestInterfaceEmpty::toNative(v8::Handle<v8::Object>::Cast(args[0
])) : 0); |
| 4814 imp->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestInt
erfaceEmptyArg); |
| 4815 } |
| 4816 |
| 4817 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& args) |
| 4818 { |
| 4819 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4820 TestObjectPythonV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgM
ethod(args); |
| 4821 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4822 } |
| 4823 |
| 4824 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& args) |
| 4825 { |
| 4826 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); |
| 4827 V8TRYCATCH_VOID(int, defaultUndefinedLongArg, toInt32(args[0])); |
| 4828 imp->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); |
| 4829 } |
| 4830 |
| 4831 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& args) |
| 4832 { |
| 4833 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4834 TestObjectPythonV8Internal::voidMethodDefaultUndefinedLongArgMethod(args); |
| 4835 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4836 } |
| 4837 |
| 4838 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback
Info<v8::Value>& args) |
| 4839 { |
| 4840 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); |
| 4841 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultUndefinedStr
ingArg, args[0]); |
| 4842 imp->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); |
| 4843 } |
| 4844 |
| 4845 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& args) |
| 4846 { |
| 4847 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4848 TestObjectPythonV8Internal::voidMethodDefaultUndefinedStringArgMethod(args); |
| 4849 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4850 } |
| 4851 |
| 4852 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& args) |
| 4853 { |
| 4854 TestObjectPython* imp = V8TestObjectPython::toNative(args.Holder()); |
| 4855 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultNullStringSt
ringArg, argumentOrNull(args, 0)); |
| 4856 imp->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg); |
| 4857 } |
| 4858 |
| 4859 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& args) |
| 4860 { |
| 4861 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4862 TestObjectPythonV8Internal::voidMethodDefaultNullStringStringArgMethod(args)
; |
| 4863 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 4864 } |
| 4865 |
4793 } // namespace TestObjectPythonV8Internal | 4866 } // namespace TestObjectPythonV8Internal |
4794 | 4867 |
4795 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectPythonAttrib
utes[] = { | 4868 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectPythonAttrib
utes[] = { |
4796 {"readonlyStringAttribute", TestObjectPythonV8Internal::readonlyStringAttrib
uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4869 {"readonlyStringAttribute", TestObjectPythonV8Internal::readonlyStringAttrib
uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU
LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
4797 {"readonlyTestInterfaceEmptyAttribute", TestObjectPythonV8Internal::readonly
TestInterfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}, | 4870 {"readonlyTestInterfaceEmptyAttribute", TestObjectPythonV8Internal::readonly
TestInterfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}, |
4798 {"readonlyLongAttribute", TestObjectPythonV8Internal::readonlyLongAttributeA
ttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 4871 {"readonlyLongAttribute", TestObjectPythonV8Internal::readonlyLongAttributeA
ttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
4799 {"dateAttribute", TestObjectPythonV8Internal::dateAttributeAttributeGetterCa
llback, TestObjectPythonV8Internal::dateAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, | 4872 {"dateAttribute", TestObjectPythonV8Internal::dateAttributeAttributeGetterCa
llback, TestObjectPythonV8Internal::dateAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, |
4800 {"stringAttribute", TestObjectPythonV8Internal::stringAttributeAttributeGett
erCallback, TestObjectPythonV8Internal::stringAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, | 4873 {"stringAttribute", TestObjectPythonV8Internal::stringAttributeAttributeGett
erCallback, TestObjectPythonV8Internal::stringAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, |
4801 {"readonlyDOMTimeStampAttribute", TestObjectPythonV8Internal::readonlyDOMTim
eStampAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessContro
l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance
*/}, | 4874 {"readonlyDOMTimeStampAttribute", TestObjectPythonV8Internal::readonlyDOMTim
eStampAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessContro
l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance
*/}, |
4802 {"booleanAttribute", TestObjectPythonV8Internal::booleanAttributeAttributeGe
tterCallback, TestObjectPythonV8Internal::booleanAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, | 4875 {"booleanAttribute", TestObjectPythonV8Internal::booleanAttributeAttributeGe
tterCallback, TestObjectPythonV8Internal::booleanAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), 0 /* on instance */}, |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4979 {"voidMethodOptionalLongArg", TestObjectPythonV8Internal::voidMethodOptional
LongArgMethodCallback, 0, 0}, | 5052 {"voidMethodOptionalLongArg", TestObjectPythonV8Internal::voidMethodOptional
LongArgMethodCallback, 0, 0}, |
4980 {"stringMethodOptionalLongArg", TestObjectPythonV8Internal::stringMethodOpti
onalLongArgMethodCallback, 0, 0}, | 5053 {"stringMethodOptionalLongArg", TestObjectPythonV8Internal::stringMethodOpti
onalLongArgMethodCallback, 0, 0}, |
4981 {"testInterfaceEmptyMethodOptionalLongArg", TestObjectPythonV8Internal::test
InterfaceEmptyMethodOptionalLongArgMethodCallback, 0, 0}, | 5054 {"testInterfaceEmptyMethodOptionalLongArg", TestObjectPythonV8Internal::test
InterfaceEmptyMethodOptionalLongArgMethodCallback, 0, 0}, |
4982 {"longMethodOptionalLongArg", TestObjectPythonV8Internal::longMethodOptional
LongArgMethodCallback, 0, 0}, | 5055 {"longMethodOptionalLongArg", TestObjectPythonV8Internal::longMethodOptional
LongArgMethodCallback, 0, 0}, |
4983 {"voidMethodLongArgOptionalLongArg", TestObjectPythonV8Internal::voidMethodL
ongArgOptionalLongArgMethodCallback, 0, 1}, | 5056 {"voidMethodLongArgOptionalLongArg", TestObjectPythonV8Internal::voidMethodL
ongArgOptionalLongArgMethodCallback, 0, 1}, |
4984 {"voidMethodLongArgOptionalLongArgOptionalLongArg", TestObjectPythonV8Intern
al::voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 0, 1}, | 5057 {"voidMethodLongArgOptionalLongArgOptionalLongArg", TestObjectPythonV8Intern
al::voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 0, 1}, |
4985 {"voidMethodLongArgOptionalTestInterfaceEmptyArg", TestObjectPythonV8Interna
l::voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 0, 1}, | 5058 {"voidMethodLongArgOptionalTestInterfaceEmptyArg", TestObjectPythonV8Interna
l::voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 0, 1}, |
4986 {"voidMethodTestInterfaceEmptyArgOptionalLongArg", TestObjectPythonV8Interna
l::voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback, 0, 1}, | 5059 {"voidMethodTestInterfaceEmptyArgOptionalLongArg", TestObjectPythonV8Interna
l::voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback, 0, 1}, |
4987 {"voidMethodVariadicStringArg", TestObjectPythonV8Internal::voidMethodVariad
icStringArgMethodCallback, 0, 1}, | 5060 {"voidMethodVariadicStringArg", TestObjectPythonV8Internal::voidMethodVariad
icStringArgMethodCallback, 0, 1}, |
4988 {"voidMethodStringArgVariadicStringArg", TestObjectPythonV8Internal::voidMet
hodStringArgVariadicStringArgMethodCallback, 0, 2}, | 5061 {"voidMethodStringArgVariadicStringArg", TestObjectPythonV8Internal::voidMet
hodStringArgVariadicStringArgMethodCallback, 0, 2}, |
4989 {"voidMethodClampUnsignedShortArgClampUnsignedLongArg", TestObjectPythonV8In
ternal::voidMethodClampUnsignedShortArgClampUnsignedLongArgMethodCallback, 0, 2}
, | 5062 {"voidMethodClampUnsignedShortArg", TestObjectPythonV8Internal::voidMethodCl
ampUnsignedShortArgMethodCallback, 0, 1}, |
| 5063 {"voidMethodClampUnsignedLongArg", TestObjectPythonV8Internal::voidMethodCla
mpUnsignedLongArgMethodCallback, 0, 1}, |
| 5064 {"voidMethodDefaultUndefinedLongArg", TestObjectPythonV8Internal::voidMethod
DefaultUndefinedLongArgMethodCallback, 0, 0}, |
| 5065 {"voidMethodDefaultUndefinedStringArg", TestObjectPythonV8Internal::voidMeth
odDefaultUndefinedStringArgMethodCallback, 0, 0}, |
| 5066 {"voidMethodDefaultNullStringStringArg", TestObjectPythonV8Internal::voidMet
hodDefaultNullStringStringArgMethodCallback, 0, 0}, |
4990 }; | 5067 }; |
4991 | 5068 |
4992 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectPythonTemplate(v8::
Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType curren
tWorldType) | 5069 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectPythonTemplate(v8::
Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType curren
tWorldType) |
4993 { | 5070 { |
4994 desc->ReadOnlyPrototype(); | 5071 desc->ReadOnlyPrototype(); |
4995 | 5072 |
4996 v8::Local<v8::Signature> defaultSignature; | 5073 v8::Local<v8::Signature> defaultSignature; |
4997 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestOb
jectPython", v8::Local<v8::FunctionTemplate>(), V8TestObjectPython::internalFiel
dCount, | 5074 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestOb
jectPython", v8::Local<v8::FunctionTemplate>(), V8TestObjectPython::internalFiel
dCount, |
4998 V8TestObjectPythonAttributes, WTF_ARRAY_LENGTH(V8TestObjectPythonAttribu
tes), | 5075 V8TestObjectPythonAttributes, WTF_ARRAY_LENGTH(V8TestObjectPythonAttribu
tes), |
4999 V8TestObjectPythonMethods, WTF_ARRAY_LENGTH(V8TestObjectPythonMethods),
isolate, currentWorldType); | 5076 V8TestObjectPythonMethods, WTF_ARRAY_LENGTH(V8TestObjectPythonMethods),
isolate, currentWorldType); |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5109 const int voidMethodVariadicTestInterfaceEmptyArgArgc = 1; | 5186 const int voidMethodVariadicTestInterfaceEmptyArgArgc = 1; |
5110 v8::Handle<v8::FunctionTemplate> voidMethodVariadicTestInterfaceEmptyArgArgv
[voidMethodVariadicTestInterfaceEmptyArgArgc] = { V8PerIsolateData::from(isolate
)->rawTemplate(&V8TestInterfaceEmpty::wrapperTypeInfo, currentWorldType) }; | 5187 v8::Handle<v8::FunctionTemplate> voidMethodVariadicTestInterfaceEmptyArgArgv
[voidMethodVariadicTestInterfaceEmptyArgArgc] = { V8PerIsolateData::from(isolate
)->rawTemplate(&V8TestInterfaceEmpty::wrapperTypeInfo, currentWorldType) }; |
5111 v8::Handle<v8::Signature> voidMethodVariadicTestInterfaceEmptyArgSignature =
v8::Signature::New(desc, voidMethodVariadicTestInterfaceEmptyArgArgc, voidMetho
dVariadicTestInterfaceEmptyArgArgv); | 5188 v8::Handle<v8::Signature> voidMethodVariadicTestInterfaceEmptyArgSignature =
v8::Signature::New(desc, voidMethodVariadicTestInterfaceEmptyArgArgc, voidMetho
dVariadicTestInterfaceEmptyArgArgv); |
5112 proto->Set(v8::String::NewSymbol("voidMethodVariadicTestInterfaceEmptyArg"),
v8::FunctionTemplate::New(TestObjectPythonV8Internal::voidMethodVariadicTestInt
erfaceEmptyArgMethodCallback, v8Undefined(), voidMethodVariadicTestInterfaceEmpt
yArgSignature, 1)); | 5189 proto->Set(v8::String::NewSymbol("voidMethodVariadicTestInterfaceEmptyArg"),
v8::FunctionTemplate::New(TestObjectPythonV8Internal::voidMethodVariadicTestInt
erfaceEmptyArgMethodCallback, v8Undefined(), voidMethodVariadicTestInterfaceEmpt
yArgSignature, 1)); |
5113 | 5190 |
5114 // Custom Signature 'voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmp
tyArg' | 5191 // Custom Signature 'voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmp
tyArg' |
5115 const int voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgArgc =
2; | 5192 const int voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgArgc =
2; |
5116 v8::Handle<v8::FunctionTemplate> voidMethodTestInterfaceEmptyArgVariadicTest
InterfaceEmptyArgArgv[voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyA
rgArgc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8TestInterfaceEmpty::
wrapperTypeInfo, currentWorldType), V8PerIsolateData::from(isolate)->rawTemplate
(&V8TestInterfaceEmpty::wrapperTypeInfo, currentWorldType) }; | 5193 v8::Handle<v8::FunctionTemplate> voidMethodTestInterfaceEmptyArgVariadicTest
InterfaceEmptyArgArgv[voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyA
rgArgc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8TestInterfaceEmpty::
wrapperTypeInfo, currentWorldType), V8PerIsolateData::from(isolate)->rawTemplate
(&V8TestInterfaceEmpty::wrapperTypeInfo, currentWorldType) }; |
5117 v8::Handle<v8::Signature> voidMethodTestInterfaceEmptyArgVariadicTestInterfa
ceEmptyArgSignature = v8::Signature::New(desc, voidMethodTestInterfaceEmptyArgVa
riadicTestInterfaceEmptyArgArgc, voidMethodTestInterfaceEmptyArgVariadicTestInte
rfaceEmptyArgArgv); | 5194 v8::Handle<v8::Signature> voidMethodTestInterfaceEmptyArgVariadicTestInterfa
ceEmptyArgSignature = v8::Signature::New(desc, voidMethodTestInterfaceEmptyArgVa
riadicTestInterfaceEmptyArgArgc, voidMethodTestInterfaceEmptyArgVariadicTestInte
rfaceEmptyArgArgv); |
5118 proto->Set(v8::String::NewSymbol("voidMethodTestInterfaceEmptyArgVariadicTes
tInterfaceEmptyArg"), v8::FunctionTemplate::New(TestObjectPythonV8Internal::void
MethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCallback, v8Undefi
ned(), voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgSignature, 2)
); | 5195 proto->Set(v8::String::NewSymbol("voidMethodTestInterfaceEmptyArgVariadicTes
tInterfaceEmptyArg"), v8::FunctionTemplate::New(TestObjectPythonV8Internal::void
MethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCallback, v8Undefi
ned(), voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgSignature, 2)
); |
| 5196 |
| 5197 // Custom Signature 'voidMethodDefaultUndefinedTestInterfaceEmptyArg' |
| 5198 const int voidMethodDefaultUndefinedTestInterfaceEmptyArgArgc = 1; |
| 5199 v8::Handle<v8::FunctionTemplate> voidMethodDefaultUndefinedTestInterfaceEmpt
yArgArgv[voidMethodDefaultUndefinedTestInterfaceEmptyArgArgc] = { V8PerIsolateDa
ta::from(isolate)->rawTemplate(&V8TestInterfaceEmpty::wrapperTypeInfo, currentWo
rldType) }; |
| 5200 v8::Handle<v8::Signature> voidMethodDefaultUndefinedTestInterfaceEmptyArgSig
nature = v8::Signature::New(desc, voidMethodDefaultUndefinedTestInterfaceEmptyAr
gArgc, voidMethodDefaultUndefinedTestInterfaceEmptyArgArgv); |
| 5201 proto->Set(v8::String::NewSymbol("voidMethodDefaultUndefinedTestInterfaceEmp
tyArg"), v8::FunctionTemplate::New(TestObjectPythonV8Internal::voidMethodDefault
UndefinedTestInterfaceEmptyArgMethodCallback, v8Undefined(), voidMethodDefaultUn
definedTestInterfaceEmptyArgSignature, 0)); |
5119 desc->SetNativeDataProperty(v8::String::NewSymbol("staticStringAttribute"),
TestObjectPythonV8Internal::staticStringAttributeAttributeGetterCallback, TestOb
jectPythonV8Internal::staticStringAttributeAttributeSetterCallback, v8::External
::New(0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorS
ignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 5202 desc->SetNativeDataProperty(v8::String::NewSymbol("staticStringAttribute"),
TestObjectPythonV8Internal::staticStringAttributeAttributeGetterCallback, TestOb
jectPythonV8Internal::staticStringAttributeAttributeSetterCallback, v8::External
::New(0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorS
ignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
5120 desc->SetNativeDataProperty(v8::String::NewSymbol("staticLongAttribute"), Te
stObjectPythonV8Internal::staticLongAttributeAttributeGetterCallback, TestObject
PythonV8Internal::staticLongAttributeAttributeSetterCallback, v8::External::New(
0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignatu
re>(), static_cast<v8::AccessControl>(v8::DEFAULT)); | 5203 desc->SetNativeDataProperty(v8::String::NewSymbol("staticLongAttribute"), Te
stObjectPythonV8Internal::staticLongAttributeAttributeGetterCallback, TestObject
PythonV8Internal::staticLongAttributeAttributeSetterCallback, v8::External::New(
0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignatu
re>(), static_cast<v8::AccessControl>(v8::DEFAULT)); |
5121 | 5204 |
5122 // Custom toString template | 5205 // Custom toString template |
5123 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); | 5206 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); |
5124 return desc; | 5207 return desc; |
5125 } | 5208 } |
5126 | 5209 |
5127 v8::Handle<v8::FunctionTemplate> V8TestObjectPython::GetTemplate(v8::Isolate* is
olate, WrapperWorldType currentWorldType) | 5210 v8::Handle<v8::FunctionTemplate> V8TestObjectPython::GetTemplate(v8::Isolate* is
olate, WrapperWorldType currentWorldType) |
5128 { | 5211 { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5180 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &wrapperT
ypeInfo, wrapper, isolate, WrapperConfiguration::Independent); | 5263 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &wrapperT
ypeInfo, wrapper, isolate, WrapperConfiguration::Independent); |
5181 return wrapper; | 5264 return wrapper; |
5182 } | 5265 } |
5183 | 5266 |
5184 void V8TestObjectPython::derefObject(void* object) | 5267 void V8TestObjectPython::derefObject(void* object) |
5185 { | 5268 { |
5186 fromInternalPointer(object)->deref(); | 5269 fromInternalPointer(object)->deref(); |
5187 } | 5270 } |
5188 | 5271 |
5189 } // namespace WebCore | 5272 } // namespace WebCore |
OLD | NEW |