| 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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 | 430 |
| 431 #if ENABLE(Condition11) || ENABLE(Condition12) | 431 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 432 | 432 |
| 433 static v8::Handle<v8::Value> supplementalMethod4MethodCallback(const v8::Argumen
ts& args) | 433 static v8::Handle<v8::Value> supplementalMethod4MethodCallback(const v8::Argumen
ts& args) |
| 434 { | 434 { |
| 435 return TestInterfaceV8Internal::supplementalMethod4Method(args); | 435 return TestInterfaceV8Internal::supplementalMethod4Method(args); |
| 436 } | 436 } |
| 437 | 437 |
| 438 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 438 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 439 | 439 |
| 440 static v8::Handle<v8::Value> constructor(const v8::Arguments& args) | 440 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& args) |
| 441 { | 441 { |
| 442 if (args.Length() < 1) | 442 if (args.Length() < 1) { |
| 443 return throwNotEnoughArgumentsError(args.GetIsolate()); | 443 throwNotEnoughArgumentsError(args.GetIsolate()); |
| 444 return; |
| 445 } |
| 444 ExceptionCode ec = 0; | 446 ExceptionCode ec = 0; |
| 445 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, str1, args[0]); | 447 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str1, args[0]); |
| 446 V8TRYCATCH_FOR_V8STRINGRESOURCE(V8StringResource<>, str2, args[1]); | 448 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str2, args[1]); |
| 447 | 449 |
| 448 ScriptExecutionContext* context = getScriptExecutionContext(); | 450 ScriptExecutionContext* context = getScriptExecutionContext(); |
| 449 | 451 |
| 450 RefPtr<TestInterface> impl = TestInterface::create(context, str1, str2, ec); | 452 RefPtr<TestInterface> impl = TestInterface::create(context, str1, str2, ec); |
| 451 v8::Handle<v8::Object> wrapper = args.Holder(); | 453 v8::Handle<v8::Object> wrapper = args.Holder(); |
| 452 if (ec) | 454 if (ec) { |
| 453 return setDOMException(ec, args.GetIsolate()); | 455 setDOMException(ec, args.GetIsolate()); |
| 456 return; |
| 457 } |
| 454 | 458 |
| 455 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestInterface::i
nfo, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); | 459 V8DOMWrapper::associateObjectWithWrapper(impl.release(), &V8TestInterface::i
nfo, wrapper, args.GetIsolate(), WrapperConfiguration::Dependent); |
| 456 return wrapper; | 460 args.GetReturnValue().Set(wrapper); |
| 457 } | 461 } |
| 458 | 462 |
| 459 } // namespace TestInterfaceV8Internal | 463 } // namespace TestInterfaceV8Internal |
| 460 | 464 |
| 461 static const V8DOMConfiguration::BatchedAttribute V8TestInterfaceAttrs[] = { | 465 static const V8DOMConfiguration::BatchedAttribute V8TestInterfaceAttrs[] = { |
| 462 #if ENABLE(Condition11) || ENABLE(Condition12) | 466 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 463 // Attribute 'supplementalStaticReadOnlyAttr' (Type: 'attribute' ExtAttr: 'C
onditional ImplementedBy') | 467 // Attribute 'supplementalStaticReadOnlyAttr' (Type: 'attribute' ExtAttr: 'C
onditional ImplementedBy') |
| 464 {"supplementalStaticReadOnlyAttr", TestInterfaceV8Internal::supplementalStat
icReadOnlyAttrAttrGetterCallback, 0, 0, 0, 0 /* no data */, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, | 468 {"supplementalStaticReadOnlyAttr", TestInterfaceV8Internal::supplementalStat
icReadOnlyAttrAttrGetterCallback, 0, 0, 0, 0 /* no data */, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i
nstance */}, |
| 465 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 469 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 466 #if ENABLE(Condition11) || ENABLE(Condition12) | 470 #if ENABLE(Condition11) || ENABLE(Condition12) |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 }; | 508 }; |
| 505 | 509 |
| 506 | 510 |
| 507 #if ENABLE(Condition11) || ENABLE(Condition12) | 511 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 508 COMPILE_ASSERT(1 == TestPartialInterface::SUPPLEMENTALCONSTANT1, TestInterfaceEn
umSUPPLEMENTALCONSTANT1IsWrongUseDoNotCheckConstants); | 512 COMPILE_ASSERT(1 == TestPartialInterface::SUPPLEMENTALCONSTANT1, TestInterfaceEn
umSUPPLEMENTALCONSTANT1IsWrongUseDoNotCheckConstants); |
| 509 #endif | 513 #endif |
| 510 #if ENABLE(Condition11) || ENABLE(Condition12) | 514 #if ENABLE(Condition11) || ENABLE(Condition12) |
| 511 COMPILE_ASSERT(2 == TestPartialInterface::CONST_IMPL, TestInterfaceEnumCONST_IMP
LIsWrongUseDoNotCheckConstants); | 515 COMPILE_ASSERT(2 == TestPartialInterface::CONST_IMPL, TestInterfaceEnumCONST_IMP
LIsWrongUseDoNotCheckConstants); |
| 512 #endif | 516 #endif |
| 513 | 517 |
| 514 v8::Handle<v8::Value> V8TestInterface::constructorCallback(const v8::Arguments&
args) | 518 void V8TestInterface::constructorCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& args) |
| 515 { | 519 { |
| 516 if (!args.IsConstructCall()) | 520 if (!args.IsConstructCall()) { |
| 517 return throwTypeError("DOM object constructor cannot be called as a func
tion.", args.GetIsolate()); | 521 throwTypeError("DOM object constructor cannot be called as a function.",
args.GetIsolate()); |
| 522 return; |
| 523 } |
| 518 | 524 |
| 519 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) | 525 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { |
| 520 return args.Holder(); | 526 args.GetReturnValue().Set(args.Holder()); |
| 527 return; |
| 528 } |
| 521 | 529 |
| 522 return TestInterfaceV8Internal::constructor(args); | 530 TestInterfaceV8Internal::constructor(args); |
| 523 } | 531 } |
| 524 | 532 |
| 525 v8::Handle<v8::Value> V8TestInterface::namedPropertyGetter(v8::Local<v8::String>
name, const v8::AccessorInfo& info) | 533 v8::Handle<v8::Value> V8TestInterface::namedPropertyGetter(v8::Local<v8::String>
name, const v8::AccessorInfo& info) |
| 526 { | 534 { |
| 527 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) | 535 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) |
| 528 return v8Undefined(); | 536 return v8Undefined(); |
| 529 if (info.Holder()->HasRealNamedCallbackProperty(name)) | 537 if (info.Holder()->HasRealNamedCallbackProperty(name)) |
| 530 return v8Undefined(); | 538 return v8Undefined(); |
| 531 | 539 |
| 532 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); | 540 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 return wrapper; | 665 return wrapper; |
| 658 } | 666 } |
| 659 void V8TestInterface::derefObject(void* object) | 667 void V8TestInterface::derefObject(void* object) |
| 660 { | 668 { |
| 661 static_cast<TestInterface*>(object)->deref(); | 669 static_cast<TestInterface*>(object)->deref(); |
| 662 } | 670 } |
| 663 | 671 |
| 664 } // namespace WebCore | 672 } // namespace WebCore |
| 665 | 673 |
| 666 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 674 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
| OLD | NEW |