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#include "config.h"
22#include "JSInternalSettings.h"
23
24#include "JSDOMAttribute.h"
25#include "JSDOMBinding.h"
26#include "JSDOMConvertBoolean.h"
27#include "JSDOMConvertNumbers.h"
28#include "JSDOMConvertStrings.h"
29#include "JSDOMExceptionHandling.h"
30#include "JSDOMOperation.h"
31#include "JSDOMWrapperCache.h"
32#include "RuntimeEnabledFeatures.h"
33#include "ScriptExecutionContext.h"
34#include <JavaScriptCore/HeapSnapshotBuilder.h>
35#include <JavaScriptCore/JSCInlines.h>
36#include <JavaScriptCore/JSString.h>
37#include <wtf/GetPtr.h>
38#include <wtf/NeverDestroyed.h>
39#include <wtf/PointerPreparations.h>
40#include <wtf/URL.h>
41
42
43namespace WebCore {
44using namespace JSC;
45
46String convertEnumerationToString(InternalSettings::ForcedAccessibilityValue enumerationValue)
47{
48 static const NeverDestroyed<String> values[] = {
49 MAKE_STATIC_STRING_IMPL("system"),
50 MAKE_STATIC_STRING_IMPL("on"),
51 MAKE_STATIC_STRING_IMPL("off"),
52 };
53 static_assert(static_cast<size_t>(InternalSettings::ForcedAccessibilityValue::System) == 0, "InternalSettings::ForcedAccessibilityValue::System is not 0 as expected");
54 static_assert(static_cast<size_t>(InternalSettings::ForcedAccessibilityValue::On) == 1, "InternalSettings::ForcedAccessibilityValue::On is not 1 as expected");
55 static_assert(static_cast<size_t>(InternalSettings::ForcedAccessibilityValue::Off) == 2, "InternalSettings::ForcedAccessibilityValue::Off is not 2 as expected");
56 ASSERT(static_cast<size_t>(enumerationValue) < WTF_ARRAY_LENGTH(values));
57 return values[static_cast<size_t>(enumerationValue)];
58}
59
60template<> JSString* convertEnumerationToJS(ExecState& state, InternalSettings::ForcedAccessibilityValue enumerationValue)
61{
62 return jsStringWithCache(&state, convertEnumerationToString(enumerationValue));
63}
64
65template<> Optional<InternalSettings::ForcedAccessibilityValue> parseEnumeration<InternalSettings::ForcedAccessibilityValue>(ExecState& state, JSValue value)
66{
67 auto stringValue = value.toWTFString(&state);
68 if (stringValue == "system")
69 return InternalSettings::ForcedAccessibilityValue::System;
70 if (stringValue == "on")
71 return InternalSettings::ForcedAccessibilityValue::On;
72 if (stringValue == "off")
73 return InternalSettings::ForcedAccessibilityValue::Off;
74 return WTF::nullopt;
75}
76
77template<> const char* expectedEnumerationValues<InternalSettings::ForcedAccessibilityValue>()
78{
79 return "\"system\", \"on\", \"off\"";
80}
81
82String convertEnumerationToString(InternalSettings::FrameFlatteningValue enumerationValue)
83{
84 static const NeverDestroyed<String> values[] = {
85 MAKE_STATIC_STRING_IMPL("Disabled"),
86 MAKE_STATIC_STRING_IMPL("EnabledForNonFullScreenIFrames"),
87 MAKE_STATIC_STRING_IMPL("FullyEnabled"),
88 };
89 static_assert(static_cast<size_t>(InternalSettings::FrameFlatteningValue::Disabled) == 0, "InternalSettings::FrameFlatteningValue::Disabled is not 0 as expected");
90 static_assert(static_cast<size_t>(InternalSettings::FrameFlatteningValue::EnabledForNonFullScreenIFrames) == 1, "InternalSettings::FrameFlatteningValue::EnabledForNonFullScreenIFrames is not 1 as expected");
91 static_assert(static_cast<size_t>(InternalSettings::FrameFlatteningValue::FullyEnabled) == 2, "InternalSettings::FrameFlatteningValue::FullyEnabled is not 2 as expected");
92 ASSERT(static_cast<size_t>(enumerationValue) < WTF_ARRAY_LENGTH(values));
93 return values[static_cast<size_t>(enumerationValue)];
94}
95
96template<> JSString* convertEnumerationToJS(ExecState& state, InternalSettings::FrameFlatteningValue enumerationValue)
97{
98 return jsStringWithCache(&state, convertEnumerationToString(enumerationValue));
99}
100
101template<> Optional<InternalSettings::FrameFlatteningValue> parseEnumeration<InternalSettings::FrameFlatteningValue>(ExecState& state, JSValue value)
102{
103 auto stringValue = value.toWTFString(&state);
104 if (stringValue == "Disabled")
105 return InternalSettings::FrameFlatteningValue::Disabled;
106 if (stringValue == "EnabledForNonFullScreenIFrames")
107 return InternalSettings::FrameFlatteningValue::EnabledForNonFullScreenIFrames;
108 if (stringValue == "FullyEnabled")
109 return InternalSettings::FrameFlatteningValue::FullyEnabled;
110 return WTF::nullopt;
111}
112
113template<> const char* expectedEnumerationValues<InternalSettings::FrameFlatteningValue>()
114{
115 return "\"Disabled\", \"EnabledForNonFullScreenIFrames\", \"FullyEnabled\"";
116}
117
118String convertEnumerationToString(InternalSettings::FontLoadTimingOverride enumerationValue)
119{
120 static const NeverDestroyed<String> values[] = {
121 MAKE_STATIC_STRING_IMPL("Block"),
122 MAKE_STATIC_STRING_IMPL("Swap"),
123 MAKE_STATIC_STRING_IMPL("Failure"),
124 };
125 static_assert(static_cast<size_t>(InternalSettings::FontLoadTimingOverride::Block) == 0, "InternalSettings::FontLoadTimingOverride::Block is not 0 as expected");
126 static_assert(static_cast<size_t>(InternalSettings::FontLoadTimingOverride::Swap) == 1, "InternalSettings::FontLoadTimingOverride::Swap is not 1 as expected");
127 static_assert(static_cast<size_t>(InternalSettings::FontLoadTimingOverride::Failure) == 2, "InternalSettings::FontLoadTimingOverride::Failure is not 2 as expected");
128 ASSERT(static_cast<size_t>(enumerationValue) < WTF_ARRAY_LENGTH(values));
129 return values[static_cast<size_t>(enumerationValue)];
130}
131
132template<> JSString* convertEnumerationToJS(ExecState& state, InternalSettings::FontLoadTimingOverride enumerationValue)
133{
134 return jsStringWithCache(&state, convertEnumerationToString(enumerationValue));
135}
136
137template<> Optional<InternalSettings::FontLoadTimingOverride> parseEnumeration<InternalSettings::FontLoadTimingOverride>(ExecState& state, JSValue value)
138{
139 auto stringValue = value.toWTFString(&state);
140 if (stringValue == "Block")
141 return InternalSettings::FontLoadTimingOverride::Block;
142 if (stringValue == "Swap")
143 return InternalSettings::FontLoadTimingOverride::Swap;
144 if (stringValue == "Failure")
145 return InternalSettings::FontLoadTimingOverride::Failure;
146 return WTF::nullopt;
147}
148
149template<> const char* expectedEnumerationValues<InternalSettings::FontLoadTimingOverride>()
150{
151 return "\"Block\", \"Swap\", \"Failure\"";
152}
153
154// Functions
155
156JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetTouchEventEmulationEnabled(JSC::ExecState*);
157JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetStandardFontFamily(JSC::ExecState*);
158JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetSerifFontFamily(JSC::ExecState*);
159JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetSansSerifFontFamily(JSC::ExecState*);
160JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetFixedFontFamily(JSC::ExecState*);
161JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetCursiveFontFamily(JSC::ExecState*);
162JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetFantasyFontFamily(JSC::ExecState*);
163JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetPictographFontFamily(JSC::ExecState*);
164JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetFontFallbackPrefersPictographs(JSC::ExecState*);
165JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetFontLoadTimingOverride(JSC::ExecState*);
166JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetShouldIgnoreFontLoadCompletions(JSC::ExecState*);
167JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetTextAutosizingEnabled(JSC::ExecState*);
168JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetTextAutosizingWindowSizeOverride(JSC::ExecState*);
169JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetTextAutosizingUsesIdempotentMode(JSC::ExecState*);
170JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetCanStartMedia(JSC::ExecState*);
171#if ENABLE(VIDEO_TRACK)
172JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetShouldDisplayTrackKind(JSC::ExecState*);
173#endif
174#if ENABLE(VIDEO_TRACK)
175JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionShouldDisplayTrackKind(JSC::ExecState*);
176#endif
177JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetDefaultVideoPosterURL(JSC::ExecState*);
178JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetTimeWithoutMouseMovementBeforeHidingControls(JSC::ExecState*);
179JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetMediaTypeOverride(JSC::ExecState*);
180JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetAllowsAirPlayForMediaPlayback(JSC::ExecState*);
181#if ENABLE(MEDIA_STREAM)
182JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetMediaCaptureRequiresSecureConnection(JSC::ExecState*);
183#endif
184JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetForcePendingWebGLPolicy(JSC::ExecState*);
185JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetQuickTimePluginReplacementEnabled(JSC::ExecState*);
186JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetYouTubeFlashPluginReplacementEnabled(JSC::ExecState*);
187JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetEditingBehavior(JSC::ExecState*);
188JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetShouldConvertPositionStyleOnCopy(JSC::ExecState*);
189JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetPreferMIMETypeForImages(JSC::ExecState*);
190JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetUseDarkAppearance(JSC::ExecState*);
191JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetStorageBlockingPolicy(JSC::ExecState*);
192JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetImagesEnabled(JSC::ExecState*);
193JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetPDFImageCachingPolicy(JSC::ExecState*);
194JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetUseLegacyBackgroundSizeShorthandBehavior(JSC::ExecState*);
195JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetAutoscrollForDragAndDropEnabled(JSC::ExecState*);
196JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetBackgroundShouldExtendBeyondPage(JSC::ExecState*);
197JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetScrollingTreeIncludesFrames(JSC::ExecState*);
198JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetAllowUnclampedScrollPosition(JSC::ExecState*);
199JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetMinimumTimerInterval(JSC::ExecState*);
200JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetAllowsInlineMediaPlayback(JSC::ExecState*);
201JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetAllowsInlineMediaPlaybackAfterFullscreen(JSC::ExecState*);
202JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetInlineMediaPlaybackRequiresPlaysInlineAttribute(JSC::ExecState*);
203JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetFrameFlattening(JSC::ExecState*);
204JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetIncompleteImageBorderEnabled(JSC::ExecState*);
205JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetShouldDispatchSyntheticMouseEventsWhenModifyingSelection(JSC::ExecState*);
206JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetIndexedDBWorkersEnabled(JSC::ExecState*);
207JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetWebGL2Enabled(JSC::ExecState*);
208JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetWebGPUEnabled(JSC::ExecState*);
209JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetWebVREnabled(JSC::ExecState*);
210JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetScreenCaptureEnabled(JSC::ExecState*);
211JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionUserInterfaceDirectionPolicy(JSC::ExecState*);
212JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetUserInterfaceDirectionPolicy(JSC::ExecState*);
213JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSystemLayoutDirection(JSC::ExecState*);
214JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetSystemLayoutDirection(JSC::ExecState*);
215JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionDeferredCSSParserEnabled(JSC::ExecState*);
216JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetDeferredCSSParserEnabled(JSC::ExecState*);
217JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetShouldMockBoldSystemFontForAccessibility(JSC::ExecState*);
218JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetShouldManageAudioSessionCategory(JSC::ExecState*);
219JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetCustomPasteboardDataEnabled(JSC::ExecState*);
220JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionWebAnimationsCSSIntegrationEnabled(JSC::ExecState*);
221JSC::EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetShouldDeactivateAudioSession(JSC::ExecState*);
222
223// Attributes
224
225JSC::EncodedJSValue jsInternalSettingsForcedColorsAreInvertedAccessibilityValue(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
226bool setJSInternalSettingsForcedColorsAreInvertedAccessibilityValue(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
227JSC::EncodedJSValue jsInternalSettingsForcedDisplayIsMonochromeAccessibilityValue(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
228bool setJSInternalSettingsForcedDisplayIsMonochromeAccessibilityValue(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
229JSC::EncodedJSValue jsInternalSettingsForcedPrefersReducedMotionAccessibilityValue(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName);
230bool setJSInternalSettingsForcedPrefersReducedMotionAccessibilityValue(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue);
231
232class JSInternalSettingsPrototype : public JSC::JSNonFinalObject {
233public:
234 using Base = JSC::JSNonFinalObject;
235 static JSInternalSettingsPrototype* create(JSC::VM& vm, JSDOMGlobalObject* globalObject, JSC::Structure* structure)
236 {
237 JSInternalSettingsPrototype* ptr = new (NotNull, JSC::allocateCell<JSInternalSettingsPrototype>(vm.heap)) JSInternalSettingsPrototype(vm, globalObject, structure);
238 ptr->finishCreation(vm);
239 return ptr;
240 }
241
242 DECLARE_INFO;
243 static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
244 {
245 return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info());
246 }
247
248private:
249 JSInternalSettingsPrototype(JSC::VM& vm, JSC::JSGlobalObject*, JSC::Structure* structure)
250 : JSC::JSNonFinalObject(vm, structure)
251 {
252 }
253
254 void finishCreation(JSC::VM&);
255};
256
257/* Hash table for prototype */
258
259static const HashTableValue JSInternalSettingsPrototypeTableValues[] =
260{
261 { "forcedColorsAreInvertedAccessibilityValue", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsInternalSettingsForcedColorsAreInvertedAccessibilityValue), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSInternalSettingsForcedColorsAreInvertedAccessibilityValue) } },
262 { "forcedDisplayIsMonochromeAccessibilityValue", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsInternalSettingsForcedDisplayIsMonochromeAccessibilityValue), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSInternalSettingsForcedDisplayIsMonochromeAccessibilityValue) } },
263 { "forcedPrefersReducedMotionAccessibilityValue", static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsInternalSettingsForcedPrefersReducedMotionAccessibilityValue), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSInternalSettingsForcedPrefersReducedMotionAccessibilityValue) } },
264 { "setTouchEventEmulationEnabled", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetTouchEventEmulationEnabled), (intptr_t) (1) } },
265 { "setStandardFontFamily", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetStandardFontFamily), (intptr_t) (2) } },
266 { "setSerifFontFamily", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetSerifFontFamily), (intptr_t) (2) } },
267 { "setSansSerifFontFamily", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetSansSerifFontFamily), (intptr_t) (2) } },
268 { "setFixedFontFamily", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetFixedFontFamily), (intptr_t) (2) } },
269 { "setCursiveFontFamily", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetCursiveFontFamily), (intptr_t) (2) } },
270 { "setFantasyFontFamily", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetFantasyFontFamily), (intptr_t) (2) } },
271 { "setPictographFontFamily", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetPictographFontFamily), (intptr_t) (2) } },
272 { "setFontFallbackPrefersPictographs", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetFontFallbackPrefersPictographs), (intptr_t) (1) } },
273 { "setFontLoadTimingOverride", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetFontLoadTimingOverride), (intptr_t) (1) } },
274 { "setShouldIgnoreFontLoadCompletions", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetShouldIgnoreFontLoadCompletions), (intptr_t) (1) } },
275 { "setTextAutosizingEnabled", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetTextAutosizingEnabled), (intptr_t) (1) } },
276 { "setTextAutosizingWindowSizeOverride", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetTextAutosizingWindowSizeOverride), (intptr_t) (2) } },
277 { "setTextAutosizingUsesIdempotentMode", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetTextAutosizingUsesIdempotentMode), (intptr_t) (1) } },
278 { "setCanStartMedia", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetCanStartMedia), (intptr_t) (1) } },
279#if ENABLE(VIDEO_TRACK)
280 { "setShouldDisplayTrackKind", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetShouldDisplayTrackKind), (intptr_t) (2) } },
281#else
282 { 0, 0, NoIntrinsic, { 0, 0 } },
283#endif
284#if ENABLE(VIDEO_TRACK)
285 { "shouldDisplayTrackKind", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionShouldDisplayTrackKind), (intptr_t) (1) } },
286#else
287 { 0, 0, NoIntrinsic, { 0, 0 } },
288#endif
289 { "setDefaultVideoPosterURL", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetDefaultVideoPosterURL), (intptr_t) (1) } },
290 { "setTimeWithoutMouseMovementBeforeHidingControls", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetTimeWithoutMouseMovementBeforeHidingControls), (intptr_t) (1) } },
291 { "setMediaTypeOverride", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetMediaTypeOverride), (intptr_t) (1) } },
292 { "setAllowsAirPlayForMediaPlayback", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetAllowsAirPlayForMediaPlayback), (intptr_t) (1) } },
293#if ENABLE(MEDIA_STREAM)
294 { "setMediaCaptureRequiresSecureConnection", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetMediaCaptureRequiresSecureConnection), (intptr_t) (1) } },
295#else
296 { 0, 0, NoIntrinsic, { 0, 0 } },
297#endif
298 { "setForcePendingWebGLPolicy", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetForcePendingWebGLPolicy), (intptr_t) (1) } },
299 { "setQuickTimePluginReplacementEnabled", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetQuickTimePluginReplacementEnabled), (intptr_t) (1) } },
300 { "setYouTubeFlashPluginReplacementEnabled", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetYouTubeFlashPluginReplacementEnabled), (intptr_t) (1) } },
301 { "setEditingBehavior", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetEditingBehavior), (intptr_t) (1) } },
302 { "setShouldConvertPositionStyleOnCopy", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetShouldConvertPositionStyleOnCopy), (intptr_t) (1) } },
303 { "setPreferMIMETypeForImages", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetPreferMIMETypeForImages), (intptr_t) (1) } },
304 { "setUseDarkAppearance", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetUseDarkAppearance), (intptr_t) (1) } },
305 { "setStorageBlockingPolicy", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetStorageBlockingPolicy), (intptr_t) (1) } },
306 { "setImagesEnabled", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetImagesEnabled), (intptr_t) (1) } },
307 { "setPDFImageCachingPolicy", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetPDFImageCachingPolicy), (intptr_t) (1) } },
308 { "setUseLegacyBackgroundSizeShorthandBehavior", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetUseLegacyBackgroundSizeShorthandBehavior), (intptr_t) (1) } },
309 { "setAutoscrollForDragAndDropEnabled", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetAutoscrollForDragAndDropEnabled), (intptr_t) (1) } },
310 { "setBackgroundShouldExtendBeyondPage", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetBackgroundShouldExtendBeyondPage), (intptr_t) (1) } },
311 { "setScrollingTreeIncludesFrames", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetScrollingTreeIncludesFrames), (intptr_t) (1) } },
312 { "setAllowUnclampedScrollPosition", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetAllowUnclampedScrollPosition), (intptr_t) (1) } },
313 { "setMinimumTimerInterval", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetMinimumTimerInterval), (intptr_t) (1) } },
314 { "setAllowsInlineMediaPlayback", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetAllowsInlineMediaPlayback), (intptr_t) (1) } },
315 { "setAllowsInlineMediaPlaybackAfterFullscreen", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetAllowsInlineMediaPlaybackAfterFullscreen), (intptr_t) (1) } },
316 { "setInlineMediaPlaybackRequiresPlaysInlineAttribute", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetInlineMediaPlaybackRequiresPlaysInlineAttribute), (intptr_t) (1) } },
317 { "setFrameFlattening", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetFrameFlattening), (intptr_t) (1) } },
318 { "setIncompleteImageBorderEnabled", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetIncompleteImageBorderEnabled), (intptr_t) (1) } },
319 { "setShouldDispatchSyntheticMouseEventsWhenModifyingSelection", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetShouldDispatchSyntheticMouseEventsWhenModifyingSelection), (intptr_t) (1) } },
320 { "setIndexedDBWorkersEnabled", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetIndexedDBWorkersEnabled), (intptr_t) (1) } },
321 { "setWebGL2Enabled", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetWebGL2Enabled), (intptr_t) (1) } },
322 { "setWebGPUEnabled", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetWebGPUEnabled), (intptr_t) (1) } },
323 { "setWebVREnabled", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetWebVREnabled), (intptr_t) (1) } },
324 { "setScreenCaptureEnabled", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetScreenCaptureEnabled), (intptr_t) (1) } },
325 { "userInterfaceDirectionPolicy", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionUserInterfaceDirectionPolicy), (intptr_t) (0) } },
326 { "setUserInterfaceDirectionPolicy", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetUserInterfaceDirectionPolicy), (intptr_t) (1) } },
327 { "systemLayoutDirection", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSystemLayoutDirection), (intptr_t) (0) } },
328 { "setSystemLayoutDirection", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetSystemLayoutDirection), (intptr_t) (1) } },
329 { "deferredCSSParserEnabled", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionDeferredCSSParserEnabled), (intptr_t) (0) } },
330 { "setDeferredCSSParserEnabled", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetDeferredCSSParserEnabled), (intptr_t) (1) } },
331 { "setShouldMockBoldSystemFontForAccessibility", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetShouldMockBoldSystemFontForAccessibility), (intptr_t) (1) } },
332 { "setShouldManageAudioSessionCategory", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetShouldManageAudioSessionCategory), (intptr_t) (1) } },
333 { "setCustomPasteboardDataEnabled", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetCustomPasteboardDataEnabled), (intptr_t) (1) } },
334 { "webAnimationsCSSIntegrationEnabled", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionWebAnimationsCSSIntegrationEnabled), (intptr_t) (0) } },
335 { "setShouldDeactivateAudioSession", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsInternalSettingsPrototypeFunctionSetShouldDeactivateAudioSession), (intptr_t) (1) } },
336};
337
338const ClassInfo JSInternalSettingsPrototype::s_info = { "InternalSettingsPrototype", &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSInternalSettingsPrototype) };
339
340void JSInternalSettingsPrototype::finishCreation(VM& vm)
341{
342 Base::finishCreation(vm);
343 reifyStaticProperties(vm, JSInternalSettings::info(), JSInternalSettingsPrototypeTableValues, *this);
344 bool hasDisabledRuntimeProperties = false;
345 if (!RuntimeEnabledFeatures::sharedFeatures().webAnimationsEnabled()) {
346 hasDisabledRuntimeProperties = true;
347 auto propertyName = Identifier::fromString(&vm, reinterpret_cast<const LChar*>("webAnimationsCSSIntegrationEnabled"), strlen("webAnimationsCSSIntegrationEnabled"));
348 VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
349 JSObject::deleteProperty(this, globalObject()->globalExec(), propertyName);
350 }
351 if (hasDisabledRuntimeProperties && structure()->isDictionary())
352 flattenDictionaryObject(vm);
353}
354
355const ClassInfo JSInternalSettings::s_info = { "InternalSettings", &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSInternalSettings) };
356
357JSInternalSettings::JSInternalSettings(Structure* structure, JSDOMGlobalObject& globalObject, Ref<InternalSettings>&& impl)
358 : JSInternalSettingsGenerated(structure, globalObject, WTFMove(impl))
359{
360}
361
362void JSInternalSettings::finishCreation(VM& vm)
363{
364 Base::finishCreation(vm);
365 ASSERT(inherits(vm, info()));
366
367}
368
369JSObject* JSInternalSettings::createPrototype(VM& vm, JSDOMGlobalObject& globalObject)
370{
371 return JSInternalSettingsPrototype::create(vm, &globalObject, JSInternalSettingsPrototype::createStructure(vm, &globalObject, JSInternalSettingsGenerated::prototype(vm, globalObject)));
372}
373
374JSObject* JSInternalSettings::prototype(VM& vm, JSDOMGlobalObject& globalObject)
375{
376 return getDOMPrototype<JSInternalSettings>(vm, globalObject);
377}
378
379template<> inline JSInternalSettings* IDLAttribute<JSInternalSettings>::cast(ExecState& state, EncodedJSValue thisValue)
380{
381 return jsDynamicCast<JSInternalSettings*>(state.vm(), JSValue::decode(thisValue));
382}
383
384template<> inline JSInternalSettings* IDLOperation<JSInternalSettings>::cast(ExecState& state)
385{
386 return jsDynamicCast<JSInternalSettings*>(state.vm(), state.thisValue());
387}
388
389static inline JSValue jsInternalSettingsForcedColorsAreInvertedAccessibilityValueGetter(ExecState& state, JSInternalSettings& thisObject, ThrowScope& throwScope)
390{
391 UNUSED_PARAM(throwScope);
392 UNUSED_PARAM(state);
393 auto& impl = thisObject.wrapped();
394 JSValue result = toJS<IDLEnumeration<InternalSettings::ForcedAccessibilityValue>>(state, throwScope, impl.forcedColorsAreInvertedAccessibilityValue());
395 return result;
396}
397
398EncodedJSValue jsInternalSettingsForcedColorsAreInvertedAccessibilityValue(ExecState* state, EncodedJSValue thisValue, PropertyName)
399{
400 return IDLAttribute<JSInternalSettings>::get<jsInternalSettingsForcedColorsAreInvertedAccessibilityValueGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "forcedColorsAreInvertedAccessibilityValue");
401}
402
403static inline bool setJSInternalSettingsForcedColorsAreInvertedAccessibilityValueSetter(ExecState& state, JSInternalSettings& thisObject, JSValue value, ThrowScope& throwScope)
404{
405 UNUSED_PARAM(throwScope);
406 auto& impl = thisObject.wrapped();
407 auto optionalNativeValue = parseEnumeration<InternalSettings::ForcedAccessibilityValue>(state, value);
408 RETURN_IF_EXCEPTION(throwScope, false);
409 if (UNLIKELY(!optionalNativeValue))
410 return false;
411 auto nativeValue = optionalNativeValue.value();
412 AttributeSetter::call(state, throwScope, [&] {
413 return impl.setForcedColorsAreInvertedAccessibilityValue(WTFMove(nativeValue));
414 });
415 return true;
416}
417
418bool setJSInternalSettingsForcedColorsAreInvertedAccessibilityValue(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
419{
420 return IDLAttribute<JSInternalSettings>::set<setJSInternalSettingsForcedColorsAreInvertedAccessibilityValueSetter>(*state, thisValue, encodedValue, "forcedColorsAreInvertedAccessibilityValue");
421}
422
423static inline JSValue jsInternalSettingsForcedDisplayIsMonochromeAccessibilityValueGetter(ExecState& state, JSInternalSettings& thisObject, ThrowScope& throwScope)
424{
425 UNUSED_PARAM(throwScope);
426 UNUSED_PARAM(state);
427 auto& impl = thisObject.wrapped();
428 JSValue result = toJS<IDLEnumeration<InternalSettings::ForcedAccessibilityValue>>(state, throwScope, impl.forcedDisplayIsMonochromeAccessibilityValue());
429 return result;
430}
431
432EncodedJSValue jsInternalSettingsForcedDisplayIsMonochromeAccessibilityValue(ExecState* state, EncodedJSValue thisValue, PropertyName)
433{
434 return IDLAttribute<JSInternalSettings>::get<jsInternalSettingsForcedDisplayIsMonochromeAccessibilityValueGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "forcedDisplayIsMonochromeAccessibilityValue");
435}
436
437static inline bool setJSInternalSettingsForcedDisplayIsMonochromeAccessibilityValueSetter(ExecState& state, JSInternalSettings& thisObject, JSValue value, ThrowScope& throwScope)
438{
439 UNUSED_PARAM(throwScope);
440 auto& impl = thisObject.wrapped();
441 auto optionalNativeValue = parseEnumeration<InternalSettings::ForcedAccessibilityValue>(state, value);
442 RETURN_IF_EXCEPTION(throwScope, false);
443 if (UNLIKELY(!optionalNativeValue))
444 return false;
445 auto nativeValue = optionalNativeValue.value();
446 AttributeSetter::call(state, throwScope, [&] {
447 return impl.setForcedDisplayIsMonochromeAccessibilityValue(WTFMove(nativeValue));
448 });
449 return true;
450}
451
452bool setJSInternalSettingsForcedDisplayIsMonochromeAccessibilityValue(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
453{
454 return IDLAttribute<JSInternalSettings>::set<setJSInternalSettingsForcedDisplayIsMonochromeAccessibilityValueSetter>(*state, thisValue, encodedValue, "forcedDisplayIsMonochromeAccessibilityValue");
455}
456
457static inline JSValue jsInternalSettingsForcedPrefersReducedMotionAccessibilityValueGetter(ExecState& state, JSInternalSettings& thisObject, ThrowScope& throwScope)
458{
459 UNUSED_PARAM(throwScope);
460 UNUSED_PARAM(state);
461 auto& impl = thisObject.wrapped();
462 JSValue result = toJS<IDLEnumeration<InternalSettings::ForcedAccessibilityValue>>(state, throwScope, impl.forcedPrefersReducedMotionAccessibilityValue());
463 return result;
464}
465
466EncodedJSValue jsInternalSettingsForcedPrefersReducedMotionAccessibilityValue(ExecState* state, EncodedJSValue thisValue, PropertyName)
467{
468 return IDLAttribute<JSInternalSettings>::get<jsInternalSettingsForcedPrefersReducedMotionAccessibilityValueGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "forcedPrefersReducedMotionAccessibilityValue");
469}
470
471static inline bool setJSInternalSettingsForcedPrefersReducedMotionAccessibilityValueSetter(ExecState& state, JSInternalSettings& thisObject, JSValue value, ThrowScope& throwScope)
472{
473 UNUSED_PARAM(throwScope);
474 auto& impl = thisObject.wrapped();
475 auto optionalNativeValue = parseEnumeration<InternalSettings::ForcedAccessibilityValue>(state, value);
476 RETURN_IF_EXCEPTION(throwScope, false);
477 if (UNLIKELY(!optionalNativeValue))
478 return false;
479 auto nativeValue = optionalNativeValue.value();
480 AttributeSetter::call(state, throwScope, [&] {
481 return impl.setForcedPrefersReducedMotionAccessibilityValue(WTFMove(nativeValue));
482 });
483 return true;
484}
485
486bool setJSInternalSettingsForcedPrefersReducedMotionAccessibilityValue(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue)
487{
488 return IDLAttribute<JSInternalSettings>::set<setJSInternalSettingsForcedPrefersReducedMotionAccessibilityValueSetter>(*state, thisValue, encodedValue, "forcedPrefersReducedMotionAccessibilityValue");
489}
490
491static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetTouchEventEmulationEnabledBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
492{
493 UNUSED_PARAM(state);
494 UNUSED_PARAM(throwScope);
495 auto& impl = castedThis->wrapped();
496 if (UNLIKELY(state->argumentCount() < 1))
497 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
498 auto enabled = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
499 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
500 propagateException(*state, throwScope, impl.setTouchEventEmulationEnabled(WTFMove(enabled)));
501 return JSValue::encode(jsUndefined());
502}
503
504EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetTouchEventEmulationEnabled(ExecState* state)
505{
506 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetTouchEventEmulationEnabledBody>(*state, "setTouchEventEmulationEnabled");
507}
508
509static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetStandardFontFamilyBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
510{
511 UNUSED_PARAM(state);
512 UNUSED_PARAM(throwScope);
513 auto& impl = castedThis->wrapped();
514 if (UNLIKELY(state->argumentCount() < 2))
515 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
516 auto family = convert<IDLDOMString>(*state, state->uncheckedArgument(0));
517 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
518 auto script = convert<IDLDOMString>(*state, state->uncheckedArgument(1));
519 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
520 propagateException(*state, throwScope, impl.setStandardFontFamily(WTFMove(family), WTFMove(script)));
521 return JSValue::encode(jsUndefined());
522}
523
524EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetStandardFontFamily(ExecState* state)
525{
526 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetStandardFontFamilyBody>(*state, "setStandardFontFamily");
527}
528
529static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetSerifFontFamilyBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
530{
531 UNUSED_PARAM(state);
532 UNUSED_PARAM(throwScope);
533 auto& impl = castedThis->wrapped();
534 if (UNLIKELY(state->argumentCount() < 2))
535 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
536 auto family = convert<IDLDOMString>(*state, state->uncheckedArgument(0));
537 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
538 auto script = convert<IDLDOMString>(*state, state->uncheckedArgument(1));
539 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
540 propagateException(*state, throwScope, impl.setSerifFontFamily(WTFMove(family), WTFMove(script)));
541 return JSValue::encode(jsUndefined());
542}
543
544EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetSerifFontFamily(ExecState* state)
545{
546 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetSerifFontFamilyBody>(*state, "setSerifFontFamily");
547}
548
549static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetSansSerifFontFamilyBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
550{
551 UNUSED_PARAM(state);
552 UNUSED_PARAM(throwScope);
553 auto& impl = castedThis->wrapped();
554 if (UNLIKELY(state->argumentCount() < 2))
555 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
556 auto family = convert<IDLDOMString>(*state, state->uncheckedArgument(0));
557 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
558 auto script = convert<IDLDOMString>(*state, state->uncheckedArgument(1));
559 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
560 propagateException(*state, throwScope, impl.setSansSerifFontFamily(WTFMove(family), WTFMove(script)));
561 return JSValue::encode(jsUndefined());
562}
563
564EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetSansSerifFontFamily(ExecState* state)
565{
566 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetSansSerifFontFamilyBody>(*state, "setSansSerifFontFamily");
567}
568
569static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetFixedFontFamilyBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
570{
571 UNUSED_PARAM(state);
572 UNUSED_PARAM(throwScope);
573 auto& impl = castedThis->wrapped();
574 if (UNLIKELY(state->argumentCount() < 2))
575 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
576 auto family = convert<IDLDOMString>(*state, state->uncheckedArgument(0));
577 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
578 auto script = convert<IDLDOMString>(*state, state->uncheckedArgument(1));
579 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
580 propagateException(*state, throwScope, impl.setFixedFontFamily(WTFMove(family), WTFMove(script)));
581 return JSValue::encode(jsUndefined());
582}
583
584EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetFixedFontFamily(ExecState* state)
585{
586 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetFixedFontFamilyBody>(*state, "setFixedFontFamily");
587}
588
589static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetCursiveFontFamilyBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
590{
591 UNUSED_PARAM(state);
592 UNUSED_PARAM(throwScope);
593 auto& impl = castedThis->wrapped();
594 if (UNLIKELY(state->argumentCount() < 2))
595 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
596 auto family = convert<IDLDOMString>(*state, state->uncheckedArgument(0));
597 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
598 auto script = convert<IDLDOMString>(*state, state->uncheckedArgument(1));
599 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
600 propagateException(*state, throwScope, impl.setCursiveFontFamily(WTFMove(family), WTFMove(script)));
601 return JSValue::encode(jsUndefined());
602}
603
604EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetCursiveFontFamily(ExecState* state)
605{
606 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetCursiveFontFamilyBody>(*state, "setCursiveFontFamily");
607}
608
609static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetFantasyFontFamilyBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
610{
611 UNUSED_PARAM(state);
612 UNUSED_PARAM(throwScope);
613 auto& impl = castedThis->wrapped();
614 if (UNLIKELY(state->argumentCount() < 2))
615 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
616 auto family = convert<IDLDOMString>(*state, state->uncheckedArgument(0));
617 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
618 auto script = convert<IDLDOMString>(*state, state->uncheckedArgument(1));
619 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
620 propagateException(*state, throwScope, impl.setFantasyFontFamily(WTFMove(family), WTFMove(script)));
621 return JSValue::encode(jsUndefined());
622}
623
624EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetFantasyFontFamily(ExecState* state)
625{
626 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetFantasyFontFamilyBody>(*state, "setFantasyFontFamily");
627}
628
629static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetPictographFontFamilyBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
630{
631 UNUSED_PARAM(state);
632 UNUSED_PARAM(throwScope);
633 auto& impl = castedThis->wrapped();
634 if (UNLIKELY(state->argumentCount() < 2))
635 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
636 auto family = convert<IDLDOMString>(*state, state->uncheckedArgument(0));
637 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
638 auto script = convert<IDLDOMString>(*state, state->uncheckedArgument(1));
639 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
640 propagateException(*state, throwScope, impl.setPictographFontFamily(WTFMove(family), WTFMove(script)));
641 return JSValue::encode(jsUndefined());
642}
643
644EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetPictographFontFamily(ExecState* state)
645{
646 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetPictographFontFamilyBody>(*state, "setPictographFontFamily");
647}
648
649static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetFontFallbackPrefersPictographsBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
650{
651 UNUSED_PARAM(state);
652 UNUSED_PARAM(throwScope);
653 auto& impl = castedThis->wrapped();
654 if (UNLIKELY(state->argumentCount() < 1))
655 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
656 auto preferPictographs = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
657 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
658 propagateException(*state, throwScope, impl.setFontFallbackPrefersPictographs(WTFMove(preferPictographs)));
659 return JSValue::encode(jsUndefined());
660}
661
662EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetFontFallbackPrefersPictographs(ExecState* state)
663{
664 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetFontFallbackPrefersPictographsBody>(*state, "setFontFallbackPrefersPictographs");
665}
666
667static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetFontLoadTimingOverrideBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
668{
669 UNUSED_PARAM(state);
670 UNUSED_PARAM(throwScope);
671 auto& impl = castedThis->wrapped();
672 if (UNLIKELY(state->argumentCount() < 1))
673 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
674 auto override = convert<IDLEnumeration<InternalSettings::FontLoadTimingOverride>>(*state, state->uncheckedArgument(0), [](JSC::ExecState& state, JSC::ThrowScope& scope) { throwArgumentMustBeEnumError(state, scope, 0, "override", "InternalSettings", "setFontLoadTimingOverride", expectedEnumerationValues<InternalSettings::FontLoadTimingOverride>()); });
675 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
676 propagateException(*state, throwScope, impl.setFontLoadTimingOverride(WTFMove(override)));
677 return JSValue::encode(jsUndefined());
678}
679
680EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetFontLoadTimingOverride(ExecState* state)
681{
682 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetFontLoadTimingOverrideBody>(*state, "setFontLoadTimingOverride");
683}
684
685static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetShouldIgnoreFontLoadCompletionsBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
686{
687 UNUSED_PARAM(state);
688 UNUSED_PARAM(throwScope);
689 auto& impl = castedThis->wrapped();
690 if (UNLIKELY(state->argumentCount() < 1))
691 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
692 auto ignore = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
693 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
694 propagateException(*state, throwScope, impl.setShouldIgnoreFontLoadCompletions(WTFMove(ignore)));
695 return JSValue::encode(jsUndefined());
696}
697
698EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetShouldIgnoreFontLoadCompletions(ExecState* state)
699{
700 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetShouldIgnoreFontLoadCompletionsBody>(*state, "setShouldIgnoreFontLoadCompletions");
701}
702
703static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetTextAutosizingEnabledBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
704{
705 UNUSED_PARAM(state);
706 UNUSED_PARAM(throwScope);
707 auto& impl = castedThis->wrapped();
708 if (UNLIKELY(state->argumentCount() < 1))
709 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
710 auto enabled = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
711 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
712 propagateException(*state, throwScope, impl.setTextAutosizingEnabled(WTFMove(enabled)));
713 return JSValue::encode(jsUndefined());
714}
715
716EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetTextAutosizingEnabled(ExecState* state)
717{
718 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetTextAutosizingEnabledBody>(*state, "setTextAutosizingEnabled");
719}
720
721static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetTextAutosizingWindowSizeOverrideBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
722{
723 UNUSED_PARAM(state);
724 UNUSED_PARAM(throwScope);
725 auto& impl = castedThis->wrapped();
726 if (UNLIKELY(state->argumentCount() < 2))
727 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
728 auto width = convert<IDLLong>(*state, state->uncheckedArgument(0));
729 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
730 auto height = convert<IDLLong>(*state, state->uncheckedArgument(1));
731 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
732 propagateException(*state, throwScope, impl.setTextAutosizingWindowSizeOverride(WTFMove(width), WTFMove(height)));
733 return JSValue::encode(jsUndefined());
734}
735
736EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetTextAutosizingWindowSizeOverride(ExecState* state)
737{
738 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetTextAutosizingWindowSizeOverrideBody>(*state, "setTextAutosizingWindowSizeOverride");
739}
740
741static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetTextAutosizingUsesIdempotentModeBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
742{
743 UNUSED_PARAM(state);
744 UNUSED_PARAM(throwScope);
745 auto& impl = castedThis->wrapped();
746 if (UNLIKELY(state->argumentCount() < 1))
747 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
748 auto enabled = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
749 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
750 propagateException(*state, throwScope, impl.setTextAutosizingUsesIdempotentMode(WTFMove(enabled)));
751 return JSValue::encode(jsUndefined());
752}
753
754EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetTextAutosizingUsesIdempotentMode(ExecState* state)
755{
756 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetTextAutosizingUsesIdempotentModeBody>(*state, "setTextAutosizingUsesIdempotentMode");
757}
758
759static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetCanStartMediaBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
760{
761 UNUSED_PARAM(state);
762 UNUSED_PARAM(throwScope);
763 auto& impl = castedThis->wrapped();
764 if (UNLIKELY(state->argumentCount() < 1))
765 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
766 auto enabled = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
767 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
768 propagateException(*state, throwScope, impl.setCanStartMedia(WTFMove(enabled)));
769 return JSValue::encode(jsUndefined());
770}
771
772EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetCanStartMedia(ExecState* state)
773{
774 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetCanStartMediaBody>(*state, "setCanStartMedia");
775}
776
777#if ENABLE(VIDEO_TRACK)
778static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetShouldDisplayTrackKindBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
779{
780 UNUSED_PARAM(state);
781 UNUSED_PARAM(throwScope);
782 auto& impl = castedThis->wrapped();
783 if (UNLIKELY(state->argumentCount() < 2))
784 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
785 auto kind = convert<IDLDOMString>(*state, state->uncheckedArgument(0));
786 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
787 auto enabled = convert<IDLBoolean>(*state, state->uncheckedArgument(1));
788 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
789 propagateException(*state, throwScope, impl.setShouldDisplayTrackKind(WTFMove(kind), WTFMove(enabled)));
790 return JSValue::encode(jsUndefined());
791}
792
793EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetShouldDisplayTrackKind(ExecState* state)
794{
795 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetShouldDisplayTrackKindBody>(*state, "setShouldDisplayTrackKind");
796}
797
798#endif
799
800#if ENABLE(VIDEO_TRACK)
801static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionShouldDisplayTrackKindBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
802{
803 UNUSED_PARAM(state);
804 UNUSED_PARAM(throwScope);
805 auto& impl = castedThis->wrapped();
806 if (UNLIKELY(state->argumentCount() < 1))
807 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
808 auto trackKind = convert<IDLDOMString>(*state, state->uncheckedArgument(0));
809 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
810 return JSValue::encode(toJS<IDLBoolean>(*state, throwScope, impl.shouldDisplayTrackKind(WTFMove(trackKind))));
811}
812
813EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionShouldDisplayTrackKind(ExecState* state)
814{
815 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionShouldDisplayTrackKindBody>(*state, "shouldDisplayTrackKind");
816}
817
818#endif
819
820static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetDefaultVideoPosterURLBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
821{
822 UNUSED_PARAM(state);
823 UNUSED_PARAM(throwScope);
824 auto& impl = castedThis->wrapped();
825 if (UNLIKELY(state->argumentCount() < 1))
826 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
827 auto poster = convert<IDLDOMString>(*state, state->uncheckedArgument(0));
828 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
829 propagateException(*state, throwScope, impl.setDefaultVideoPosterURL(WTFMove(poster)));
830 return JSValue::encode(jsUndefined());
831}
832
833EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetDefaultVideoPosterURL(ExecState* state)
834{
835 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetDefaultVideoPosterURLBody>(*state, "setDefaultVideoPosterURL");
836}
837
838static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetTimeWithoutMouseMovementBeforeHidingControlsBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
839{
840 UNUSED_PARAM(state);
841 UNUSED_PARAM(throwScope);
842 auto& impl = castedThis->wrapped();
843 if (UNLIKELY(state->argumentCount() < 1))
844 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
845 auto time = convert<IDLUnrestrictedDouble>(*state, state->uncheckedArgument(0));
846 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
847 propagateException(*state, throwScope, impl.setTimeWithoutMouseMovementBeforeHidingControls(WTFMove(time)));
848 return JSValue::encode(jsUndefined());
849}
850
851EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetTimeWithoutMouseMovementBeforeHidingControls(ExecState* state)
852{
853 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetTimeWithoutMouseMovementBeforeHidingControlsBody>(*state, "setTimeWithoutMouseMovementBeforeHidingControls");
854}
855
856static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetMediaTypeOverrideBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
857{
858 UNUSED_PARAM(state);
859 UNUSED_PARAM(throwScope);
860 auto& impl = castedThis->wrapped();
861 if (UNLIKELY(state->argumentCount() < 1))
862 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
863 auto mediaTypeOverride = convert<IDLDOMString>(*state, state->uncheckedArgument(0));
864 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
865 propagateException(*state, throwScope, impl.setMediaTypeOverride(WTFMove(mediaTypeOverride)));
866 return JSValue::encode(jsUndefined());
867}
868
869EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetMediaTypeOverride(ExecState* state)
870{
871 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetMediaTypeOverrideBody>(*state, "setMediaTypeOverride");
872}
873
874static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetAllowsAirPlayForMediaPlaybackBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
875{
876 UNUSED_PARAM(state);
877 UNUSED_PARAM(throwScope);
878 auto& impl = castedThis->wrapped();
879 if (UNLIKELY(state->argumentCount() < 1))
880 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
881 auto available = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
882 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
883 impl.setAllowsAirPlayForMediaPlayback(WTFMove(available));
884 return JSValue::encode(jsUndefined());
885}
886
887EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetAllowsAirPlayForMediaPlayback(ExecState* state)
888{
889 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetAllowsAirPlayForMediaPlaybackBody>(*state, "setAllowsAirPlayForMediaPlayback");
890}
891
892#if ENABLE(MEDIA_STREAM)
893static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetMediaCaptureRequiresSecureConnectionBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
894{
895 UNUSED_PARAM(state);
896 UNUSED_PARAM(throwScope);
897 auto& impl = castedThis->wrapped();
898 if (UNLIKELY(state->argumentCount() < 1))
899 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
900 auto enable = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
901 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
902 propagateException(*state, throwScope, impl.setMediaCaptureRequiresSecureConnection(WTFMove(enable)));
903 return JSValue::encode(jsUndefined());
904}
905
906EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetMediaCaptureRequiresSecureConnection(ExecState* state)
907{
908 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetMediaCaptureRequiresSecureConnectionBody>(*state, "setMediaCaptureRequiresSecureConnection");
909}
910
911#endif
912
913static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetForcePendingWebGLPolicyBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
914{
915 UNUSED_PARAM(state);
916 UNUSED_PARAM(throwScope);
917 auto& impl = castedThis->wrapped();
918 if (UNLIKELY(state->argumentCount() < 1))
919 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
920 auto forced = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
921 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
922 propagateException(*state, throwScope, impl.setForcePendingWebGLPolicy(WTFMove(forced)));
923 return JSValue::encode(jsUndefined());
924}
925
926EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetForcePendingWebGLPolicy(ExecState* state)
927{
928 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetForcePendingWebGLPolicyBody>(*state, "setForcePendingWebGLPolicy");
929}
930
931static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetQuickTimePluginReplacementEnabledBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
932{
933 UNUSED_PARAM(state);
934 UNUSED_PARAM(throwScope);
935 auto& impl = castedThis->wrapped();
936 if (UNLIKELY(state->argumentCount() < 1))
937 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
938 auto enabled = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
939 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
940 propagateException(*state, throwScope, impl.setQuickTimePluginReplacementEnabled(WTFMove(enabled)));
941 return JSValue::encode(jsUndefined());
942}
943
944EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetQuickTimePluginReplacementEnabled(ExecState* state)
945{
946 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetQuickTimePluginReplacementEnabledBody>(*state, "setQuickTimePluginReplacementEnabled");
947}
948
949static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetYouTubeFlashPluginReplacementEnabledBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
950{
951 UNUSED_PARAM(state);
952 UNUSED_PARAM(throwScope);
953 auto& impl = castedThis->wrapped();
954 if (UNLIKELY(state->argumentCount() < 1))
955 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
956 auto enabled = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
957 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
958 propagateException(*state, throwScope, impl.setYouTubeFlashPluginReplacementEnabled(WTFMove(enabled)));
959 return JSValue::encode(jsUndefined());
960}
961
962EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetYouTubeFlashPluginReplacementEnabled(ExecState* state)
963{
964 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetYouTubeFlashPluginReplacementEnabledBody>(*state, "setYouTubeFlashPluginReplacementEnabled");
965}
966
967static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetEditingBehaviorBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
968{
969 UNUSED_PARAM(state);
970 UNUSED_PARAM(throwScope);
971 auto& impl = castedThis->wrapped();
972 if (UNLIKELY(state->argumentCount() < 1))
973 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
974 auto behavior = convert<IDLDOMString>(*state, state->uncheckedArgument(0));
975 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
976 propagateException(*state, throwScope, impl.setEditingBehavior(WTFMove(behavior)));
977 return JSValue::encode(jsUndefined());
978}
979
980EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetEditingBehavior(ExecState* state)
981{
982 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetEditingBehaviorBody>(*state, "setEditingBehavior");
983}
984
985static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetShouldConvertPositionStyleOnCopyBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
986{
987 UNUSED_PARAM(state);
988 UNUSED_PARAM(throwScope);
989 auto& impl = castedThis->wrapped();
990 if (UNLIKELY(state->argumentCount() < 1))
991 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
992 auto convertPosition = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
993 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
994 propagateException(*state, throwScope, impl.setShouldConvertPositionStyleOnCopy(WTFMove(convertPosition)));
995 return JSValue::encode(jsUndefined());
996}
997
998EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetShouldConvertPositionStyleOnCopy(ExecState* state)
999{
1000 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetShouldConvertPositionStyleOnCopyBody>(*state, "setShouldConvertPositionStyleOnCopy");
1001}
1002
1003static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetPreferMIMETypeForImagesBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1004{
1005 UNUSED_PARAM(state);
1006 UNUSED_PARAM(throwScope);
1007 auto& impl = castedThis->wrapped();
1008 if (UNLIKELY(state->argumentCount() < 1))
1009 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1010 auto preferMimeTypeForImage = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1011 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1012 propagateException(*state, throwScope, impl.setPreferMIMETypeForImages(WTFMove(preferMimeTypeForImage)));
1013 return JSValue::encode(jsUndefined());
1014}
1015
1016EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetPreferMIMETypeForImages(ExecState* state)
1017{
1018 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetPreferMIMETypeForImagesBody>(*state, "setPreferMIMETypeForImages");
1019}
1020
1021static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetUseDarkAppearanceBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1022{
1023 UNUSED_PARAM(state);
1024 UNUSED_PARAM(throwScope);
1025 auto& impl = castedThis->wrapped();
1026 if (UNLIKELY(state->argumentCount() < 1))
1027 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1028 auto enabled = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1029 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1030 propagateException(*state, throwScope, impl.setUseDarkAppearance(WTFMove(enabled)));
1031 return JSValue::encode(jsUndefined());
1032}
1033
1034EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetUseDarkAppearance(ExecState* state)
1035{
1036 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetUseDarkAppearanceBody>(*state, "setUseDarkAppearance");
1037}
1038
1039static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetStorageBlockingPolicyBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1040{
1041 UNUSED_PARAM(state);
1042 UNUSED_PARAM(throwScope);
1043 auto& impl = castedThis->wrapped();
1044 if (UNLIKELY(state->argumentCount() < 1))
1045 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1046 auto policy = convert<IDLDOMString>(*state, state->uncheckedArgument(0));
1047 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1048 propagateException(*state, throwScope, impl.setStorageBlockingPolicy(WTFMove(policy)));
1049 return JSValue::encode(jsUndefined());
1050}
1051
1052EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetStorageBlockingPolicy(ExecState* state)
1053{
1054 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetStorageBlockingPolicyBody>(*state, "setStorageBlockingPolicy");
1055}
1056
1057static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetImagesEnabledBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1058{
1059 UNUSED_PARAM(state);
1060 UNUSED_PARAM(throwScope);
1061 auto& impl = castedThis->wrapped();
1062 if (UNLIKELY(state->argumentCount() < 1))
1063 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1064 auto enabled = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1065 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1066 propagateException(*state, throwScope, impl.setImagesEnabled(WTFMove(enabled)));
1067 return JSValue::encode(jsUndefined());
1068}
1069
1070EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetImagesEnabled(ExecState* state)
1071{
1072 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetImagesEnabledBody>(*state, "setImagesEnabled");
1073}
1074
1075static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetPDFImageCachingPolicyBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1076{
1077 UNUSED_PARAM(state);
1078 UNUSED_PARAM(throwScope);
1079 auto& impl = castedThis->wrapped();
1080 if (UNLIKELY(state->argumentCount() < 1))
1081 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1082 auto policy = convert<IDLDOMString>(*state, state->uncheckedArgument(0));
1083 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1084 propagateException(*state, throwScope, impl.setPDFImageCachingPolicy(WTFMove(policy)));
1085 return JSValue::encode(jsUndefined());
1086}
1087
1088EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetPDFImageCachingPolicy(ExecState* state)
1089{
1090 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetPDFImageCachingPolicyBody>(*state, "setPDFImageCachingPolicy");
1091}
1092
1093static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetUseLegacyBackgroundSizeShorthandBehaviorBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1094{
1095 UNUSED_PARAM(state);
1096 UNUSED_PARAM(throwScope);
1097 auto& impl = castedThis->wrapped();
1098 if (UNLIKELY(state->argumentCount() < 1))
1099 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1100 auto enabled = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1101 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1102 propagateException(*state, throwScope, impl.setUseLegacyBackgroundSizeShorthandBehavior(WTFMove(enabled)));
1103 return JSValue::encode(jsUndefined());
1104}
1105
1106EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetUseLegacyBackgroundSizeShorthandBehavior(ExecState* state)
1107{
1108 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetUseLegacyBackgroundSizeShorthandBehaviorBody>(*state, "setUseLegacyBackgroundSizeShorthandBehavior");
1109}
1110
1111static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetAutoscrollForDragAndDropEnabledBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1112{
1113 UNUSED_PARAM(state);
1114 UNUSED_PARAM(throwScope);
1115 auto& impl = castedThis->wrapped();
1116 if (UNLIKELY(state->argumentCount() < 1))
1117 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1118 auto enabled = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1119 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1120 propagateException(*state, throwScope, impl.setAutoscrollForDragAndDropEnabled(WTFMove(enabled)));
1121 return JSValue::encode(jsUndefined());
1122}
1123
1124EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetAutoscrollForDragAndDropEnabled(ExecState* state)
1125{
1126 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetAutoscrollForDragAndDropEnabledBody>(*state, "setAutoscrollForDragAndDropEnabled");
1127}
1128
1129static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetBackgroundShouldExtendBeyondPageBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1130{
1131 UNUSED_PARAM(state);
1132 UNUSED_PARAM(throwScope);
1133 auto& impl = castedThis->wrapped();
1134 if (UNLIKELY(state->argumentCount() < 1))
1135 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1136 auto hasExtendedBackground = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1137 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1138 propagateException(*state, throwScope, impl.setBackgroundShouldExtendBeyondPage(WTFMove(hasExtendedBackground)));
1139 return JSValue::encode(jsUndefined());
1140}
1141
1142EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetBackgroundShouldExtendBeyondPage(ExecState* state)
1143{
1144 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetBackgroundShouldExtendBeyondPageBody>(*state, "setBackgroundShouldExtendBeyondPage");
1145}
1146
1147static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetScrollingTreeIncludesFramesBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1148{
1149 UNUSED_PARAM(state);
1150 UNUSED_PARAM(throwScope);
1151 auto& impl = castedThis->wrapped();
1152 if (UNLIKELY(state->argumentCount() < 1))
1153 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1154 auto enabled = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1155 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1156 propagateException(*state, throwScope, impl.setScrollingTreeIncludesFrames(WTFMove(enabled)));
1157 return JSValue::encode(jsUndefined());
1158}
1159
1160EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetScrollingTreeIncludesFrames(ExecState* state)
1161{
1162 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetScrollingTreeIncludesFramesBody>(*state, "setScrollingTreeIncludesFrames");
1163}
1164
1165static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetAllowUnclampedScrollPositionBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1166{
1167 UNUSED_PARAM(state);
1168 UNUSED_PARAM(throwScope);
1169 auto& impl = castedThis->wrapped();
1170 if (UNLIKELY(state->argumentCount() < 1))
1171 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1172 auto allowUnclamped = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1173 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1174 propagateException(*state, throwScope, impl.setAllowUnclampedScrollPosition(WTFMove(allowUnclamped)));
1175 return JSValue::encode(jsUndefined());
1176}
1177
1178EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetAllowUnclampedScrollPosition(ExecState* state)
1179{
1180 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetAllowUnclampedScrollPositionBody>(*state, "setAllowUnclampedScrollPosition");
1181}
1182
1183static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetMinimumTimerIntervalBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1184{
1185 UNUSED_PARAM(state);
1186 UNUSED_PARAM(throwScope);
1187 auto& impl = castedThis->wrapped();
1188 if (UNLIKELY(state->argumentCount() < 1))
1189 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1190 auto intervalInSeconds = convert<IDLUnrestrictedDouble>(*state, state->uncheckedArgument(0));
1191 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1192 propagateException(*state, throwScope, impl.setMinimumTimerInterval(WTFMove(intervalInSeconds)));
1193 return JSValue::encode(jsUndefined());
1194}
1195
1196EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetMinimumTimerInterval(ExecState* state)
1197{
1198 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetMinimumTimerIntervalBody>(*state, "setMinimumTimerInterval");
1199}
1200
1201static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetAllowsInlineMediaPlaybackBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1202{
1203 UNUSED_PARAM(state);
1204 UNUSED_PARAM(throwScope);
1205 auto& impl = castedThis->wrapped();
1206 if (UNLIKELY(state->argumentCount() < 1))
1207 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1208 auto allows = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1209 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1210 propagateException(*state, throwScope, impl.setAllowsInlineMediaPlayback(WTFMove(allows)));
1211 return JSValue::encode(jsUndefined());
1212}
1213
1214EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetAllowsInlineMediaPlayback(ExecState* state)
1215{
1216 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetAllowsInlineMediaPlaybackBody>(*state, "setAllowsInlineMediaPlayback");
1217}
1218
1219static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetAllowsInlineMediaPlaybackAfterFullscreenBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1220{
1221 UNUSED_PARAM(state);
1222 UNUSED_PARAM(throwScope);
1223 auto& impl = castedThis->wrapped();
1224 if (UNLIKELY(state->argumentCount() < 1))
1225 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1226 auto allows = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1227 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1228 propagateException(*state, throwScope, impl.setAllowsInlineMediaPlaybackAfterFullscreen(WTFMove(allows)));
1229 return JSValue::encode(jsUndefined());
1230}
1231
1232EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetAllowsInlineMediaPlaybackAfterFullscreen(ExecState* state)
1233{
1234 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetAllowsInlineMediaPlaybackAfterFullscreenBody>(*state, "setAllowsInlineMediaPlaybackAfterFullscreen");
1235}
1236
1237static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetInlineMediaPlaybackRequiresPlaysInlineAttributeBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1238{
1239 UNUSED_PARAM(state);
1240 UNUSED_PARAM(throwScope);
1241 auto& impl = castedThis->wrapped();
1242 if (UNLIKELY(state->argumentCount() < 1))
1243 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1244 auto requires = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1245 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1246 propagateException(*state, throwScope, impl.setInlineMediaPlaybackRequiresPlaysInlineAttribute(WTFMove(requires)));
1247 return JSValue::encode(jsUndefined());
1248}
1249
1250EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetInlineMediaPlaybackRequiresPlaysInlineAttribute(ExecState* state)
1251{
1252 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetInlineMediaPlaybackRequiresPlaysInlineAttributeBody>(*state, "setInlineMediaPlaybackRequiresPlaysInlineAttribute");
1253}
1254
1255static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetFrameFlatteningBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1256{
1257 UNUSED_PARAM(state);
1258 UNUSED_PARAM(throwScope);
1259 auto& impl = castedThis->wrapped();
1260 if (UNLIKELY(state->argumentCount() < 1))
1261 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1262 auto frameFlattening = convert<IDLEnumeration<InternalSettings::FrameFlatteningValue>>(*state, state->uncheckedArgument(0), [](JSC::ExecState& state, JSC::ThrowScope& scope) { throwArgumentMustBeEnumError(state, scope, 0, "frameFlattening", "InternalSettings", "setFrameFlattening", expectedEnumerationValues<InternalSettings::FrameFlatteningValue>()); });
1263 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1264 propagateException(*state, throwScope, impl.setFrameFlattening(WTFMove(frameFlattening)));
1265 return JSValue::encode(jsUndefined());
1266}
1267
1268EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetFrameFlattening(ExecState* state)
1269{
1270 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetFrameFlatteningBody>(*state, "setFrameFlattening");
1271}
1272
1273static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetIncompleteImageBorderEnabledBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1274{
1275 UNUSED_PARAM(state);
1276 UNUSED_PARAM(throwScope);
1277 auto& impl = castedThis->wrapped();
1278 if (UNLIKELY(state->argumentCount() < 1))
1279 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1280 auto enabled = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1281 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1282 propagateException(*state, throwScope, impl.setIncompleteImageBorderEnabled(WTFMove(enabled)));
1283 return JSValue::encode(jsUndefined());
1284}
1285
1286EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetIncompleteImageBorderEnabled(ExecState* state)
1287{
1288 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetIncompleteImageBorderEnabledBody>(*state, "setIncompleteImageBorderEnabled");
1289}
1290
1291static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetShouldDispatchSyntheticMouseEventsWhenModifyingSelectionBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1292{
1293 UNUSED_PARAM(state);
1294 UNUSED_PARAM(throwScope);
1295 auto& impl = castedThis->wrapped();
1296 if (UNLIKELY(state->argumentCount() < 1))
1297 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1298 auto shouldDispatch = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1299 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1300 propagateException(*state, throwScope, impl.setShouldDispatchSyntheticMouseEventsWhenModifyingSelection(WTFMove(shouldDispatch)));
1301 return JSValue::encode(jsUndefined());
1302}
1303
1304EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetShouldDispatchSyntheticMouseEventsWhenModifyingSelection(ExecState* state)
1305{
1306 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetShouldDispatchSyntheticMouseEventsWhenModifyingSelectionBody>(*state, "setShouldDispatchSyntheticMouseEventsWhenModifyingSelection");
1307}
1308
1309static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetIndexedDBWorkersEnabledBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1310{
1311 UNUSED_PARAM(state);
1312 UNUSED_PARAM(throwScope);
1313 auto& impl = castedThis->wrapped();
1314 if (UNLIKELY(state->argumentCount() < 1))
1315 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1316 auto enabled = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1317 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1318 impl.setIndexedDBWorkersEnabled(WTFMove(enabled));
1319 return JSValue::encode(jsUndefined());
1320}
1321
1322EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetIndexedDBWorkersEnabled(ExecState* state)
1323{
1324 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetIndexedDBWorkersEnabledBody>(*state, "setIndexedDBWorkersEnabled");
1325}
1326
1327static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetWebGL2EnabledBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1328{
1329 UNUSED_PARAM(state);
1330 UNUSED_PARAM(throwScope);
1331 auto& impl = castedThis->wrapped();
1332 if (UNLIKELY(state->argumentCount() < 1))
1333 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1334 auto enabled = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1335 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1336 impl.setWebGL2Enabled(WTFMove(enabled));
1337 return JSValue::encode(jsUndefined());
1338}
1339
1340EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetWebGL2Enabled(ExecState* state)
1341{
1342 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetWebGL2EnabledBody>(*state, "setWebGL2Enabled");
1343}
1344
1345static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetWebGPUEnabledBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1346{
1347 UNUSED_PARAM(state);
1348 UNUSED_PARAM(throwScope);
1349 auto& impl = castedThis->wrapped();
1350 if (UNLIKELY(state->argumentCount() < 1))
1351 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1352 auto enabled = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1353 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1354 impl.setWebGPUEnabled(WTFMove(enabled));
1355 return JSValue::encode(jsUndefined());
1356}
1357
1358EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetWebGPUEnabled(ExecState* state)
1359{
1360 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetWebGPUEnabledBody>(*state, "setWebGPUEnabled");
1361}
1362
1363static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetWebVREnabledBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1364{
1365 UNUSED_PARAM(state);
1366 UNUSED_PARAM(throwScope);
1367 auto& impl = castedThis->wrapped();
1368 if (UNLIKELY(state->argumentCount() < 1))
1369 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1370 auto enabled = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1371 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1372 impl.setWebVREnabled(WTFMove(enabled));
1373 return JSValue::encode(jsUndefined());
1374}
1375
1376EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetWebVREnabled(ExecState* state)
1377{
1378 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetWebVREnabledBody>(*state, "setWebVREnabled");
1379}
1380
1381static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetScreenCaptureEnabledBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1382{
1383 UNUSED_PARAM(state);
1384 UNUSED_PARAM(throwScope);
1385 auto& impl = castedThis->wrapped();
1386 if (UNLIKELY(state->argumentCount() < 1))
1387 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1388 auto enabled = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1389 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1390 impl.setScreenCaptureEnabled(WTFMove(enabled));
1391 return JSValue::encode(jsUndefined());
1392}
1393
1394EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetScreenCaptureEnabled(ExecState* state)
1395{
1396 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetScreenCaptureEnabledBody>(*state, "setScreenCaptureEnabled");
1397}
1398
1399static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionUserInterfaceDirectionPolicyBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1400{
1401 UNUSED_PARAM(state);
1402 UNUSED_PARAM(throwScope);
1403 auto& impl = castedThis->wrapped();
1404 return JSValue::encode(toJS<IDLDOMString>(*state, throwScope, impl.userInterfaceDirectionPolicy()));
1405}
1406
1407EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionUserInterfaceDirectionPolicy(ExecState* state)
1408{
1409 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionUserInterfaceDirectionPolicyBody>(*state, "userInterfaceDirectionPolicy");
1410}
1411
1412static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetUserInterfaceDirectionPolicyBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1413{
1414 UNUSED_PARAM(state);
1415 UNUSED_PARAM(throwScope);
1416 auto& impl = castedThis->wrapped();
1417 if (UNLIKELY(state->argumentCount() < 1))
1418 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1419 auto policy = convert<IDLDOMString>(*state, state->uncheckedArgument(0));
1420 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1421 propagateException(*state, throwScope, impl.setUserInterfaceDirectionPolicy(WTFMove(policy)));
1422 return JSValue::encode(jsUndefined());
1423}
1424
1425EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetUserInterfaceDirectionPolicy(ExecState* state)
1426{
1427 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetUserInterfaceDirectionPolicyBody>(*state, "setUserInterfaceDirectionPolicy");
1428}
1429
1430static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSystemLayoutDirectionBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1431{
1432 UNUSED_PARAM(state);
1433 UNUSED_PARAM(throwScope);
1434 auto& impl = castedThis->wrapped();
1435 return JSValue::encode(toJS<IDLDOMString>(*state, throwScope, impl.systemLayoutDirection()));
1436}
1437
1438EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSystemLayoutDirection(ExecState* state)
1439{
1440 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSystemLayoutDirectionBody>(*state, "systemLayoutDirection");
1441}
1442
1443static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetSystemLayoutDirectionBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1444{
1445 UNUSED_PARAM(state);
1446 UNUSED_PARAM(throwScope);
1447 auto& impl = castedThis->wrapped();
1448 if (UNLIKELY(state->argumentCount() < 1))
1449 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1450 auto direction = convert<IDLDOMString>(*state, state->uncheckedArgument(0));
1451 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1452 propagateException(*state, throwScope, impl.setSystemLayoutDirection(WTFMove(direction)));
1453 return JSValue::encode(jsUndefined());
1454}
1455
1456EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetSystemLayoutDirection(ExecState* state)
1457{
1458 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetSystemLayoutDirectionBody>(*state, "setSystemLayoutDirection");
1459}
1460
1461static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionDeferredCSSParserEnabledBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1462{
1463 UNUSED_PARAM(state);
1464 UNUSED_PARAM(throwScope);
1465 auto& impl = castedThis->wrapped();
1466 return JSValue::encode(toJS<IDLBoolean>(*state, throwScope, impl.deferredCSSParserEnabled()));
1467}
1468
1469EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionDeferredCSSParserEnabled(ExecState* state)
1470{
1471 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionDeferredCSSParserEnabledBody>(*state, "deferredCSSParserEnabled");
1472}
1473
1474static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetDeferredCSSParserEnabledBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1475{
1476 UNUSED_PARAM(state);
1477 UNUSED_PARAM(throwScope);
1478 auto& impl = castedThis->wrapped();
1479 if (UNLIKELY(state->argumentCount() < 1))
1480 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1481 auto enabled = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1482 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1483 propagateException(*state, throwScope, impl.setDeferredCSSParserEnabled(WTFMove(enabled)));
1484 return JSValue::encode(jsUndefined());
1485}
1486
1487EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetDeferredCSSParserEnabled(ExecState* state)
1488{
1489 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetDeferredCSSParserEnabledBody>(*state, "setDeferredCSSParserEnabled");
1490}
1491
1492static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetShouldMockBoldSystemFontForAccessibilityBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1493{
1494 UNUSED_PARAM(state);
1495 UNUSED_PARAM(throwScope);
1496 auto& impl = castedThis->wrapped();
1497 if (UNLIKELY(state->argumentCount() < 1))
1498 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1499 auto shouldMock = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1500 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1501 propagateException(*state, throwScope, impl.setShouldMockBoldSystemFontForAccessibility(WTFMove(shouldMock)));
1502 return JSValue::encode(jsUndefined());
1503}
1504
1505EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetShouldMockBoldSystemFontForAccessibility(ExecState* state)
1506{
1507 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetShouldMockBoldSystemFontForAccessibilityBody>(*state, "setShouldMockBoldSystemFontForAccessibility");
1508}
1509
1510static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetShouldManageAudioSessionCategoryBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1511{
1512 UNUSED_PARAM(state);
1513 UNUSED_PARAM(throwScope);
1514 auto& impl = castedThis->wrapped();
1515 if (UNLIKELY(state->argumentCount() < 1))
1516 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1517 auto should = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1518 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1519 propagateException(*state, throwScope, impl.setShouldManageAudioSessionCategory(WTFMove(should)));
1520 return JSValue::encode(jsUndefined());
1521}
1522
1523EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetShouldManageAudioSessionCategory(ExecState* state)
1524{
1525 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetShouldManageAudioSessionCategoryBody>(*state, "setShouldManageAudioSessionCategory");
1526}
1527
1528static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetCustomPasteboardDataEnabledBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1529{
1530 UNUSED_PARAM(state);
1531 UNUSED_PARAM(throwScope);
1532 auto& impl = castedThis->wrapped();
1533 if (UNLIKELY(state->argumentCount() < 1))
1534 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1535 auto enabled = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1536 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1537 propagateException(*state, throwScope, impl.setCustomPasteboardDataEnabled(WTFMove(enabled)));
1538 return JSValue::encode(jsUndefined());
1539}
1540
1541EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetCustomPasteboardDataEnabled(ExecState* state)
1542{
1543 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetCustomPasteboardDataEnabledBody>(*state, "setCustomPasteboardDataEnabled");
1544}
1545
1546static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionWebAnimationsCSSIntegrationEnabledBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1547{
1548 UNUSED_PARAM(state);
1549 UNUSED_PARAM(throwScope);
1550 auto& impl = castedThis->wrapped();
1551 return JSValue::encode(toJS<IDLBoolean>(impl.webAnimationsCSSIntegrationEnabled()));
1552}
1553
1554EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionWebAnimationsCSSIntegrationEnabled(ExecState* state)
1555{
1556 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionWebAnimationsCSSIntegrationEnabledBody>(*state, "webAnimationsCSSIntegrationEnabled");
1557}
1558
1559static inline JSC::EncodedJSValue jsInternalSettingsPrototypeFunctionSetShouldDeactivateAudioSessionBody(JSC::ExecState* state, typename IDLOperation<JSInternalSettings>::ClassParameter castedThis, JSC::ThrowScope& throwScope)
1560{
1561 UNUSED_PARAM(state);
1562 UNUSED_PARAM(throwScope);
1563 auto& impl = castedThis->wrapped();
1564 if (UNLIKELY(state->argumentCount() < 1))
1565 return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
1566 auto shouldDeactivate = convert<IDLBoolean>(*state, state->uncheckedArgument(0));
1567 RETURN_IF_EXCEPTION(throwScope, encodedJSValue());
1568 impl.setShouldDeactivateAudioSession(WTFMove(shouldDeactivate));
1569 return JSValue::encode(jsUndefined());
1570}
1571
1572EncodedJSValue JSC_HOST_CALL jsInternalSettingsPrototypeFunctionSetShouldDeactivateAudioSession(ExecState* state)
1573{
1574 return IDLOperation<JSInternalSettings>::call<jsInternalSettingsPrototypeFunctionSetShouldDeactivateAudioSessionBody>(*state, "setShouldDeactivateAudioSession");
1575}
1576
1577void JSInternalSettings::heapSnapshot(JSCell* cell, HeapSnapshotBuilder& builder)
1578{
1579 auto* thisObject = jsCast<JSInternalSettings*>(cell);
1580 builder.setWrappedObjectForCell(cell, &thisObject->wrapped());
1581 if (thisObject->scriptExecutionContext())
1582 builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string());
1583 Base::heapSnapshot(cell, builder);
1584}
1585
1586#if ENABLE(BINDING_INTEGRITY)
1587#if PLATFORM(WIN)
1588#pragma warning(disable: 4483)
1589extern "C" { extern void (*const __identifier("??_7InternalSettings@WebCore@@6B@")[])(); }
1590#else
1591extern "C" { extern void* _ZTVN7WebCore16InternalSettingsE[]; }
1592#endif
1593#endif
1594
1595JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject* globalObject, Ref<InternalSettings>&& impl)
1596{
1597
1598#if ENABLE(BINDING_INTEGRITY)
1599 void* actualVTablePointer = *(reinterpret_cast<void**>(impl.ptr()));
1600#if PLATFORM(WIN)
1601 void* expectedVTablePointer = WTF_PREPARE_VTBL_POINTER_FOR_INSPECTION(__identifier("??_7InternalSettings@WebCore@@6B@"));
1602#else
1603 void* expectedVTablePointer = WTF_PREPARE_VTBL_POINTER_FOR_INSPECTION(&_ZTVN7WebCore16InternalSettingsE[2]);
1604#endif
1605
1606 // If this fails InternalSettings does not have a vtable, so you need to add the
1607 // ImplementationLacksVTable attribute to the interface definition
1608 static_assert(std::is_polymorphic<InternalSettings>::value, "InternalSettings is not polymorphic");
1609
1610 // If you hit this assertion you either have a use after free bug, or
1611 // InternalSettings has subclasses. If InternalSettings has subclasses that get passed
1612 // to toJS() we currently require InternalSettings you to opt out of binding hardening
1613 // by adding the SkipVTableValidation attribute to the interface IDL definition
1614 RELEASE_ASSERT(actualVTablePointer == expectedVTablePointer);
1615#endif
1616 return createWrapper<InternalSettings>(globalObject, WTFMove(impl));
1617}
1618
1619JSC::JSValue toJS(JSC::ExecState* state, JSDOMGlobalObject* globalObject, InternalSettings& impl)
1620{
1621 return wrap(state, globalObject, impl);
1622}
1623
1624
1625}
1626