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 5650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5661 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona
lAnyArgArg); | 5661 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona
lAnyArgArg); |
5662 } | 5662 } |
5663 | 5663 |
5664 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) | 5664 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) |
5665 { | 5665 { |
5666 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5666 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5667 TestObjectV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMethod(info
); | 5667 TestObjectV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMethod(info
); |
5668 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5668 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5669 } | 5669 } |
5670 | 5670 |
5671 static void compareHowMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | |
5672 { | |
5673 TestObject* impl = V8TestObject::toImpl(info.Holder()); | |
5674 v8SetReturnValue(info, impl->compareHowMethod()); | |
5675 } | |
5676 | |
5677 static void compareHowMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | |
5678 { | |
5679 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | |
5680 TestObjectV8Internal::compareHowMethodMethod(info); | |
5681 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
5682 } | |
5683 | |
5684 static void anyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 5671 static void anyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
5685 { | 5672 { |
5686 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5673 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5687 v8SetReturnValue(info, impl->anyMethod().v8Value()); | 5674 v8SetReturnValue(info, impl->anyMethod().v8Value()); |
5688 } | 5675 } |
5689 | 5676 |
5690 static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 5677 static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
5691 { | 5678 { |
5692 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5679 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5693 TestObjectV8Internal::anyMethodMethod(info); | 5680 TestObjectV8Internal::anyMethodMethod(info); |
5694 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5681 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5695 } | 5682 } |
5696 | 5683 |
5697 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | |
5698 { | |
5699 if (UNLIKELY(info.Length() < 1)) { | |
5700 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodCompareHowArg", "TestObject", 1, info.Length(), info.GetIsolate()), inf
o.GetIsolate()); | |
5701 return; | |
5702 } | |
5703 TestObject* impl = V8TestObject::toImpl(info.Holder()); | |
5704 Range::CompareHow compareHowArg; | |
5705 { | |
5706 v8::TryCatch block; | |
5707 V8RethrowTryCatchScope rethrow(block); | |
5708 TONATIVE_VOID_INTERNAL(compareHowArg, static_cast<Range::CompareHow>(inf
o[0]->Int32Value())); | |
5709 } | |
5710 impl->voidMethodCompareHowArg(compareHowArg); | |
5711 } | |
5712 | |
5713 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | |
5714 { | |
5715 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | |
5716 TestObjectV8Internal::voidMethodCompareHowArgMethod(info); | |
5717 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
5718 } | |
5719 | |
5720 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 5684 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
5721 { | 5685 { |
5722 if (UNLIKELY(info.Length() < 1)) { | 5686 if (UNLIKELY(info.Length() < 1)) { |
5723 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodEventTargetArg", "TestObject", 1, info.Length(), info.GetIsolate()), in
fo.GetIsolate()); | 5687 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodEventTargetArg", "TestObject", 1, info.Length(), info.GetIsolate()), in
fo.GetIsolate()); |
5724 return; | 5688 return; |
5725 } | 5689 } |
5726 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 5690 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
5727 EventTarget* eventTargetArg; | 5691 EventTarget* eventTargetArg; |
5728 { | 5692 { |
5729 eventTargetArg = V8DOMWrapper::isDOMWrapper(info[0]) ? toWrapperTypeInfo
(v8::Handle<v8::Object>::Cast(info[0]))->toEventTarget(v8::Handle<v8::Object>::C
ast(info[0])) : 0; | 5693 eventTargetArg = V8DOMWrapper::isDOMWrapper(info[0]) ? toWrapperTypeInfo
(v8::Handle<v8::Object>::Cast(info[0]))->toEventTarget(v8::Handle<v8::Object>::C
ast(info[0])) : 0; |
(...skipping 4478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10208 {"voidMethodUnsignedLongArg", TestObjectV8Internal::voidMethodUnsignedLongAr
gMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10172 {"voidMethodUnsignedLongArg", TestObjectV8Internal::voidMethodUnsignedLongAr
gMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10209 {"voidMethodUnsignedLongLongArg", TestObjectV8Internal::voidMethodUnsignedLo
ngLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10173 {"voidMethodUnsignedLongLongArg", TestObjectV8Internal::voidMethodUnsignedLo
ngLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10210 {"voidMethodUnsignedShortArg", TestObjectV8Internal::voidMethodUnsignedShort
ArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10174 {"voidMethodUnsignedShortArg", TestObjectV8Internal::voidMethodUnsignedShort
ArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10211 {"testInterfaceEmptyMethod", TestObjectV8Internal::testInterfaceEmptyMethodM
ethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10175 {"testInterfaceEmptyMethod", TestObjectV8Internal::testInterfaceEmptyMethodM
ethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10212 {"voidMethodTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodTestInte
rfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10176 {"voidMethodTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodTestInte
rfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10213 {"voidMethodLongArgTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodL
ongArgTestInterfaceEmptyArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAl
lScripts}, | 10177 {"voidMethodLongArgTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodL
ongArgTestInterfaceEmptyArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAl
lScripts}, |
10214 {"voidCallbackFunctionMethod", TestObjectV8Internal::voidCallbackFunctionMet
hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10178 {"voidCallbackFunctionMethod", TestObjectV8Internal::voidCallbackFunctionMet
hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10215 {"anyCallbackFunctionOptionalAnyArgMethod", TestObjectV8Internal::anyCallbac
kFunctionOptionalAnyArgMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo
AllScripts}, | 10179 {"anyCallbackFunctionOptionalAnyArgMethod", TestObjectV8Internal::anyCallbac
kFunctionOptionalAnyArgMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo
AllScripts}, |
10216 {"voidMethodVoidCallbackFunctionArg", TestObjectV8Internal::voidMethodVoidCa
llbackFunctionArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10180 {"voidMethodVoidCallbackFunctionArg", TestObjectV8Internal::voidMethodVoidCa
llbackFunctionArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10217 {"voidMethodAnyCallbackFunctionOptionalAnyArg", TestObjectV8Internal::voidMe
thodAnyCallbackFunctionOptionalAnyArgMethodCallback, 0, 1, V8DOMConfiguration::E
xposedToAllScripts}, | 10181 {"voidMethodAnyCallbackFunctionOptionalAnyArg", TestObjectV8Internal::voidMe
thodAnyCallbackFunctionOptionalAnyArgMethodCallback, 0, 1, V8DOMConfiguration::E
xposedToAllScripts}, |
10218 {"compareHowMethod", TestObjectV8Internal::compareHowMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, | |
10219 {"anyMethod", TestObjectV8Internal::anyMethodMethodCallback, 0, 0, V8DOMConf
iguration::ExposedToAllScripts}, | 10182 {"anyMethod", TestObjectV8Internal::anyMethodMethodCallback, 0, 0, V8DOMConf
iguration::ExposedToAllScripts}, |
10220 {"voidMethodCompareHowArg", TestObjectV8Internal::voidMethodCompareHowArgMet
hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | |
10221 {"voidMethodEventTargetArg", TestObjectV8Internal::voidMethodEventTargetArgM
ethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10183 {"voidMethodEventTargetArg", TestObjectV8Internal::voidMethodEventTargetArgM
ethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10222 {"voidMethodAnyArg", TestObjectV8Internal::voidMethodAnyArgMethodCallback, 0
, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10184 {"voidMethodAnyArg", TestObjectV8Internal::voidMethodAnyArgMethodCallback, 0
, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10223 {"voidMethodAttrArg", TestObjectV8Internal::voidMethodAttrArgMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10185 {"voidMethodAttrArg", TestObjectV8Internal::voidMethodAttrArgMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10224 {"voidMethodDocumentArg", TestObjectV8Internal::voidMethodDocumentArgMethodC
allback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10186 {"voidMethodDocumentArg", TestObjectV8Internal::voidMethodDocumentArgMethodC
allback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10225 {"voidMethodDocumentTypeArg", TestObjectV8Internal::voidMethodDocumentTypeAr
gMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10187 {"voidMethodDocumentTypeArg", TestObjectV8Internal::voidMethodDocumentTypeAr
gMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10226 {"voidMethodElementArg", TestObjectV8Internal::voidMethodElementArgMethodCal
lback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10188 {"voidMethodElementArg", TestObjectV8Internal::voidMethodElementArgMethodCal
lback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10227 {"voidMethodNodeArg", TestObjectV8Internal::voidMethodNodeArgMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10189 {"voidMethodNodeArg", TestObjectV8Internal::voidMethodNodeArgMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10228 {"arrayBufferMethod", TestObjectV8Internal::arrayBufferMethodMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10190 {"arrayBufferMethod", TestObjectV8Internal::arrayBufferMethodMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10229 {"arrayBufferViewMethod", TestObjectV8Internal::arrayBufferViewMethodMethodC
allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10191 {"arrayBufferViewMethod", TestObjectV8Internal::arrayBufferViewMethodMethodC
allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10230 {"float32ArrayMethod", TestObjectV8Internal::float32ArrayMethodMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10192 {"float32ArrayMethod", TestObjectV8Internal::float32ArrayMethodMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11130 PrivateScriptRunner::runDOMAttributeSetter(scriptState, "TestObject", "enumF
orPrivateScript", holder, v8String(scriptState->isolate(), cppValue)); | 11092 PrivateScriptRunner::runDOMAttributeSetter(scriptState, "TestObject", "enumF
orPrivateScript", holder, v8String(scriptState->isolate(), cppValue)); |
11131 if (block.HasCaught()) { | 11093 if (block.HasCaught()) { |
11132 PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->isolat
e(), block, scriptStateInUserScript, ExceptionState::SetterContext, "enumForPriv
ateScript", "TestObject"); | 11094 PrivateScriptRunner::rethrowExceptionInPrivateScript(scriptState->isolat
e(), block, scriptStateInUserScript, ExceptionState::SetterContext, "enumForPriv
ateScript", "TestObject"); |
11133 block.ReThrow(); | 11095 block.ReThrow(); |
11134 return false; | 11096 return false; |
11135 } | 11097 } |
11136 return true; | 11098 return true; |
11137 } | 11099 } |
11138 | 11100 |
11139 } // namespace blink | 11101 } // namespace blink |
OLD | NEW |