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 6705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6716 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); | 6716 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); |
6717 } | 6717 } |
6718 | 6718 |
6719 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6719 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
6720 { | 6720 { |
6721 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6721 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6722 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info); | 6722 TestObjectV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info); |
6723 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6723 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6724 } | 6724 } |
6725 | 6725 |
| 6726 static void voidMethodNullableArrayLongArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 6727 { |
| 6728 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodN
ullableArrayLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 6729 if (UNLIKELY(info.Length() < 1)) { |
| 6730 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6731 exceptionState.throwIfNeeded(); |
| 6732 return; |
| 6733 } |
| 6734 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 6735 Nullable<Vector<int>> arrayLongArg; |
| 6736 { |
| 6737 if (!isUndefinedOrNull(info[0])) { |
| 6738 arrayLongArg = toImplArray<int>(info[0], 1, info.GetIsolate(), excep
tionState); |
| 6739 if (exceptionState.throwIfNeeded()) |
| 6740 return; |
| 6741 } |
| 6742 } |
| 6743 impl->voidMethodNullableArrayLongArg(arrayLongArg); |
| 6744 } |
| 6745 |
| 6746 static void voidMethodNullableArrayLongArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
| 6747 { |
| 6748 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6749 TestObjectV8Internal::voidMethodNullableArrayLongArgMethod(info); |
| 6750 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6751 } |
| 6752 |
6726 static void longSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6753 static void longSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6727 { | 6754 { |
6728 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6755 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6729 v8SetReturnValue(info, toV8(impl->longSequenceMethod(), info.Holder(), info.
GetIsolate())); | 6756 v8SetReturnValue(info, toV8(impl->longSequenceMethod(), info.Holder(), info.
GetIsolate())); |
6730 } | 6757 } |
6731 | 6758 |
6732 static void longSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 6759 static void longSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
6733 { | 6760 { |
6734 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6761 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6735 TestObjectV8Internal::longSequenceMethodMethod(info); | 6762 TestObjectV8Internal::longSequenceMethodMethod(info); |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6855 impl->voidMethodSequenceSequenceDOMStringArg(stringSequenceSequenceArg); | 6882 impl->voidMethodSequenceSequenceDOMStringArg(stringSequenceSequenceArg); |
6856 } | 6883 } |
6857 | 6884 |
6858 static void voidMethodSequenceSequenceDOMStringArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 6885 static void voidMethodSequenceSequenceDOMStringArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
6859 { | 6886 { |
6860 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6887 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6861 TestObjectV8Internal::voidMethodSequenceSequenceDOMStringArgMethod(info); | 6888 TestObjectV8Internal::voidMethodSequenceSequenceDOMStringArgMethod(info); |
6862 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6889 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6863 } | 6890 } |
6864 | 6891 |
| 6892 static void voidMethodNullableSequenceLongArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 6893 { |
| 6894 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodN
ullableSequenceLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 6895 if (UNLIKELY(info.Length() < 1)) { |
| 6896 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6897 exceptionState.throwIfNeeded(); |
| 6898 return; |
| 6899 } |
| 6900 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 6901 Nullable<Vector<int>> longSequenceArg; |
| 6902 { |
| 6903 if (!isUndefinedOrNull(info[0])) { |
| 6904 longSequenceArg = toImplArray<int>(info[0], 1, info.GetIsolate(), ex
ceptionState); |
| 6905 if (exceptionState.throwIfNeeded()) |
| 6906 return; |
| 6907 } |
| 6908 } |
| 6909 impl->voidMethodNullableSequenceLongArg(longSequenceArg); |
| 6910 } |
| 6911 |
| 6912 static void voidMethodNullableSequenceLongArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
| 6913 { |
| 6914 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6915 TestObjectV8Internal::voidMethodNullableSequenceLongArgMethod(info); |
| 6916 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6917 } |
| 6918 |
6865 static void nullableLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6919 static void nullableLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6866 { | 6920 { |
6867 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6921 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
6868 Nullable<int> result = impl->nullableLongMethod(); | 6922 Nullable<int> result = impl->nullableLongMethod(); |
6869 if (result.isNull()) | 6923 if (result.isNull()) |
6870 v8SetReturnValueNull(info); | 6924 v8SetReturnValueNull(info); |
6871 else | 6925 else |
6872 v8SetReturnValueInt(info, result.get()); | 6926 v8SetReturnValueInt(info, result.get()); |
6873 } | 6927 } |
6874 | 6928 |
(...skipping 4959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11834 {"voidMethodArrayBufferViewArg", TestObjectV8Internal::voidMethodArrayBuffer
ViewArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 11888 {"voidMethodArrayBufferViewArg", TestObjectV8Internal::voidMethodArrayBuffer
ViewArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
11835 {"voidMethodFloat32ArrayArg", TestObjectV8Internal::voidMethodFloat32ArrayAr
gMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 11889 {"voidMethodFloat32ArrayArg", TestObjectV8Internal::voidMethodFloat32ArrayAr
gMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
11836 {"voidMethodInt32ArrayArg", TestObjectV8Internal::voidMethodInt32ArrayArgMet
hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 11890 {"voidMethodInt32ArrayArg", TestObjectV8Internal::voidMethodInt32ArrayArgMet
hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
11837 {"voidMethodUint8ArrayArg", TestObjectV8Internal::voidMethodUint8ArrayArgMet
hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 11891 {"voidMethodUint8ArrayArg", TestObjectV8Internal::voidMethodUint8ArrayArgMet
hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
11838 {"longArrayMethod", TestObjectV8Internal::longArrayMethodMethodCallback, 0,
0, V8DOMConfiguration::ExposedToAllScripts}, | 11892 {"longArrayMethod", TestObjectV8Internal::longArrayMethodMethodCallback, 0,
0, V8DOMConfiguration::ExposedToAllScripts}, |
11839 {"stringArrayMethod", TestObjectV8Internal::stringArrayMethodMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 11893 {"stringArrayMethod", TestObjectV8Internal::stringArrayMethodMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
11840 {"testInterfaceEmptyArrayMethod", TestObjectV8Internal::testInterfaceEmptyAr
rayMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 11894 {"testInterfaceEmptyArrayMethod", TestObjectV8Internal::testInterfaceEmptyAr
rayMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
11841 {"voidMethodArrayLongArg", TestObjectV8Internal::voidMethodArrayLongArgMetho
dCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 11895 {"voidMethodArrayLongArg", TestObjectV8Internal::voidMethodArrayLongArgMetho
dCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
11842 {"voidMethodArrayStringArg", TestObjectV8Internal::voidMethodArrayStringArgM
ethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 11896 {"voidMethodArrayStringArg", TestObjectV8Internal::voidMethodArrayStringArgM
ethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
11843 {"voidMethodArrayTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodArr
ayTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScr
ipts}, | 11897 {"voidMethodArrayTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodArr
ayTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScr
ipts}, |
| 11898 {"voidMethodNullableArrayLongArg", TestObjectV8Internal::voidMethodNullableA
rrayLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
11844 {"longSequenceMethod", TestObjectV8Internal::longSequenceMethodMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 11899 {"longSequenceMethod", TestObjectV8Internal::longSequenceMethodMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
11845 {"stringSequenceMethod", TestObjectV8Internal::stringSequenceMethodMethodCal
lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 11900 {"stringSequenceMethod", TestObjectV8Internal::stringSequenceMethodMethodCal
lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
11846 {"testInterfaceEmptySequenceMethod", TestObjectV8Internal::testInterfaceEmpt
ySequenceMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 11901 {"testInterfaceEmptySequenceMethod", TestObjectV8Internal::testInterfaceEmpt
ySequenceMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
11847 {"voidMethodSequenceLongArg", TestObjectV8Internal::voidMethodSequenceLongAr
gMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 11902 {"voidMethodSequenceLongArg", TestObjectV8Internal::voidMethodSequenceLongAr
gMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
11848 {"voidMethodSequenceStringArg", TestObjectV8Internal::voidMethodSequenceStri
ngArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 11903 {"voidMethodSequenceStringArg", TestObjectV8Internal::voidMethodSequenceStri
ngArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
11849 {"voidMethodSequenceTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod
SequenceTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedTo
AllScripts}, | 11904 {"voidMethodSequenceTestInterfaceEmptyArg", TestObjectV8Internal::voidMethod
SequenceTestInterfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedTo
AllScripts}, |
11850 {"voidMethodSequenceSequenceDOMStringArg", TestObjectV8Internal::voidMethodS
equenceSequenceDOMStringArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAl
lScripts}, | 11905 {"voidMethodSequenceSequenceDOMStringArg", TestObjectV8Internal::voidMethodS
equenceSequenceDOMStringArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAl
lScripts}, |
| 11906 {"voidMethodNullableSequenceLongArg", TestObjectV8Internal::voidMethodNullab
leSequenceLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
11851 {"nullableLongMethod", TestObjectV8Internal::nullableLongMethodMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 11907 {"nullableLongMethod", TestObjectV8Internal::nullableLongMethodMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
11852 {"nullableStringMethod", TestObjectV8Internal::nullableStringMethodMethodCal
lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 11908 {"nullableStringMethod", TestObjectV8Internal::nullableStringMethodMethodCal
lback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
11853 {"nullableTestInterfaceMethod", TestObjectV8Internal::nullableTestInterfaceM
ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 11909 {"nullableTestInterfaceMethod", TestObjectV8Internal::nullableTestInterfaceM
ethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
11854 {"nullableLongSequenceMethod", TestObjectV8Internal::nullableLongSequenceMet
hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 11910 {"nullableLongSequenceMethod", TestObjectV8Internal::nullableLongSequenceMet
hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
11855 {"testInterfaceGarbageCollectedOrDOMStringMethod", TestObjectV8Internal::tes
tInterfaceGarbageCollectedOrDOMStringMethodMethodCallback, 0, 0, V8DOMConfigurat
ion::ExposedToAllScripts}, | 11911 {"testInterfaceGarbageCollectedOrDOMStringMethod", TestObjectV8Internal::tes
tInterfaceGarbageCollectedOrDOMStringMethodMethodCallback, 0, 0, V8DOMConfigurat
ion::ExposedToAllScripts}, |
11856 {"testInterfaceWillBeGarbageCollectedOrTestDictionaryMethod", TestObjectV8In
ternal::testInterfaceWillBeGarbageCollectedOrTestDictionaryMethodMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 11912 {"testInterfaceWillBeGarbageCollectedOrTestDictionaryMethod", TestObjectV8In
ternal::testInterfaceWillBeGarbageCollectedOrTestDictionaryMethodMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
11857 {"booleanOrDOMStringOrUnrestrictedDoubleMethod", TestObjectV8Internal::boole
anOrDOMStringOrUnrestrictedDoubleMethodMethodCallback, 0, 0, V8DOMConfiguration:
:ExposedToAllScripts}, | 11913 {"booleanOrDOMStringOrUnrestrictedDoubleMethod", TestObjectV8Internal::boole
anOrDOMStringOrUnrestrictedDoubleMethodMethodCallback, 0, 0, V8DOMConfiguration:
:ExposedToAllScripts}, |
11858 {"testInterfaceOrLongMethod", TestObjectV8Internal::testInterfaceOrLongMetho
dMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 11914 {"testInterfaceOrLongMethod", TestObjectV8Internal::testInterfaceOrLongMetho
dMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
11859 {"voidMethodDoubleOrDOMStringArg", TestObjectV8Internal::voidMethodDoubleOrD
OMStringArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 11915 {"voidMethodDoubleOrDOMStringArg", TestObjectV8Internal::voidMethodDoubleOrD
OMStringArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
11860 {"voidMethodDoubleOrDOMStringOrNullArg", TestObjectV8Internal::voidMethodDou
bleOrDOMStringOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScr
ipts}, | 11916 {"voidMethodDoubleOrDOMStringOrNullArg", TestObjectV8Internal::voidMethodDou
bleOrDOMStringOrNullArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScr
ipts}, |
(...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12682 return false; | 12738 return false; |
12683 | 12739 |
12684 ScriptState::Scope scope(scriptState); | 12740 ScriptState::Scope scope(scriptState); |
12685 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 12741 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
12686 | 12742 |
12687 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 12743 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
12688 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 12744 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
12689 } | 12745 } |
12690 | 12746 |
12691 } // namespace blink | 12747 } // namespace blink |
OLD | NEW |