Introduce InputEvent bindings in preparation for the input events spec
[WebKit-https.git] / Source / WebCore / testing / InternalSettings.idl
1 /*
2  * Copyright (C) 2012 Google Inc. All rights reserved.
3  * Copyright (C) 2015 Apple Inc. All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * 1.  Redistributions of source code must retain the above copyright
10  *     notice, this list of conditions and the following disclaimer.
11  * 2.  Redistributions in binary form must reproduce the above copyright
12  *     notice, this list of conditions and the following disclaimer in the
13  *     documentation and/or other materials provided with the distribution.
14  *
15  * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
16  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18  * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
19  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25  */
26
27 [
28     NoInterfaceObject,
29     JSGenerateToJSObject,
30     ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
31 ] interface InternalSettings : InternalSettingsGenerated {
32     [MayThrowLegacyException] void setTouchEventEmulationEnabled(boolean enabled);
33
34     // Fonts, text
35     [MayThrowLegacyException] void setStandardFontFamily(DOMString family, DOMString script);
36     [MayThrowLegacyException] void setSerifFontFamily(DOMString family, DOMString script);
37     [MayThrowLegacyException] void setSansSerifFontFamily(DOMString family, DOMString script);
38     [MayThrowLegacyException] void setFixedFontFamily(DOMString family, DOMString script);
39     [MayThrowLegacyException] void setCursiveFontFamily(DOMString family, DOMString script);
40     [MayThrowLegacyException] void setFantasyFontFamily(DOMString family, DOMString script);
41     [MayThrowLegacyException] void setPictographFontFamily(DOMString family, DOMString script);
42     [MayThrowLegacyException] void setFontFallbackPrefersPictographs(boolean preferPictographs);
43     [MayThrowLegacyException] void setWebFontsAlwaysFallBack(boolean enable);
44
45     [MayThrowLegacyException] void setTextAutosizingEnabled(boolean enabled);
46     [MayThrowLegacyException] void setTextAutosizingWindowSizeOverride(long width, long height);
47
48     // Media
49     [MayThrowLegacyException] void setCanStartMedia(boolean enabled);
50     [Conditional=VIDEO_TRACK, MayThrowLegacyException] void setShouldDisplayTrackKind(DOMString kind, boolean enabled);
51     [Conditional=VIDEO_TRACK, MayThrowLegacyException] boolean shouldDisplayTrackKind(DOMString trackKind);
52     [MayThrowLegacyException] void setDefaultVideoPosterURL(DOMString poster);
53     [MayThrowLegacyException] void setTimeWithoutMouseMovementBeforeHidingControls(unrestricted double time);
54     [MayThrowLegacyException] void setMediaTypeOverride(DOMString mediaTypeOverride);
55     void setAllowsAirPlayForMediaPlayback(boolean available);
56
57     [MayThrowLegacyException] void setForcePendingWebGLPolicy(boolean forced);
58
59     [MayThrowLegacyException] void setQuickTimePluginReplacementEnabled(boolean enabled);
60     [MayThrowLegacyException] void setYouTubeFlashPluginReplacementEnabled(boolean enabled);
61
62     // Editing, forms
63     [MayThrowLegacyException] void setEditingBehavior(DOMString behavior);
64     [MayThrowLegacyException] void setShouldConvertPositionStyleOnCopy(boolean convert);
65     void setLangAttributeAwareFormControlUIEnabled(boolean enabled);
66     [MayThrowLegacyException] void setPreferMIMETypeForImages(boolean preferMimeTypeForImage);
67
68     // Other switches
69     [MayThrowLegacyException] void setStorageBlockingPolicy(DOMString policy);
70     [MayThrowLegacyException] void setImagesEnabled(boolean enabled);
71     [MayThrowLegacyException] void setPDFImageCachingPolicy(DOMString policy);
72     [MayThrowLegacyException] void setUseLegacyBackgroundSizeShorthandBehavior(boolean enabled);
73     [MayThrowLegacyException] void setAutoscrollForDragAndDropEnabled(boolean enabled);
74     [MayThrowLegacyException] void setBackgroundShouldExtendBeyondPage(boolean hasExtendedBackground);
75     [MayThrowLegacyException] void setScrollingTreeIncludesFrames(boolean enabled);
76
77     [MayThrowLegacyException] void setMinimumTimerInterval(unrestricted double intervalInSeconds);
78     [MayThrowLegacyException] void setAllowsInlineMediaPlayback(boolean allows);
79     [MayThrowLegacyException] void setAllowsInlineMediaPlaybackAfterFullscreen(boolean allows);
80     [MayThrowLegacyException] void setInlineMediaPlaybackRequiresPlaysInlineAttribute(boolean requires);
81
82     [MayThrowLegacyException] void setIndexedDBWorkersEnabled(boolean requires);
83
84     [MayThrowLegacyException] DOMString userInterfaceDirectionPolicy();
85     [MayThrowLegacyException] void setUserInterfaceDirectionPolicy(DOMString policy);
86     [MayThrowLegacyException] DOMString systemLayoutDirection();
87     [MayThrowLegacyException] void setSystemLayoutDirection(DOMString direction);
88
89     [MayThrowLegacyException] boolean variationFontsEnabled();
90     [MayThrowLegacyException] void setVariationFontsEnabled(boolean enabled);
91
92     void setInputEventsEnabled(boolean enabled);
93 };
94