Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: Source/bindings/tests/results/V8TestObject.cpp

Issue 335113002: IDL: Support argument default values (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestObject.h" 8 #include "V8TestObject.h"
9 9
10 #include "HTMLNames.h" 10 #include "HTMLNames.h"
(...skipping 6646 matching lines...) Expand 10 before | Expand all | Expand 10 after
6657 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg); 6657 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg);
6658 } 6658 }
6659 6659
6660 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 6660 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
6661 { 6661 {
6662 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6662 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6663 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info); 6663 TestObjectV8Internal::voidMethodOptionalDictionaryArgMethod(info);
6664 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6664 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6665 } 6665 }
6666 6666
6667 static void voidMethodDefaultByteStringArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
6668 {
6669 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultByteStringArg", "TestObject", info.Holder(), info.GetIsolate());
6670 TestObject* impl = V8TestObject::toNative(info.Holder());
6671 V8StringResource<> defaultByteStringArg;
6672 {
6673 v8::TryCatch block;
6674 V8RethrowTryCatchScope rethrow(block);
6675 if (info.Length() > 0) {
6676 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultByteStringArg, toByteSt ring(info[0], exceptionState), exceptionState);
6677 } else {
6678 defaultByteStringArg = String("foo");
6679 }
6680 }
6681 impl->voidMethodDefaultByteStringArg(defaultByteStringArg);
6682 }
6683
6684 static void voidMethodDefaultByteStringArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
6685 {
6686 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6687 TestObjectV8Internal::voidMethodDefaultByteStringArgMethod(info);
6688 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6689 }
6690
6667 static void voidMethodDefaultStringArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 6691 static void voidMethodDefaultStringArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
6668 { 6692 {
6669 TestObject* impl = V8TestObject::toNative(info.Holder()); 6693 TestObject* impl = V8TestObject::toNative(info.Holder());
6670 V8StringResource<> defaultStringArg; 6694 V8StringResource<> defaultStringArg;
6671 { 6695 {
6672 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]); 6696 if (info.Length() > 0) {
6697 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]);
6698 } else {
6699 defaultStringArg = String("foo");
6700 }
6673 } 6701 }
6674 impl->voidMethodDefaultStringArg(defaultStringArg); 6702 impl->voidMethodDefaultStringArg(defaultStringArg);
6675 } 6703 }
6676 6704
6677 static void voidMethodDefaultStringArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 6705 static void voidMethodDefaultStringArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
6678 { 6706 {
6679 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6707 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6680 TestObjectV8Internal::voidMethodDefaultStringArgMethod(info); 6708 TestObjectV8Internal::voidMethodDefaultStringArgMethod(info);
6681 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6709 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6682 } 6710 }
6683 6711
6684 static void voidMethodDefaultNullStringArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
6685 {
6686 TestObject* impl = V8TestObject::toNative(info.Holder());
6687 V8StringResource<> defaultStringArg;
6688 {
6689 TOSTRING_VOID_INTERNAL(defaultStringArg, argumentOrNull(info, 0));
6690 }
6691 impl->voidMethodDefaultNullStringArg(defaultStringArg);
6692 }
6693
6694 static void voidMethodDefaultNullStringArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
6695 {
6696 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6697 TestObjectV8Internal::voidMethodDefaultNullStringArgMethod(info);
6698 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6699 }
6700
6701 static void voidMethodDefaultLongArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 6712 static void voidMethodDefaultLongArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
6702 { 6713 {
6703 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultLongArg", "TestObject", info.Holder(), info.GetIsolate()); 6714 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD efaultLongArg", "TestObject", info.Holder(), info.GetIsolate());
6704 TestObject* impl = V8TestObject::toNative(info.Holder()); 6715 TestObject* impl = V8TestObject::toNative(info.Holder());
6705 int defaultLongArg; 6716 int defaultLongArg;
6706 { 6717 {
6707 v8::TryCatch block; 6718 v8::TryCatch block;
6708 V8RethrowTryCatchScope rethrow(block); 6719 V8RethrowTryCatchScope rethrow(block);
6709 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongArg, toInt32(info[0], e xceptionState), exceptionState); 6720 if (info.Length() > 0) {
6721 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultLongArg, toInt32(info[0 ], exceptionState), exceptionState);
6722 } else {
6723 defaultLongArg = 10;
6724 }
6710 } 6725 }
6711 impl->voidMethodDefaultLongArg(defaultLongArg); 6726 impl->voidMethodDefaultLongArg(defaultLongArg);
6712 } 6727 }
6713 6728
6714 static void voidMethodDefaultLongArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 6729 static void voidMethodDefaultLongArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
6715 { 6730 {
6716 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6731 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6717 TestObjectV8Internal::voidMethodDefaultLongArgMethod(info); 6732 TestObjectV8Internal::voidMethodDefaultLongArgMethod(info);
6718 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6733 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6719 } 6734 }
6720 6735
6721 static void voidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 6736 static void voidMethodDefaultDoubleArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
6722 { 6737 {
6723 TestObject* impl = V8TestObject::toNative(info.Holder()); 6738 TestObject* impl = V8TestObject::toNative(info.Holder());
6724 double defaultDoubleArg; 6739 double defaultDoubleArg;
6725 { 6740 {
6726 v8::TryCatch block; 6741 v8::TryCatch block;
6727 V8RethrowTryCatchScope rethrow(block); 6742 V8RethrowTryCatchScope rethrow(block);
6728 TONATIVE_VOID_INTERNAL(defaultDoubleArg, static_cast<double>(info[0]->Nu mberValue())); 6743 if (info.Length() > 0) {
6744 TONATIVE_VOID_INTERNAL(defaultDoubleArg, static_cast<double>(info[0] ->NumberValue()));
6745 } else {
6746 defaultDoubleArg = 0.5;
6747 }
6729 } 6748 }
6730 impl->voidMethodDefaultDoubleArg(defaultDoubleArg); 6749 impl->voidMethodDefaultDoubleArg(defaultDoubleArg);
6731 } 6750 }
6732 6751
6733 static void voidMethodDefaultDoubleArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 6752 static void voidMethodDefaultDoubleArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
6734 { 6753 {
6735 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6754 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6736 TestObjectV8Internal::voidMethodDefaultDoubleArgMethod(info); 6755 TestObjectV8Internal::voidMethodDefaultDoubleArgMethod(info);
6737 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6756 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6738 } 6757 }
6739 6758
6740 static void voidMethodDefaultTrueBooleanArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info) 6759 static void voidMethodDefaultTrueBooleanArgMethod(const v8::FunctionCallbackInfo <v8::Value>& info)
6741 { 6760 {
6742 TestObject* impl = V8TestObject::toNative(info.Holder()); 6761 TestObject* impl = V8TestObject::toNative(info.Holder());
6743 bool defaultBooleanArg; 6762 bool defaultBooleanArg;
6744 { 6763 {
6745 v8::TryCatch block; 6764 v8::TryCatch block;
6746 V8RethrowTryCatchScope rethrow(block); 6765 V8RethrowTryCatchScope rethrow(block);
6747 TONATIVE_VOID_INTERNAL(defaultBooleanArg, info[0]->BooleanValue()); 6766 if (info.Length() > 0) {
6767 TONATIVE_VOID_INTERNAL(defaultBooleanArg, info[0]->BooleanValue());
6768 } else {
6769 defaultBooleanArg = true;
6770 }
6748 } 6771 }
6749 impl->voidMethodDefaultTrueBooleanArg(defaultBooleanArg); 6772 impl->voidMethodDefaultTrueBooleanArg(defaultBooleanArg);
6750 } 6773 }
6751 6774
6752 static void voidMethodDefaultTrueBooleanArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info) 6775 static void voidMethodDefaultTrueBooleanArgMethodCallback(const v8::FunctionCall backInfo<v8::Value>& info)
6753 { 6776 {
6754 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6777 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6755 TestObjectV8Internal::voidMethodDefaultTrueBooleanArgMethod(info); 6778 TestObjectV8Internal::voidMethodDefaultTrueBooleanArgMethod(info);
6756 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6779 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6757 } 6780 }
6758 6781
6759 static void voidMethodDefaultFalseBooleanArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info) 6782 static void voidMethodDefaultFalseBooleanArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
6760 { 6783 {
6761 TestObject* impl = V8TestObject::toNative(info.Holder()); 6784 TestObject* impl = V8TestObject::toNative(info.Holder());
6762 bool defaultBooleanArg; 6785 bool defaultBooleanArg;
6763 { 6786 {
6764 v8::TryCatch block; 6787 v8::TryCatch block;
6765 V8RethrowTryCatchScope rethrow(block); 6788 V8RethrowTryCatchScope rethrow(block);
6766 TONATIVE_VOID_INTERNAL(defaultBooleanArg, info[0]->BooleanValue()); 6789 if (info.Length() > 0) {
6790 TONATIVE_VOID_INTERNAL(defaultBooleanArg, info[0]->BooleanValue());
6791 } else {
6792 defaultBooleanArg = false;
6793 }
6767 } 6794 }
6768 impl->voidMethodDefaultFalseBooleanArg(defaultBooleanArg); 6795 impl->voidMethodDefaultFalseBooleanArg(defaultBooleanArg);
6769 } 6796 }
6770 6797
6771 static void voidMethodDefaultFalseBooleanArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info) 6798 static void voidMethodDefaultFalseBooleanArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
6772 { 6799 {
6773 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6800 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6774 TestObjectV8Internal::voidMethodDefaultFalseBooleanArgMethod(info); 6801 TestObjectV8Internal::voidMethodDefaultFalseBooleanArgMethod(info);
6775 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6802 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6776 } 6803 }
6777 6804
6805 static void voidMethodDefaultNullableByteStringArgMethod(const v8::FunctionCallb ackInfo<v8::Value>& info)
6806 {
6807 TestObject* impl = V8TestObject::toNative(info.Holder());
6808 V8StringResource<> defaultStringArg;
6809 {
6810 v8::TryCatch block;
6811 V8RethrowTryCatchScope rethrow(block);
6812 if (info.Length() > 0) {
6813 TONATIVE_VOID_INTERNAL(defaultStringArg, toByteString(info[0]));
6814 } else {
6815 defaultStringArg = nullptr;
6816 }
6817 }
6818 impl->voidMethodDefaultNullableByteStringArg(defaultStringArg);
6819 }
6820
6821 static void voidMethodDefaultNullableByteStringArgMethodCallback(const v8::Funct ionCallbackInfo<v8::Value>& info)
6822 {
6823 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6824 TestObjectV8Internal::voidMethodDefaultNullableByteStringArgMethod(info);
6825 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6826 }
6827
6778 static void voidMethodDefaultNullableStringArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info) 6828 static void voidMethodDefaultNullableStringArgMethod(const v8::FunctionCallbackI nfo<v8::Value>& info)
6779 { 6829 {
6780 TestObject* impl = V8TestObject::toNative(info.Holder()); 6830 TestObject* impl = V8TestObject::toNative(info.Holder());
6781 V8StringResource<> defaultStringArg; 6831 V8StringResource<> defaultStringArg;
6782 { 6832 {
6783 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]); 6833 if (info.Length() > 0) {
6834 TOSTRING_VOID_INTERNAL(defaultStringArg, info[0]);
6835 } else {
6836 defaultStringArg = nullptr;
6837 }
6784 } 6838 }
6785 impl->voidMethodDefaultNullableStringArg(defaultStringArg); 6839 impl->voidMethodDefaultNullableStringArg(defaultStringArg);
6786 } 6840 }
6787 6841
6788 static void voidMethodDefaultNullableStringArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 6842 static void voidMethodDefaultNullableStringArgMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
6789 { 6843 {
6790 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6844 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6791 TestObjectV8Internal::voidMethodDefaultNullableStringArgMethod(info); 6845 TestObjectV8Internal::voidMethodDefaultNullableStringArgMethod(info);
6792 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6846 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6793 } 6847 }
6794 6848
6795 static void voidMethodDefaultNullableTestInterfaceArgMethod(const v8::FunctionCa llbackInfo<v8::Value>& info) 6849 static void voidMethodDefaultNullableTestInterfaceArgMethod(const v8::FunctionCa llbackInfo<v8::Value>& info)
6796 { 6850 {
6797 TestObject* impl = V8TestObject::toNative(info.Holder()); 6851 TestObject* impl = V8TestObject::toNative(info.Holder());
6798 TestInterfaceImplementation* defaultTestInterfaceArg; 6852 TestInterfaceImplementation* defaultTestInterfaceArg;
6799 { 6853 {
6800 v8::TryCatch block; 6854 v8::TryCatch block;
6801 V8RethrowTryCatchScope rethrow(block); 6855 V8RethrowTryCatchScope rethrow(block);
6802 TONATIVE_VOID_INTERNAL(defaultTestInterfaceArg, V8TestInterface::toNativ eWithTypeCheck(info.GetIsolate(), info[0])); 6856 if (info.Length() > 0) {
6857 TONATIVE_VOID_INTERNAL(defaultTestInterfaceArg, V8TestInterface::toN ativeWithTypeCheck(info.GetIsolate(), info[0]));
6858 } else {
6859 defaultTestInterfaceArg = nullptr;
6860 }
6803 } 6861 }
6804 impl->voidMethodDefaultNullableTestInterfaceArg(defaultTestInterfaceArg); 6862 impl->voidMethodDefaultNullableTestInterfaceArg(defaultTestInterfaceArg);
6805 } 6863 }
6806 6864
6807 static void voidMethodDefaultNullableTestInterfaceArgMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info) 6865 static void voidMethodDefaultNullableTestInterfaceArgMethodCallback(const v8::Fu nctionCallbackInfo<v8::Value>& info)
6808 { 6866 {
6809 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6867 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6810 TestObjectV8Internal::voidMethodDefaultNullableTestInterfaceArgMethod(info); 6868 TestObjectV8Internal::voidMethodDefaultNullableTestInterfaceArgMethod(info);
6811 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6869 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6812 } 6870 }
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
7345 impl->overloadedMethodG(longArg); 7403 impl->overloadedMethodG(longArg);
7346 } 7404 }
7347 7405
7348 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info) 7406 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
7349 { 7407 {
7350 TestObject* impl = V8TestObject::toNative(info.Holder()); 7408 TestObject* impl = V8TestObject::toNative(info.Holder());
7351 TestInterfaceEmpty* testInterfaceEmptyOrNullArg; 7409 TestInterfaceEmpty* testInterfaceEmptyOrNullArg;
7352 { 7410 {
7353 v8::TryCatch block; 7411 v8::TryCatch block;
7354 V8RethrowTryCatchScope rethrow(block); 7412 V8RethrowTryCatchScope rethrow(block);
7355 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceEmpty ::toNativeWithTypeCheck(info.GetIsolate(), info[0])); 7413 if (info.Length() > 0) {
7414 TONATIVE_VOID_INTERNAL(testInterfaceEmptyOrNullArg, V8TestInterfaceE mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0]));
7415 } else {
7416 testInterfaceEmptyOrNullArg = nullptr;
7417 }
7356 } 7418 }
7357 impl->overloadedMethodG(testInterfaceEmptyOrNullArg); 7419 impl->overloadedMethodG(testInterfaceEmptyOrNullArg);
7358 } 7420 }
7359 7421
7360 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 7422 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
7361 { 7423 {
7362 v8::Isolate* isolate = info.GetIsolate(); 7424 v8::Isolate* isolate = info.GetIsolate();
7363 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodG", "TestObject", info.Holder(), isolate); 7425 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodG", "TestObject", info.Holder(), isolate);
7364 switch (std::min(1, info.Length())) { 7426 switch (std::min(1, info.Length())) {
7365 case 0: 7427 case 0:
(...skipping 2199 matching lines...) Expand 10 before | Expand all | Expand 10 after
9565 {"voidMethodOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod OptionalTestInterfaceEmptyArgMethodCallback, 0, 0}, 9627 {"voidMethodOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod OptionalTestInterfaceEmptyArgMethodCallback, 0, 0},
9566 {"voidMethodOptionalLongArg", TestObjectV8Internal::voidMethodOptionalLongAr gMethodCallback, 0, 0}, 9628 {"voidMethodOptionalLongArg", TestObjectV8Internal::voidMethodOptionalLongAr gMethodCallback, 0, 0},
9567 {"stringMethodOptionalLongArg", TestObjectV8Internal::stringMethodOptionalLo ngArgMethodCallback, 0, 0}, 9629 {"stringMethodOptionalLongArg", TestObjectV8Internal::stringMethodOptionalLo ngArgMethodCallback, 0, 0},
9568 {"testInterfaceEmptyMethodOptionalLongArg", TestObjectV8Internal::testInterf aceEmptyMethodOptionalLongArgMethodCallback, 0, 0}, 9630 {"testInterfaceEmptyMethodOptionalLongArg", TestObjectV8Internal::testInterf aceEmptyMethodOptionalLongArgMethodCallback, 0, 0},
9569 {"longMethodOptionalLongArg", TestObjectV8Internal::longMethodOptionalLongAr gMethodCallback, 0, 0}, 9631 {"longMethodOptionalLongArg", TestObjectV8Internal::longMethodOptionalLongAr gMethodCallback, 0, 0},
9570 {"voidMethodLongArgOptionalLongArg", TestObjectV8Internal::voidMethodLongArg OptionalLongArgMethodCallback, 0, 1}, 9632 {"voidMethodLongArgOptionalLongArg", TestObjectV8Internal::voidMethodLongArg OptionalLongArgMethodCallback, 0, 1},
9571 {"voidMethodLongArgOptionalLongArgOptionalLongArg", TestObjectV8Internal::vo idMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 0, 1}, 9633 {"voidMethodLongArgOptionalLongArgOptionalLongArg", TestObjectV8Internal::vo idMethodLongArgOptionalLongArgOptionalLongArgMethodCallback, 0, 1},
9572 {"voidMethodLongArgOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voi dMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 0, 1}, 9634 {"voidMethodLongArgOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voi dMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback, 0, 1},
9573 {"voidMethodTestInterfaceEmptyArgOptionalLongArg", TestObjectV8Internal::voi dMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback, 0, 1}, 9635 {"voidMethodTestInterfaceEmptyArgOptionalLongArg", TestObjectV8Internal::voi dMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback, 0, 1},
9574 {"voidMethodOptionalDictionaryArg", TestObjectV8Internal::voidMethodOptional DictionaryArgMethodCallback, 0, 0}, 9636 {"voidMethodOptionalDictionaryArg", TestObjectV8Internal::voidMethodOptional DictionaryArgMethodCallback, 0, 0},
9637 {"voidMethodDefaultByteStringArg", TestObjectV8Internal::voidMethodDefaultBy teStringArgMethodCallback, 0, 0},
9575 {"voidMethodDefaultStringArg", TestObjectV8Internal::voidMethodDefaultString ArgMethodCallback, 0, 0}, 9638 {"voidMethodDefaultStringArg", TestObjectV8Internal::voidMethodDefaultString ArgMethodCallback, 0, 0},
9576 {"voidMethodDefaultNullStringArg", TestObjectV8Internal::voidMethodDefaultNu llStringArgMethodCallback, 0, 0},
9577 {"voidMethodDefaultLongArg", TestObjectV8Internal::voidMethodDefaultLongArgM ethodCallback, 0, 0}, 9639 {"voidMethodDefaultLongArg", TestObjectV8Internal::voidMethodDefaultLongArgM ethodCallback, 0, 0},
9578 {"voidMethodDefaultDoubleArg", TestObjectV8Internal::voidMethodDefaultDouble ArgMethodCallback, 0, 0}, 9640 {"voidMethodDefaultDoubleArg", TestObjectV8Internal::voidMethodDefaultDouble ArgMethodCallback, 0, 0},
9579 {"voidMethodDefaultTrueBooleanArg", TestObjectV8Internal::voidMethodDefaultT rueBooleanArgMethodCallback, 0, 0}, 9641 {"voidMethodDefaultTrueBooleanArg", TestObjectV8Internal::voidMethodDefaultT rueBooleanArgMethodCallback, 0, 0},
9580 {"voidMethodDefaultFalseBooleanArg", TestObjectV8Internal::voidMethodDefault FalseBooleanArgMethodCallback, 0, 0}, 9642 {"voidMethodDefaultFalseBooleanArg", TestObjectV8Internal::voidMethodDefault FalseBooleanArgMethodCallback, 0, 0},
9643 {"voidMethodDefaultNullableByteStringArg", TestObjectV8Internal::voidMethodD efaultNullableByteStringArgMethodCallback, 0, 0},
9581 {"voidMethodDefaultNullableStringArg", TestObjectV8Internal::voidMethodDefau ltNullableStringArgMethodCallback, 0, 0}, 9644 {"voidMethodDefaultNullableStringArg", TestObjectV8Internal::voidMethodDefau ltNullableStringArgMethodCallback, 0, 0},
9582 {"voidMethodDefaultNullableTestInterfaceArg", TestObjectV8Internal::voidMeth odDefaultNullableTestInterfaceArgMethodCallback, 0, 0}, 9645 {"voidMethodDefaultNullableTestInterfaceArg", TestObjectV8Internal::voidMeth odDefaultNullableTestInterfaceArgMethodCallback, 0, 0},
9583 {"voidMethodVariadicStringArg", TestObjectV8Internal::voidMethodVariadicStri ngArgMethodCallback, 0, 0}, 9646 {"voidMethodVariadicStringArg", TestObjectV8Internal::voidMethodVariadicStri ngArgMethodCallback, 0, 0},
9584 {"voidMethodStringArgVariadicStringArg", TestObjectV8Internal::voidMethodStr ingArgVariadicStringArgMethodCallback, 0, 1}, 9647 {"voidMethodStringArgVariadicStringArg", TestObjectV8Internal::voidMethodStr ingArgVariadicStringArgMethodCallback, 0, 1},
9585 {"voidMethodVariadicTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod VariadicTestInterfaceEmptyArgMethodCallback, 0, 0}, 9648 {"voidMethodVariadicTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod VariadicTestInterfaceEmptyArgMethodCallback, 0, 0},
9586 {"voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", TestObjectV 8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCal lback, 0, 1}, 9649 {"voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg", TestObjectV 8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCal lback, 0, 1},
9587 {"voidMethodVariadicTestInterfaceGarbageCollectedArg", TestObjectV8Internal: :voidMethodVariadicTestInterfaceGarbageCollectedArgMethodCallback, 0, 0}, 9650 {"voidMethodVariadicTestInterfaceGarbageCollectedArg", TestObjectV8Internal: :voidMethodVariadicTestInterfaceGarbageCollectedArgMethodCallback, 0, 0},
9588 {"voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg", TestObjectV8Int ernal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallback, 0 , 0}, 9651 {"voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg", TestObjectV8Int ernal::voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallback, 0 , 0},
9589 {"overloadedMethodA", TestObjectV8Internal::overloadedMethodAMethodCallback, 0, 1}, 9652 {"overloadedMethodA", TestObjectV8Internal::overloadedMethodAMethodCallback, 0, 1},
9590 {"overloadedMethodB", TestObjectV8Internal::overloadedMethodBMethodCallback, 0, 1}, 9653 {"overloadedMethodB", TestObjectV8Internal::overloadedMethodBMethodCallback, 0, 1},
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
9831 fromInternalPointer(object)->deref(); 9894 fromInternalPointer(object)->deref();
9832 } 9895 }
9833 9896
9834 template<> 9897 template<>
9835 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 9898 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
9836 { 9899 {
9837 return toV8(impl, creationContext, isolate); 9900 return toV8(impl, creationContext, isolate);
9838 } 9901 }
9839 9902
9840 } // namespace WebCore 9903 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698