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 #if ENABLE(Condition1) || ENABLE(Condition2) | 22 #if ENABLE(Condition1) || ENABLE(Condition2) |
23 #include "V8TestInterface.h" | 23 #include "V8TestInterface.h" |
24 | 24 |
25 #include "RuntimeEnabledFeatures.h" | 25 #include "RuntimeEnabledFeatures.h" |
26 #include "V8Node.h" | 26 #include "V8Node.h" |
27 #include "V8TestObj.h" | 27 #include "V8TestObject.h" |
28 #include "bindings/bindings/tests/idls/TestPartialInterface.h" | 28 #include "bindings/bindings/tests/idls/TestPartialInterface.h" |
29 #include "bindings/v8/ScriptController.h" | 29 #include "bindings/v8/ScriptController.h" |
30 #include "bindings/v8/V8Binding.h" | 30 #include "bindings/v8/V8Binding.h" |
31 #include "bindings/v8/V8DOMConfiguration.h" | 31 #include "bindings/v8/V8DOMConfiguration.h" |
32 #include "bindings/v8/V8DOMWrapper.h" | 32 #include "bindings/v8/V8DOMWrapper.h" |
33 #include "bindings/v8/V8ObjectConstructor.h" | 33 #include "bindings/v8/V8ObjectConstructor.h" |
34 #include "core/dom/ContextFeatures.h" | 34 #include "core/dom/ContextFeatures.h" |
35 #include "core/dom/Document.h" | 35 #include "core/dom/Document.h" |
36 #include "core/dom/ExceptionCode.h" | 36 #include "core/dom/ExceptionCode.h" |
37 #include "core/page/Frame.h" | 37 #include "core/page/Frame.h" |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 #if ENABLE(Condition11) || ENABLE(Condition12) | 412 #if ENABLE(Condition11) || ENABLE(Condition12) |
413 | 413 |
414 static v8::Handle<v8::Value> supplementalMethod2Method(const v8::Arguments& args
) | 414 static v8::Handle<v8::Value> supplementalMethod2Method(const v8::Arguments& args
) |
415 { | 415 { |
416 if (args.Length() < 2) | 416 if (args.Length() < 2) |
417 return throwNotEnoughArgumentsError(args.GetIsolate()); | 417 return throwNotEnoughArgumentsError(args.GetIsolate()); |
418 TestInterface* imp = V8TestInterface::toNative(args.Holder()); | 418 TestInterface* imp = V8TestInterface::toNative(args.Holder()); |
419 ExceptionCode ec = 0; | 419 ExceptionCode ec = 0; |
420 { | 420 { |
421 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, strArg, args[0]); | 421 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, strArg, args[0]); |
422 V8TRYCATCH(TestObj*, objArg, V8TestObj::HasInstance(args[1], args.GetIsolate
(), worldType(args.GetIsolate())) ? V8TestObj::toNative(v8::Handle<v8::Object>::
Cast(args[1])) : 0); | 422 V8TRYCATCH(TestObj*, objArg, V8TestObject::HasInstance(args[1], args.GetIsol
ate(), worldType(args.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8::Obj
ect>::Cast(args[1])) : 0); |
423 ScriptExecutionContext* scriptContext = getScriptExecutionContext(); | 423 ScriptExecutionContext* scriptContext = getScriptExecutionContext(); |
424 RefPtr<TestObj> result = TestPartialInterface::supplementalMethod2(scriptCon
text, imp, strArg, objArg, ec); | 424 RefPtr<TestObj> result = TestPartialInterface::supplementalMethod2(scriptCon
text, imp, strArg, objArg, ec); |
425 if (UNLIKELY(ec)) | 425 if (UNLIKELY(ec)) |
426 goto fail; | 426 goto fail; |
427 return toV8(result.release(), args.Holder(), args.GetIsolate()); | 427 return toV8(result.release(), args.Holder(), args.GetIsolate()); |
428 } | 428 } |
429 fail: | 429 fail: |
430 return setDOMException(ec, args.GetIsolate()); | 430 return setDOMException(ec, args.GetIsolate()); |
431 } | 431 } |
432 | 432 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 static const V8DOMConfiguration::BatchedAttribute attrData =\ | 578 static const V8DOMConfiguration::BatchedAttribute attrData =\ |
579 // Attribute 'Node13' (Type: 'attribute' ExtAttr: 'EnabledAtRuntime Cond
itional ImplementedBy') | 579 // Attribute 'Node13' (Type: 'attribute' ExtAttr: 'EnabledAtRuntime Cond
itional ImplementedBy') |
580 {"Node13", TestInterfaceV8Internal::Node13AttrGetterCallback, TestInterf
aceV8Internal::Node13AttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}; | 580 {"Node13", TestInterfaceV8Internal::Node13AttrGetterCallback, TestInterf
aceV8Internal::Node13AttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}; |
581 V8DOMConfiguration::configureAttribute(instance, proto, attrData, isolat
e, currentWorldType); | 581 V8DOMConfiguration::configureAttribute(instance, proto, attrData, isolat
e, currentWorldType); |
582 } | 582 } |
583 | 583 |
584 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 584 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
585 | 585 |
586 // Custom Signature 'supplementalMethod2' | 586 // Custom Signature 'supplementalMethod2' |
587 const int supplementalMethod2Argc = 2; | 587 const int supplementalMethod2Argc = 2; |
588 v8::Handle<v8::FunctionTemplate> supplementalMethod2Argv[supplementalMethod2
Argc] = { v8::Handle<v8::FunctionTemplate>(), V8PerIsolateData::from(isolate)->r
awTemplate(&V8TestObj::info, currentWorldType) }; | 588 v8::Handle<v8::FunctionTemplate> supplementalMethod2Argv[supplementalMethod2
Argc] = { v8::Handle<v8::FunctionTemplate>(), V8PerIsolateData::from(isolate)->r
awTemplate(&V8TestObject::info, currentWorldType) }; |
589 v8::Handle<v8::Signature> supplementalMethod2Signature = v8::Signature::New(
desc, supplementalMethod2Argc, supplementalMethod2Argv); | 589 v8::Handle<v8::Signature> supplementalMethod2Signature = v8::Signature::New(
desc, supplementalMethod2Argc, supplementalMethod2Argv); |
590 #if ENABLE(Condition11) || ENABLE(Condition12) | 590 #if ENABLE(Condition11) || ENABLE(Condition12) |
591 proto->Set(v8::String::NewSymbol("supplementalMethod2"), v8::FunctionTemplat
e::New(TestInterfaceV8Internal::supplementalMethod2MethodCallback, v8Undefined()
, supplementalMethod2Signature, 2)); | 591 proto->Set(v8::String::NewSymbol("supplementalMethod2"), v8::FunctionTemplat
e::New(TestInterfaceV8Internal::supplementalMethod2MethodCallback, v8Undefined()
, supplementalMethod2Signature, 2)); |
592 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 592 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
593 #if ENABLE(Condition11) || ENABLE(Condition12) | 593 #if ENABLE(Condition11) || ENABLE(Condition12) |
594 desc->Set(v8::String::NewSymbol("supplementalMethod4"), v8::FunctionTemplate
::New(TestInterfaceV8Internal::supplementalMethod4MethodCallback, v8Undefined(),
v8::Local<v8::Signature>(), 0)); | 594 desc->Set(v8::String::NewSymbol("supplementalMethod4"), v8::FunctionTemplate
::New(TestInterfaceV8Internal::supplementalMethod4MethodCallback, v8Undefined(),
v8::Local<v8::Signature>(), 0)); |
595 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 595 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
596 V8DOMConfiguration::batchConfigureConstants(desc, proto, V8TestInterfaceCons
ts, WTF_ARRAY_LENGTH(V8TestInterfaceConsts), isolate); | 596 V8DOMConfiguration::batchConfigureConstants(desc, proto, V8TestInterfaceCons
ts, WTF_ARRAY_LENGTH(V8TestInterfaceConsts), isolate); |
597 | 597 |
598 // Custom toString template | 598 // Custom toString template |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 return wrapper; | 673 return wrapper; |
674 } | 674 } |
675 void V8TestInterface::derefObject(void* object) | 675 void V8TestInterface::derefObject(void* object) |
676 { | 676 { |
677 static_cast<TestInterface*>(object)->deref(); | 677 static_cast<TestInterface*>(object)->deref(); |
678 } | 678 } |
679 | 679 |
680 } // namespace WebCore | 680 } // namespace WebCore |
681 | 681 |
682 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 682 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
OLD | NEW |