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

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

Issue 282873004: IDL: overload resolution for string and enumeration arguments (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline tests Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/tests/idls/TestObject.idl ('k') | Source/core/html/FormData.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6828 matching lines...) Expand 10 before | Expand all | Expand 10 after
6839 exceptionState.throwIfNeeded(); 6839 exceptionState.throwIfNeeded();
6840 } 6840 }
6841 6841
6842 static void overloadedMethodKMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info) 6842 static void overloadedMethodKMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
6843 { 6843 {
6844 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6844 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6845 TestObjectV8Internal::overloadedMethodKMethod(info); 6845 TestObjectV8Internal::overloadedMethodKMethod(info);
6846 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6846 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6847 } 6847 }
6848 6848
6849 static void overloadedMethodL1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6850 {
6851 TestObject* impl = V8TestObject::toNative(info.Holder());
6852 TOSTRING_VOID(V8StringResource<>, stringArg, info[0]);
6853 impl->overloadedMethodL(stringArg);
6854 }
6855
6856 static void overloadedMethodL2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
6857 {
6858 TestObject* impl = V8TestObject::toNative(info.Holder());
6859 TONATIVE_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue()) );
6860 impl->overloadedMethodL(doubleArg);
6861 }
6862
6863 static void overloadedMethodLMethod(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
6864 {
6865 switch (info.Length()) {
6866 case 1:
6867 if (info[0]->IsNumber()) {
6868 overloadedMethodL2Method(info);
6869 return;
6870 }
6871 if (true) {
6872 overloadedMethodL1Method(info);
6873 return;
6874 }
6875 break;
6876 }
6877 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM ethodL", "TestObject", info.Holder(), info.GetIsolate());
6878 if (UNLIKELY(info.Length() < 1)) {
6879 throwArityTypeError(exceptionState, 1, info.Length());
6880 return;
6881 }
6882 exceptionState.throwTypeError("No function was found that matched the signat ure provided.");
6883 exceptionState.throwIfNeeded();
6884 }
6885
6886 static void overloadedMethodLMethodCallback(const v8::FunctionCallbackInfo<v8::V alue>& info)
6887 {
6888 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6889 TestObjectV8Internal::overloadedMethodLMethod(info);
6890 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6891 }
6892
6849 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn fo<v8::Value>& info) 6893 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn fo<v8::Value>& info)
6850 { 6894 {
6851 TestObject* impl = V8TestObject::toNative(info.Holder()); 6895 TestObject* impl = V8TestObject::toNative(info.Holder());
6852 impl->overloadedPerWorldBindingsMethod(); 6896 impl->overloadedPerWorldBindingsMethod();
6853 } 6897 }
6854 6898
6855 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info) 6899 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi onCallbackInfo<v8::Value>& info)
6856 { 6900 {
6857 TestObject* impl = V8TestObject::toNative(info.Holder()); 6901 TestObject* impl = V8TestObject::toNative(info.Holder());
6858 impl->overloadedPerWorldBindingsMethod(); 6902 impl->overloadedPerWorldBindingsMethod();
(...skipping 1688 matching lines...) Expand 10 before | Expand all | Expand 10 after
8547 {"overloadedMethodB", TestObjectV8Internal::overloadedMethodBMethodCallback, 0, 1}, 8591 {"overloadedMethodB", TestObjectV8Internal::overloadedMethodBMethodCallback, 0, 1},
8548 {"overloadedMethodC", TestObjectV8Internal::overloadedMethodCMethodCallback, 0, 1}, 8592 {"overloadedMethodC", TestObjectV8Internal::overloadedMethodCMethodCallback, 0, 1},
8549 {"overloadedMethodD", TestObjectV8Internal::overloadedMethodDMethodCallback, 0, 1}, 8593 {"overloadedMethodD", TestObjectV8Internal::overloadedMethodDMethodCallback, 0, 1},
8550 {"overloadedMethodE", TestObjectV8Internal::overloadedMethodEMethodCallback, 0, 1}, 8594 {"overloadedMethodE", TestObjectV8Internal::overloadedMethodEMethodCallback, 0, 1},
8551 {"overloadedMethodF", TestObjectV8Internal::overloadedMethodFMethodCallback, 0, 1}, 8595 {"overloadedMethodF", TestObjectV8Internal::overloadedMethodFMethodCallback, 0, 1},
8552 {"overloadedMethodG", TestObjectV8Internal::overloadedMethodGMethodCallback, 0, 0}, 8596 {"overloadedMethodG", TestObjectV8Internal::overloadedMethodGMethodCallback, 0, 0},
8553 {"overloadedMethodH", TestObjectV8Internal::overloadedMethodHMethodCallback, 0, 0}, 8597 {"overloadedMethodH", TestObjectV8Internal::overloadedMethodHMethodCallback, 0, 0},
8554 {"overloadedMethodI", TestObjectV8Internal::overloadedMethodIMethodCallback, 0, 1}, 8598 {"overloadedMethodI", TestObjectV8Internal::overloadedMethodIMethodCallback, 0, 1},
8555 {"overloadedMethodJ", TestObjectV8Internal::overloadedMethodJMethodCallback, 0, 1}, 8599 {"overloadedMethodJ", TestObjectV8Internal::overloadedMethodJMethodCallback, 0, 1},
8556 {"overloadedMethodK", TestObjectV8Internal::overloadedMethodKMethodCallback, 0, 1}, 8600 {"overloadedMethodK", TestObjectV8Internal::overloadedMethodKMethodCallback, 0, 1},
8601 {"overloadedMethodL", TestObjectV8Internal::overloadedMethodLMethodCallback, 0, 1},
8557 {"overloadedPerWorldBindingsMethod", TestObjectV8Internal::overloadedPerWorl dBindingsMethodMethodCallback, TestObjectV8Internal::overloadedPerWorldBindingsM ethodMethodCallbackForMainWorld, 0}, 8602 {"overloadedPerWorldBindingsMethod", TestObjectV8Internal::overloadedPerWorl dBindingsMethodMethodCallback, TestObjectV8Internal::overloadedPerWorldBindingsM ethodMethodCallbackForMainWorld, 0},
8558 {"voidMethodClampUnsignedShortArg", TestObjectV8Internal::voidMethodClampUns ignedShortArgMethodCallback, 0, 1}, 8603 {"voidMethodClampUnsignedShortArg", TestObjectV8Internal::voidMethodClampUns ignedShortArgMethodCallback, 0, 1},
8559 {"voidMethodClampUnsignedLongArg", TestObjectV8Internal::voidMethodClampUnsi gnedLongArgMethodCallback, 0, 1}, 8604 {"voidMethodClampUnsignedLongArg", TestObjectV8Internal::voidMethodClampUnsi gnedLongArgMethodCallback, 0, 1},
8560 {"voidMethodDefaultUndefinedTestInterfaceEmptyArg", TestObjectV8Internal::vo idMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback, 0, 0}, 8605 {"voidMethodDefaultUndefinedTestInterfaceEmptyArg", TestObjectV8Internal::vo idMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback, 0, 0},
8561 {"voidMethodDefaultUndefinedLongArg", TestObjectV8Internal::voidMethodDefaul tUndefinedLongArgMethodCallback, 0, 0}, 8606 {"voidMethodDefaultUndefinedLongArg", TestObjectV8Internal::voidMethodDefaul tUndefinedLongArgMethodCallback, 0, 0},
8562 {"voidMethodDefaultUndefinedStringArg", TestObjectV8Internal::voidMethodDefa ultUndefinedStringArgMethodCallback, 0, 0}, 8607 {"voidMethodDefaultUndefinedStringArg", TestObjectV8Internal::voidMethodDefa ultUndefinedStringArgMethodCallback, 0, 0},
8563 {"voidMethodDefaultNullStringStringArg", TestObjectV8Internal::voidMethodDef aultNullStringStringArgMethodCallback, 0, 0}, 8608 {"voidMethodDefaultNullStringStringArg", TestObjectV8Internal::voidMethodDef aultNullStringStringArgMethodCallback, 0, 0},
8564 {"voidMethodEnforceRangeLongArg", TestObjectV8Internal::voidMethodEnforceRan geLongArgMethodCallback, 0, 1}, 8609 {"voidMethodEnforceRangeLongArg", TestObjectV8Internal::voidMethodEnforceRan geLongArgMethodCallback, 0, 1},
8565 {"voidMethodTreatNullAsNullStringStringArg", TestObjectV8Internal::voidMetho dTreatNullAsNullStringStringArgMethodCallback, 0, 1}, 8610 {"voidMethodTreatNullAsNullStringStringArg", TestObjectV8Internal::voidMetho dTreatNullAsNullStringStringArgMethodCallback, 0, 1},
8566 {"voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", TestO bjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringString ArgMethodCallback, 0, 1}, 8611 {"voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg", TestO bjectV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringString ArgMethodCallback, 0, 1},
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
8788 fromInternalPointer(object)->deref(); 8833 fromInternalPointer(object)->deref();
8789 } 8834 }
8790 8835
8791 template<> 8836 template<>
8792 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 8837 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
8793 { 8838 {
8794 return toV8(impl, creationContext, isolate); 8839 return toV8(impl, creationContext, isolate);
8795 } 8840 }
8796 8841
8797 } // namespace WebCore 8842 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/TestObject.idl ('k') | Source/core/html/FormData.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698