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

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

Issue 47073007: Bindings: Remove special cases for DOMStringList (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
OLDNEW
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 3793 matching lines...) Expand 10 before | Expand all | Expand 10 after
3804 imp->overloadedMethod(callback); 3804 imp->overloadedMethod(callback);
3805 } 3805 }
3806 3806
3807 static void overloadedMethod6Method(const v8::FunctionCallbackInfo<v8::Value>& a rgs) 3807 static void overloadedMethod6Method(const v8::FunctionCallbackInfo<v8::Value>& a rgs)
3808 { 3808 {
3809 if (UNLIKELY(args.Length() < 1)) { 3809 if (UNLIKELY(args.Length() < 1)) {
3810 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "T estObject", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIs olate()); 3810 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "T estObject", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIs olate());
3811 return; 3811 return;
3812 } 3812 }
3813 TestObj* imp = V8TestObject::toNative(args.Holder()); 3813 TestObj* imp = V8TestObject::toNative(args.Holder());
3814 V8TRYCATCH_VOID(RefPtr<DOMStringList>, listArg, toDOMStringList(args[0], arg s.GetIsolate())); 3814 V8TRYCATCH_VOID(DOMStringList*, listArg, V8DOMStringList::HasInstance(args[0 ], args.GetIsolate(), worldType(args.GetIsolate())) ? V8DOMStringList::toNative( v8::Handle<v8::Object>::Cast(args[0])) : 0);
3815 imp->overloadedMethod(listArg); 3815 imp->overloadedMethod(listArg);
3816 } 3816 }
3817 3817
3818 static void overloadedMethod7Method(const v8::FunctionCallbackInfo<v8::Value>& a rgs) 3818 static void overloadedMethod7Method(const v8::FunctionCallbackInfo<v8::Value>& a rgs)
3819 { 3819 {
3820 if (UNLIKELY(args.Length() < 1)) { 3820 if (UNLIKELY(args.Length() < 1)) {
3821 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "T estObject", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIs olate()); 3821 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "T estObject", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIs olate());
3822 return; 3822 return;
3823 } 3823 }
3824 TestObj* imp = V8TestObject::toNative(args.Holder()); 3824 TestObj* imp = V8TestObject::toNative(args.Holder());
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
4129 } 4129 }
4130 4130
4131 static void domStringListFunctionMethod(const v8::FunctionCallbackInfo<v8::Value >& args) 4131 static void domStringListFunctionMethod(const v8::FunctionCallbackInfo<v8::Value >& args)
4132 { 4132 {
4133 if (UNLIKELY(args.Length() < 1)) { 4133 if (UNLIKELY(args.Length() < 1)) {
4134 throwTypeError(ExceptionMessages::failedToExecute("domStringListFunction ", "TestObject", ExceptionMessages::notEnoughArguments(1, args.Length())), args. GetIsolate()); 4134 throwTypeError(ExceptionMessages::failedToExecute("domStringListFunction ", "TestObject", ExceptionMessages::notEnoughArguments(1, args.Length())), args. GetIsolate());
4135 return; 4135 return;
4136 } 4136 }
4137 TestObj* imp = V8TestObject::toNative(args.Holder()); 4137 TestObj* imp = V8TestObject::toNative(args.Holder());
4138 ExceptionState es(args.GetIsolate()); 4138 ExceptionState es(args.GetIsolate());
4139 V8TRYCATCH_VOID(RefPtr<DOMStringList>, values, toDOMStringList(args[0], args .GetIsolate())); 4139 V8TRYCATCH_VOID(DOMStringList*, values, V8DOMStringList::HasInstance(args[0] , args.GetIsolate(), worldType(args.GetIsolate())) ? V8DOMStringList::toNative(v 8::Handle<v8::Object>::Cast(args[0])) : 0);
4140 RefPtr<DOMStringList> result = imp->domStringListFunction(values, es); 4140 RefPtr<DOMStringList> result = imp->domStringListFunction(values, es);
4141 if (es.throwIfNeeded()) 4141 if (es.throwIfNeeded())
4142 return; 4142 return;
4143 v8SetReturnValue(args, result.release()); 4143 v8SetReturnValue(args, result.release());
4144 } 4144 }
4145 4145
4146 static void domStringListFunctionMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& args) 4146 static void domStringListFunctionMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& args)
4147 { 4147 {
4148 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4148 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4149 TestObjV8Internal::domStringListFunctionMethod(args); 4149 TestObjV8Internal::domStringListFunctionMethod(args);
(...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after
5295 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &wrapperTypeInf o, wrapper, isolate, WrapperConfiguration::Independent); 5295 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &wrapperTypeInf o, wrapper, isolate, WrapperConfiguration::Independent);
5296 return wrapper; 5296 return wrapper;
5297 } 5297 }
5298 5298
5299 void V8TestObject::derefObject(void* object) 5299 void V8TestObject::derefObject(void* object)
5300 { 5300 {
5301 fromInternalPointer(object)->deref(); 5301 fromInternalPointer(object)->deref();
5302 } 5302 }
5303 5303
5304 } // namespace WebCore 5304 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698