abarth@webkit.org | 1a44509 | 2010-04-27 04:49:45 +0000 | [diff] [blame] | 1 | /* |
| 2 | This file is part of the WebKit open source project. |
| 3 | This file has been generated by generate-bindings.pl. DO NOT MODIFY! |
| 4 | |
| 5 | This library is free software; you can redistribute it and/or |
| 6 | modify it under the terms of the GNU Library General Public |
| 7 | License as published by the Free Software Foundation; either |
| 8 | version 2 of the License, or (at your option) any later version. |
| 9 | |
| 10 | This library is distributed in the hope that it will be useful, |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | Library General Public License for more details. |
| 14 | |
| 15 | You should have received a copy of the GNU Library General Public License |
| 16 | along with this library; see the file COPYING.LIB. If not, write to |
| 17 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 | Boston, MA 02110-1301, USA. |
| 19 | */ |
| 20 | |
darin@apple.com | 795dcb4 | 2016-04-30 19:16:00 +0000 | [diff] [blame] | 21 | #pragma once |
abarth@webkit.org | 1a44509 | 2010-04-27 04:49:45 +0000 | [diff] [blame] | 22 | |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 23 | #include "JSDOMConvert.h" |
weinig@apple.com | 09b024c | 2014-06-19 23:42:24 +0000 | [diff] [blame] | 24 | #include "JSDOMWrapper.h" |
commit-queue@webkit.org | 64d3f85 | 2011-07-26 21:56:13 +0000 | [diff] [blame] | 25 | #include "TestObj.h" |
akling@apple.com | e11d4cd | 2015-02-27 19:52:11 +0000 | [diff] [blame] | 26 | #include <wtf/NeverDestroyed.h> |
abarth@webkit.org | 1a44509 | 2010-04-27 04:49:45 +0000 | [diff] [blame] | 27 | |
| 28 | namespace WebCore { |
| 29 | |
youenn.fablet@crf.canon.fr | 28808aa | 2015-10-14 19:18:36 +0000 | [diff] [blame] | 30 | class JSTestObj : public JSDOMWrapper<TestObj> { |
abarth@webkit.org | 1a44509 | 2010-04-27 04:49:45 +0000 | [diff] [blame] | 31 | public: |
darin@apple.com | 07eaa7c | 2016-10-02 21:28:31 +0000 | [diff] [blame] | 32 | using Base = JSDOMWrapper<TestObj>; |
akling@apple.com | 45497d9 | 2015-01-29 19:41:12 +0000 | [diff] [blame] | 33 | static JSTestObj* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<TestObj>&& impl) |
commit-queue@webkit.org | 64d3f85 | 2011-07-26 21:56:13 +0000 | [diff] [blame] | 34 | { |
aestes@apple.com | 13aae08 | 2016-01-02 08:03:08 +0000 | [diff] [blame] | 35 | JSTestObj* ptr = new (NotNull, JSC::allocateCell<JSTestObj>(globalObject->vm().heap)) JSTestObj(structure, *globalObject, WTFMove(impl)); |
ggaren@apple.com | 9a9a4b5 | 2013-04-18 19:32:17 +0000 | [diff] [blame] | 36 | ptr->finishCreation(globalObject->vm()); |
mhahnenberg@apple.com | 5e10972 | 2011-09-14 18:55:25 +0000 | [diff] [blame] | 37 | return ptr; |
commit-queue@webkit.org | 64d3f85 | 2011-07-26 21:56:13 +0000 | [diff] [blame] | 38 | } |
| 39 | |
timothy@apple.com | 97f1436 | 2013-09-26 21:45:22 +0000 | [diff] [blame] | 40 | static JSC::JSObject* createPrototype(JSC::VM&, JSC::JSGlobalObject*); |
sbarati@apple.com | fa85752 | 2016-03-07 01:00:33 +0000 | [diff] [blame] | 41 | static JSC::JSObject* prototype(JSC::VM&, JSC::JSGlobalObject*); |
commit-queue@webkit.org | 9faee6a | 2015-02-18 22:39:03 +0000 | [diff] [blame] | 42 | static TestObj* toWrapped(JSC::JSValue); |
mark.lam@apple.com | fc274cb | 2013-08-01 21:13:11 +0000 | [diff] [blame] | 43 | static bool getOwnPropertySlot(JSC::JSObject*, JSC::ExecState*, JSC::PropertyName, JSC::PropertySlot&); |
cdumez@apple.com | 391cd8b | 2016-02-25 02:39:19 +0000 | [diff] [blame] | 44 | static bool getOwnPropertySlotByIndex(JSC::JSObject*, JSC::ExecState*, unsigned propertyName, JSC::PropertySlot&); |
haraken@chromium.org | 895abdd | 2012-01-03 15:46:42 +0000 | [diff] [blame] | 45 | static void destroy(JSC::JSCell*); |
weinig@apple.com | 6d2baf4 | 2014-06-21 23:27:22 +0000 | [diff] [blame] | 46 | |
fpizlo@apple.com | 10ae2d0 | 2013-08-14 02:41:47 +0000 | [diff] [blame] | 47 | DECLARE_INFO; |
abarth@webkit.org | 1a44509 | 2010-04-27 04:49:45 +0000 | [diff] [blame] | 48 | |
ggaren@apple.com | 9a9a4b5 | 2013-04-18 19:32:17 +0000 | [diff] [blame] | 49 | static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype) |
abarth@webkit.org | 1a44509 | 2010-04-27 04:49:45 +0000 | [diff] [blame] | 50 | { |
fpizlo@apple.com | 10ae2d0 | 2013-08-14 02:41:47 +0000 | [diff] [blame] | 51 | return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info()); |
abarth@webkit.org | 1a44509 | 2010-04-27 04:49:45 +0000 | [diff] [blame] | 52 | } |
| 53 | |
cdumez@apple.com | 391cd8b | 2016-02-25 02:39:19 +0000 | [diff] [blame] | 54 | static void getOwnPropertyNames(JSC::JSObject*, JSC::ExecState*, JSC::PropertyNameArray&, JSC::EnumerationMode = JSC::EnumerationMode()); |
cdumez@apple.com | 3381858 | 2016-02-10 21:51:18 +0000 | [diff] [blame] | 55 | static JSC::JSValue getConstructor(JSC::VM&, const JSC::JSGlobalObject*); |
youenn.fablet@crf.canon.fr | 4706f6f | 2015-10-01 08:12:40 +0000 | [diff] [blame] | 56 | mutable JSC::WriteBarrier<JSC::Unknown> m_cachedAttribute1; |
| 57 | mutable JSC::WriteBarrier<JSC::Unknown> m_cachedAttribute2; |
mhahnenberg@apple.com | 982c9ea | 2011-09-23 19:40:09 +0000 | [diff] [blame] | 58 | static void visitChildren(JSCell*, JSC::SlotVisitor&); |
oliver@apple.com | 8c798d2 | 2011-09-11 21:11:11 +0000 | [diff] [blame] | 59 | |
abarth@webkit.org | 1a44509 | 2010-04-27 04:49:45 +0000 | [diff] [blame] | 60 | |
| 61 | // Custom attributes |
cdumez@apple.com | a9ef89e | 2015-09-21 02:42:29 +0000 | [diff] [blame] | 62 | JSC::JSValue customAttr(JSC::ExecState&) const; |
| 63 | void setCustomAttr(JSC::ExecState&, JSC::JSValue); |
abarth@webkit.org | 1a44509 | 2010-04-27 04:49:45 +0000 | [diff] [blame] | 64 | |
| 65 | // Custom functions |
cdumez@apple.com | a9ef89e | 2015-09-21 02:42:29 +0000 | [diff] [blame] | 66 | JSC::JSValue customMethod(JSC::ExecState&); |
| 67 | JSC::JSValue customMethodWithArgs(JSC::ExecState&); |
| 68 | static JSC::JSValue classMethod2(JSC::ExecState&); |
commit-queue@webkit.org | 4960dbe | 2016-09-16 07:51:37 +0000 | [diff] [blame] | 69 | JSC::JSValue testCustomPromiseFunction(JSC::ExecState&); |
akling@apple.com | 1ba586c | 2015-04-13 20:53:32 +0000 | [diff] [blame] | 70 | public: |
barraclough@apple.com | 6a0cbf8 | 2016-06-06 19:11:17 +0000 | [diff] [blame] | 71 | static const unsigned StructureFlags = JSC::HasStaticPropertyTable | JSC::InterceptsGetOwnPropertySlotByIndexEvenWhenLengthIsNotZero | JSC::OverridesGetOwnPropertySlot | JSC::OverridesGetPropertyNames | Base::StructureFlags; |
abarth@webkit.org | 1a44509 | 2010-04-27 04:49:45 +0000 | [diff] [blame] | 72 | protected: |
youenn.fablet@crf.canon.fr | edad4b1 | 2015-10-08 07:30:23 +0000 | [diff] [blame] | 73 | JSTestObj(JSC::Structure*, JSDOMGlobalObject&, Ref<TestObj>&&); |
akling@apple.com | efa2b7b | 2014-03-28 18:19:10 +0000 | [diff] [blame] | 74 | |
cdumez@apple.com | d8b596d | 2016-11-11 22:53:24 +0000 | [diff] [blame] | 75 | void finishCreation(JSC::VM&); |
abarth@webkit.org | 1a44509 | 2010-04-27 04:49:45 +0000 | [diff] [blame] | 76 | }; |
| 77 | |
mhahnenberg@apple.com | 72a567c | 2011-11-16 05:10:42 +0000 | [diff] [blame] | 78 | class JSTestObjOwner : public JSC::WeakHandleOwner { |
abarth@webkit.org | ad2669e | 2012-11-18 21:55:52 +0000 | [diff] [blame] | 79 | public: |
commit-queue@webkit.org | d5d496b | 2015-09-22 12:21:31 +0000 | [diff] [blame] | 80 | virtual bool isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown>, void* context, JSC::SlotVisitor&); |
| 81 | virtual void finalize(JSC::Handle<JSC::Unknown>, void* context); |
mhahnenberg@apple.com | 72a567c | 2011-11-16 05:10:42 +0000 | [diff] [blame] | 82 | }; |
| 83 | |
andersca@apple.com | cb5c2d6 | 2013-10-02 18:23:56 +0000 | [diff] [blame] | 84 | inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld&, TestObj*) |
mhahnenberg@apple.com | 72a567c | 2011-11-16 05:10:42 +0000 | [diff] [blame] | 85 | { |
akling@apple.com | e11d4cd | 2015-02-27 19:52:11 +0000 | [diff] [blame] | 86 | static NeverDestroyed<JSTestObjOwner> owner; |
| 87 | return &owner.get(); |
mhahnenberg@apple.com | 72a567c | 2011-11-16 05:10:42 +0000 | [diff] [blame] | 88 | } |
| 89 | |
cdumez@apple.com | 9041759 | 2016-02-12 16:49:01 +0000 | [diff] [blame] | 90 | inline void* wrapperKey(TestObj* wrappableObject) |
cdumez@apple.com | cb67d2a | 2016-02-12 07:28:32 +0000 | [diff] [blame] | 91 | { |
cdumez@apple.com | 9041759 | 2016-02-12 16:49:01 +0000 | [diff] [blame] | 92 | return wrappableObject; |
cdumez@apple.com | cb67d2a | 2016-02-12 07:28:32 +0000 | [diff] [blame] | 93 | } |
| 94 | |
cdumez@apple.com | ba2ca32 | 2016-05-12 16:07:13 +0000 | [diff] [blame] | 95 | JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, TestObj&); |
| 96 | inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, TestObj* impl) { return impl ? toJS(state, globalObject, *impl) : JSC::jsNull(); } |
cdumez@apple.com | 29444e9 | 2016-05-15 23:30:11 +0000 | [diff] [blame] | 97 | JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, Ref<TestObj>&&); |
| 98 | inline JSC::JSValue toJSNewlyCreated(JSC::ExecState* state, JSDOMGlobalObject* globalObject, RefPtr<TestObj>&& impl) { return impl ? toJSNewlyCreated(state, globalObject, impl.releaseNonNull()) : JSC::jsNull(); } |
abarth@webkit.org | 1a44509 | 2010-04-27 04:49:45 +0000 | [diff] [blame] | 99 | |
commit-queue@webkit.org | 8ef5cd1 | 2016-09-05 17:25:52 +0000 | [diff] [blame] | 100 | template<> struct JSDOMWrapperConverterTraits<TestObj> { |
| 101 | using WrapperClass = JSTestObj; |
cdumez@apple.com | 6c6373f | 2016-10-22 20:46:34 +0000 | [diff] [blame] | 102 | using ToWrappedReturnType = TestObj*; |
commit-queue@webkit.org | 8ef5cd1 | 2016-09-05 17:25:52 +0000 | [diff] [blame] | 103 | }; |
weinig@apple.com | 4155916 | 2016-10-24 05:02:05 +0000 | [diff] [blame] | 104 | template<> JSC::JSString* convertEnumerationToJS(JSC::ExecState&, TestObj::EnumType); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 105 | |
weinig@apple.com | 0b03d93 | 2016-10-11 17:33:45 +0000 | [diff] [blame] | 106 | template<> Optional<TestObj::EnumType> parseEnumeration<TestObj::EnumType>(JSC::ExecState&, JSC::JSValue); |
| 107 | template<> TestObj::EnumType convertEnumeration<TestObj::EnumType>(JSC::ExecState&, JSC::JSValue); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 108 | template<> const char* expectedEnumerationValues<TestObj::EnumType>(); |
| 109 | |
weinig@apple.com | 4155916 | 2016-10-24 05:02:05 +0000 | [diff] [blame] | 110 | template<> JSC::JSString* convertEnumerationToJS(JSC::ExecState&, TestObj::Optional); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 111 | |
weinig@apple.com | 0b03d93 | 2016-10-11 17:33:45 +0000 | [diff] [blame] | 112 | template<> Optional<TestObj::Optional> parseEnumeration<TestObj::Optional>(JSC::ExecState&, JSC::JSValue); |
| 113 | template<> TestObj::Optional convertEnumeration<TestObj::Optional>(JSC::ExecState&, JSC::JSValue); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 114 | template<> const char* expectedEnumerationValues<TestObj::Optional>(); |
| 115 | |
weinig@apple.com | 4155916 | 2016-10-24 05:02:05 +0000 | [diff] [blame] | 116 | template<> JSC::JSString* convertEnumerationToJS(JSC::ExecState&, AlternateEnumName); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 117 | |
weinig@apple.com | 0b03d93 | 2016-10-11 17:33:45 +0000 | [diff] [blame] | 118 | template<> Optional<AlternateEnumName> parseEnumeration<AlternateEnumName>(JSC::ExecState&, JSC::JSValue); |
| 119 | template<> AlternateEnumName convertEnumeration<AlternateEnumName>(JSC::ExecState&, JSC::JSValue); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 120 | template<> const char* expectedEnumerationValues<AlternateEnumName>(); |
| 121 | |
| 122 | #if ENABLE(Condition1) |
| 123 | |
weinig@apple.com | 4155916 | 2016-10-24 05:02:05 +0000 | [diff] [blame] | 124 | template<> JSC::JSString* convertEnumerationToJS(JSC::ExecState&, TestObj::EnumA); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 125 | |
weinig@apple.com | 0b03d93 | 2016-10-11 17:33:45 +0000 | [diff] [blame] | 126 | template<> Optional<TestObj::EnumA> parseEnumeration<TestObj::EnumA>(JSC::ExecState&, JSC::JSValue); |
| 127 | template<> TestObj::EnumA convertEnumeration<TestObj::EnumA>(JSC::ExecState&, JSC::JSValue); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 128 | template<> const char* expectedEnumerationValues<TestObj::EnumA>(); |
| 129 | |
| 130 | #endif |
| 131 | |
| 132 | #if ENABLE(Condition1) && ENABLE(Condition2) |
| 133 | |
weinig@apple.com | 4155916 | 2016-10-24 05:02:05 +0000 | [diff] [blame] | 134 | template<> JSC::JSString* convertEnumerationToJS(JSC::ExecState&, TestObj::EnumB); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 135 | |
weinig@apple.com | 0b03d93 | 2016-10-11 17:33:45 +0000 | [diff] [blame] | 136 | template<> Optional<TestObj::EnumB> parseEnumeration<TestObj::EnumB>(JSC::ExecState&, JSC::JSValue); |
| 137 | template<> TestObj::EnumB convertEnumeration<TestObj::EnumB>(JSC::ExecState&, JSC::JSValue); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 138 | template<> const char* expectedEnumerationValues<TestObj::EnumB>(); |
| 139 | |
| 140 | #endif |
| 141 | |
| 142 | #if ENABLE(Condition1) || ENABLE(Condition2) |
| 143 | |
weinig@apple.com | 4155916 | 2016-10-24 05:02:05 +0000 | [diff] [blame] | 144 | template<> JSC::JSString* convertEnumerationToJS(JSC::ExecState&, TestObj::EnumC); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 145 | |
weinig@apple.com | 0b03d93 | 2016-10-11 17:33:45 +0000 | [diff] [blame] | 146 | template<> Optional<TestObj::EnumC> parseEnumeration<TestObj::EnumC>(JSC::ExecState&, JSC::JSValue); |
| 147 | template<> TestObj::EnumC convertEnumeration<TestObj::EnumC>(JSC::ExecState&, JSC::JSValue); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 148 | template<> const char* expectedEnumerationValues<TestObj::EnumC>(); |
| 149 | |
| 150 | #endif |
| 151 | |
weinig@apple.com | 4155916 | 2016-10-24 05:02:05 +0000 | [diff] [blame] | 152 | template<> JSC::JSString* convertEnumerationToJS(JSC::ExecState&, TestObj::Kind); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 153 | |
weinig@apple.com | 0b03d93 | 2016-10-11 17:33:45 +0000 | [diff] [blame] | 154 | template<> Optional<TestObj::Kind> parseEnumeration<TestObj::Kind>(JSC::ExecState&, JSC::JSValue); |
| 155 | template<> TestObj::Kind convertEnumeration<TestObj::Kind>(JSC::ExecState&, JSC::JSValue); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 156 | template<> const char* expectedEnumerationValues<TestObj::Kind>(); |
| 157 | |
weinig@apple.com | 4155916 | 2016-10-24 05:02:05 +0000 | [diff] [blame] | 158 | template<> JSC::JSString* convertEnumerationToJS(JSC::ExecState&, TestObj::Size); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 159 | |
weinig@apple.com | 0b03d93 | 2016-10-11 17:33:45 +0000 | [diff] [blame] | 160 | template<> Optional<TestObj::Size> parseEnumeration<TestObj::Size>(JSC::ExecState&, JSC::JSValue); |
| 161 | template<> TestObj::Size convertEnumeration<TestObj::Size>(JSC::ExecState&, JSC::JSValue); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 162 | template<> const char* expectedEnumerationValues<TestObj::Size>(); |
| 163 | |
weinig@apple.com | 4155916 | 2016-10-24 05:02:05 +0000 | [diff] [blame] | 164 | template<> JSC::JSString* convertEnumerationToJS(JSC::ExecState&, TestObj::Confidence); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 165 | |
weinig@apple.com | 0b03d93 | 2016-10-11 17:33:45 +0000 | [diff] [blame] | 166 | template<> Optional<TestObj::Confidence> parseEnumeration<TestObj::Confidence>(JSC::ExecState&, JSC::JSValue); |
| 167 | template<> TestObj::Confidence convertEnumeration<TestObj::Confidence>(JSC::ExecState&, JSC::JSValue); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 168 | template<> const char* expectedEnumerationValues<TestObj::Confidence>(); |
| 169 | |
cdumez@apple.com | 73fb59c | 2016-10-18 23:18:55 +0000 | [diff] [blame] | 170 | template<> TestObj::Dictionary convertDictionary<TestObj::Dictionary>(JSC::ExecState&, JSC::JSValue); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 171 | |
cdumez@apple.com | 73fb59c | 2016-10-18 23:18:55 +0000 | [diff] [blame] | 172 | template<> TestObj::DictionaryThatShouldNotTolerateNull convertDictionary<TestObj::DictionaryThatShouldNotTolerateNull>(JSC::ExecState&, JSC::JSValue); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 173 | |
cdumez@apple.com | 73fb59c | 2016-10-18 23:18:55 +0000 | [diff] [blame] | 174 | template<> TestObj::DictionaryThatShouldTolerateNull convertDictionary<TestObj::DictionaryThatShouldTolerateNull>(JSC::ExecState&, JSC::JSValue); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 175 | |
cdumez@apple.com | 73fb59c | 2016-10-18 23:18:55 +0000 | [diff] [blame] | 176 | template<> AlternateDictionaryName convertDictionary<AlternateDictionaryName>(JSC::ExecState&, JSC::JSValue); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 177 | |
cdumez@apple.com | 73fb59c | 2016-10-18 23:18:55 +0000 | [diff] [blame] | 178 | template<> TestObj::ParentDictionary convertDictionary<TestObj::ParentDictionary>(JSC::ExecState&, JSC::JSValue); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 179 | |
cdumez@apple.com | 73fb59c | 2016-10-18 23:18:55 +0000 | [diff] [blame] | 180 | template<> TestObj::ChildDictionary convertDictionary<TestObj::ChildDictionary>(JSC::ExecState&, JSC::JSValue); |
cdumez@apple.com | 9abc760 | 2016-10-05 16:09:20 +0000 | [diff] [blame] | 181 | |
commit-queue@webkit.org | a000dd1 | 2016-10-24 18:12:01 +0000 | [diff] [blame] | 182 | #if ENABLE(Condition1) |
| 183 | |
| 184 | template<> TestObj::ConditionalDictionaryA convertDictionary<TestObj::ConditionalDictionaryA>(JSC::ExecState&, JSC::JSValue); |
| 185 | |
| 186 | #endif |
| 187 | |
| 188 | #if ENABLE(Condition1) && ENABLE(Condition2) |
| 189 | |
| 190 | template<> TestObj::ConditionalDictionaryB convertDictionary<TestObj::ConditionalDictionaryB>(JSC::ExecState&, JSC::JSValue); |
| 191 | |
| 192 | #endif |
| 193 | |
| 194 | #if ENABLE(Condition1) || ENABLE(Condition2) |
| 195 | |
| 196 | template<> TestObj::ConditionalDictionaryC convertDictionary<TestObj::ConditionalDictionaryC>(JSC::ExecState&, JSC::JSValue); |
| 197 | |
| 198 | #endif |
| 199 | |
abarth@webkit.org | 1a44509 | 2010-04-27 04:49:45 +0000 | [diff] [blame] | 200 | |
| 201 | } // namespace WebCore |