| 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 30 matching lines...) Expand all Loading... |
| 41 #include "bindings/tests/v8/V8TestCallbackInterface.h" | 41 #include "bindings/tests/v8/V8TestCallbackInterface.h" |
| 42 #include "bindings/tests/v8/V8TestInterface.h" | 42 #include "bindings/tests/v8/V8TestInterface.h" |
| 43 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" | 43 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" |
| 44 #include "bindings/tests/v8/V8TestInterfaceGarbageCollected.h" | 44 #include "bindings/tests/v8/V8TestInterfaceGarbageCollected.h" |
| 45 #include "bindings/tests/v8/V8TestInterfaceWillBeGarbageCollected.h" | 45 #include "bindings/tests/v8/V8TestInterfaceWillBeGarbageCollected.h" |
| 46 #include "bindings/tests/v8/V8TestNode.h" | 46 #include "bindings/tests/v8/V8TestNode.h" |
| 47 #include "bindings/tests/v8/V8TestObject.h" | 47 #include "bindings/tests/v8/V8TestObject.h" |
| 48 #include "bindings/tests/v8/V8Window.h" | 48 #include "bindings/tests/v8/V8Window.h" |
| 49 #include "bindings/tests/v8/V8XPathNSResolver.h" | 49 #include "bindings/tests/v8/V8XPathNSResolver.h" |
| 50 #include "core/HTMLNames.h" | 50 #include "core/HTMLNames.h" |
| 51 #include "core/css/MediaQueryListListener.h" | |
| 52 #include "core/dom/ClassCollection.h" | 51 #include "core/dom/ClassCollection.h" |
| 53 #include "core/dom/ContextFeatures.h" | 52 #include "core/dom/ContextFeatures.h" |
| 54 #include "core/dom/Document.h" | 53 #include "core/dom/Document.h" |
| 55 #include "core/dom/TagCollection.h" | 54 #include "core/dom/TagCollection.h" |
| 56 #include "core/dom/custom/CustomElementCallbackDispatcher.h" | 55 #include "core/dom/custom/CustomElementCallbackDispatcher.h" |
| 57 #include "core/frame/LocalFrame.h" | 56 #include "core/frame/LocalFrame.h" |
| 58 #include "core/frame/UseCounter.h" | 57 #include "core/frame/UseCounter.h" |
| 59 #include "core/html/HTMLCollection.h" | 58 #include "core/html/HTMLCollection.h" |
| 60 #include "core/html/HTMLFormControlsCollection.h" | 59 #include "core/html/HTMLFormControlsCollection.h" |
| 61 #include "core/html/HTMLTableRowsCollection.h" | 60 #include "core/html/HTMLTableRowsCollection.h" |
| (...skipping 5825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5887 impl->voidMethodEventTargetArg(eventTargetArg); | 5886 impl->voidMethodEventTargetArg(eventTargetArg); |
| 5888 } | 5887 } |
| 5889 | 5888 |
| 5890 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 5889 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 5891 { | 5890 { |
| 5892 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5891 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 5893 TestObjectV8Internal::voidMethodEventTargetArgMethod(info); | 5892 TestObjectV8Internal::voidMethodEventTargetArgMethod(info); |
| 5894 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5893 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 5895 } | 5894 } |
| 5896 | 5895 |
| 5897 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) | |
| 5898 { | |
| 5899 if (UNLIKELY(info.Length() < 1)) { | |
| 5900 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodMediaQueryListListenerArg", "TestObject", 1, info.Length(), info.GetIso
late()), info.GetIsolate()); | |
| 5901 return; | |
| 5902 } | |
| 5903 TestObject* impl = V8TestObject::toNative(info.Holder()); | |
| 5904 RefPtrWillBeRawPtr<MediaQueryListListener> mediaQueryListListenerArg; | |
| 5905 { | |
| 5906 v8::TryCatch block; | |
| 5907 V8RethrowTryCatchScope rethrow(block); | |
| 5908 TONATIVE_VOID_INTERNAL(mediaQueryListListenerArg, MediaQueryListListener
::create(ScriptState::current(info.GetIsolate()), ScriptValue(ScriptState::curre
nt(info.GetIsolate()), info[0]))); | |
| 5909 } | |
| 5910 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); | |
| 5911 } | |
| 5912 | |
| 5913 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | |
| 5914 { | |
| 5915 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | |
| 5916 TestObjectV8Internal::voidMethodMediaQueryListListenerArgMethod(info); | |
| 5917 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
| 5918 } | |
| 5919 | |
| 5920 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 5896 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
| 5921 { | 5897 { |
| 5922 if (UNLIKELY(info.Length() < 1)) { | 5898 if (UNLIKELY(info.Length() < 1)) { |
| 5923 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodAnyArg", "TestObject", 1, info.Length(), info.GetIsolate()), info.GetIs
olate()); | 5899 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodAnyArg", "TestObject", 1, info.Length(), info.GetIsolate()), info.GetIs
olate()); |
| 5924 return; | 5900 return; |
| 5925 } | 5901 } |
| 5926 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5902 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5927 ScriptValue anyArg; | 5903 ScriptValue anyArg; |
| 5928 { | 5904 { |
| 5929 v8::TryCatch block; | 5905 v8::TryCatch block; |
| (...skipping 4449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10379 {"voidMethodTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodTestInte
rfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10355 {"voidMethodTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodTestInte
rfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
| 10380 {"voidMethodLongArgTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodL
ongArgTestInterfaceEmptyArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAl
lScripts}, | 10356 {"voidMethodLongArgTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodL
ongArgTestInterfaceEmptyArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAl
lScripts}, |
| 10381 {"voidCallbackFunctionMethod", TestObjectV8Internal::voidCallbackFunctionMet
hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10357 {"voidCallbackFunctionMethod", TestObjectV8Internal::voidCallbackFunctionMet
hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| 10382 {"anyCallbackFunctionOptionalAnyArgMethod", TestObjectV8Internal::anyCallbac
kFunctionOptionalAnyArgMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo
AllScripts}, | 10358 {"anyCallbackFunctionOptionalAnyArgMethod", TestObjectV8Internal::anyCallbac
kFunctionOptionalAnyArgMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo
AllScripts}, |
| 10383 {"voidMethodVoidCallbackFunctionArg", TestObjectV8Internal::voidMethodVoidCa
llbackFunctionArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10359 {"voidMethodVoidCallbackFunctionArg", TestObjectV8Internal::voidMethodVoidCa
llbackFunctionArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
| 10384 {"voidMethodAnyCallbackFunctionOptionalAnyArg", TestObjectV8Internal::voidMe
thodAnyCallbackFunctionOptionalAnyArgMethodCallback, 0, 1, V8DOMConfiguration::E
xposedToAllScripts}, | 10360 {"voidMethodAnyCallbackFunctionOptionalAnyArg", TestObjectV8Internal::voidMe
thodAnyCallbackFunctionOptionalAnyArgMethodCallback, 0, 1, V8DOMConfiguration::E
xposedToAllScripts}, |
| 10385 {"compareHowMethod", TestObjectV8Internal::compareHowMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10361 {"compareHowMethod", TestObjectV8Internal::compareHowMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| 10386 {"anyMethod", TestObjectV8Internal::anyMethodMethodCallback, 0, 0, V8DOMConf
iguration::ExposedToAllScripts}, | 10362 {"anyMethod", TestObjectV8Internal::anyMethodMethodCallback, 0, 0, V8DOMConf
iguration::ExposedToAllScripts}, |
| 10387 {"voidMethodCompareHowArg", TestObjectV8Internal::voidMethodCompareHowArgMet
hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10363 {"voidMethodCompareHowArg", TestObjectV8Internal::voidMethodCompareHowArgMet
hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
| 10388 {"voidMethodEventTargetArg", TestObjectV8Internal::voidMethodEventTargetArgM
ethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10364 {"voidMethodEventTargetArg", TestObjectV8Internal::voidMethodEventTargetArgM
ethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
| 10389 {"voidMethodMediaQueryListListenerArg", TestObjectV8Internal::voidMethodMedi
aQueryListListenerArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScrip
ts}, | |
| 10390 {"voidMethodAnyArg", TestObjectV8Internal::voidMethodAnyArgMethodCallback, 0
, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10365 {"voidMethodAnyArg", TestObjectV8Internal::voidMethodAnyArgMethodCallback, 0
, 1, V8DOMConfiguration::ExposedToAllScripts}, |
| 10391 {"voidMethodAttrArg", TestObjectV8Internal::voidMethodAttrArgMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10366 {"voidMethodAttrArg", TestObjectV8Internal::voidMethodAttrArgMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
| 10392 {"voidMethodDocumentArg", TestObjectV8Internal::voidMethodDocumentArgMethodC
allback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10367 {"voidMethodDocumentArg", TestObjectV8Internal::voidMethodDocumentArgMethodC
allback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
| 10393 {"voidMethodDocumentTypeArg", TestObjectV8Internal::voidMethodDocumentTypeAr
gMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10368 {"voidMethodDocumentTypeArg", TestObjectV8Internal::voidMethodDocumentTypeAr
gMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
| 10394 {"voidMethodElementArg", TestObjectV8Internal::voidMethodElementArgMethodCal
lback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10369 {"voidMethodElementArg", TestObjectV8Internal::voidMethodElementArgMethodCal
lback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
| 10395 {"voidMethodNodeArg", TestObjectV8Internal::voidMethodNodeArgMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10370 {"voidMethodNodeArg", TestObjectV8Internal::voidMethodNodeArgMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
| 10396 {"arrayBufferMethod", TestObjectV8Internal::arrayBufferMethodMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10371 {"arrayBufferMethod", TestObjectV8Internal::arrayBufferMethodMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| 10397 {"arrayBufferViewMethod", TestObjectV8Internal::arrayBufferViewMethodMethodC
allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10372 {"arrayBufferViewMethod", TestObjectV8Internal::arrayBufferViewMethodMethodC
allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| 10398 {"float32ArrayMethod", TestObjectV8Internal::float32ArrayMethodMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10373 {"float32ArrayMethod", TestObjectV8Internal::float32ArrayMethodMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| 10399 {"int32ArrayMethod", TestObjectV8Internal::int32ArrayMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10374 {"int32ArrayMethod", TestObjectV8Internal::int32ArrayMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, |
| (...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11284 // FIXME: We should support more exceptions. | 11259 // FIXME: We should support more exceptions. |
| 11285 RELEASE_ASSERT_NOT_REACHED(); | 11260 RELEASE_ASSERT_NOT_REACHED(); |
| 11286 } | 11261 } |
| 11287 block.ReThrow(); | 11262 block.ReThrow(); |
| 11288 return false; | 11263 return false; |
| 11289 } | 11264 } |
| 11290 return true; | 11265 return true; |
| 11291 } | 11266 } |
| 11292 | 11267 |
| 11293 } // namespace blink | 11268 } // namespace blink |
| OLD | NEW |