OLD | NEW |
1 /* | 1 /* |
2 This file is part of the WebKit open source project. | 2 This file is part of the WebKit open source project. |
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY! | 3 This file has been generated by generate-bindings.pl. 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 #if ENABLE(Condition1) || ENABLE(Condition2) | 22 #if ENABLE(Condition1) || ENABLE(Condition2) |
23 #include "V8TestInterface.h" | 23 #include "V8TestInterface.h" |
24 | 24 |
25 #include "BindingState.h" | 25 #include "BindingState.h" |
26 #include "ContextFeatures.h" | 26 #include "ContextFeatures.h" |
27 #include "ExceptionCode.h" | 27 #include "ExceptionCode.h" |
28 #include "Frame.h" | 28 #include "Frame.h" |
29 #include "RuntimeEnabledFeatures.h" | 29 #include "RuntimeEnabledFeatures.h" |
| 30 #include "ScriptController.h" |
30 #include "TestSupplemental.h" | 31 #include "TestSupplemental.h" |
31 #include "V8Binding.h" | 32 #include "V8Binding.h" |
32 #include "V8DOMWrapper.h" | 33 #include "V8DOMWrapper.h" |
33 #include "V8Node.h" | 34 #include "V8Node.h" |
34 #include "V8TestObj.h" | 35 #include "V8TestObj.h" |
35 #include <wtf/GetPtr.h> | 36 #include <wtf/GetPtr.h> |
36 #include <wtf/RefCounted.h> | 37 #include <wtf/RefCounted.h> |
37 #include <wtf/RefPtr.h> | 38 #include <wtf/RefPtr.h> |
38 #include <wtf/UnusedParam.h> | 39 #include <wtf/UnusedParam.h> |
39 | 40 |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 {"supplementalStr3", TestInterfaceV8Internal::supplementalStr3AttrGetterCall
back, TestInterfaceV8Internal::supplementalStr3AttrSetterCallback, 0, 0, 0 /* no
data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, | 377 {"supplementalStr3", TestInterfaceV8Internal::supplementalStr3AttrGetterCall
back, TestInterfaceV8Internal::supplementalStr3AttrSetterCallback, 0, 0, 0 /* no
data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, |
377 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 378 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
378 #if ENABLE(Condition11) || ENABLE(Condition12) | 379 #if ENABLE(Condition11) || ENABLE(Condition12) |
379 // Attribute 'supplementalNode' (Type: 'attribute' ExtAttr: 'Conditional Imp
lementedBy') | 380 // Attribute 'supplementalNode' (Type: 'attribute' ExtAttr: 'Conditional Imp
lementedBy') |
380 {"supplementalNode", TestInterfaceV8Internal::supplementalNodeAttrGetterCall
back, TestInterfaceV8Internal::supplementalNodeAttrSetterCallback, 0, 0, 0 /* no
data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, | 381 {"supplementalNode", TestInterfaceV8Internal::supplementalNodeAttrGetterCall
back, TestInterfaceV8Internal::supplementalNodeAttrSetterCallback, 0, 0, 0 /* no
data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, |
381 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 382 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
382 }; | 383 }; |
383 | 384 |
384 static const V8DOMConfiguration::BatchedMethod V8TestInterfaceMethods[] = { | 385 static const V8DOMConfiguration::BatchedMethod V8TestInterfaceMethods[] = { |
385 #if ENABLE(Condition11) || ENABLE(Condition12) | 386 #if ENABLE(Condition11) || ENABLE(Condition12) |
386 {"supplementalMethod1", TestInterfaceV8Internal::supplementalMethod1MethodCa
llback, 0}, | 387 {"supplementalMethod1", TestInterfaceV8Internal::supplementalMethod1MethodCa
llback, 0, 0}, |
387 #endif | 388 #endif |
388 #if ENABLE(Condition11) || ENABLE(Condition12) | 389 #if ENABLE(Condition11) || ENABLE(Condition12) |
389 {"supplementalMethod3", TestInterfaceV8Internal::supplementalMethod3MethodCa
llback, 0}, | 390 {"supplementalMethod3", TestInterfaceV8Internal::supplementalMethod3MethodCa
llback, 0, 0}, |
390 #endif | 391 #endif |
391 }; | 392 }; |
392 | 393 |
393 static const V8DOMConfiguration::BatchedConstant V8TestInterfaceConsts[] = { | 394 static const V8DOMConfiguration::BatchedConstant V8TestInterfaceConsts[] = { |
394 #if ENABLE(Condition11) || ENABLE(Condition12) | 395 #if ENABLE(Condition11) || ENABLE(Condition12) |
395 {"SUPPLEMENTALCONSTANT1", 1}, | 396 {"SUPPLEMENTALCONSTANT1", 1}, |
396 #endif | 397 #endif |
397 #if ENABLE(Condition11) || ENABLE(Condition12) | 398 #if ENABLE(Condition11) || ENABLE(Condition12) |
398 {"SUPPLEMENTALCONSTANT2", 2}, | 399 {"SUPPLEMENTALCONSTANT2", 2}, |
399 #endif | 400 #endif |
(...skipping 21 matching lines...) Expand all Loading... |
421 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestInterfaceTemplate(v8:
:Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType c
urrentWorldType) | 422 static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestInterfaceTemplate(v8:
:Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType c
urrentWorldType) |
422 { | 423 { |
423 desc->ReadOnlyPrototype(); | 424 desc->ReadOnlyPrototype(); |
424 | 425 |
425 v8::Local<v8::Signature> defaultSignature; | 426 v8::Local<v8::Signature> defaultSignature; |
426 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestInterfac
e", v8::Persistent<v8::FunctionTemplate>(), V8TestInterface::internalFieldCount, | 427 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestInterfac
e", v8::Persistent<v8::FunctionTemplate>(), V8TestInterface::internalFieldCount, |
427 V8TestInterfaceAttrs, WTF_ARRAY_LENGTH(V8TestInterfaceAttrs), | 428 V8TestInterfaceAttrs, WTF_ARRAY_LENGTH(V8TestInterfaceAttrs), |
428 V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods), isolat
e, currentWorldType); | 429 V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods), isolat
e, currentWorldType); |
429 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. | 430 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. |
430 desc->SetCallHandler(V8TestInterface::constructorCallback); | 431 desc->SetCallHandler(V8TestInterface::constructorCallback); |
| 432 desc->SetLength(1); |
431 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); | 433 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); |
432 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); | 434 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); |
433 UNUSED_PARAM(instance); // In some cases, it will not be used. | 435 UNUSED_PARAM(instance); // In some cases, it will not be used. |
434 UNUSED_PARAM(proto); // In some cases, it will not be used. | 436 UNUSED_PARAM(proto); // In some cases, it will not be used. |
435 | 437 |
436 // Custom Signature 'supplementalMethod2' | 438 // Custom Signature 'supplementalMethod2' |
437 const int supplementalMethod2Argc = 2; | 439 const int supplementalMethod2Argc = 2; |
438 v8::Handle<v8::FunctionTemplate> supplementalMethod2Argv[supplementalMethod2
Argc] = { v8::Handle<v8::FunctionTemplate>(), V8PerIsolateData::from(isolate)->r
awTemplate(&V8TestObj::info, currentWorldType) }; | 440 v8::Handle<v8::FunctionTemplate> supplementalMethod2Argv[supplementalMethod2
Argc] = { v8::Handle<v8::FunctionTemplate>(), V8PerIsolateData::from(isolate)->r
awTemplate(&V8TestObj::info, currentWorldType) }; |
439 v8::Handle<v8::Signature> supplementalMethod2Signature = v8::Signature::New(
desc, supplementalMethod2Argc, supplementalMethod2Argv); | 441 v8::Handle<v8::Signature> supplementalMethod2Signature = v8::Signature::New(
desc, supplementalMethod2Argc, supplementalMethod2Argv); |
440 #if ENABLE(Condition11) || ENABLE(Condition12) | 442 #if ENABLE(Condition11) || ENABLE(Condition12) |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 return wrapper; | 502 return wrapper; |
501 } | 503 } |
502 void V8TestInterface::derefObject(void* object) | 504 void V8TestInterface::derefObject(void* object) |
503 { | 505 { |
504 static_cast<TestInterface*>(object)->deref(); | 506 static_cast<TestInterface*>(object)->deref(); |
505 } | 507 } |
506 | 508 |
507 } // namespace WebCore | 509 } // namespace WebCore |
508 | 510 |
509 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 511 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
OLD | NEW |