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
21#pragma once
22
23#include "InternalSettings.h"
24#include "JSDOMConvertEnumeration.h"
25#include "JSDOMWrapper.h"
26#include "JSInternalSettingsGenerated.h"
27
28namespace WebCore {
29
30class WEBCORE_TESTSUPPORT_EXPORT JSInternalSettings : public JSInternalSettingsGenerated {
31public:
32 using Base = JSInternalSettingsGenerated;
33 using DOMWrapped = InternalSettings;
34 static JSInternalSettings* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, Ref<InternalSettings>&& impl)
35 {
36 JSInternalSettings* ptr = new (NotNull, JSC::allocateCell<JSInternalSettings>(globalObject->vm().heap)) JSInternalSettings(structure, *globalObject, WTFMove(impl));
37 ptr->finishCreation(globalObject->vm());
38 return ptr;
39 }
40
41 static JSC::JSObject* createPrototype(JSC::VM&, JSDOMGlobalObject&);
42 static JSC::JSObject* prototype(JSC::VM&, JSDOMGlobalObject&);
43
44 DECLARE_INFO;
45
46 static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
47 {
48 return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
49 }
50
51 static void heapSnapshot(JSCell*, JSC::HeapSnapshotBuilder&);
52 InternalSettings& wrapped() const
53 {
54 return static_cast<InternalSettings&>(Base::wrapped());
55 }
56protected:
57 JSInternalSettings(JSC::Structure*, JSDOMGlobalObject&, Ref<InternalSettings>&&);
58
59 void finishCreation(JSC::VM&);
60};
61
62WEBCORE_TESTSUPPORT_EXPORT JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, InternalSettings&);
63inline JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, InternalSettings* impl) { return impl ? toJS(state, globalObject, *impl) : JSC::jsNull(); }
64JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, Ref<InternalSettings>&&);
65inline JSC::JSValue toJSNewlyCreated(JSC::ExecState* state, JSDOMGlobalObject* globalObject, RefPtr<InternalSettings>&& impl) { return impl ? toJSNewlyCreated(state, globalObject, impl.releaseNonNull()) : JSC::jsNull(); }
66
67template<> struct JSDOMWrapperConverterTraits<InternalSettings> {
68 using WrapperClass = JSInternalSettings;
69 using ToWrappedReturnType = InternalSettings*;
70};
71String convertEnumerationToString(InternalSettings::ForcedAccessibilityValue);
72template<> JSC::JSString* convertEnumerationToJS(JSC::ExecState&, InternalSettings::ForcedAccessibilityValue);
73
74template<> Optional<InternalSettings::ForcedAccessibilityValue> parseEnumeration<InternalSettings::ForcedAccessibilityValue>(JSC::ExecState&, JSC::JSValue);
75template<> const char* expectedEnumerationValues<InternalSettings::ForcedAccessibilityValue>();
76
77String convertEnumerationToString(InternalSettings::FrameFlatteningValue);
78template<> JSC::JSString* convertEnumerationToJS(JSC::ExecState&, InternalSettings::FrameFlatteningValue);
79
80template<> Optional<InternalSettings::FrameFlatteningValue> parseEnumeration<InternalSettings::FrameFlatteningValue>(JSC::ExecState&, JSC::JSValue);
81template<> const char* expectedEnumerationValues<InternalSettings::FrameFlatteningValue>();
82
83String convertEnumerationToString(InternalSettings::FontLoadTimingOverride);
84template<> JSC::JSString* convertEnumerationToJS(JSC::ExecState&, InternalSettings::FontLoadTimingOverride);
85
86template<> Optional<InternalSettings::FontLoadTimingOverride> parseEnumeration<InternalSettings::FontLoadTimingOverride>(JSC::ExecState&, JSC::JSValue);
87template<> const char* expectedEnumerationValues<InternalSettings::FontLoadTimingOverride>();
88
89
90} // namespace WebCore
91