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 21 matching lines...) Expand all Loading... |
32 #include "bindings/tests/v8/V8Document.h" | 32 #include "bindings/tests/v8/V8Document.h" |
33 #include "bindings/tests/v8/V8DocumentFragment.h" | 33 #include "bindings/tests/v8/V8DocumentFragment.h" |
34 #include "bindings/tests/v8/V8DocumentType.h" | 34 #include "bindings/tests/v8/V8DocumentType.h" |
35 #include "bindings/tests/v8/V8Element.h" | 35 #include "bindings/tests/v8/V8Element.h" |
36 #include "bindings/tests/v8/V8EventTarget.h" | 36 #include "bindings/tests/v8/V8EventTarget.h" |
37 #include "bindings/tests/v8/V8HTMLElement.h" | 37 #include "bindings/tests/v8/V8HTMLElement.h" |
38 #include "bindings/tests/v8/V8Node.h" | 38 #include "bindings/tests/v8/V8Node.h" |
39 #include "bindings/tests/v8/V8NodeFilter.h" | 39 #include "bindings/tests/v8/V8NodeFilter.h" |
40 #include "bindings/tests/v8/V8ShadowRoot.h" | 40 #include "bindings/tests/v8/V8ShadowRoot.h" |
41 #include "bindings/tests/v8/V8TestCallbackInterface.h" | 41 #include "bindings/tests/v8/V8TestCallbackInterface.h" |
| 42 #include "bindings/tests/v8/V8TestDictionary.h" |
42 #include "bindings/tests/v8/V8TestInterface.h" | 43 #include "bindings/tests/v8/V8TestInterface.h" |
43 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" | 44 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" |
44 #include "bindings/tests/v8/V8TestInterfaceGarbageCollected.h" | 45 #include "bindings/tests/v8/V8TestInterfaceGarbageCollected.h" |
45 #include "bindings/tests/v8/V8TestInterfaceWillBeGarbageCollected.h" | 46 #include "bindings/tests/v8/V8TestInterfaceWillBeGarbageCollected.h" |
46 #include "bindings/tests/v8/V8TestNode.h" | 47 #include "bindings/tests/v8/V8TestNode.h" |
47 #include "bindings/tests/v8/V8TestObject.h" | 48 #include "bindings/tests/v8/V8TestObject.h" |
48 #include "bindings/tests/v8/V8Window.h" | 49 #include "bindings/tests/v8/V8Window.h" |
49 #include "bindings/tests/v8/V8XPathNSResolver.h" | 50 #include "bindings/tests/v8/V8XPathNSResolver.h" |
50 #include "core/HTMLNames.h" | 51 #include "core/HTMLNames.h" |
51 #include "core/css/MediaQueryListListener.h" | 52 #include "core/css/MediaQueryListListener.h" |
(...skipping 6778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6830 impl->voidMethodTestEnumArg(testEnumTypeArg); | 6831 impl->voidMethodTestEnumArg(testEnumTypeArg); |
6831 } | 6832 } |
6832 | 6833 |
6833 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 6834 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
6834 { | 6835 { |
6835 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6836 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6836 TestObjectV8Internal::voidMethodTestEnumArgMethod(info); | 6837 TestObjectV8Internal::voidMethodTestEnumArgMethod(info); |
6837 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6838 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
6838 } | 6839 } |
6839 | 6840 |
| 6841 static void testDictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
| 6842 { |
| 6843 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6844 v8SetReturnValue(info, impl->testDictionaryMethod()); |
| 6845 } |
| 6846 |
| 6847 static void testDictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 6848 { |
| 6849 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6850 TestObjectV8Internal::testDictionaryMethodMethod(info); |
| 6851 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6852 } |
| 6853 |
| 6854 static void voidMethodTestDictionaryArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 6855 { |
| 6856 if (UNLIKELY(info.Length() < 1)) { |
| 6857 throwMinimumArityTypeErrorForMethod("voidMethodTestDictionaryArg", "Test
Object", 1, info.Length(), info.GetIsolate()); |
| 6858 return; |
| 6859 } |
| 6860 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6861 TestDictionary* testDictionaryArg; |
| 6862 { |
| 6863 v8::TryCatch block; |
| 6864 V8RethrowTryCatchScope rethrow(block); |
| 6865 if (!info[0]->IsUndefined()) { |
| 6866 TONATIVE_VOID_INTERNAL(testDictionaryArg, V8TestDictionary::toNative
(info.GetIsolate(), info[0])); |
| 6867 } else { |
| 6868 testDictionaryArg = TestDictionary::create(); |
| 6869 } |
| 6870 } |
| 6871 impl->voidMethodTestDictionaryArg(testDictionaryArg); |
| 6872 } |
| 6873 |
| 6874 static void voidMethodTestDictionaryArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 6875 { |
| 6876 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6877 TestObjectV8Internal::voidMethodTestDictionaryArgMethod(info); |
| 6878 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6879 } |
| 6880 |
| 6881 static void voidMethodOptionalTestDictionaryArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) |
| 6882 { |
| 6883 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 6884 TestDictionary* optionalTestDictionaryArg; |
| 6885 { |
| 6886 v8::TryCatch block; |
| 6887 V8RethrowTryCatchScope rethrow(block); |
| 6888 if (!info[0]->IsUndefined()) { |
| 6889 TONATIVE_VOID_INTERNAL(optionalTestDictionaryArg, V8TestDictionary::
toNative(info.GetIsolate(), info[0])); |
| 6890 } else { |
| 6891 optionalTestDictionaryArg = TestDictionary::create(); |
| 6892 } |
| 6893 } |
| 6894 impl->voidMethodOptionalTestDictionaryArg(optionalTestDictionaryArg); |
| 6895 } |
| 6896 |
| 6897 static void voidMethodOptionalTestDictionaryArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
| 6898 { |
| 6899 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6900 TestObjectV8Internal::voidMethodOptionalTestDictionaryArgMethod(info); |
| 6901 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6902 } |
| 6903 |
6840 static void dictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 6904 static void dictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
6841 { | 6905 { |
6842 TestObject* impl = V8TestObject::toNative(info.Holder()); | 6906 TestObject* impl = V8TestObject::toNative(info.Holder()); |
6843 v8SetReturnValue(info, impl->dictionaryMethod()); | 6907 v8SetReturnValue(info, impl->dictionaryMethod()); |
6844 } | 6908 } |
6845 | 6909 |
6846 static void dictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 6910 static void dictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
6847 { | 6911 { |
6848 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6912 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
6849 TestObjectV8Internal::dictionaryMethodMethod(info); | 6913 TestObjectV8Internal::dictionaryMethodMethod(info); |
(...skipping 3838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10688 {"nullableLongMethod", TestObjectV8Internal::nullableLongMethodMethodCallbac
k, 0, 0}, | 10752 {"nullableLongMethod", TestObjectV8Internal::nullableLongMethodMethodCallbac
k, 0, 0}, |
10689 {"nullableStringMethod", TestObjectV8Internal::nullableStringMethodMethodCal
lback, 0, 0}, | 10753 {"nullableStringMethod", TestObjectV8Internal::nullableStringMethodMethodCal
lback, 0, 0}, |
10690 {"nullableTestInterfaceMethod", TestObjectV8Internal::nullableTestInterfaceM
ethodMethodCallback, 0, 0}, | 10754 {"nullableTestInterfaceMethod", TestObjectV8Internal::nullableTestInterfaceM
ethodMethodCallback, 0, 0}, |
10691 {"nullableLongSequenceMethod", TestObjectV8Internal::nullableLongSequenceMet
hodMethodCallback, 0, 0}, | 10755 {"nullableLongSequenceMethod", TestObjectV8Internal::nullableLongSequenceMet
hodMethodCallback, 0, 0}, |
10692 {"voidMethodTestInterfaceEmptyOrNullArg", TestObjectV8Internal::voidMethodTe
stInterfaceEmptyOrNullArgMethodCallback, 0, 1}, | 10756 {"voidMethodTestInterfaceEmptyOrNullArg", TestObjectV8Internal::voidMethodTe
stInterfaceEmptyOrNullArgMethodCallback, 0, 1}, |
10693 {"voidMethodTestCallbackInterfaceArg", TestObjectV8Internal::voidMethodTestC
allbackInterfaceArgMethodCallback, 0, 1}, | 10757 {"voidMethodTestCallbackInterfaceArg", TestObjectV8Internal::voidMethodTestC
allbackInterfaceArgMethodCallback, 0, 1}, |
10694 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet
hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0}, | 10758 {"voidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::voidMet
hodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0}, |
10695 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho
dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1}, | 10759 {"voidMethodTestCallbackInterfaceOrNullArg", TestObjectV8Internal::voidMetho
dTestCallbackInterfaceOrNullArgMethodCallback, 0, 1}, |
10696 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0}
, | 10760 {"testEnumMethod", TestObjectV8Internal::testEnumMethodMethodCallback, 0, 0}
, |
10697 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC
allback, 0, 1}, | 10761 {"voidMethodTestEnumArg", TestObjectV8Internal::voidMethodTestEnumArgMethodC
allback, 0, 1}, |
| 10762 {"testDictionaryMethod", TestObjectV8Internal::testDictionaryMethodMethodCal
lback, 0, 0}, |
| 10763 {"voidMethodTestDictionaryArg", TestObjectV8Internal::voidMethodTestDictiona
ryArgMethodCallback, 0, 1}, |
| 10764 {"voidMethodOptionalTestDictionaryArg", TestObjectV8Internal::voidMethodOpti
onalTestDictionaryArgMethodCallback, 0, 0}, |
10698 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0
, 0}, | 10765 {"dictionaryMethod", TestObjectV8Internal::dictionaryMethodMethodCallback, 0
, 0}, |
10699 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0
, 0}, | 10766 {"nodeFilterMethod", TestObjectV8Internal::nodeFilterMethodMethodCallback, 0
, 0}, |
10700 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 0}, | 10767 {"promiseMethod", TestObjectV8Internal::promiseMethodMethodCallback, 0, 0}, |
10701 {"serializedScriptValueMethod", TestObjectV8Internal::serializedScriptValueM
ethodMethodCallback, 0, 0}, | 10768 {"serializedScriptValueMethod", TestObjectV8Internal::serializedScriptValueM
ethodMethodCallback, 0, 0}, |
10702 {"xPathNSResolverMethod", TestObjectV8Internal::xPathNSResolverMethodMethodC
allback, 0, 0}, | 10769 {"xPathNSResolverMethod", TestObjectV8Internal::xPathNSResolverMethodMethodC
allback, 0, 0}, |
10703 {"voidMethodDictionaryArg", TestObjectV8Internal::voidMethodDictionaryArgMet
hodCallback, 0, 1}, | 10770 {"voidMethodDictionaryArg", TestObjectV8Internal::voidMethodDictionaryArgMet
hodCallback, 0, 1}, |
10704 {"voidMethodNodeFilterArg", TestObjectV8Internal::voidMethodNodeFilterArgMet
hodCallback, 0, 1}, | 10771 {"voidMethodNodeFilterArg", TestObjectV8Internal::voidMethodNodeFilterArgMet
hodCallback, 0, 1}, |
10705 {"voidMethodPromiseArg", TestObjectV8Internal::voidMethodPromiseArgMethodCal
lback, 0, 1}, | 10772 {"voidMethodPromiseArg", TestObjectV8Internal::voidMethodPromiseArgMethodCal
lback, 0, 1}, |
10706 {"voidMethodSerializedScriptValueArg", TestObjectV8Internal::voidMethodSeria
lizedScriptValueArgMethodCallback, 0, 1}, | 10773 {"voidMethodSerializedScriptValueArg", TestObjectV8Internal::voidMethodSeria
lizedScriptValueArgMethodCallback, 0, 1}, |
10707 {"voidMethodXPathNSResolverArg", TestObjectV8Internal::voidMethodXPathNSReso
lverArgMethodCallback, 0, 1}, | 10774 {"voidMethodXPathNSResolverArg", TestObjectV8Internal::voidMethodXPathNSReso
lverArgMethodCallback, 0, 1}, |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11017 fromInternalPointer(object)->deref(); | 11084 fromInternalPointer(object)->deref(); |
11018 } | 11085 } |
11019 | 11086 |
11020 template<> | 11087 template<> |
11021 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 11088 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
11022 { | 11089 { |
11023 return toV8(impl, creationContext, isolate); | 11090 return toV8(impl, creationContext, isolate); |
11024 } | 11091 } |
11025 | 11092 |
11026 } // namespace blink | 11093 } // namespace blink |
OLD | NEW |