| OLD | NEW |
| 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 Loading... |
| 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 |
| 6773 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 6791 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 6774 { | 6792 { |
| 6775 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6793 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 6776 v8SetReturnValue(info, impl->nodeFilterMethod()); | 6794 v8SetReturnValue(info, impl->nodeFilterMethod()); |
| 6777 } | 6795 } |
| 6778 | 6796 |
| 6779 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 6797 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 6780 { | 6798 { |
| 6781 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6799 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6782 TestObjectV8Internal::nodeFilterMethodMethod(info); | 6800 TestObjectV8Internal::nodeFilterMethodMethod(info); |
| (...skipping 4001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10784 {"voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg", TestObjectV8Interna
l::voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethodCallback, 0, 1, V8D
OMConfiguration::ExposedToAllScripts}, | 10802 {"voidMethodDOMStringOrArrayBufferOrArrayBufferViewArg", TestObjectV8Interna
l::voidMethodDOMStringOrArrayBufferOrArrayBufferViewArgMethodCallback, 0, 1, V8D
OMConfiguration::ExposedToAllScripts}, |
| 10785 {"voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg", TestObjectV8Intern
al::voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethodCallback, 0, 1, V
8DOMConfiguration::ExposedToAllScripts}, | 10803 {"voidMethodArrayBufferOrArrayBufferViewOrDictionaryArg", TestObjectV8Intern
al::voidMethodArrayBufferOrArrayBufferViewOrDictionaryArgMethodCallback, 0, 1, V
8DOMConfiguration::ExposedToAllScripts}, |
| 10786 {"voidMethodTestInterfaceEmptyOrNullArg", TestObjectV8Internal::voidMethodTe
stInterfaceEmptyOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllS
cripts}, | 10804 {"voidMethodTestInterfaceEmptyOrNullArg", TestObjectV8Internal::voidMethodTe
stInterfaceEmptyOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllS
cripts}, |
| 10787 {"voidMethodTestCallbackInterfaceArg", TestObjectV8Internal::voidMethodTestC
allbackInterfaceArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts
}, | 10805 {"voidMethodTestCallbackInterfaceArg", TestObjectV8Internal::voidMethodTestC
allbackInterfaceArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts
}, |
| 10788 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet
hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0, V8DOMConfiguration::Exp
osedToAllScripts}, | 10806 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet
hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0, V8DOMConfiguration::Exp
osedToAllScripts}, |
| 10789 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho
dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed
ToAllScripts}, | 10807 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho
dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::Exposed
ToAllScripts}, |
| 10790 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0,
V8DOMConfiguration::ExposedToAllScripts}, | 10808 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0,
V8DOMConfiguration::ExposedToAllScripts}, |
| 10791 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC
allback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10809 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC
allback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
| 10792 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10810 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| 10793 {"testDictionaryMethod", TestObjectV8Internal::testDictionaryMethodMethodCal
lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10811 {"testDictionaryMethod", TestObjectV8Internal::testDictionaryMethodMethodCal
lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| 10812 {"nullableTestDictionaryMethod", TestObjectV8Internal::nullableTestDictionar
yMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| 10794 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10813 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| 10795 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 3, V
8DOMConfiguration::ExposedToAllScripts}, | 10814 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 3, V
8DOMConfiguration::ExposedToAllScripts}, |
| 10796 {"promiseMethodWithoutExceptionState", TestObjectV8Internal::promiseMethodWi
thoutExceptionStateMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts
}, | 10815 {"promiseMethodWithoutExceptionState", TestObjectV8Internal::promiseMethodWi
thoutExceptionStateMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts
}, |
| 10797 {"serializedScriptValueMethod", TestObjectV8Internal::serializedScriptValueM
ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10816 {"serializedScriptValueMethod", TestObjectV8Internal::serializedScriptValueM
ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| 10798 {"xPathNSResolverMethod", TestObjectV8Internal::xPathNSResolverMethodMethodC
allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10817 {"xPathNSResolverMethod", TestObjectV8Internal::xPathNSResolverMethodMethodC
allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| 10799 {"voidMethodDictionaryArg", TestObjectV8Internal::voidMethodDictionaryArgMet
hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10818 {"voidMethodDictionaryArg", TestObjectV8Internal::voidMethodDictionaryArgMet
hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
| 10800 {"voidMethodNodeFilterArg", TestObjectV8Internal::voidMethodNodeFilterArgMet
hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10819 {"voidMethodNodeFilterArg", TestObjectV8Internal::voidMethodNodeFilterArgMet
hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
| 10801 {"voidMethodPromiseArg", TestObjectV8Internal::voidMethodPromiseArgMethodCal
lback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10820 {"voidMethodPromiseArg", TestObjectV8Internal::voidMethodPromiseArgMethodCal
lback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
| 10802 {"voidMethodSerializedScriptValueArg", TestObjectV8Internal::voidMethodSeria
lizedScriptValueArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts
}, | 10821 {"voidMethodSerializedScriptValueArg", TestObjectV8Internal::voidMethodSeria
lizedScriptValueArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts
}, |
| 10803 {"voidMethodXPathNSResolverArg", TestObjectV8Internal::voidMethodXPathNSReso
lverArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10822 {"voidMethodXPathNSResolverArg", TestObjectV8Internal::voidMethodXPathNSReso
lverArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
| (...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11572 return false; | 11591 return false; |
| 11573 | 11592 |
| 11574 ScriptState::Scope scope(scriptState); | 11593 ScriptState::Scope scope(scriptState); |
| 11575 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); | 11594 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob
al(), scriptState->isolate()); |
| 11576 | 11595 |
| 11577 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 11596 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)); | 11597 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
| 11579 } | 11598 } |
| 11580 | 11599 |
| 11581 } // namespace blink | 11600 } // namespace blink |
| OLD | NEW |