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

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: Move ext attr to interface 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "bindings/v8/V8ObjectConstructor.h" 45 #include "bindings/v8/V8ObjectConstructor.h"
46 #include "bindings/v8/custom/V8ArrayBufferCustom.h" 46 #include "bindings/v8/custom/V8ArrayBufferCustom.h"
47 #include "bindings/v8/custom/V8ArrayBufferViewCustom.h" 47 #include "bindings/v8/custom/V8ArrayBufferViewCustom.h"
48 #include "bindings/v8/custom/V8Float32ArrayCustom.h" 48 #include "bindings/v8/custom/V8Float32ArrayCustom.h"
49 #include "bindings/v8/custom/V8Int32ArrayCustom.h" 49 #include "bindings/v8/custom/V8Int32ArrayCustom.h"
50 #include "bindings/v8/custom/V8Uint8ArrayCustom.h" 50 #include "bindings/v8/custom/V8Uint8ArrayCustom.h"
51 #include "core/css/MediaQueryListListener.h" 51 #include "core/css/MediaQueryListListener.h"
52 #include "core/dom/ContextFeatures.h" 52 #include "core/dom/ContextFeatures.h"
53 #include "core/dom/Document.h" 53 #include "core/dom/Document.h"
54 #include "core/dom/custom/CustomElementCallbackDispatcher.h" 54 #include "core/dom/custom/CustomElementCallbackDispatcher.h"
55 #include "core/frame/DOMWindow.h"
56 #include "core/frame/UseCounter.h" 55 #include "core/frame/UseCounter.h"
57 #include "core/inspector/ScriptArguments.h" 56 #include "core/inspector/ScriptArguments.h"
58 #include "platform/TraceEvent.h" 57 #include "platform/TraceEvent.h"
59 #include "wtf/GetPtr.h" 58 #include "wtf/GetPtr.h"
60 #include "wtf/RefPtr.h" 59 #include "wtf/RefPtr.h"
61 60
62 namespace WebCore { 61 namespace WebCore {
63 62
64 static void initializeScriptWrappableForInterface(TestObject* object) 63 static void initializeScriptWrappableForInterface(TestObject* object)
65 { 64 {
(...skipping 6063 matching lines...) Expand 10 before | Expand all | Expand 10 after
6129 impl->voidMethodDictionaryArg(dictionaryArg); 6128 impl->voidMethodDictionaryArg(dictionaryArg);
6130 } 6129 }
6131 6130
6132 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 6131 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
6133 { 6132 {
6134 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6133 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6135 TestObjectV8Internal::voidMethodDictionaryArgMethod(info); 6134 TestObjectV8Internal::voidMethodDictionaryArgMethod(info);
6136 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6135 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6137 } 6136 }
6138 6137
6139 static void voidMethodEventListenerArgMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 6138 static void voidMethodEventListenerOrNullArgMethod(const v8::FunctionCallbackInf o<v8::Value>& info)
6140 { 6139 {
6141 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE ventListenerArg", "TestObject", info.Holder(), info.GetIsolate());
6142 if (UNLIKELY(info.Length() < 1)) { 6140 if (UNLIKELY(info.Length() < 1)) {
6143 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 6141 throwMinimumArityTypeErrorForMethod("voidMethodEventListenerOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate());
6144 return; 6142 return;
6145 } 6143 }
6146 TestObject* impl = V8TestObject::toNative(info.Holder()); 6144 TestObject* impl = V8TestObject::toNative(info.Holder());
6147 RefPtr<EventListener> eventListenerArg; 6145 RefPtr<EventListener> eventListenerArg;
6148 { 6146 {
6149 eventListenerArg = V8EventListenerList::getEventListener(ScriptState::cu rrent(info.GetIsolate()), info[1], false, ListenerFindOrCreate); 6147 eventListenerArg = V8EventListenerList::getEventListener(ScriptState::cu rrent(info.GetIsolate()), info[1], false, ListenerFindOrCreate);
6150 } 6148 }
6151 impl->voidMethodEventListenerArg(eventListenerArg); 6149 impl->voidMethodEventListenerOrNullArg(eventListenerArg);
6152 if (listener && !impl->toNode()) 6150 if (listener && !impl->toNode())
6153 removeHiddenValueFromArray(info.Holder(), info[1], V8TestObject::eventLi stenerCacheIndex, info.GetIsolate()); 6151 removeHiddenValueFromArray(info.Holder(), info[1], V8TestObject::eventLi stenerCacheIndex, info.GetIsolate());
6154 } 6152 }
6155 6153
6156 static void voidMethodEventListenerArgMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 6154 static void voidMethodEventListenerOrNullArgMethodCallback(const v8::FunctionCal lbackInfo<v8::Value>& info)
6157 { 6155 {
6158 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 6156 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
6159 TestObjectV8Internal::voidMethodEventListenerArgMethod(info); 6157 TestObjectV8Internal::voidMethodEventListenerOrNullArgMethod(info);
6160 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 6158 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
6161 } 6159 }
6162 6160
6163 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6161 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6164 { 6162 {
6165 if (UNLIKELY(info.Length() < 1)) { 6163 if (UNLIKELY(info.Length() < 1)) {
6166 throwMinimumArityTypeErrorForMethod("voidMethodNodeFilterArg", "TestObje ct", 1, info.Length(), info.GetIsolate()); 6164 throwMinimumArityTypeErrorForMethod("voidMethodNodeFilterArg", "TestObje ct", 1, info.Length(), info.GetIsolate());
6167 return; 6165 return;
6168 } 6166 }
6169 TestObject* impl = V8TestObject::toNative(info.Holder()); 6167 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}, 9187 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0},
9190 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1}, 9188 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1},
9191 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0} , 9189 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0} ,
9192 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC allback, 0, 1}, 9190 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC allback, 0, 1},
9193 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0 , 0}, 9191 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0 , 0},
9194 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0 , 0}, 9192 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0 , 0},
9195 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 0}, 9193 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 0},
9196 {"serializedScriptValueMethod", TestObjectV8Internal::serializedScriptValueM ethodMethodCallback, 0, 0}, 9194 {"serializedScriptValueMethod", TestObjectV8Internal::serializedScriptValueM ethodMethodCallback, 0, 0},
9197 {"xPathNSResolverMethod", TestObjectV8Internal::xPathNSResolverMethodMethodC allback, 0, 0}, 9195 {"xPathNSResolverMethod", TestObjectV8Internal::xPathNSResolverMethodMethodC allback, 0, 0},
9198 {"voidMethodDictionaryArg", TestObjectV8Internal::voidMethodDictionaryArgMet hodCallback, 0, 1}, 9196 {"voidMethodDictionaryArg", TestObjectV8Internal::voidMethodDictionaryArgMet hodCallback, 0, 1},
9199 {"voidMethodEventListenerArg", TestObjectV8Internal::voidMethodEventListener ArgMethodCallback, 0, 1}, 9197 {"voidMethodEventListenerOrNullArg", TestObjectV8Internal::voidMethodEventLi stenerOrNullArgMethodCallback, 0, 1},
9200 {"voidMethodNodeFilterArg", TestObjectV8Internal::voidMethodNodeFilterArgMet hodCallback, 0, 1}, 9198 {"voidMethodNodeFilterArg", TestObjectV8Internal::voidMethodNodeFilterArgMet hodCallback, 0, 1},
9201 {"voidMethodPromiseArg", TestObjectV8Internal::voidMethodPromiseArgMethodCal lback, 0, 1}, 9199 {"voidMethodPromiseArg", TestObjectV8Internal::voidMethodPromiseArgMethodCal lback, 0, 1},
9202 {"voidMethodSerializedScriptValueArg", TestObjectV8Internal::voidMethodSeria lizedScriptValueArgMethodCallback, 0, 1}, 9200 {"voidMethodSerializedScriptValueArg", TestObjectV8Internal::voidMethodSeria lizedScriptValueArgMethodCallback, 0, 1},
9203 {"voidMethodXPathNSResolverArg", TestObjectV8Internal::voidMethodXPathNSReso lverArgMethodCallback, 0, 1}, 9201 {"voidMethodXPathNSResolverArg", TestObjectV8Internal::voidMethodXPathNSReso lverArgMethodCallback, 0, 1},
9204 {"voidMethodDictionarySequenceArg", TestObjectV8Internal::voidMethodDictiona rySequenceArgMethodCallback, 0, 1}, 9202 {"voidMethodDictionarySequenceArg", TestObjectV8Internal::voidMethodDictiona rySequenceArgMethodCallback, 0, 1},
9205 {"voidMethodStringArgLongArg", TestObjectV8Internal::voidMethodStringArgLong ArgMethodCallback, 0, 2}, 9203 {"voidMethodStringArgLongArg", TestObjectV8Internal::voidMethodStringArgLong ArgMethodCallback, 0, 2},
9206 {"voidMethodOptionalStringArg", TestObjectV8Internal::voidMethodOptionalStri ngArgMethodCallback, 0, 0}, 9204 {"voidMethodOptionalStringArg", TestObjectV8Internal::voidMethodOptionalStri ngArgMethodCallback, 0, 0},
9207 {"voidMethodOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod OptionalTestInterfaceEmptyArgMethodCallback, 0, 0}, 9205 {"voidMethodOptionalTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod OptionalTestInterfaceEmptyArgMethodCallback, 0, 0},
9208 {"voidMethodOptionalLongArg", TestObjectV8Internal::voidMethodOptionalLongAr gMethodCallback, 0, 0}, 9206 {"voidMethodOptionalLongArg", TestObjectV8Internal::voidMethodOptionalLongAr gMethodCallback, 0, 0},
9209 {"stringMethodOptionalLongArg", TestObjectV8Internal::stringMethodOptionalLo ngArgMethodCallback, 0, 0}, 9207 {"stringMethodOptionalLongArg", TestObjectV8Internal::stringMethodOptionalLo ngArgMethodCallback, 0, 0},
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
9463 fromInternalPointer(object)->deref(); 9461 fromInternalPointer(object)->deref();
9464 } 9462 }
9465 9463
9466 template<> 9464 template<>
9467 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 9465 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
9468 { 9466 {
9469 return toV8(impl, creationContext, isolate); 9467 return toV8(impl, creationContext, isolate);
9470 } 9468 }
9471 9469
9472 } // namespace WebCore 9470 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698