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

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: Rebased 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>& i nfo) 3807 static void overloadedMethod6Method(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
3808 { 3808 {
3809 if (UNLIKELY(info.Length() < 1)) { 3809 if (UNLIKELY(info.Length() < 1)) {
3810 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "T estObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIs olate()); 3810 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "T estObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIs olate());
3811 return; 3811 return;
3812 } 3812 }
3813 TestObj* imp = V8TestObject::toNative(info.Holder()); 3813 TestObj* imp = V8TestObject::toNative(info.Holder());
3814 V8TRYCATCH_VOID(RefPtr<DOMStringList>, listArg, toDOMStringList(info[0], inf o.GetIsolate())); 3814 V8TRYCATCH_VOID(DOMStringList*, listArg, V8DOMStringList::HasInstance(info[0 ], info.GetIsolate(), worldType(info.GetIsolate())) ? V8DOMStringList::toNative( v8::Handle<v8::Object>::Cast(info[0])) : 0);
3815 imp->overloadedMethod(listArg); 3815 imp->overloadedMethod(listArg);
3816 } 3816 }
3817 3817
3818 static void overloadedMethod7Method(const v8::FunctionCallbackInfo<v8::Value>& i nfo) 3818 static void overloadedMethod7Method(const v8::FunctionCallbackInfo<v8::Value>& i nfo)
3819 { 3819 {
3820 if (UNLIKELY(info.Length() < 1)) { 3820 if (UNLIKELY(info.Length() < 1)) {
3821 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "T estObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIs olate()); 3821 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "T estObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIs olate());
3822 return; 3822 return;
3823 } 3823 }
3824 TestObj* imp = V8TestObject::toNative(info.Holder()); 3824 TestObj* imp = V8TestObject::toNative(info.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 >& info) 4131 static void domStringListFunctionMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
4132 { 4132 {
4133 if (UNLIKELY(info.Length() < 1)) { 4133 if (UNLIKELY(info.Length() < 1)) {
4134 throwTypeError(ExceptionMessages::failedToExecute("domStringListFunction ", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info. GetIsolate()); 4134 throwTypeError(ExceptionMessages::failedToExecute("domStringListFunction ", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info. GetIsolate());
4135 return; 4135 return;
4136 } 4136 }
4137 TestObj* imp = V8TestObject::toNative(info.Holder()); 4137 TestObj* imp = V8TestObject::toNative(info.Holder());
4138 ExceptionState es(info.GetIsolate()); 4138 ExceptionState es(info.GetIsolate());
4139 V8TRYCATCH_VOID(RefPtr<DOMStringList>, values, toDOMStringList(info[0], info .GetIsolate())); 4139 V8TRYCATCH_VOID(DOMStringList*, values, V8DOMStringList::HasInstance(info[0] , info.GetIsolate(), worldType(info.GetIsolate())) ? V8DOMStringList::toNative(v 8::Handle<v8::Object>::Cast(info[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(info, result.release()); 4143 v8SetReturnValue(info, result.release());
4144 } 4144 }
4145 4145
4146 static void domStringListFunctionMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info) 4146 static void domStringListFunctionMethodCallback(const v8::FunctionCallbackInfo<v 8::Value>& info)
4147 { 4147 {
4148 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4148 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4149 TestObjV8Internal::domStringListFunctionMethod(info); 4149 TestObjV8Internal::domStringListFunctionMethod(info);
(...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after
5296 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &wrapperTypeInf o, wrapper, isolate, WrapperConfiguration::Independent); 5296 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &wrapperTypeInf o, wrapper, isolate, WrapperConfiguration::Independent);
5297 return wrapper; 5297 return wrapper;
5298 } 5298 }
5299 5299
5300 void V8TestObject::derefObject(void* object) 5300 void V8TestObject::derefObject(void* object)
5301 { 5301 {
5302 fromInternalPointer(object)->deref(); 5302 fromInternalPointer(object)->deref();
5303 } 5303 }
5304 5304
5305 } // namespace WebCore 5305 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestCallback.cpp ('k') | Source/bindings/tests/results/V8TestObjectPython.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698