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

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

Issue 795833004: Use dictionaries for context creation attributes. Eliminate custom bindings. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years 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 "bindings/core/v8/BindingSecurity.h" 10 #include "bindings/core/v8/BindingSecurity.h"
(...skipping 6752 matching lines...) Expand 10 before | Expand all | Expand 10 after
6763 v8SetReturnValue(info, result); 6763 v8SetReturnValue(info, result);
6764 } 6764 }
6765 6765
6766 static void testDictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info) 6766 static void testDictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8 ::Value>& info)
6767 { 6767 {
6768 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6768 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6769 TestObjectV8Internal::testDictionaryMethodMethod(info); 6769 TestObjectV8Internal::testDictionaryMethodMethod(info);
6770 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6770 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6771 } 6771 }
6772 6772
6773 static void nullableTestDictionaryMethodMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
6774 {
6775 TestObject* impl = V8TestObject::toImpl(info.Holder());
6776 Nullable<TestDictionary> result;
6777 impl->nullableTestDictionaryMethod(result);
6778 if (result.isNull())
6779 v8SetReturnValueNull(info);
6780 else
6781 v8SetReturnValue(info, result.get());
6782 }
6783
6784 static void nullableTestDictionaryMethodMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
6785 {
6786 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6787 TestObjectV8Internal::nullableTestDictionaryMethodMethod(info);
6788 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6789 }
6790
6791 static void passPermissiveDictionaryMethodMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
6792 {
6793 ExceptionState exceptionState(ExceptionState::ExecutionContext, "passPermiss iveDictionaryMethod", "TestObject", info.Holder(), info.GetIsolate());
6794 TestObject* impl = V8TestObject::toImpl(info.Holder());
6795 TestDictionary arg;
6796 {
6797 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8TestDictionary::toImpl(info.G etIsolate(), info[0], arg, exceptionState), exceptionState);
6798 }
6799 impl->passPermissiveDictionaryMethod(arg);
6800 }
6801
6802 static void passPermissiveDictionaryMethodMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
6803 {
6804 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6805 TestObjectV8Internal::passPermissiveDictionaryMethodMethod(info);
6806 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6807 }
6808
6773 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo) 6809 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in fo)
6774 { 6810 {
6775 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6811 TestObject* impl = V8TestObject::toImpl(info.Holder());
6776 v8SetReturnValue(info, impl->nodeFilterMethod()); 6812 v8SetReturnValue(info, impl->nodeFilterMethod());
6777 } 6813 }
6778 6814
6779 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 6815 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
6780 { 6816 {
6781 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6817 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6782 TestObjectV8Internal::nodeFilterMethodMethod(info); 6818 TestObjectV8Internal::nodeFilterMethodMethod(info);
(...skipping 4001 matching lines...) Expand 10 before | Expand all | Expand 10 after
10784 {"voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg", TestObjectV8Interna l::voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethodCallback, 0, 1, V8D OMConfiguration::ExposedToAllScripts}, 10820 {"voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg", TestObjectV8Interna l::voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethodCallback, 0, 1, V8D OMConfiguration::ExposedToAllScripts},
10785 {"voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg", TestObjectV8Intern al::voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethodCallback, 0, 1, V 8DOMConfiguration::ExposedToAllScripts}, 10821 {"voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg", TestObjectV8Intern al::voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethodCallback, 0, 1, V 8DOMConfiguration::ExposedToAllScripts},
10786 {"voidMethodTestInterfaceEmptyOrNullArg", TestObjectV8Internal::voidMethodTe stInterfaceEmptyOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllS cripts}, 10822 {"voidMethodTestInterfaceEmptyOrNullArg", TestObjectV8Internal::voidMethodTe stInterfaceEmptyOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllS cripts},
10787 {"voidMethodTestCallbackInterfaceArg", TestObjectV8Internal::voidMethodTestC allbackInterfaceArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts }, 10823 {"voidMethodTestCallbackInterfaceArg", TestObjectV8Internal::voidMethodTestC allbackInterfaceArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts },
10788 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0, V8DOMConfiguration::Exp osedToAllScripts}, 10824 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0, V8DOMConfiguration::Exp osedToAllScripts},
10789 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed ToAllScripts}, 10825 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed ToAllScripts},
10790 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10826 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10791 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC allback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10827 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC allback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10792 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts}, 10828 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts},
10793 {"testDictionaryMethod", TestObjectV8Internal::testDictionaryMethodMethodCal lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10829 {"testDictionaryMethod", TestObjectV8Internal::testDictionaryMethodMethodCal lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10830 {"nullableTestDictionaryMethod", TestObjectV8Internal::nullableTestDictionar yMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10831 {"passPermissiveDictionaryMethod", TestObjectV8Internal::passPermissiveDicti onaryMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10794 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts}, 10832 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0 , 0, V8DOMConfiguration::ExposedToAllScripts},
10795 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 3, V 8DOMConfiguration::ExposedToAllScripts}, 10833 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 3, V 8DOMConfiguration::ExposedToAllScripts},
10796 {"promiseMethodWithoutExceptionState", TestObjectV8Internal::promiseMethodWi thoutExceptionStateMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts }, 10834 {"promiseMethodWithoutExceptionState", TestObjectV8Internal::promiseMethodWi thoutExceptionStateMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts },
10797 {"serializedScriptValueMethod", TestObjectV8Internal::serializedScriptValueM ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10835 {"serializedScriptValueMethod", TestObjectV8Internal::serializedScriptValueM ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10798 {"xPathNSResolverMethod", TestObjectV8Internal::xPathNSResolverMethodMethodC allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, 10836 {"xPathNSResolverMethod", TestObjectV8Internal::xPathNSResolverMethodMethodC allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts},
10799 {"voidMethodDictionaryArg", TestObjectV8Internal::voidMethodDictionaryArgMet hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10837 {"voidMethodDictionaryArg", TestObjectV8Internal::voidMethodDictionaryArgMet hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10800 {"voidMethodNodeFilterArg", TestObjectV8Internal::voidMethodNodeFilterArgMet hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10838 {"voidMethodNodeFilterArg", TestObjectV8Internal::voidMethodNodeFilterArgMet hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10801 {"voidMethodPromiseArg", TestObjectV8Internal::voidMethodPromiseArgMethodCal lback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10839 {"voidMethodPromiseArg", TestObjectV8Internal::voidMethodPromiseArgMethodCal lback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
10802 {"voidMethodSerializedScriptValueArg", TestObjectV8Internal::voidMethodSeria lizedScriptValueArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts }, 10840 {"voidMethodSerializedScriptValueArg", TestObjectV8Internal::voidMethodSeria lizedScriptValueArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts },
10803 {"voidMethodXPathNSResolverArg", TestObjectV8Internal::voidMethodXPathNSReso lverArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, 10841 {"voidMethodXPathNSResolverArg", TestObjectV8Internal::voidMethodXPathNSReso lverArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts},
(...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after
11572 return false; 11610 return false;
11573 11611
11574 ScriptState::Scope scope(scriptState); 11612 ScriptState::Scope scope(scriptState);
11575 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11613 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate());
11576 11614
11577 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 11615 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
11578 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 11616 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
11579 } 11617 }
11580 11618
11581 } // namespace blink 11619 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698