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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "bindings/tests/v8/V8TestDictionary.h" | 42 #include "bindings/tests/v8/V8TestDictionary.h" |
43 #include "bindings/tests/v8/V8TestInterface.h" | 43 #include "bindings/tests/v8/V8TestInterface.h" |
44 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" | 44 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" |
45 #include "bindings/tests/v8/V8TestInterfaceGarbageCollected.h" | 45 #include "bindings/tests/v8/V8TestInterfaceGarbageCollected.h" |
46 #include "bindings/tests/v8/V8TestInterfaceWillBeGarbageCollected.h" | 46 #include "bindings/tests/v8/V8TestInterfaceWillBeGarbageCollected.h" |
47 #include "bindings/tests/v8/V8TestNode.h" | 47 #include "bindings/tests/v8/V8TestNode.h" |
48 #include "bindings/tests/v8/V8TestObject.h" | 48 #include "bindings/tests/v8/V8TestObject.h" |
49 #include "bindings/tests/v8/V8Window.h" | 49 #include "bindings/tests/v8/V8Window.h" |
50 #include "bindings/tests/v8/V8XPathNSResolver.h" | 50 #include "bindings/tests/v8/V8XPathNSResolver.h" |
51 #include "core/HTMLNames.h" | 51 #include "core/HTMLNames.h" |
52 #include "core/css/MediaQueryListListener.h" | |
53 #include "core/dom/ClassCollection.h" | 52 #include "core/dom/ClassCollection.h" |
54 #include "core/dom/ContextFeatures.h" | 53 #include "core/dom/ContextFeatures.h" |
55 #include "core/dom/Document.h" | 54 #include "core/dom/Document.h" |
56 #include "core/dom/TagCollection.h" | 55 #include "core/dom/TagCollection.h" |
57 #include "core/dom/custom/CustomElementCallbackDispatcher.h" | 56 #include "core/dom/custom/CustomElementCallbackDispatcher.h" |
58 #include "core/frame/LocalFrame.h" | 57 #include "core/frame/LocalFrame.h" |
59 #include "core/frame/UseCounter.h" | 58 #include "core/frame/UseCounter.h" |
60 #include "core/html/HTMLCollection.h" | 59 #include "core/html/HTMLCollection.h" |
61 #include "core/html/HTMLDataListOptionsCollection.h" | 60 #include "core/html/HTMLDataListOptionsCollection.h" |
62 #include "core/html/HTMLFormControlsCollection.h" | 61 #include "core/html/HTMLFormControlsCollection.h" |
(...skipping 5748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5811 impl->voidMethodEventTargetArg(eventTargetArg); | 5810 impl->voidMethodEventTargetArg(eventTargetArg); |
5812 } | 5811 } |
5813 | 5812 |
5814 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 5813 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
5815 { | 5814 { |
5816 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5815 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5817 TestObjectV8Internal::voidMethodEventTargetArgMethod(info); | 5816 TestObjectV8Internal::voidMethodEventTargetArgMethod(info); |
5818 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5817 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5819 } | 5818 } |
5820 | 5819 |
5821 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) | |
5822 { | |
5823 if (UNLIKELY(info.Length() < 1)) { | |
5824 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodMediaQueryListListenerArg", "TestObject", 1, info.Length(), info.GetIso
late()), info.GetIsolate()); | |
5825 return; | |
5826 } | |
5827 TestObject* impl = V8TestObject::toNative(info.Holder()); | |
5828 RefPtrWillBeRawPtr<MediaQueryListListener> mediaQueryListListenerArg; | |
5829 { | |
5830 v8::TryCatch block; | |
5831 V8RethrowTryCatchScope rethrow(block); | |
5832 TONATIVE_VOID_INTERNAL(mediaQueryListListenerArg, MediaQueryListListener
::create(ScriptState::current(info.GetIsolate()), ScriptValue(ScriptState::curre
nt(info.GetIsolate()), info[0]))); | |
5833 } | |
5834 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); | |
5835 } | |
5836 | |
5837 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | |
5838 { | |
5839 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | |
5840 TestObjectV8Internal::voidMethodMediaQueryListListenerArgMethod(info); | |
5841 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
5842 } | |
5843 | |
5844 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 5820 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
5845 { | 5821 { |
5846 if (UNLIKELY(info.Length() < 1)) { | 5822 if (UNLIKELY(info.Length() < 1)) { |
5847 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodAnyArg", "TestObject", 1, info.Length(), info.GetIsolate()), info.GetIs
olate()); | 5823 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v
oidMethodAnyArg", "TestObject", 1, info.Length(), info.GetIsolate()), info.GetIs
olate()); |
5848 return; | 5824 return; |
5849 } | 5825 } |
5850 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5826 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5851 ScriptValue anyArg; | 5827 ScriptValue anyArg; |
5852 { | 5828 { |
5853 v8::TryCatch block; | 5829 v8::TryCatch block; |
(...skipping 4558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10412 {"voidMethodTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodTestInte
rfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10388 {"voidMethodTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodTestInte
rfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10413 {"voidMethodLongArgTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodL
ongArgTestInterfaceEmptyArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAl
lScripts}, | 10389 {"voidMethodLongArgTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodL
ongArgTestInterfaceEmptyArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAl
lScripts}, |
10414 {"voidCallbackFunctionMethod", TestObjectV8Internal::voidCallbackFunctionMet
hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10390 {"voidCallbackFunctionMethod", TestObjectV8Internal::voidCallbackFunctionMet
hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10415 {"anyCallbackFunctionOptionalAnyArgMethod", TestObjectV8Internal::anyCallbac
kFunctionOptionalAnyArgMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo
AllScripts}, | 10391 {"anyCallbackFunctionOptionalAnyArgMethod", TestObjectV8Internal::anyCallbac
kFunctionOptionalAnyArgMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo
AllScripts}, |
10416 {"voidMethodVoidCallbackFunctionArg", TestObjectV8Internal::voidMethodVoidCa
llbackFunctionArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10392 {"voidMethodVoidCallbackFunctionArg", TestObjectV8Internal::voidMethodVoidCa
llbackFunctionArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10417 {"voidMethodAnyCallbackFunctionOptionalAnyArg", TestObjectV8Internal::voidMe
thodAnyCallbackFunctionOptionalAnyArgMethodCallback, 0, 1, V8DOMConfiguration::E
xposedToAllScripts}, | 10393 {"voidMethodAnyCallbackFunctionOptionalAnyArg", TestObjectV8Internal::voidMe
thodAnyCallbackFunctionOptionalAnyArgMethodCallback, 0, 1, V8DOMConfiguration::E
xposedToAllScripts}, |
10418 {"compareHowMethod", TestObjectV8Internal::compareHowMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10394 {"compareHowMethod", TestObjectV8Internal::compareHowMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10419 {"anyMethod", TestObjectV8Internal::anyMethodMethodCallback, 0, 0, V8DOMConf
iguration::ExposedToAllScripts}, | 10395 {"anyMethod", TestObjectV8Internal::anyMethodMethodCallback, 0, 0, V8DOMConf
iguration::ExposedToAllScripts}, |
10420 {"voidMethodCompareHowArg", TestObjectV8Internal::voidMethodCompareHowArgMet
hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10396 {"voidMethodCompareHowArg", TestObjectV8Internal::voidMethodCompareHowArgMet
hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10421 {"voidMethodEventTargetArg", TestObjectV8Internal::voidMethodEventTargetArgM
ethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10397 {"voidMethodEventTargetArg", TestObjectV8Internal::voidMethodEventTargetArgM
ethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10422 {"voidMethodMediaQueryListListenerArg", TestObjectV8Internal::voidMethodMedi
aQueryListListenerArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScrip
ts}, | |
10423 {"voidMethodAnyArg", TestObjectV8Internal::voidMethodAnyArgMethodCallback, 0
, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10398 {"voidMethodAnyArg", TestObjectV8Internal::voidMethodAnyArgMethodCallback, 0
, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10424 {"voidMethodAttrArg", TestObjectV8Internal::voidMethodAttrArgMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10399 {"voidMethodAttrArg", TestObjectV8Internal::voidMethodAttrArgMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10425 {"voidMethodDocumentArg", TestObjectV8Internal::voidMethodDocumentArgMethodC
allback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10400 {"voidMethodDocumentArg", TestObjectV8Internal::voidMethodDocumentArgMethodC
allback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10426 {"voidMethodDocumentTypeArg", TestObjectV8Internal::voidMethodDocumentTypeAr
gMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10401 {"voidMethodDocumentTypeArg", TestObjectV8Internal::voidMethodDocumentTypeAr
gMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10427 {"voidMethodElementArg", TestObjectV8Internal::voidMethodElementArgMethodCal
lback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10402 {"voidMethodElementArg", TestObjectV8Internal::voidMethodElementArgMethodCal
lback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10428 {"voidMethodNodeArg", TestObjectV8Internal::voidMethodNodeArgMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10403 {"voidMethodNodeArg", TestObjectV8Internal::voidMethodNodeArgMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10429 {"arrayBufferMethod", TestObjectV8Internal::arrayBufferMethodMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10404 {"arrayBufferMethod", TestObjectV8Internal::arrayBufferMethodMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10430 {"arrayBufferViewMethod", TestObjectV8Internal::arrayBufferViewMethodMethodC
allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10405 {"arrayBufferViewMethod", TestObjectV8Internal::arrayBufferViewMethodMethodC
allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10431 {"float32ArrayMethod", TestObjectV8Internal::float32ArrayMethodMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10406 {"float32ArrayMethod", TestObjectV8Internal::float32ArrayMethodMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10432 {"int32ArrayMethod", TestObjectV8Internal::int32ArrayMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10407 {"int32ArrayMethod", TestObjectV8Internal::int32ArrayMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, |
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11328 // FIXME: We should support more exceptions. | 11303 // FIXME: We should support more exceptions. |
11329 RELEASE_ASSERT_NOT_REACHED(); | 11304 RELEASE_ASSERT_NOT_REACHED(); |
11330 } | 11305 } |
11331 block.ReThrow(); | 11306 block.ReThrow(); |
11332 return false; | 11307 return false; |
11333 } | 11308 } |
11334 return true; | 11309 return true; |
11335 } | 11310 } |
11336 | 11311 |
11337 } // namespace blink | 11312 } // namespace blink |
OLD | NEW |