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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 | 364 |
365 #if ENABLE(Condition11) || ENABLE(Condition12) | 365 #if ENABLE(Condition11) || ENABLE(Condition12) |
366 | 366 |
367 static void Node15AttrSetterCallback(v8::Local<v8::String> name, v8::Local<v8::V
alue> value, const v8::PropertyCallbackInfo<void>& info) | 367 static void Node15AttrSetterCallback(v8::Local<v8::String> name, v8::Local<v8::V
alue> value, const v8::PropertyCallbackInfo<void>& info) |
368 { | 368 { |
369 TestInterfaceV8Internal::Node15AttrSetter(name, value, info); | 369 TestInterfaceV8Internal::Node15AttrSetter(name, value, info); |
370 } | 370 } |
371 | 371 |
372 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 372 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
373 | 373 |
| 374 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 375 |
| 376 static void implementsStaticReadOnlyAttrAttrGetter(v8::Local<v8::String> name, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
| 377 { |
| 378 v8SetReturnValueInt(info, TestInterface::implementsStaticReadOnlyAttr()); |
| 379 return; |
| 380 } |
| 381 |
| 382 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 383 |
| 384 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 385 |
| 386 static void implementsStaticReadOnlyAttrAttrGetterCallback(v8::Local<v8::String>
name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 387 { |
| 388 TestInterfaceV8Internal::implementsStaticReadOnlyAttrAttrGetter(name, info); |
| 389 } |
| 390 |
| 391 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 392 |
| 393 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 394 |
| 395 static void implementsStaticAttrAttrGetter(v8::Local<v8::String> name, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
| 396 { |
| 397 v8SetReturnValue(info, v8String(TestInterface::implementsStaticAttr(), info.
GetIsolate(), ReturnUnsafeHandle)); |
| 398 return; |
| 399 } |
| 400 |
| 401 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 402 |
| 403 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 404 |
| 405 static void implementsStaticAttrAttrGetterCallback(v8::Local<v8::String> name, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
| 406 { |
| 407 TestInterfaceV8Internal::implementsStaticAttrAttrGetter(name, info); |
| 408 } |
| 409 |
| 410 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 411 |
| 412 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 413 |
| 414 static void implementsStaticAttrAttrSetter(v8::Local<v8::String> name, v8::Local
<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 415 { |
| 416 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, v, value); |
| 417 TestInterface::setImplementsStaticAttr(v); |
| 418 return; |
| 419 } |
| 420 |
| 421 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 422 |
| 423 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 424 |
| 425 static void implementsStaticAttrAttrSetterCallback(v8::Local<v8::String> name, v
8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 426 { |
| 427 TestInterfaceV8Internal::implementsStaticAttrAttrSetter(name, value, info); |
| 428 } |
| 429 |
| 430 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 431 |
| 432 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 433 |
| 434 static void implementsStr1AttrGetter(v8::Local<v8::String> name, const v8::Prope
rtyCallbackInfo<v8::Value>& info) |
| 435 { |
| 436 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 437 v8SetReturnValue(info, v8String(imp->implementsStr1(), info.GetIsolate(), Re
turnUnsafeHandle)); |
| 438 return; |
| 439 } |
| 440 |
| 441 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 442 |
| 443 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 444 |
| 445 static void implementsStr1AttrGetterCallback(v8::Local<v8::String> name, const v
8::PropertyCallbackInfo<v8::Value>& info) |
| 446 { |
| 447 TestInterfaceV8Internal::implementsStr1AttrGetter(name, info); |
| 448 } |
| 449 |
| 450 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 451 |
| 452 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 453 |
| 454 static void implementsStr2AttrGetter(v8::Local<v8::String> name, const v8::Prope
rtyCallbackInfo<v8::Value>& info) |
| 455 { |
| 456 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 457 v8SetReturnValue(info, v8String(imp->implementsStr2(), info.GetIsolate(), Re
turnUnsafeHandle)); |
| 458 return; |
| 459 } |
| 460 |
| 461 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 462 |
| 463 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 464 |
| 465 static void implementsStr2AttrGetterCallback(v8::Local<v8::String> name, const v
8::PropertyCallbackInfo<v8::Value>& info) |
| 466 { |
| 467 TestInterfaceV8Internal::implementsStr2AttrGetter(name, info); |
| 468 } |
| 469 |
| 470 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 471 |
| 472 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 473 |
| 474 static void implementsStr2AttrSetter(v8::Local<v8::String> name, v8::Local<v8::V
alue> value, const v8::PropertyCallbackInfo<void>& info) |
| 475 { |
| 476 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 477 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, v, value); |
| 478 imp->setImplementsStr2(v); |
| 479 return; |
| 480 } |
| 481 |
| 482 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 483 |
| 484 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 485 |
| 486 static void implementsStr2AttrSetterCallback(v8::Local<v8::String> name, v8::Loc
al<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 487 { |
| 488 TestInterfaceV8Internal::implementsStr2AttrSetter(name, value, info); |
| 489 } |
| 490 |
| 491 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 492 |
| 493 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 494 |
| 495 static void implementsStr3AttrGetterCallback(v8::Local<v8::String> name, const v
8::PropertyCallbackInfo<v8::Value>& info) |
| 496 { |
| 497 V8TestInterface::implementsStr3AttrGetterCustom(name, info); |
| 498 } |
| 499 |
| 500 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 501 |
| 502 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 503 |
| 504 static void implementsStr3AttrSetterCallback(v8::Local<v8::String> name, v8::Loc
al<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 505 { |
| 506 V8TestInterface::implementsStr3AttrSetterCustom(name, value, info); |
| 507 } |
| 508 |
| 509 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 510 |
| 511 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 512 |
| 513 static void implementsNodeAttrGetter(v8::Local<v8::String> name, const v8::Prope
rtyCallbackInfo<v8::Value>& info) |
| 514 { |
| 515 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 516 v8SetReturnValue(info, toV8Fast(imp->implementsNode(), info, imp)); |
| 517 return; |
| 518 } |
| 519 |
| 520 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 521 |
| 522 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 523 |
| 524 static void implementsNodeAttrGetterCallback(v8::Local<v8::String> name, const v
8::PropertyCallbackInfo<v8::Value>& info) |
| 525 { |
| 526 TestInterfaceV8Internal::implementsNodeAttrGetter(name, info); |
| 527 } |
| 528 |
| 529 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 530 |
| 531 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 532 |
| 533 static void implementsNodeAttrSetter(v8::Local<v8::String> name, v8::Local<v8::V
alue> value, const v8::PropertyCallbackInfo<void>& info) |
| 534 { |
| 535 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 536 V8TRYCATCH_VOID(Node*, v, V8Node::HasInstance(value, info.GetIsolate(), worl
dType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(value)
) : 0); |
| 537 imp->setImplementsNode(WTF::getPtr(v)); |
| 538 return; |
| 539 } |
| 540 |
| 541 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 542 |
| 543 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 544 |
| 545 static void implementsNodeAttrSetterCallback(v8::Local<v8::String> name, v8::Loc
al<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 546 { |
| 547 TestInterfaceV8Internal::implementsNodeAttrSetter(name, value, info); |
| 548 } |
| 549 |
| 550 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 551 |
| 552 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 553 |
| 554 static void Node23AttrGetter(v8::Local<v8::String> name, const v8::PropertyCallb
ackInfo<v8::Value>& info) |
| 555 { |
| 556 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 557 v8SetReturnValue(info, toV8Fast(imp->node23(), info, imp)); |
| 558 return; |
| 559 } |
| 560 |
| 561 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 562 |
| 563 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 564 |
| 565 static void Node23AttrGetterCallback(v8::Local<v8::String> name, const v8::Prope
rtyCallbackInfo<v8::Value>& info) |
| 566 { |
| 567 TestInterfaceV8Internal::Node23AttrGetter(name, info); |
| 568 } |
| 569 |
| 570 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 571 |
| 572 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 573 |
| 574 static void Node23AttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> va
lue, const v8::PropertyCallbackInfo<void>& info) |
| 575 { |
| 576 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 577 V8TRYCATCH_VOID(Node*, v, V8Node::HasInstance(value, info.GetIsolate(), worl
dType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(value)
) : 0); |
| 578 imp->setNode23(WTF::getPtr(v)); |
| 579 return; |
| 580 } |
| 581 |
| 582 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 583 |
| 584 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 585 |
| 586 static void Node23AttrSetterCallback(v8::Local<v8::String> name, v8::Local<v8::V
alue> value, const v8::PropertyCallbackInfo<void>& info) |
| 587 { |
| 588 TestInterfaceV8Internal::Node23AttrSetter(name, value, info); |
| 589 } |
| 590 |
| 591 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 592 |
| 593 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 594 |
| 595 static void Node24AttrGetter(v8::Local<v8::String> name, const v8::PropertyCallb
ackInfo<v8::Value>& info) |
| 596 { |
| 597 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 598 v8SetReturnValue(info, toV8Fast(imp->node24(), info, imp)); |
| 599 return; |
| 600 } |
| 601 |
| 602 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 603 |
| 604 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 605 |
| 606 static void Node24AttrGetterCallback(v8::Local<v8::String> name, const v8::Prope
rtyCallbackInfo<v8::Value>& info) |
| 607 { |
| 608 TestInterfaceV8Internal::Node24AttrGetter(name, info); |
| 609 } |
| 610 |
| 611 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 612 |
| 613 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 614 |
| 615 static void Node24AttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> va
lue, const v8::PropertyCallbackInfo<void>& info) |
| 616 { |
| 617 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 618 V8TRYCATCH_VOID(Node*, v, V8Node::HasInstance(value, info.GetIsolate(), worl
dType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(value)
) : 0); |
| 619 imp->setNode24(WTF::getPtr(v)); |
| 620 return; |
| 621 } |
| 622 |
| 623 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 624 |
| 625 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 626 |
| 627 static void Node24AttrSetterCallback(v8::Local<v8::String> name, v8::Local<v8::V
alue> value, const v8::PropertyCallbackInfo<void>& info) |
| 628 { |
| 629 TestInterfaceV8Internal::Node24AttrSetter(name, value, info); |
| 630 } |
| 631 |
| 632 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 633 |
| 634 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 635 |
| 636 static void Node25AttrGetter(v8::Local<v8::String> name, const v8::PropertyCallb
ackInfo<v8::Value>& info) |
| 637 { |
| 638 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 639 v8SetReturnValue(info, toV8Fast(imp->node25(), info, imp)); |
| 640 return; |
| 641 } |
| 642 |
| 643 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 644 |
| 645 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 646 |
| 647 static void Node25AttrGetterCallback(v8::Local<v8::String> name, const v8::Prope
rtyCallbackInfo<v8::Value>& info) |
| 648 { |
| 649 TestInterfaceV8Internal::Node25AttrGetter(name, info); |
| 650 } |
| 651 |
| 652 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 653 |
| 654 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 655 |
| 656 static void Node25AttrSetter(v8::Local<v8::String> name, v8::Local<v8::Value> va
lue, const v8::PropertyCallbackInfo<void>& info) |
| 657 { |
| 658 TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
| 659 V8TRYCATCH_VOID(Node*, v, V8Node::HasInstance(value, info.GetIsolate(), worl
dType(info.GetIsolate())) ? V8Node::toNative(v8::Handle<v8::Object>::Cast(value)
) : 0); |
| 660 imp->setNode25(WTF::getPtr(v)); |
| 661 return; |
| 662 } |
| 663 |
| 664 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 665 |
| 666 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 667 |
| 668 static void Node25AttrSetterCallback(v8::Local<v8::String> name, v8::Local<v8::V
alue> value, const v8::PropertyCallbackInfo<void>& info) |
| 669 { |
| 670 TestInterfaceV8Internal::Node25AttrSetter(name, value, info); |
| 671 } |
| 672 |
| 673 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 674 |
374 #if ENABLE(Condition11) || ENABLE(Condition12) | 675 #if ENABLE(Condition11) || ENABLE(Condition12) |
375 | 676 |
376 static void supplementalMethod1Method(const v8::FunctionCallbackInfo<v8::Value>&
args) | 677 static void supplementalMethod1Method(const v8::FunctionCallbackInfo<v8::Value>&
args) |
377 { | 678 { |
378 TestInterface* imp = V8TestInterface::toNative(args.Holder()); | 679 TestInterface* imp = V8TestInterface::toNative(args.Holder()); |
379 TestPartialInterface::supplementalMethod1(imp); | 680 TestPartialInterface::supplementalMethod1(imp); |
380 | 681 |
381 return; | 682 return; |
382 } | 683 } |
383 | 684 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 | 748 |
448 #if ENABLE(Condition11) || ENABLE(Condition12) | 749 #if ENABLE(Condition11) || ENABLE(Condition12) |
449 | 750 |
450 static void supplementalMethod4MethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& args) | 751 static void supplementalMethod4MethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& args) |
451 { | 752 { |
452 TestInterfaceV8Internal::supplementalMethod4Method(args); | 753 TestInterfaceV8Internal::supplementalMethod4Method(args); |
453 } | 754 } |
454 | 755 |
455 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 756 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
456 | 757 |
| 758 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 759 |
| 760 static void implementsMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) |
| 761 { |
| 762 TestInterface* imp = V8TestInterface::toNative(args.Holder()); |
| 763 imp->implementsMethod1(); |
| 764 |
| 765 return; |
| 766 } |
| 767 |
| 768 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 769 |
| 770 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 771 |
| 772 static void implementsMethod1MethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& args) |
| 773 { |
| 774 TestInterfaceV8Internal::implementsMethod1Method(args); |
| 775 } |
| 776 |
| 777 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 778 |
| 779 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 780 |
| 781 static void implementsMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) |
| 782 { |
| 783 if (args.Length() < 2) { |
| 784 throwNotEnoughArgumentsError(args.GetIsolate()); |
| 785 return; |
| 786 } |
| 787 TestInterface* imp = V8TestInterface::toNative(args.Holder()); |
| 788 ExceptionCode ec = 0; |
| 789 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, args[0]); |
| 790 V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::HasInstance(args[1], args.Ge
tIsolate(), worldType(args.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8
::Object>::Cast(args[1])) : 0); |
| 791 ScriptExecutionContext* scriptContext = getScriptExecutionContext(); |
| 792 RefPtr<TestObj> result = imp->implementsMethod2(scriptContext, strArg, objAr
g, ec); |
| 793 if (UNLIKELY(ec)) { |
| 794 setDOMException(ec, args.GetIsolate()); |
| 795 return; |
| 796 } |
| 797 v8SetReturnValue(args, toV8(result.release(), args.Holder(), args.GetIsolate
())); |
| 798 return; |
| 799 } |
| 800 |
| 801 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 802 |
| 803 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 804 |
| 805 static void implementsMethod2MethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& args) |
| 806 { |
| 807 TestInterfaceV8Internal::implementsMethod2Method(args); |
| 808 } |
| 809 |
| 810 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 811 |
| 812 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 813 |
| 814 static void implementsMethod3MethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& args) |
| 815 { |
| 816 V8TestInterface::implementsMethod3MethodCustom(args); |
| 817 } |
| 818 |
| 819 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 820 |
| 821 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 822 |
| 823 static void implementsMethod4Method(const v8::FunctionCallbackInfo<v8::Value>& a
rgs) |
| 824 { |
| 825 TestInterface::implementsMethod4(); |
| 826 |
| 827 return; |
| 828 } |
| 829 |
| 830 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 831 |
| 832 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 833 |
| 834 static void implementsMethod4MethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& args) |
| 835 { |
| 836 TestInterfaceV8Internal::implementsMethod4Method(args); |
| 837 } |
| 838 |
| 839 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 840 |
457 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& args) | 841 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& args) |
458 { | 842 { |
459 if (args.Length() < 1) { | 843 if (args.Length() < 1) { |
460 throwNotEnoughArgumentsError(args.GetIsolate()); | 844 throwNotEnoughArgumentsError(args.GetIsolate()); |
461 return; | 845 return; |
462 } | 846 } |
463 ExceptionCode ec = 0; | 847 ExceptionCode ec = 0; |
464 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str1, args[0]); | 848 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str1, args[0]); |
465 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str2, args[1]); | 849 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str2, args[1]); |
466 | 850 |
(...skipping 30 matching lines...) Expand all Loading... |
497 {"supplementalStr2", TestInterfaceV8Internal::supplementalStr2AttrGetterCall
back, TestInterfaceV8Internal::supplementalStr2AttrSetterCallback, 0, 0, 0 /* no
data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, | 881 {"supplementalStr2", TestInterfaceV8Internal::supplementalStr2AttrGetterCall
back, TestInterfaceV8Internal::supplementalStr2AttrSetterCallback, 0, 0, 0 /* no
data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), 0 /* on instance */}, |
498 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 882 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
499 #if ENABLE(Condition11) || ENABLE(Condition12) | 883 #if ENABLE(Condition11) || ENABLE(Condition12) |
500 // Attribute 'supplementalStr3' | 884 // Attribute 'supplementalStr3' |
501 {"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 */}, | 885 {"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 */}, |
502 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 886 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
503 #if ENABLE(Condition11) || ENABLE(Condition12) | 887 #if ENABLE(Condition11) || ENABLE(Condition12) |
504 // Attribute 'supplementalNode' | 888 // Attribute 'supplementalNode' |
505 {"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 */}, | 889 {"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 */}, |
506 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 890 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 891 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 892 // Attribute 'implementsStaticReadOnlyAttr' |
| 893 {"implementsStaticReadOnlyAttr", TestInterfaceV8Internal::implementsStaticRe
adOnlyAttrAttrGetterCallback, 0, 0, 0, 0 /* no data */, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta
nce */}, |
| 894 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 895 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 896 // Attribute 'implementsStaticAttr' |
| 897 {"implementsStaticAttr", TestInterfaceV8Internal::implementsStaticAttrAttrGe
tterCallback, TestInterfaceV8Internal::implementsStaticAttrAttrSetterCallback, 0
, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 898 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 899 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 900 // Attribute 'implementsStr1' |
| 901 {"implementsStr1", TestInterfaceV8Internal::implementsStr1AttrGetterCallback
, 0, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_
cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
| 902 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 903 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 904 // Attribute 'implementsStr2' |
| 905 {"implementsStr2", TestInterfaceV8Internal::implementsStr2AttrGetterCallback
, TestInterfaceV8Internal::implementsStr2AttrSetterCallback, 0, 0, 0 /* no data
*/, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, |
| 906 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 907 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 908 // Attribute 'implementsStr3' |
| 909 {"implementsStr3", TestInterfaceV8Internal::implementsStr3AttrGetterCallback
, TestInterfaceV8Internal::implementsStr3AttrSetterCallback, 0, 0, 0 /* no data
*/, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, |
| 910 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 911 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 912 // Attribute 'implementsNode' |
| 913 {"implementsNode", TestInterfaceV8Internal::implementsNodeAttrGetterCallback
, TestInterfaceV8Internal::implementsNodeAttrSetterCallback, 0, 0, 0 /* no data
*/, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), 0 /* on instance */}, |
| 914 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
507 }; | 915 }; |
508 | 916 |
509 static const V8DOMConfiguration::BatchedMethod V8TestInterfaceMethods[] = { | 917 static const V8DOMConfiguration::BatchedMethod V8TestInterfaceMethods[] = { |
510 #if ENABLE(Condition11) || ENABLE(Condition12) | 918 #if ENABLE(Condition11) || ENABLE(Condition12) |
511 {"supplementalMethod1", TestInterfaceV8Internal::supplementalMethod1MethodCa
llback, 0, 0}, | 919 {"supplementalMethod1", TestInterfaceV8Internal::supplementalMethod1MethodCa
llback, 0, 0}, |
512 #endif | 920 #endif |
513 #if ENABLE(Condition11) || ENABLE(Condition12) | 921 #if ENABLE(Condition11) || ENABLE(Condition12) |
514 {"supplementalMethod3", TestInterfaceV8Internal::supplementalMethod3MethodCa
llback, 0, 0}, | 922 {"supplementalMethod3", TestInterfaceV8Internal::supplementalMethod3MethodCa
llback, 0, 0}, |
515 #endif | 923 #endif |
| 924 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 925 {"implementsMethod1", TestInterfaceV8Internal::implementsMethod1MethodCallba
ck, 0, 0}, |
| 926 #endif |
| 927 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 928 {"implementsMethod3", TestInterfaceV8Internal::implementsMethod3MethodCallba
ck, 0, 0}, |
| 929 #endif |
516 }; | 930 }; |
517 | 931 |
518 static const V8DOMConfiguration::BatchedConstant V8TestInterfaceConsts[] = { | 932 static const V8DOMConfiguration::BatchedConstant V8TestInterfaceConsts[] = { |
519 #if ENABLE(Condition11) || ENABLE(Condition12) | 933 #if ENABLE(Condition11) || ENABLE(Condition12) |
520 {"SUPPLEMENTALCONSTANT1", 1}, | 934 {"SUPPLEMENTALCONSTANT1", 1}, |
521 #endif | 935 #endif |
522 #if ENABLE(Condition11) || ENABLE(Condition12) | 936 #if ENABLE(Condition11) || ENABLE(Condition12) |
523 {"SUPPLEMENTALCONSTANT2", 2}, | 937 {"SUPPLEMENTALCONSTANT2", 2}, |
524 #endif | 938 #endif |
| 939 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 940 {"IMPLEMENTSCONSTANT1", 1}, |
| 941 #endif |
| 942 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 943 {"IMPLEMENTSCONSTANT2", 2}, |
| 944 #endif |
525 }; | 945 }; |
526 | 946 |
527 | 947 |
528 #if ENABLE(Condition11) || ENABLE(Condition12) | 948 #if ENABLE(Condition11) || ENABLE(Condition12) |
529 COMPILE_ASSERT(1 == TestPartialInterface::SUPPLEMENTALCONSTANT1, TestInterfaceEn
umSUPPLEMENTALCONSTANT1IsWrongUseDoNotCheckConstants); | 949 COMPILE_ASSERT(1 == TestPartialInterface::SUPPLEMENTALCONSTANT1, TestInterfaceEn
umSUPPLEMENTALCONSTANT1IsWrongUseDoNotCheckConstants); |
530 #endif | 950 #endif |
531 #if ENABLE(Condition11) || ENABLE(Condition12) | 951 #if ENABLE(Condition11) || ENABLE(Condition12) |
532 COMPILE_ASSERT(2 == TestPartialInterface::CONST_IMPL, TestInterfaceEnumCONST_IMP
LIsWrongUseDoNotCheckConstants); | 952 COMPILE_ASSERT(2 == TestPartialInterface::CONST_IMPL, TestInterfaceEnumCONST_IMP
LIsWrongUseDoNotCheckConstants); |
533 #endif | 953 #endif |
| 954 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 955 COMPILE_ASSERT(1 == TestInterface::IMPLEMENTSCONSTANT1, TestInterfaceEnumIMPLEME
NTSCONSTANT1IsWrongUseDoNotCheckConstants); |
| 956 #endif |
| 957 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 958 COMPILE_ASSERT(2 == TestInterface::CONST_IMPL, TestInterfaceEnumCONST_IMPLIsWron
gUseDoNotCheckConstants); |
| 959 #endif |
534 | 960 |
535 void V8TestInterface::constructorCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& args) | 961 void V8TestInterface::constructorCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& args) |
536 { | 962 { |
537 if (!args.IsConstructCall()) { | 963 if (!args.IsConstructCall()) { |
538 throwTypeError("DOM object constructor cannot be called as a function.",
args.GetIsolate()); | 964 throwTypeError("DOM object constructor cannot be called as a function.",
args.GetIsolate()); |
539 return; | 965 return; |
540 } | 966 } |
541 | 967 |
542 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { | 968 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { |
543 args.GetReturnValue().Set(args.Holder()); | 969 args.GetReturnValue().Set(args.Holder()); |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
626 | 1052 |
627 #if ENABLE(Condition11) || ENABLE(Condition12) | 1053 #if ENABLE(Condition11) || ENABLE(Condition12) |
628 if (RuntimeEnabledFeatures::condition13Enabled()) { | 1054 if (RuntimeEnabledFeatures::condition13Enabled()) { |
629 static const V8DOMConfiguration::BatchedAttribute attrData =\ | 1055 static const V8DOMConfiguration::BatchedAttribute attrData =\ |
630 // Attribute 'Node13' | 1056 // Attribute 'Node13' |
631 {"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 */}; | 1057 {"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 */}; |
632 V8DOMConfiguration::configureAttribute(instance, proto, attrData, isolat
e, currentWorldType); | 1058 V8DOMConfiguration::configureAttribute(instance, proto, attrData, isolat
e, currentWorldType); |
633 } | 1059 } |
634 | 1060 |
635 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 1061 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 1062 |
| 1063 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 1064 if (RuntimeEnabledFeatures::condition23Enabled()) { |
| 1065 static const V8DOMConfiguration::BatchedAttribute attrData =\ |
| 1066 // Attribute 'Node23' |
| 1067 {"Node23", TestInterfaceV8Internal::Node23AttrGetterCallback, TestInterf
aceV8Internal::Node23AttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}; |
| 1068 V8DOMConfiguration::configureAttribute(instance, proto, attrData, isolat
e, currentWorldType); |
| 1069 } |
| 1070 |
| 1071 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
636 desc->InstanceTemplate()->SetNamedPropertyHandler(V8TestInterface::namedProp
ertyGetter, V8TestInterface::namedPropertySetter, V8TestInterface::namedProperty
Query, 0, V8TestInterface::namedPropertyEnumerator); | 1072 desc->InstanceTemplate()->SetNamedPropertyHandler(V8TestInterface::namedProp
ertyGetter, V8TestInterface::namedPropertySetter, V8TestInterface::namedProperty
Query, 0, V8TestInterface::namedPropertyEnumerator); |
637 | 1073 |
638 // Custom Signature 'supplementalMethod2' | 1074 // Custom Signature 'supplementalMethod2' |
639 const int supplementalMethod2Argc = 2; | 1075 const int supplementalMethod2Argc = 2; |
640 v8::Handle<v8::FunctionTemplate> supplementalMethod2Argv[supplementalMethod2
Argc] = { v8::Handle<v8::FunctionTemplate>(), V8PerIsolateData::from(isolate)->r
awTemplate(&V8TestObject::info, currentWorldType) }; | 1076 v8::Handle<v8::FunctionTemplate> supplementalMethod2Argv[supplementalMethod2
Argc] = { v8::Handle<v8::FunctionTemplate>(), V8PerIsolateData::from(isolate)->r
awTemplate(&V8TestObject::info, currentWorldType) }; |
641 v8::Handle<v8::Signature> supplementalMethod2Signature = v8::Signature::New(
desc, supplementalMethod2Argc, supplementalMethod2Argv); | 1077 v8::Handle<v8::Signature> supplementalMethod2Signature = v8::Signature::New(
desc, supplementalMethod2Argc, supplementalMethod2Argv); |
642 #if ENABLE(Condition11) || ENABLE(Condition12) | 1078 #if ENABLE(Condition11) || ENABLE(Condition12) |
643 proto->Set(v8::String::NewSymbol("supplementalMethod2"), v8::FunctionTemplat
e::New(TestInterfaceV8Internal::supplementalMethod2MethodCallback, v8Undefined()
, supplementalMethod2Signature, 2)); | 1079 proto->Set(v8::String::NewSymbol("supplementalMethod2"), v8::FunctionTemplat
e::New(TestInterfaceV8Internal::supplementalMethod2MethodCallback, v8Undefined()
, supplementalMethod2Signature, 2)); |
644 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 1080 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
645 #if ENABLE(Condition11) || ENABLE(Condition12) | 1081 #if ENABLE(Condition11) || ENABLE(Condition12) |
646 desc->Set(v8::String::NewSymbol("supplementalMethod4"), v8::FunctionTemplate
::New(TestInterfaceV8Internal::supplementalMethod4MethodCallback, v8Undefined(),
v8::Local<v8::Signature>(), 0)); | 1082 desc->Set(v8::String::NewSymbol("supplementalMethod4"), v8::FunctionTemplate
::New(TestInterfaceV8Internal::supplementalMethod4MethodCallback, v8Undefined(),
v8::Local<v8::Signature>(), 0)); |
647 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 1083 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 1084 |
| 1085 // Custom Signature 'implementsMethod2' |
| 1086 const int implementsMethod2Argc = 2; |
| 1087 v8::Handle<v8::FunctionTemplate> implementsMethod2Argv[implementsMethod2Argc
] = { v8::Handle<v8::FunctionTemplate>(), V8PerIsolateData::from(isolate)->rawTe
mplate(&V8TestObject::info, currentWorldType) }; |
| 1088 v8::Handle<v8::Signature> implementsMethod2Signature = v8::Signature::New(de
sc, implementsMethod2Argc, implementsMethod2Argv); |
| 1089 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 1090 proto->Set(v8::String::NewSymbol("implementsMethod2"), v8::FunctionTemplate:
:New(TestInterfaceV8Internal::implementsMethod2MethodCallback, v8Undefined(), im
plementsMethod2Signature, 2)); |
| 1091 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 1092 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 1093 desc->Set(v8::String::NewSymbol("implementsMethod4"), v8::FunctionTemplate::
New(TestInterfaceV8Internal::implementsMethod4MethodCallback, v8Undefined(), v8:
:Local<v8::Signature>(), 0)); |
| 1094 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
648 V8DOMConfiguration::batchConfigureConstants(desc, proto, V8TestInterfaceCons
ts, WTF_ARRAY_LENGTH(V8TestInterfaceConsts), isolate); | 1095 V8DOMConfiguration::batchConfigureConstants(desc, proto, V8TestInterfaceCons
ts, WTF_ARRAY_LENGTH(V8TestInterfaceConsts), isolate); |
649 | 1096 |
650 // Custom toString template | 1097 // Custom toString template |
651 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); | 1098 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); |
652 return desc; | 1099 return desc; |
653 } | 1100 } |
654 | 1101 |
655 v8::Handle<v8::FunctionTemplate> V8TestInterface::GetTemplate(v8::Isolate* isola
te, WrapperWorldType currentWorldType) | 1102 v8::Handle<v8::FunctionTemplate> V8TestInterface::GetTemplate(v8::Isolate* isola
te, WrapperWorldType currentWorldType) |
656 { | 1103 { |
657 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 1104 V8PerIsolateData* data = V8PerIsolateData::from(isolate); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 1139 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
693 | 1140 |
694 #if ENABLE(Condition11) || ENABLE(Condition12) | 1141 #if ENABLE(Condition11) || ENABLE(Condition12) |
695 if (ContextFeatures::condition16Enabled(impl->document()) && RuntimeEnabledF
eatures::condition15Enabled()) { | 1142 if (ContextFeatures::condition16Enabled(impl->document()) && RuntimeEnabledF
eatures::condition15Enabled()) { |
696 static const V8DOMConfiguration::BatchedAttribute attrData =\ | 1143 static const V8DOMConfiguration::BatchedAttribute attrData =\ |
697 // Attribute 'Node15' | 1144 // Attribute 'Node15' |
698 {"Node15", TestInterfaceV8Internal::Node15AttrGetterCallback, TestInterf
aceV8Internal::Node15AttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}; | 1145 {"Node15", TestInterfaceV8Internal::Node15AttrGetterCallback, TestInterf
aceV8Internal::Node15AttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}; |
699 V8DOMConfiguration::configureAttribute(instance, proto, attrData, isolat
e); | 1146 V8DOMConfiguration::configureAttribute(instance, proto, attrData, isolat
e); |
700 } | 1147 } |
701 #endif // ENABLE(Condition11) || ENABLE(Condition12) | 1148 #endif // ENABLE(Condition11) || ENABLE(Condition12) |
| 1149 |
| 1150 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 1151 if (ContextFeatures::condition24Enabled(impl->document())) { |
| 1152 static const V8DOMConfiguration::BatchedAttribute attrData =\ |
| 1153 // Attribute 'Node24' |
| 1154 {"Node24", TestInterfaceV8Internal::Node24AttrGetterCallback, TestInterf
aceV8Internal::Node24AttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}; |
| 1155 V8DOMConfiguration::configureAttribute(instance, proto, attrData, isolat
e); |
| 1156 } |
| 1157 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
| 1158 |
| 1159 #if ENABLE(Condition22) || ENABLE(Condition23) |
| 1160 if (ContextFeatures::condition26Enabled(impl->document()) && RuntimeEnabledF
eatures::condition25Enabled()) { |
| 1161 static const V8DOMConfiguration::BatchedAttribute attrData =\ |
| 1162 // Attribute 'Node25' |
| 1163 {"Node25", TestInterfaceV8Internal::Node25AttrGetterCallback, TestInterf
aceV8Internal::Node25AttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::
AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /*
on instance */}; |
| 1164 V8DOMConfiguration::configureAttribute(instance, proto, attrData, isolat
e); |
| 1165 } |
| 1166 #endif // ENABLE(Condition22) || ENABLE(Condition23) |
702 } | 1167 } |
703 | 1168 |
704 ActiveDOMObject* V8TestInterface::toActiveDOMObject(v8::Handle<v8::Object> objec
t) | 1169 ActiveDOMObject* V8TestInterface::toActiveDOMObject(v8::Handle<v8::Object> objec
t) |
705 { | 1170 { |
706 return toNative(object); | 1171 return toNative(object); |
707 } | 1172 } |
708 | 1173 |
709 | 1174 |
710 v8::Handle<v8::Object> V8TestInterface::createWrapper(PassRefPtr<TestInterface>
impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 1175 v8::Handle<v8::Object> V8TestInterface::createWrapper(PassRefPtr<TestInterface>
impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
711 { | 1176 { |
712 ASSERT(impl.get()); | 1177 ASSERT(impl.get()); |
713 ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty()); | 1178 ASSERT(DOMDataStore::getWrapper(impl.get(), isolate).IsEmpty()); |
714 | 1179 |
715 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, impl.get(), isolate); | 1180 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &info, impl.get(), isolate); |
716 if (UNLIKELY(wrapper.IsEmpty())) | 1181 if (UNLIKELY(wrapper.IsEmpty())) |
717 return wrapper; | 1182 return wrapper; |
718 installPerContextProperties(wrapper, impl.get(), isolate); | 1183 installPerContextProperties(wrapper, impl.get(), isolate); |
719 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Dependent); | 1184 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Dependent); |
720 return wrapper; | 1185 return wrapper; |
721 } | 1186 } |
722 void V8TestInterface::derefObject(void* object) | 1187 void V8TestInterface::derefObject(void* object) |
723 { | 1188 { |
724 static_cast<TestInterface*>(object)->deref(); | 1189 static_cast<TestInterface*>(object)->deref(); |
725 } | 1190 } |
726 | 1191 |
727 } // namespace WebCore | 1192 } // namespace WebCore |
728 | 1193 |
729 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 1194 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
OLD | NEW |