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

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

Issue 329223004: [DeprecateAs] if call addEventListener or removeEventListener without enough arguments Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test update/simplification 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 | Annotate | Revision Log
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 6118 matching lines...) Expand 10 before | Expand all | Expand 10 after
6129 impl->voidMethodDictionaryArg(dictionaryArg); 6129 impl->voidMethodDictionaryArg(dictionaryArg);
6130 } 6130 }
6131 6131
6132 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 6132 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
6133 { 6133 {
6134 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6134 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6135 TestObjectV8Internal::voidMethodDictionaryArgMethod(info); 6135 TestObjectV8Internal::voidMethodDictionaryArgMethod(info);
6136 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6136 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6137 } 6137 }
6138 6138
6139 static void voidMethodEventListenerArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 6139 static void voidMethodEventListenerOrNullArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
6140 { 6140 {
6141 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE ventListenerArg", "TestObject", info.Holder(), info.GetIsolate());
6142 if (UNLIKELY(info.Length() < 1)) { 6141 if (UNLIKELY(info.Length() < 1)) {
6143 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 6142 throwMinimumArityTypeErrorForMethod("voidMethodEventListenerOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate());
6144 return; 6143 return;
6145 } 6144 }
6146 TestObject* impl = V8TestObject::toNative(info.Holder()); 6145 TestObject* impl = V8TestObject::toNative(info.Holder());
6147 RefPtr<EventListener> eventListenerArg; 6146 RefPtr<EventListener> eventListenerArg;
6148 { 6147 {
6149 eventListenerArg = V8EventListenerList::getEventListener(ScriptState::cu rrent(info.GetIsolate()), info[1], false, ListenerFindOrCreate); 6148 eventListenerArg = V8EventListenerList::getEventListener(ScriptState::cu rrent(info.GetIsolate()), info[1], false, ListenerFindOrCreate);
6150 } 6149 }
6151 impl->voidMethodEventListenerArg(eventListenerArg); 6150 impl->voidMethodEventListenerOrNullArg(eventListenerArg);
6152 if (listener && !impl->toNode()) 6151 if (listener && !impl->toNode())
6153 removeHiddenValueFromArray(info.Holder(), info[1], V8TestObject::eventLi stenerCacheIndex, info.GetIsolate()); 6152 removeHiddenValueFromArray(info.Holder(), info[1], V8TestObject::eventLi stenerCacheIndex, info.GetIsolate());
6154 } 6153 }
6155 6154
6156 static void voidMethodEventListenerArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 6155 static void voidMethodEventListenerOrNullArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
6157 { 6156 {
6158 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6157 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6159 TestObjectV8Internal::voidMethodEventListenerArgMethod(info); 6158 TestObjectV8Internal::voidMethodEventListenerOrNullArgMethod(info);
6160 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6159 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6161 } 6160 }
6162 6161
6163 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6162 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6164 { 6163 {
6165 if (UNLIKELY(info.Length() < 1)) { 6164 if (UNLIKELY(info.Length() < 1)) {
6166 throwMinimumArityTypeErrorForMethod("voidMethodNodeFilterArg", "TestObje ct", 1, info.Length(), info.GetIsolate()); 6165 throwMinimumArityTypeErrorForMethod("voidMethodNodeFilterArg", "TestObje ct", 1, info.Length(), info.GetIsolate());
6167 return; 6166 return;
6168 } 6167 }
6169 TestObject* impl = V8TestObject::toNative(info.Holder()); 6168 TestObject* impl = V8TestObject::toNative(info.Holder());
(...skipping 3019 matching lines...) Expand 10 before | Expand all | Expand 10 after
9189 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0}, 9188 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0},
9190 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1}, 9189 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1},
9191 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0} , 9190 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0} ,
9192 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC allback, 0, 1}, 9191 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC allback, 0, 1},
9193 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0 , 0}, 9192 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0 , 0},
9194 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0 , 0}, 9193 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0 , 0},
9195 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 0}, 9194 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 0},
9196 {"serializedScriptValueMethod", TestObjectV8Internal::serializedScriptValueM ethodMethodCallback, 0, 0}, 9195 {"serializedScriptValueMethod", TestObjectV8Internal::serializedScriptValueM ethodMethodCallback, 0, 0},
9197 {"xPathNSResolverMethod", TestObjectV8Internal::xPathNSResolverMethodMethodC allback, 0, 0}, 9196 {"xPathNSResolverMethod", TestObjectV8Internal::xPathNSResolverMethodMethodC allback, 0, 0},
9198 {"voidMethodDictionaryArg", TestObjectV8Internal::voidMethodDictionaryArgMet hodCallback, 0, 1}, 9197 {"voidMethodDictionaryArg", TestObjectV8Internal::voidMethodDictionaryArgMet hodCallback, 0, 1},
9199 {"voidMethodEventListenerArg", TestObjectV8Internal::voidMethodEventListener ArgMethodCallback, 0, 1}, 9198 {"voidMethodEventListenerOrNullArg", TestObjectV8Internal::voidMethodEventLi stenerOrNullArgMethodCallback, 0, 1},
9200 {"voidMethodNodeFilterArg", TestObjectV8Internal::voidMethodNodeFilterArgMet hodCallback, 0, 1}, 9199 {"voidMethodNodeFilterArg", TestObjectV8Internal::voidMethodNodeFilterArgMet hodCallback, 0, 1},
9201 {"voidMethodPromiseArg", TestObjectV8Internal::voidMethodPromiseArgMethodCal lback, 0, 1}, 9200 {"voidMethodPromiseArg", TestObjectV8Internal::voidMethodPromiseArgMethodCal lback, 0, 1},
9202 {"voidMethodSerializedScriptValueArg", TestObjectV8Internal::voidMethodSeria lizedScriptValueArgMethodCallback, 0, 1}, 9201 {"voidMethodSerializedScriptValueArg", TestObjectV8Internal::voidMethodSeria lizedScriptValueArgMethodCallback, 0, 1},
9203 {"voidMethodXPathNSResolverArg", TestObjectV8Internal::voidMethodXPathNSReso lverArgMethodCallback, 0, 1}, 9202 {"voidMethodXPathNSResolverArg", TestObjectV8Internal::voidMethodXPathNSReso lverArgMethodCallback, 0, 1},
9204 {"voidMethodDictionarySequenceArg", TestObjectV8Internal::voidMethodDictiona rySequenceArgMethodCallback, 0, 1}, 9203 {"voidMethodDictionarySequenceArg", TestObjectV8Internal::voidMethodDictiona rySequenceArgMethodCallback, 0, 1},
9205 {"voidMethodStringArgLongArg", TestObjectV8Internal::voidMethodStringArgLong ArgMethodCallback, 0, 2}, 9204 {"voidMethodStringArgLongArg", TestObjectV8Internal::voidMethodStringArgLong ArgMethodCallback, 0, 2},
9206 {"voidMethodOptionalStringArg", TestObjectV8Internal::voidMethodOptionalStri ngArgMethodCallback, 0, 0}, 9205 {"voidMethodOptionalStringArg", TestObjectV8Internal::voidMethodOptionalStri ngArgMethodCallback, 0, 0},
9207 {"voidMethodOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod OptionalTestInterfaceEmptyArgMethodCallback, 0, 0}, 9206 {"voidMethodOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod OptionalTestInterfaceEmptyArgMethodCallback, 0, 0},
9208 {"voidMethodOptionalLongArg", TestObjectV8Internal::voidMethodOptionalLongAr gMethodCallback, 0, 0}, 9207 {"voidMethodOptionalLongArg", TestObjectV8Internal::voidMethodOptionalLongAr gMethodCallback, 0, 0},
9209 {"stringMethodOptionalLongArg", TestObjectV8Internal::stringMethodOptionalLo ngArgMethodCallback, 0, 0}, 9208 {"stringMethodOptionalLongArg", TestObjectV8Internal::stringMethodOptionalLo ngArgMethodCallback, 0, 0},
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
9463 fromInternalPointer(object)->deref(); 9462 fromInternalPointer(object)->deref();
9464 } 9463 }
9465 9464
9466 template<> 9465 template<>
9467 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 9466 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
9468 { 9467 {
9469 return toV8(impl, creationContext, isolate); 9468 return toV8(impl, creationContext, isolate);
9470 } 9469 }
9471 9470
9472 } // namespace WebCore 9471 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698