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 5813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5875 impl->voidMethodEventTargetArg(eventTargetArg); | 5874 impl->voidMethodEventTargetArg(eventTargetArg); |
5876 } | 5875 } |
5877 | 5876 |
5878 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 5877 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
5879 { | 5878 { |
5880 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 5879 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
5881 TestObjectV8Internal::voidMethodEventTargetArgMethod(info); | 5880 TestObjectV8Internal::voidMethodEventTargetArgMethod(info); |
5882 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5881 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5883 } | 5882 } |
5884 | 5883 |
5885 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) | |
5886 { | |
5887 if (UNLIKELY(info.Length() < 1)) { | |
5888 throwMinimumArityTypeErrorForMethod("voidMethodMediaQueryListListenerArg
", "TestObject", 1, info.Length(), info.GetIsolate()); | |
5889 return; | |
5890 } | |
5891 TestObject* impl = V8TestObject::toNative(info.Holder()); | |
5892 RefPtrWillBeRawPtr<MediaQueryListListener> mediaQueryListListenerArg; | |
5893 { | |
5894 v8::TryCatch block; | |
5895 V8RethrowTryCatchScope rethrow(block); | |
5896 TONATIVE_VOID_INTERNAL(mediaQueryListListenerArg, MediaQueryListListener
::create(ScriptState::current(info.GetIsolate()), ScriptValue(ScriptState::curre
nt(info.GetIsolate()), info[0]))); | |
5897 } | |
5898 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); | |
5899 } | |
5900 | |
5901 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | |
5902 { | |
5903 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | |
5904 TestObjectV8Internal::voidMethodMediaQueryListListenerArgMethod(info); | |
5905 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | |
5906 } | |
5907 | |
5908 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 5884 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
5909 { | 5885 { |
5910 if (UNLIKELY(info.Length() < 1)) { | 5886 if (UNLIKELY(info.Length() < 1)) { |
5911 throwMinimumArityTypeErrorForMethod("voidMethodAnyArg", "TestObject", 1,
info.Length(), info.GetIsolate()); | 5887 throwMinimumArityTypeErrorForMethod("voidMethodAnyArg", "TestObject", 1,
info.Length(), info.GetIsolate()); |
5912 return; | 5888 return; |
5913 } | 5889 } |
5914 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5890 TestObject* impl = V8TestObject::toNative(info.Holder()); |
5915 ScriptValue anyArg; | 5891 ScriptValue anyArg; |
5916 { | 5892 { |
5917 v8::TryCatch block; | 5893 v8::TryCatch block; |
(...skipping 4434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10352 {"voidMethodTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodTestInte
rfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10328 {"voidMethodTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodTestInte
rfaceEmptyArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10353 {"voidMethodLongArgTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodL
ongArgTestInterfaceEmptyArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAl
lScripts}, | 10329 {"voidMethodLongArgTestInterfaceEmptyArg", TestObjectV8Internal::voidMethodL
ongArgTestInterfaceEmptyArgMethodCallback, 0, 2, V8DOMConfiguration::ExposedToAl
lScripts}, |
10354 {"voidCallbackFunctionMethod", TestObjectV8Internal::voidCallbackFunctionMet
hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10330 {"voidCallbackFunctionMethod", TestObjectV8Internal::voidCallbackFunctionMet
hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10355 {"anyCallbackFunctionOptionalAnyArgMethod", TestObjectV8Internal::anyCallbac
kFunctionOptionalAnyArgMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo
AllScripts}, | 10331 {"anyCallbackFunctionOptionalAnyArgMethod", TestObjectV8Internal::anyCallbac
kFunctionOptionalAnyArgMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedTo
AllScripts}, |
10356 {"voidMethodVoidCallbackFunctionArg", TestObjectV8Internal::voidMethodVoidCa
llbackFunctionArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10332 {"voidMethodVoidCallbackFunctionArg", TestObjectV8Internal::voidMethodVoidCa
llbackFunctionArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10357 {"voidMethodAnyCallbackFunctionOptionalAnyArg", TestObjectV8Internal::voidMe
thodAnyCallbackFunctionOptionalAnyArgMethodCallback, 0, 1, V8DOMConfiguration::E
xposedToAllScripts}, | 10333 {"voidMethodAnyCallbackFunctionOptionalAnyArg", TestObjectV8Internal::voidMe
thodAnyCallbackFunctionOptionalAnyArgMethodCallback, 0, 1, V8DOMConfiguration::E
xposedToAllScripts}, |
10358 {"compareHowMethod", TestObjectV8Internal::compareHowMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10334 {"compareHowMethod", TestObjectV8Internal::compareHowMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10359 {"anyMethod", TestObjectV8Internal::anyMethodMethodCallback, 0, 0, V8DOMConf
iguration::ExposedToAllScripts}, | 10335 {"anyMethod", TestObjectV8Internal::anyMethodMethodCallback, 0, 0, V8DOMConf
iguration::ExposedToAllScripts}, |
10360 {"voidMethodCompareHowArg", TestObjectV8Internal::voidMethodCompareHowArgMet
hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10336 {"voidMethodCompareHowArg", TestObjectV8Internal::voidMethodCompareHowArgMet
hodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10361 {"voidMethodEventTargetArg", TestObjectV8Internal::voidMethodEventTargetArgM
ethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10337 {"voidMethodEventTargetArg", TestObjectV8Internal::voidMethodEventTargetArgM
ethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10362 {"voidMethodMediaQueryListListenerArg", TestObjectV8Internal::voidMethodMedi
aQueryListListenerArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScrip
ts}, | |
10363 {"voidMethodAnyArg", TestObjectV8Internal::voidMethodAnyArgMethodCallback, 0
, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10338 {"voidMethodAnyArg", TestObjectV8Internal::voidMethodAnyArgMethodCallback, 0
, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10364 {"voidMethodAttrArg", TestObjectV8Internal::voidMethodAttrArgMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10339 {"voidMethodAttrArg", TestObjectV8Internal::voidMethodAttrArgMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10365 {"voidMethodDocumentArg", TestObjectV8Internal::voidMethodDocumentArgMethodC
allback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10340 {"voidMethodDocumentArg", TestObjectV8Internal::voidMethodDocumentArgMethodC
allback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10366 {"voidMethodDocumentTypeArg", TestObjectV8Internal::voidMethodDocumentTypeAr
gMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10341 {"voidMethodDocumentTypeArg", TestObjectV8Internal::voidMethodDocumentTypeAr
gMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10367 {"voidMethodElementArg", TestObjectV8Internal::voidMethodElementArgMethodCal
lback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10342 {"voidMethodElementArg", TestObjectV8Internal::voidMethodElementArgMethodCal
lback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10368 {"voidMethodNodeArg", TestObjectV8Internal::voidMethodNodeArgMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, | 10343 {"voidMethodNodeArg", TestObjectV8Internal::voidMethodNodeArgMethodCallback,
0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
10369 {"arrayBufferMethod", TestObjectV8Internal::arrayBufferMethodMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10344 {"arrayBufferMethod", TestObjectV8Internal::arrayBufferMethodMethodCallback,
0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10370 {"arrayBufferViewMethod", TestObjectV8Internal::arrayBufferViewMethodMethodC
allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10345 {"arrayBufferViewMethod", TestObjectV8Internal::arrayBufferViewMethodMethodC
allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10371 {"float32ArrayMethod", TestObjectV8Internal::float32ArrayMethodMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10346 {"float32ArrayMethod", TestObjectV8Internal::float32ArrayMethodMethodCallbac
k, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
10372 {"int32ArrayMethod", TestObjectV8Internal::int32ArrayMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, | 10347 {"int32ArrayMethod", TestObjectV8Internal::int32ArrayMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, |
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11257 // FIXME: We should support more exceptions. | 11232 // FIXME: We should support more exceptions. |
11258 RELEASE_ASSERT_NOT_REACHED(); | 11233 RELEASE_ASSERT_NOT_REACHED(); |
11259 } | 11234 } |
11260 block.ReThrow(); | 11235 block.ReThrow(); |
11261 return false; | 11236 return false; |
11262 } | 11237 } |
11263 return true; | 11238 return true; |
11264 } | 11239 } |
11265 | 11240 |
11266 } // namespace blink | 11241 } // namespace blink |
OLD | NEW |