OLD | NEW |
1 /* | 1 /* |
2 This file is part of the WebKit open source project. | 2 This file is part of the Blink open source project. |
3 This file has been generated by generate-bindings.pl. 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 "V8TestObj.h" | 22 #include "V8TestObj.h" |
23 | 23 |
24 #include "HTMLNames.h" | 24 #include "HTMLNames.h" |
| 25 #include "RuntimeEnabledFeatures.h" |
25 #include "ScriptProfile.h" | 26 #include "ScriptProfile.h" |
26 #include "V8DOMStringList.h" | 27 #include "V8DOMStringList.h" |
27 #include "V8Document.h" | 28 #include "V8Document.h" |
28 #include "V8Float32Array.h" | 29 #include "V8Float32Array.h" |
29 #include "V8Node.h" | 30 #include "V8Node.h" |
30 #include "V8SVGDocument.h" | 31 #include "V8SVGDocument.h" |
31 #include "V8SVGPoint.h" | 32 #include "V8SVGPoint.h" |
32 #include "V8ScriptProfile.h" | 33 #include "V8ScriptProfile.h" |
33 #include "V8TestCallback.h" | 34 #include "V8TestCallback.h" |
| 35 #include "V8TestNode.h" |
| 36 #include "V8TestObj.h" |
34 #include "V8TestSubObj.h" | 37 #include "V8TestSubObj.h" |
35 #include "V8a.h" | |
36 #include "V8b.h" | |
37 #include "V8bool.h" | 38 #include "V8bool.h" |
38 #include "V8d.h" | |
39 #include "V8e.h" | |
40 #include "bindings/v8/BindingState.h" | 39 #include "bindings/v8/BindingState.h" |
41 #include "bindings/v8/Dictionary.h" | 40 #include "bindings/v8/Dictionary.h" |
42 #include "bindings/v8/ScriptController.h" | 41 #include "bindings/v8/ScriptController.h" |
43 #include "bindings/v8/ScriptValue.h" | 42 #include "bindings/v8/ScriptValue.h" |
44 #include "bindings/v8/SerializedScriptValue.h" | 43 #include "bindings/v8/SerializedScriptValue.h" |
45 #include "bindings/v8/V8Binding.h" | 44 #include "bindings/v8/V8Binding.h" |
46 #include "bindings/v8/V8DOMActivityLogger.h" | 45 #include "bindings/v8/V8DOMActivityLogger.h" |
47 #include "bindings/v8/V8DOMWrapper.h" | 46 #include "bindings/v8/V8DOMWrapper.h" |
48 #include "bindings/v8/V8EventListenerList.h" | 47 #include "bindings/v8/V8EventListenerList.h" |
49 #include "core/dom/ContextFeatures.h" | 48 #include "core/dom/ContextFeatures.h" |
50 #include "core/dom/DOMStringList.h" | 49 #include "core/dom/DOMStringList.h" |
51 #include "core/dom/ExceptionCode.h" | 50 #include "core/dom/ExceptionCode.h" |
52 #include "core/page/Frame.h" | 51 #include "core/page/Frame.h" |
53 #include "core/page/PageConsole.h" | 52 #include "core/page/PageConsole.h" |
54 #include "RuntimeEnabledFeatures.h" | |
55 #include "core/page/UseCounter.h" | 53 #include "core/page/UseCounter.h" |
56 #include "core/svg/properties/SVGPropertyTearOff.h" | 54 #include "core/svg/properties/SVGPropertyTearOff.h" |
57 #include "core/svg/properties/SVGStaticPropertyTearOff.h" | 55 #include "core/svg/properties/SVGStaticPropertyTearOff.h" |
58 #include <wtf/Float32Array.h> | 56 #include <wtf/Float32Array.h> |
59 #include <wtf/GetPtr.h> | 57 #include <wtf/GetPtr.h> |
60 #include <wtf/RefCounted.h> | 58 #include <wtf/RefCounted.h> |
61 #include <wtf/RefPtr.h> | 59 #include <wtf/RefPtr.h> |
62 #include <wtf/UnusedParam.h> | 60 #include <wtf/UnusedParam.h> |
63 #include <wtf/Vector.h> | 61 #include <wtf/Vector.h> |
64 | 62 |
(...skipping 3429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3494 static v8::Handle<v8::Value> getSVGDocumentMethodCallback(const v8::Arguments& a
rgs) | 3492 static v8::Handle<v8::Value> getSVGDocumentMethodCallback(const v8::Arguments& a
rgs) |
3495 { | 3493 { |
3496 return TestObjV8Internal::getSVGDocumentMethod(args); | 3494 return TestObjV8Internal::getSVGDocumentMethod(args); |
3497 } | 3495 } |
3498 | 3496 |
3499 static v8::Handle<v8::Value> convert1Method(const v8::Arguments& args) | 3497 static v8::Handle<v8::Value> convert1Method(const v8::Arguments& args) |
3500 { | 3498 { |
3501 if (args.Length() < 1) | 3499 if (args.Length() < 1) |
3502 return throwNotEnoughArgumentsError(args.GetIsolate()); | 3500 return throwNotEnoughArgumentsError(args.GetIsolate()); |
3503 TestObj* imp = V8TestObj::toNative(args.Holder()); | 3501 TestObj* imp = V8TestObj::toNative(args.Holder()); |
3504 V8TRYCATCH(a*, value, V8a::HasInstance(args[0], args.GetIsolate(), worldType
(args.GetIsolate())) ? V8a::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0)
; | 3502 V8TRYCATCH(TestNode*, value, V8TestNode::HasInstance(args[0], args.GetIsolat
e(), worldType(args.GetIsolate())) ? V8TestNode::toNative(v8::Handle<v8::Object>
::Cast(args[0])) : 0); |
3505 imp->convert1(value); | 3503 imp->convert1(value); |
3506 return v8Undefined(); | 3504 return v8Undefined(); |
3507 } | 3505 } |
3508 | 3506 |
3509 static v8::Handle<v8::Value> convert1MethodCallback(const v8::Arguments& args) | 3507 static v8::Handle<v8::Value> convert1MethodCallback(const v8::Arguments& args) |
3510 { | 3508 { |
3511 return TestObjV8Internal::convert1Method(args); | 3509 return TestObjV8Internal::convert1Method(args); |
3512 } | 3510 } |
3513 | 3511 |
3514 static v8::Handle<v8::Value> convert2Method(const v8::Arguments& args) | 3512 static v8::Handle<v8::Value> convert2Method(const v8::Arguments& args) |
3515 { | 3513 { |
3516 if (args.Length() < 1) | 3514 if (args.Length() < 1) |
3517 return throwNotEnoughArgumentsError(args.GetIsolate()); | 3515 return throwNotEnoughArgumentsError(args.GetIsolate()); |
3518 TestObj* imp = V8TestObj::toNative(args.Holder()); | 3516 TestObj* imp = V8TestObj::toNative(args.Holder()); |
3519 V8TRYCATCH(b*, value, V8b::HasInstance(args[0], args.GetIsolate(), worldType
(args.GetIsolate())) ? V8b::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0)
; | 3517 V8TRYCATCH(TestNode*, value, V8TestNode::HasInstance(args[0], args.GetIsolat
e(), worldType(args.GetIsolate())) ? V8TestNode::toNative(v8::Handle<v8::Object>
::Cast(args[0])) : 0); |
3520 imp->convert2(value); | 3518 imp->convert2(value); |
3521 return v8Undefined(); | 3519 return v8Undefined(); |
3522 } | 3520 } |
3523 | 3521 |
3524 static v8::Handle<v8::Value> convert2MethodCallback(const v8::Arguments& args) | 3522 static v8::Handle<v8::Value> convert2MethodCallback(const v8::Arguments& args) |
3525 { | 3523 { |
3526 return TestObjV8Internal::convert2Method(args); | 3524 return TestObjV8Internal::convert2Method(args); |
3527 } | 3525 } |
3528 | 3526 |
3529 static v8::Handle<v8::Value> convert4Method(const v8::Arguments& args) | 3527 static v8::Handle<v8::Value> convert4Method(const v8::Arguments& args) |
3530 { | 3528 { |
3531 if (args.Length() < 1) | 3529 if (args.Length() < 1) |
3532 return throwNotEnoughArgumentsError(args.GetIsolate()); | 3530 return throwNotEnoughArgumentsError(args.GetIsolate()); |
3533 TestObj* imp = V8TestObj::toNative(args.Holder()); | 3531 TestObj* imp = V8TestObj::toNative(args.Holder()); |
3534 V8TRYCATCH(d*, value, V8d::HasInstance(args[0], args.GetIsolate(), worldType
(args.GetIsolate())) ? V8d::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0)
; | 3532 V8TRYCATCH(TestNode*, value, V8TestNode::HasInstance(args[0], args.GetIsolat
e(), worldType(args.GetIsolate())) ? V8TestNode::toNative(v8::Handle<v8::Object>
::Cast(args[0])) : 0); |
3535 imp->convert4(value); | 3533 imp->convert4(value); |
3536 return v8Undefined(); | 3534 return v8Undefined(); |
3537 } | 3535 } |
3538 | 3536 |
3539 static v8::Handle<v8::Value> convert4MethodCallback(const v8::Arguments& args) | 3537 static v8::Handle<v8::Value> convert4MethodCallback(const v8::Arguments& args) |
3540 { | 3538 { |
3541 return TestObjV8Internal::convert4Method(args); | 3539 return TestObjV8Internal::convert4Method(args); |
3542 } | 3540 } |
3543 | 3541 |
3544 static v8::Handle<v8::Value> convert5Method(const v8::Arguments& args) | 3542 static v8::Handle<v8::Value> convert5Method(const v8::Arguments& args) |
3545 { | 3543 { |
3546 if (args.Length() < 1) | 3544 if (args.Length() < 1) |
3547 return throwNotEnoughArgumentsError(args.GetIsolate()); | 3545 return throwNotEnoughArgumentsError(args.GetIsolate()); |
3548 TestObj* imp = V8TestObj::toNative(args.Holder()); | 3546 TestObj* imp = V8TestObj::toNative(args.Holder()); |
3549 V8TRYCATCH(e*, value, V8e::HasInstance(args[0], args.GetIsolate(), worldType
(args.GetIsolate())) ? V8e::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0)
; | 3547 V8TRYCATCH(TestNode*, value, V8TestNode::HasInstance(args[0], args.GetIsolat
e(), worldType(args.GetIsolate())) ? V8TestNode::toNative(v8::Handle<v8::Object>
::Cast(args[0])) : 0); |
3550 imp->convert5(value); | 3548 imp->convert5(value); |
3551 return v8Undefined(); | 3549 return v8Undefined(); |
3552 } | 3550 } |
3553 | 3551 |
3554 static v8::Handle<v8::Value> convert5MethodCallback(const v8::Arguments& args) | 3552 static v8::Handle<v8::Value> convert5MethodCallback(const v8::Arguments& args) |
3555 { | 3553 { |
3556 return TestObjV8Internal::convert5Method(args); | 3554 return TestObjV8Internal::convert5Method(args); |
3557 } | 3555 } |
3558 | 3556 |
3559 static v8::Handle<v8::Value> mutablePointFunctionMethod(const v8::Arguments& arg
s) | 3557 static v8::Handle<v8::Value> mutablePointFunctionMethod(const v8::Arguments& arg
s) |
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4361 proto->Set(v8::String::NewSymbol("stringArrayFunction"), v8::FunctionTemplat
e::New(TestObjV8Internal::stringArrayFunctionMethodCallback, v8Undefined(), stri
ngArrayFunctionSignature, 1)); | 4359 proto->Set(v8::String::NewSymbol("stringArrayFunction"), v8::FunctionTemplat
e::New(TestObjV8Internal::stringArrayFunctionMethodCallback, v8Undefined(), stri
ngArrayFunctionSignature, 1)); |
4362 | 4360 |
4363 // Custom Signature 'domStringListFunction' | 4361 // Custom Signature 'domStringListFunction' |
4364 const int domStringListFunctionArgc = 1; | 4362 const int domStringListFunctionArgc = 1; |
4365 v8::Handle<v8::FunctionTemplate> domStringListFunctionArgv[domStringListFunc
tionArgc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8DOMStringList::inf
o, currentWorldType) }; | 4363 v8::Handle<v8::FunctionTemplate> domStringListFunctionArgv[domStringListFunc
tionArgc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8DOMStringList::inf
o, currentWorldType) }; |
4366 v8::Handle<v8::Signature> domStringListFunctionSignature = v8::Signature::Ne
w(desc, domStringListFunctionArgc, domStringListFunctionArgv); | 4364 v8::Handle<v8::Signature> domStringListFunctionSignature = v8::Signature::Ne
w(desc, domStringListFunctionArgc, domStringListFunctionArgv); |
4367 proto->Set(v8::String::NewSymbol("domStringListFunction"), v8::FunctionTempl
ate::New(TestObjV8Internal::domStringListFunctionMethodCallback, v8Undefined(),
domStringListFunctionSignature, 1)); | 4365 proto->Set(v8::String::NewSymbol("domStringListFunction"), v8::FunctionTempl
ate::New(TestObjV8Internal::domStringListFunctionMethodCallback, v8Undefined(),
domStringListFunctionSignature, 1)); |
4368 | 4366 |
4369 // Custom Signature 'convert1' | 4367 // Custom Signature 'convert1' |
4370 const int convert1Argc = 1; | 4368 const int convert1Argc = 1; |
4371 v8::Handle<v8::FunctionTemplate> convert1Argv[convert1Argc] = { V8PerIsolate
Data::from(isolate)->rawTemplate(&V8a::info, currentWorldType) }; | 4369 v8::Handle<v8::FunctionTemplate> convert1Argv[convert1Argc] = { V8PerIsolate
Data::from(isolate)->rawTemplate(&V8TestNode::info, currentWorldType) }; |
4372 v8::Handle<v8::Signature> convert1Signature = v8::Signature::New(desc, conve
rt1Argc, convert1Argv); | 4370 v8::Handle<v8::Signature> convert1Signature = v8::Signature::New(desc, conve
rt1Argc, convert1Argv); |
4373 proto->Set(v8::String::NewSymbol("convert1"), v8::FunctionTemplate::New(Test
ObjV8Internal::convert1MethodCallback, v8Undefined(), convert1Signature, 1)); | 4371 proto->Set(v8::String::NewSymbol("convert1"), v8::FunctionTemplate::New(Test
ObjV8Internal::convert1MethodCallback, v8Undefined(), convert1Signature, 1)); |
4374 | 4372 |
4375 // Custom Signature 'convert2' | 4373 // Custom Signature 'convert2' |
4376 const int convert2Argc = 1; | 4374 const int convert2Argc = 1; |
4377 v8::Handle<v8::FunctionTemplate> convert2Argv[convert2Argc] = { V8PerIsolate
Data::from(isolate)->rawTemplate(&V8b::info, currentWorldType) }; | 4375 v8::Handle<v8::FunctionTemplate> convert2Argv[convert2Argc] = { V8PerIsolate
Data::from(isolate)->rawTemplate(&V8TestNode::info, currentWorldType) }; |
4378 v8::Handle<v8::Signature> convert2Signature = v8::Signature::New(desc, conve
rt2Argc, convert2Argv); | 4376 v8::Handle<v8::Signature> convert2Signature = v8::Signature::New(desc, conve
rt2Argc, convert2Argv); |
4379 proto->Set(v8::String::NewSymbol("convert2"), v8::FunctionTemplate::New(Test
ObjV8Internal::convert2MethodCallback, v8Undefined(), convert2Signature, 1)); | 4377 proto->Set(v8::String::NewSymbol("convert2"), v8::FunctionTemplate::New(Test
ObjV8Internal::convert2MethodCallback, v8Undefined(), convert2Signature, 1)); |
4380 | 4378 |
4381 // Custom Signature 'convert4' | 4379 // Custom Signature 'convert4' |
4382 const int convert4Argc = 1; | 4380 const int convert4Argc = 1; |
4383 v8::Handle<v8::FunctionTemplate> convert4Argv[convert4Argc] = { V8PerIsolate
Data::from(isolate)->rawTemplate(&V8d::info, currentWorldType) }; | 4381 v8::Handle<v8::FunctionTemplate> convert4Argv[convert4Argc] = { V8PerIsolate
Data::from(isolate)->rawTemplate(&V8TestNode::info, currentWorldType) }; |
4384 v8::Handle<v8::Signature> convert4Signature = v8::Signature::New(desc, conve
rt4Argc, convert4Argv); | 4382 v8::Handle<v8::Signature> convert4Signature = v8::Signature::New(desc, conve
rt4Argc, convert4Argv); |
4385 proto->Set(v8::String::NewSymbol("convert4"), v8::FunctionTemplate::New(Test
ObjV8Internal::convert4MethodCallback, v8Undefined(), convert4Signature, 1)); | 4383 proto->Set(v8::String::NewSymbol("convert4"), v8::FunctionTemplate::New(Test
ObjV8Internal::convert4MethodCallback, v8Undefined(), convert4Signature, 1)); |
4386 | 4384 |
4387 // Custom Signature 'convert5' | 4385 // Custom Signature 'convert5' |
4388 const int convert5Argc = 1; | 4386 const int convert5Argc = 1; |
4389 v8::Handle<v8::FunctionTemplate> convert5Argv[convert5Argc] = { V8PerIsolate
Data::from(isolate)->rawTemplate(&V8e::info, currentWorldType) }; | 4387 v8::Handle<v8::FunctionTemplate> convert5Argv[convert5Argc] = { V8PerIsolate
Data::from(isolate)->rawTemplate(&V8TestNode::info, currentWorldType) }; |
4390 v8::Handle<v8::Signature> convert5Signature = v8::Signature::New(desc, conve
rt5Argc, convert5Argv); | 4388 v8::Handle<v8::Signature> convert5Signature = v8::Signature::New(desc, conve
rt5Argc, convert5Argv); |
4391 proto->Set(v8::String::NewSymbol("convert5"), v8::FunctionTemplate::New(Test
ObjV8Internal::convert5MethodCallback, v8Undefined(), convert5Signature, 1)); | 4389 proto->Set(v8::String::NewSymbol("convert5"), v8::FunctionTemplate::New(Test
ObjV8Internal::convert5MethodCallback, v8Undefined(), convert5Signature, 1)); |
4392 | 4390 |
4393 // Custom Signature 'variadicNodeMethod' | 4391 // Custom Signature 'variadicNodeMethod' |
4394 const int variadicNodeMethodArgc = 2; | 4392 const int variadicNodeMethodArgc = 2; |
4395 v8::Handle<v8::FunctionTemplate> variadicNodeMethodArgv[variadicNodeMethodAr
gc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8Node::info, currentWorld
Type), V8PerIsolateData::from(isolate)->rawTemplate(&V8Node::info, currentWorldT
ype) }; | 4393 v8::Handle<v8::FunctionTemplate> variadicNodeMethodArgv[variadicNodeMethodAr
gc] = { V8PerIsolateData::from(isolate)->rawTemplate(&V8Node::info, currentWorld
Type), V8PerIsolateData::from(isolate)->rawTemplate(&V8Node::info, currentWorldT
ype) }; |
4396 v8::Handle<v8::Signature> variadicNodeMethodSignature = v8::Signature::New(d
esc, variadicNodeMethodArgc, variadicNodeMethodArgv); | 4394 v8::Handle<v8::Signature> variadicNodeMethodSignature = v8::Signature::New(d
esc, variadicNodeMethodArgc, variadicNodeMethodArgv); |
4397 proto->Set(v8::String::NewSymbol("variadicNodeMethod"), v8::FunctionTemplate
::New(TestObjV8Internal::variadicNodeMethodMethodCallback, v8Undefined(), variad
icNodeMethodSignature, 2)); | 4395 proto->Set(v8::String::NewSymbol("variadicNodeMethod"), v8::FunctionTemplate
::New(TestObjV8Internal::variadicNodeMethodMethodCallback, v8Undefined(), variad
icNodeMethodSignature, 2)); |
4398 desc->Set(v8::String::NewSymbol("deprecatedStaticMethod"), v8::FunctionTempl
ate::New(TestObjV8Internal::deprecatedStaticMethodMethodCallback, v8Undefined(),
v8::Local<v8::Signature>(), 0)); | 4396 desc->Set(v8::String::NewSymbol("deprecatedStaticMethod"), v8::FunctionTempl
ate::New(TestObjV8Internal::deprecatedStaticMethodMethodCallback, v8Undefined(),
v8::Local<v8::Signature>(), 0)); |
4399 V8DOMConfiguration::batchConfigureConstants(desc, proto, V8TestObjConsts, WT
F_ARRAY_LENGTH(V8TestObjConsts), isolate); | 4397 V8DOMConfiguration::batchConfigureConstants(desc, proto, V8TestObjConsts, WT
F_ARRAY_LENGTH(V8TestObjConsts), isolate); |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4480 installPerContextProperties(wrapper, impl.get(), isolate); | 4478 installPerContextProperties(wrapper, impl.get(), isolate); |
4481 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD
ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep
endent); | 4479 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD
ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep
endent); |
4482 return wrapper; | 4480 return wrapper; |
4483 } | 4481 } |
4484 void V8TestObj::derefObject(void* object) | 4482 void V8TestObj::derefObject(void* object) |
4485 { | 4483 { |
4486 static_cast<TestObj*>(object)->deref(); | 4484 static_cast<TestObj*>(object)->deref(); |
4487 } | 4485 } |
4488 | 4486 |
4489 } // namespace WebCore | 4487 } // namespace WebCore |
OLD | NEW |