summaryrefslogtreecommitdiff
path: root/Source/WebCore/testing/InternalSettings.idl
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/testing/InternalSettings.idl')
-rw-r--r--Source/WebCore/testing/InternalSettings.idl107
1 files changed, 73 insertions, 34 deletions
diff --git a/Source/WebCore/testing/InternalSettings.idl b/Source/WebCore/testing/InternalSettings.idl
index f9fbfb107..d4811b79e 100644
--- a/Source/WebCore/testing/InternalSettings.idl
+++ b/Source/WebCore/testing/InternalSettings.idl
@@ -1,5 +1,6 @@
/*
* Copyright (C) 2012 Google Inc. All rights reserved.
+ * Copyright (C) 2015 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -23,41 +24,79 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+enum ForcedAccessibilityValue { "system", "on", "off" };
+
[
NoInterfaceObject,
- JSGenerateToJSObject
+ JSGenerateToJSObject,
+ ExportMacro=WEBCORE_TESTSUPPORT_EXPORT,
] interface InternalSettings : InternalSettingsGenerated {
- [RaisesException] void setMockScrollbarsEnabled(boolean enabled);
- [RaisesException] void setTouchEventEmulationEnabled(boolean enabled);
- [RaisesException] void setShadowDOMEnabled(boolean enabled);
- void setAuthorShadowDOMForAnyElementEnabled(boolean isEnabled);
- [RaisesException] void setStandardFontFamily(DOMString family, DOMString script);
- [RaisesException] void setSerifFontFamily(DOMString family, DOMString script);
- [RaisesException] void setSansSerifFontFamily(DOMString family, DOMString script);
- [RaisesException] void setFixedFontFamily(DOMString family, DOMString script);
- [RaisesException] void setCursiveFontFamily(DOMString family, DOMString script);
- [RaisesException] void setFantasyFontFamily(DOMString family, DOMString script);
- [RaisesException] void setPictographFontFamily(DOMString family, DOMString script);
- [RaisesException] void setTextAutosizingEnabled(boolean enabled);
- [RaisesException] void setTextAutosizingWindowSizeOverride(long width, long height);
- [RaisesException] void setTextAutosizingFontScaleFactor(float fontScaleFactor);
- [RaisesException] void setMediaTypeOverride(DOMString mediaTypeOverride);
- [RaisesException] void setCSSExclusionsEnabled(boolean enabled);
- [RaisesException] void setCSSShapesEnabled(boolean enabled);
- [RaisesException] void setCanStartMedia(boolean enabled);
- [RaisesException] void setEditingBehavior(DOMString behavior);
- void setLangAttributeAwareFormControlUIEnabled(boolean enabled);
-
- [Conditional=VIDEO_TRACK, RaisesException] void setShouldDisplayTrackKind(DOMString kind, boolean enabled);
- [Conditional=VIDEO_TRACK, RaisesException] boolean shouldDisplayTrackKind(DOMString trackKind);
- [RaisesException] void setStorageBlockingPolicy(DOMString policy);
- [RaisesException] void setImagesEnabled(boolean enabled);
- [RaisesException] void setMinimumTimerInterval(double intervalInSeconds);
- [RaisesException] void setDefaultVideoPosterURL(DOMString poster);
- [RaisesException] void setTimeWithoutMouseMovementBeforeHidingControls(double time);
- [RaisesException] void setUseLegacyBackgroundSizeShorthandBehavior(boolean enabled);
- [RaisesException] void setAutoscrollForDragAndDropEnabled(boolean enabled);
- [RaisesException] void setFontFallbackPrefersPictographs(boolean preferPictographs);
- void setPluginReplacementEnabled(boolean enabled);
- [RaisesException] void setBackgroundShouldExtendBeyondPage(boolean hasExtendedBackground);
+ [MayThrowException] void setTouchEventEmulationEnabled(boolean enabled);
+
+ // Fonts, text
+ [MayThrowException] void setStandardFontFamily(DOMString family, DOMString script);
+ [MayThrowException] void setSerifFontFamily(DOMString family, DOMString script);
+ [MayThrowException] void setSansSerifFontFamily(DOMString family, DOMString script);
+ [MayThrowException] void setFixedFontFamily(DOMString family, DOMString script);
+ [MayThrowException] void setCursiveFontFamily(DOMString family, DOMString script);
+ [MayThrowException] void setFantasyFontFamily(DOMString family, DOMString script);
+ [MayThrowException] void setPictographFontFamily(DOMString family, DOMString script);
+ [MayThrowException] void setFontFallbackPrefersPictographs(boolean preferPictographs);
+ [MayThrowException] void setWebFontsAlwaysFallBack(boolean enable);
+
+ [MayThrowException] void setTextAutosizingEnabled(boolean enabled);
+ [MayThrowException] void setTextAutosizingWindowSizeOverride(long width, long height);
+
+ // Media
+ [MayThrowException] void setCanStartMedia(boolean enabled);
+ [Conditional=VIDEO_TRACK, MayThrowException] void setShouldDisplayTrackKind(DOMString kind, boolean enabled);
+ [Conditional=VIDEO_TRACK, MayThrowException] boolean shouldDisplayTrackKind(DOMString trackKind);
+ [MayThrowException] void setDefaultVideoPosterURL(DOMString poster);
+ [MayThrowException] void setTimeWithoutMouseMovementBeforeHidingControls(unrestricted double time);
+ [MayThrowException] void setMediaTypeOverride(DOMString mediaTypeOverride);
+ void setAllowsAirPlayForMediaPlayback(boolean available);
+ [Conditional=MEDIA_STREAM, MayThrowException] void setMediaCaptureRequiresSecureConnection(boolean enable);
+
+ [MayThrowException] void setForcePendingWebGLPolicy(boolean forced);
+
+ [MayThrowException] void setQuickTimePluginReplacementEnabled(boolean enabled);
+ [MayThrowException] void setYouTubeFlashPluginReplacementEnabled(boolean enabled);
+
+ // Editing, forms
+ [MayThrowException] void setEditingBehavior(DOMString behavior);
+ [MayThrowException] void setShouldConvertPositionStyleOnCopy(boolean convertPosition);
+ [MayThrowException] void setPreferMIMETypeForImages(boolean preferMimeTypeForImage);
+
+ // Other switches
+ [MayThrowException] void setStorageBlockingPolicy(DOMString policy);
+ [MayThrowException] void setImagesEnabled(boolean enabled);
+ [MayThrowException] void setPDFImageCachingPolicy(DOMString policy);
+ [MayThrowException] void setUseLegacyBackgroundSizeShorthandBehavior(boolean enabled);
+ [MayThrowException] void setAutoscrollForDragAndDropEnabled(boolean enabled);
+ [MayThrowException] void setBackgroundShouldExtendBeyondPage(boolean hasExtendedBackground);
+ [MayThrowException] void setScrollingTreeIncludesFrames(boolean enabled);
+ [MayThrowException] void setAllowUnclampedScrollPosition(boolean allowUnclamped);
+
+ [MayThrowException] void setMinimumTimerInterval(unrestricted double intervalInSeconds);
+ [MayThrowException] void setAllowsInlineMediaPlayback(boolean allows);
+ [MayThrowException] void setAllowsInlineMediaPlaybackAfterFullscreen(boolean allows);
+ [MayThrowException] void setInlineMediaPlaybackRequiresPlaysInlineAttribute(boolean requires);
+
+ // RuntimeEnabledFeatures.
+ void setIndexedDBWorkersEnabled(boolean enabled);
+ void setCSSGridLayoutEnabled(boolean enabled);
+ void setWebGL2Enabled(boolean enabled);
+
+ [MayThrowException] DOMString userInterfaceDirectionPolicy();
+ [MayThrowException] void setUserInterfaceDirectionPolicy(DOMString policy);
+ [MayThrowException] DOMString systemLayoutDirection();
+ [MayThrowException] void setSystemLayoutDirection(DOMString direction);
+
+ [MayThrowException] boolean deferredCSSParserEnabled();
+ [MayThrowException] void setDeferredCSSParserEnabled(boolean enabled);
+
+ attribute ForcedAccessibilityValue forcedColorsAreInvertedAccessibilityValue;
+ attribute ForcedAccessibilityValue forcedDisplayIsMonochromeAccessibilityValue;
+ attribute ForcedAccessibilityValue forcedPrefersReducedMotionAccessibilityValue;
};
+