blob: f580fb8f72b60fb05a030fa0eac6d160ba185b70 [file] [log] [blame]
/*
* Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following disclaimer
* in the documentation and/or other materials provided with the
* distribution.
* * Neither the name of Google Inc. nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "third_party/blink/public/platform/web_runtime_features.h"
#include "third_party/blink/renderer/platform/runtime_enabled_features.h"
#include "third_party/blink/renderer/platform/wtf/assertions.h"
namespace blink {
void WebRuntimeFeatures::EnableBlinkHeapIncrementalMarking(bool enable) {
RuntimeEnabledFeatures::SetHeapIncrementalMarkingEnabled(enable);
}
void WebRuntimeFeatures::EnableBlinkHeapUnifiedGarbageCollection(bool enable) {
RuntimeEnabledFeatures::SetHeapUnifiedGarbageCollectionEnabled(enable);
}
void WebRuntimeFeatures::EnableBlinkHeapCollectLiveNonNodeWrappers(
bool enable) {
RuntimeEnabledFeatures::SetHeapCollectLiveNonNodeWrappersEnabled(enable);
}
void WebRuntimeFeatures::EnableBloatedRendererDetection(bool enable) {
RuntimeEnabledFeatures::SetBloatedRendererDetectionEnabled(enable);
}
void WebRuntimeFeatures::EnableExperimentalFeatures(bool enable) {
RuntimeEnabledFeatures::SetExperimentalFeaturesEnabled(enable);
}
void WebRuntimeFeatures::EnableWebBluetooth(bool enable) {
RuntimeEnabledFeatures::SetWebBluetoothEnabled(enable);
}
void WebRuntimeFeatures::EnableWebBluetoothScanning(bool enable) {
RuntimeEnabledFeatures::SetWebBluetoothScanningEnabled(enable);
}
void WebRuntimeFeatures::EnableWebNfc(bool enable) {
RuntimeEnabledFeatures::SetWebNFCEnabled(enable);
}
void WebRuntimeFeatures::EnableWebUsb(bool enable) {
RuntimeEnabledFeatures::SetWebUSBEnabled(enable);
}
void WebRuntimeFeatures::EnableFeatureFromString(const std::string& name,
bool enable) {
RuntimeEnabledFeatures::SetFeatureEnabledFromString(name, enable);
}
bool WebRuntimeFeatures::IsBlinkGenPropertyTreesEnabled() {
return RuntimeEnabledFeatures::BlinkGenPropertyTreesEnabled();
}
bool WebRuntimeFeatures::IsFractionalScrollOffsetsEnabled() {
return RuntimeEnabledFeatures::FractionalScrollOffsetsEnabled();
}
void WebRuntimeFeatures::EnableTestOnlyFeatures(bool enable) {
RuntimeEnabledFeatures::SetTestFeaturesEnabled(enable);
}
void WebRuntimeFeatures::EnableOriginTrialControlledFeatures(bool enable) {
RuntimeEnabledFeatures::SetOriginTrialControlledFeaturesEnabled(enable);
}
void WebRuntimeFeatures::EnableOutOfBlinkCors(bool enable) {
RuntimeEnabledFeatures::SetOutOfBlinkCorsEnabled(enable);
}
void WebRuntimeFeatures::EnableAccelerated2dCanvas(bool enable) {
RuntimeEnabledFeatures::SetAccelerated2dCanvasEnabled(enable);
}
void WebRuntimeFeatures::EnableAccessibilityObjectModel(bool enable) {
RuntimeEnabledFeatures::SetAccessibilityObjectModelEnabled(enable);
}
void WebRuntimeFeatures::EnableAdTagging(bool enable) {
RuntimeEnabledFeatures::SetAdTaggingEnabled(enable);
}
void WebRuntimeFeatures::EnableAllowActivationDelegationAttr(bool enable) {
RuntimeEnabledFeatures::SetAllowActivationDelegationAttrEnabled(enable);
}
void WebRuntimeFeatures::EnableAudioOutputDevices(bool enable) {
RuntimeEnabledFeatures::SetAudioOutputDevicesEnabled(enable);
}
void WebRuntimeFeatures::EnableCacheInlineScriptCode(bool enable) {
RuntimeEnabledFeatures::SetCacheInlineScriptCodeEnabled(enable);
}
void WebRuntimeFeatures::EnableIsolatedCodeCache(bool enable) {
RuntimeEnabledFeatures::SetIsolatedCodeCacheEnabled(enable);
}
void WebRuntimeFeatures::EnableWasmCodeCache(bool enable) {
RuntimeEnabledFeatures::SetWasmCodeCacheEnabled(enable);
}
void WebRuntimeFeatures::EnableCanvas2dImageChromium(bool enable) {
RuntimeEnabledFeatures::SetCanvas2dImageChromiumEnabled(enable);
}
void WebRuntimeFeatures::EnableCompositedSelectionUpdate(bool enable) {
RuntimeEnabledFeatures::SetCompositedSelectionUpdateEnabled(enable);
}
bool WebRuntimeFeatures::IsCompositedSelectionUpdateEnabled() {
return RuntimeEnabledFeatures::CompositedSelectionUpdateEnabled();
}
void WebRuntimeFeatures::EnableCompositorTouchAction(bool enable) {
RuntimeEnabledFeatures::SetCompositorTouchActionEnabled(enable);
}
void WebRuntimeFeatures::EnableCSSHexAlphaColor(bool enable) {
RuntimeEnabledFeatures::SetCSSHexAlphaColorEnabled(enable);
}
void WebRuntimeFeatures::EnableCSSFragmentIdentifiers(bool enable) {
RuntimeEnabledFeatures::SetCSSFragmentIdentifiersEnabled(enable);
}
void WebRuntimeFeatures::EnableScrollTopLeftInterop(bool enable) {
RuntimeEnabledFeatures::SetScrollTopLeftInteropEnabled(enable);
}
void WebRuntimeFeatures::EnableKeyboardFocusableScrollers(bool enable) {
RuntimeEnabledFeatures::SetKeyboardFocusableScrollersEnabled(enable);
}
void WebRuntimeFeatures::EnableDatabase(bool enable) {
RuntimeEnabledFeatures::SetDatabaseEnabled(enable);
}
void WebRuntimeFeatures::EnableDecodeToYUV(bool enable) {
RuntimeEnabledFeatures::SetDecodeToYUVEnabled(enable);
}
void WebRuntimeFeatures::EnableFallbackCursorMode(bool enable) {
RuntimeEnabledFeatures::SetFallbackCursorModeEnabled(enable);
}
void WebRuntimeFeatures::EnableFastMobileScrolling(bool enable) {
RuntimeEnabledFeatures::SetFastMobileScrollingEnabled(enable);
}
void WebRuntimeFeatures::EnableFeaturePolicyForSandbox(bool enable) {
RuntimeEnabledFeatures::SetFeaturePolicyForSandboxEnabled(enable);
}
void WebRuntimeFeatures::EnableFileSystem(bool enable) {
RuntimeEnabledFeatures::SetFileSystemEnabled(enable);
}
void WebRuntimeFeatures::EnableFirstContentfulPaintPlusPlus(bool enable) {
RuntimeEnabledFeatures::SetFirstContentfulPaintPlusPlusEnabled(enable);
}
void WebRuntimeFeatures::EnableForceTallerSelectPopup(bool enable) {
RuntimeEnabledFeatures::SetForceTallerSelectPopupEnabled(enable);
}
void WebRuntimeFeatures::EnableGenericSensor(bool enable) {
RuntimeEnabledFeatures::SetSensorEnabled(enable);
}
void WebRuntimeFeatures::EnableGenericSensorExtraClasses(bool enable) {
RuntimeEnabledFeatures::SetSensorExtraClassesEnabled(enable);
}
void WebRuntimeFeatures::EnableHeapCompaction(bool enable) {
RuntimeEnabledFeatures::SetHeapCompactionEnabled(enable);
}
void WebRuntimeFeatures::EnableImplicitRootScroller(bool enable) {
RuntimeEnabledFeatures::SetImplicitRootScrollerEnabled(enable);
}
void WebRuntimeFeatures::EnableInputMultipleFieldsUI(bool enable) {
RuntimeEnabledFeatures::SetInputMultipleFieldsUIEnabled(enable);
}
void WebRuntimeFeatures::EnableJankTrackingSweepLine(bool enable) {
RuntimeEnabledFeatures::SetJankTrackingSweepLineEnabled(enable);
}
void WebRuntimeFeatures::EnableBuiltInModuleAll(bool enable) {
RuntimeEnabledFeatures::SetBuiltInModuleAllEnabled(enable);
}
void WebRuntimeFeatures::EnableBuiltInModuleInfra(bool enable) {
RuntimeEnabledFeatures::SetBuiltInModuleInfraEnabled(enable);
}
void WebRuntimeFeatures::EnableBuiltInModuleKvStorage(bool enable) {
RuntimeEnabledFeatures::SetBuiltInModuleKvStorageEnabled(enable);
}
void WebRuntimeFeatures::EnableLayoutNG(bool enable) {
RuntimeEnabledFeatures::SetLayoutNGEnabled(enable);
}
void WebRuntimeFeatures::EnableLazyFrameLoading(bool enable) {
RuntimeEnabledFeatures::SetLazyFrameLoadingEnabled(enable);
}
void WebRuntimeFeatures::EnableLazyFrameVisibleLoadTimeMetrics(bool enable) {
RuntimeEnabledFeatures::SetLazyFrameVisibleLoadTimeMetricsEnabled(enable);
}
void WebRuntimeFeatures::EnableLazyImageLoading(bool enable) {
RuntimeEnabledFeatures::SetLazyImageLoadingEnabled(enable);
}
void WebRuntimeFeatures::EnableLazyImageVisibleLoadTimeMetrics(bool enable) {
RuntimeEnabledFeatures::SetLazyImageVisibleLoadTimeMetricsEnabled(enable);
}
void WebRuntimeFeatures::EnableMediaCapture(bool enable) {
RuntimeEnabledFeatures::SetMediaCaptureEnabled(enable);
}
void WebRuntimeFeatures::EnableMediaSession(bool enable) {
RuntimeEnabledFeatures::SetMediaSessionEnabled(enable);
}
void WebRuntimeFeatures::EnableMimeHandlerViewInCrossProcessFrame(bool enable) {
RuntimeEnabledFeatures::SetMimeHandlerViewInCrossProcessFrameEnabled(enable);
}
void WebRuntimeFeatures::EnableModernMediaControls(bool enable) {
RuntimeEnabledFeatures::SetModernMediaControlsEnabled(enable);
}
void WebRuntimeFeatures::EnableNoHoverAfterLayoutChange(bool enable) {
RuntimeEnabledFeatures::SetNoHoverAfterLayoutChangeEnabled(enable);
}
void WebRuntimeFeatures::EnableNoHoverDuringScroll(bool enable) {
RuntimeEnabledFeatures::SetNoHoverDuringScrollEnabled(enable);
}
void WebRuntimeFeatures::EnableNotificationConstructor(bool enable) {
RuntimeEnabledFeatures::SetNotificationConstructorEnabled(enable);
}
void WebRuntimeFeatures::EnableNotificationContentImage(bool enable) {
RuntimeEnabledFeatures::SetNotificationContentImageEnabled(enable);
}
void WebRuntimeFeatures::EnableNotifications(bool enable) {
RuntimeEnabledFeatures::SetNotificationsEnabled(enable);
}
void WebRuntimeFeatures::EnableNavigatorContentUtils(bool enable) {
RuntimeEnabledFeatures::SetNavigatorContentUtilsEnabled(enable);
}
void WebRuntimeFeatures::EnableNetInfoDownlinkMax(bool enable) {
RuntimeEnabledFeatures::SetNetInfoDownlinkMaxEnabled(enable);
}
void WebRuntimeFeatures::EnableNetworkService(bool enable) {
RuntimeEnabledFeatures::SetNetworkServiceEnabled(enable);
}
void WebRuntimeFeatures::EnableOnDeviceChange(bool enable) {
RuntimeEnabledFeatures::SetOnDeviceChangeEnabled(enable);
}
void WebRuntimeFeatures::EnableOrientationEvent(bool enable) {
RuntimeEnabledFeatures::SetOrientationEventEnabled(enable);
}
void WebRuntimeFeatures::EnableOriginTrials(bool enable) {
RuntimeEnabledFeatures::SetOriginTrialsEnabled(enable);
}
bool WebRuntimeFeatures::IsOriginTrialsEnabled() {
return RuntimeEnabledFeatures::OriginTrialsEnabled();
}
void WebRuntimeFeatures::EnableOverflowIconsForMediaControls(bool enable) {
RuntimeEnabledFeatures::SetOverflowIconsForMediaControlsEnabled(enable);
}
void WebRuntimeFeatures::EnableOverscrollCustomization(bool enable) {
RuntimeEnabledFeatures::SetOverscrollCustomizationEnabled(enable);
}
void WebRuntimeFeatures::EnablePageLifecycle(bool enable) {
RuntimeEnabledFeatures::SetPageLifecycleEnabled(enable);
}
void WebRuntimeFeatures::EnablePagePopup(bool enable) {
RuntimeEnabledFeatures::SetPagePopupEnabled(enable);
}
void WebRuntimeFeatures::EnableMiddleClickAutoscroll(bool enable) {
RuntimeEnabledFeatures::SetMiddleClickAutoscrollEnabled(enable);
}
void WebRuntimeFeatures::EnablePassiveDocumentEventListeners(bool enable) {
RuntimeEnabledFeatures::SetPassiveDocumentEventListenersEnabled(enable);
}
void WebRuntimeFeatures::EnablePassiveDocumentWheelEventListeners(bool enable) {
RuntimeEnabledFeatures::SetPassiveDocumentWheelEventListenersEnabled(enable);
}
void WebRuntimeFeatures::EnablePaymentApp(bool enable) {
RuntimeEnabledFeatures::SetPaymentAppEnabled(enable);
}
void WebRuntimeFeatures::EnablePaymentRequest(bool enable) {
RuntimeEnabledFeatures::SetPaymentRequestEnabled(enable);
}
void WebRuntimeFeatures::EnablePaymentRequestHasEnrolledInstrument(
bool enable) {
RuntimeEnabledFeatures::SetPaymentRequestHasEnrolledInstrumentEnabled(enable);
}
void WebRuntimeFeatures::EnablePerformanceManagerInstrumentation(bool enable) {
RuntimeEnabledFeatures::SetPerformanceManagerInstrumentationEnabled(enable);
}
void WebRuntimeFeatures::EnablePermissionsAPI(bool enable) {
RuntimeEnabledFeatures::SetPermissionsEnabled(enable);
}
void WebRuntimeFeatures::EnablePictureInPicture(bool enable) {
RuntimeEnabledFeatures::SetPictureInPictureEnabled(enable);
}
void WebRuntimeFeatures::EnablePictureInPictureAPI(bool enable) {
RuntimeEnabledFeatures::SetPictureInPictureAPIEnabled(enable);
}
void WebRuntimeFeatures::EnablePortals(bool enable) {
RuntimeEnabledFeatures::SetPortalsEnabled(enable);
}
void WebRuntimeFeatures::EnablePreloadImageSrcSetEnabled(bool enable) {
RuntimeEnabledFeatures::SetPreloadImageSrcSetEnabled(enable);
}
void WebRuntimeFeatures::EnableRasterInducingScroll(bool enable) {
RuntimeEnabledFeatures::SetRasterInducingScrollEnabled(enable);
}
void WebRuntimeFeatures::EnableScriptedSpeechRecognition(bool enable) {
RuntimeEnabledFeatures::SetScriptedSpeechRecognitionEnabled(enable);
}
void WebRuntimeFeatures::EnableScriptedSpeechSynthesis(bool enable) {
RuntimeEnabledFeatures::SetScriptedSpeechSynthesisEnabled(enable);
}
bool WebRuntimeFeatures::IsCompositeAfterPaintEnabled() {
return RuntimeEnabledFeatures::CompositeAfterPaintEnabled();
}
void WebRuntimeFeatures::EnableUserActivationSameOriginVisibility(bool enable) {
RuntimeEnabledFeatures::SetUserActivationSameOriginVisibilityEnabled(enable);
}
void WebRuntimeFeatures::EnableUserActivationV2(bool enable) {
RuntimeEnabledFeatures::SetUserActivationV2Enabled(enable);
}
void WebRuntimeFeatures::EnableTouchEventFeatureDetection(bool enable) {
RuntimeEnabledFeatures::SetTouchEventFeatureDetectionEnabled(enable);
}
void WebRuntimeFeatures::EnableWebGL2ComputeContext(bool enable) {
RuntimeEnabledFeatures::SetWebGL2ComputeContextEnabled(enable);
}
void WebRuntimeFeatures::EnableWebGLDraftExtensions(bool enable) {
RuntimeEnabledFeatures::SetWebGLDraftExtensionsEnabled(enable);
}
void WebRuntimeFeatures::EnableWebGLImageChromium(bool enable) {
RuntimeEnabledFeatures::SetWebGLImageChromiumEnabled(enable);
}
void WebRuntimeFeatures::EnableXSLT(bool enable) {
RuntimeEnabledFeatures::SetXSLTEnabled(enable);
}
void WebRuntimeFeatures::EnableOverlayScrollbars(bool enable) {
RuntimeEnabledFeatures::SetOverlayScrollbarsEnabled(enable);
}
void WebRuntimeFeatures::ForceOverlayFullscreenVideo(bool enable) {
RuntimeEnabledFeatures::SetForceOverlayFullscreenVideoEnabled(enable);
}
void WebRuntimeFeatures::EnableSharedArrayBuffer(bool enable) {
RuntimeEnabledFeatures::SetSharedArrayBufferEnabled(enable);
}
void WebRuntimeFeatures::EnableSharedWorker(bool enable) {
RuntimeEnabledFeatures::SetSharedWorkerEnabled(enable);
}
void WebRuntimeFeatures::EnableTextFragmentAnchor(bool enable) {
RuntimeEnabledFeatures::SetTextFragmentIdentifiersEnabled(enable);
}
void WebRuntimeFeatures::EnablePreciseMemoryInfo(bool enable) {
RuntimeEnabledFeatures::SetPreciseMemoryInfoEnabled(enable);
}
void WebRuntimeFeatures::EnablePrintBrowser(bool enable) {
RuntimeEnabledFeatures::SetPrintBrowserEnabled(enable);
}
void WebRuntimeFeatures::EnableV8IdleTasks(bool enable) {
RuntimeEnabledFeatures::SetV8IdleTasksEnabled(enable);
}
void WebRuntimeFeatures::EnableReducedReferrerGranularity(bool enable) {
RuntimeEnabledFeatures::SetReducedReferrerGranularityEnabled(enable);
}
void WebRuntimeFeatures::EnablePushMessaging(bool enable) {
RuntimeEnabledFeatures::SetPushMessagingEnabled(enable);
}
void WebRuntimeFeatures::EnableWebShare(bool enable) {
RuntimeEnabledFeatures::SetWebShareEnabled(enable);
}
void WebRuntimeFeatures::EnableWebGPU(bool enable) {
RuntimeEnabledFeatures::SetWebGPUEnabled(enable);
}
void WebRuntimeFeatures::EnableWebVR(bool enable) {
RuntimeEnabledFeatures::SetWebVREnabled(enable);
}
void WebRuntimeFeatures::EnableWebXR(bool enable) {
RuntimeEnabledFeatures::SetWebXREnabled(enable);
}
void WebRuntimeFeatures::EnableWebXRGamepadSupport(bool enable) {
RuntimeEnabledFeatures::SetWebXRGamepadSupportEnabled(enable);
}
void WebRuntimeFeatures::EnableWebXRHitTest(bool enable) {
RuntimeEnabledFeatures::SetWebXRHitTestEnabled(enable);
}
void WebRuntimeFeatures::EnablePresentationAPI(bool enable) {
RuntimeEnabledFeatures::SetPresentationEnabled(enable);
}
void WebRuntimeFeatures::EnableRenderingPipelineThrottling(bool enable) {
RuntimeEnabledFeatures::SetRenderingPipelineThrottlingEnabled(enable);
}
void WebRuntimeFeatures::EnableResourceLoadScheduler(bool enable) {
RuntimeEnabledFeatures::SetResourceLoadSchedulerEnabled(enable);
}
void WebRuntimeFeatures::EnableRestrictDeviceSensorEventsToSecureContexts(
bool enable) {
RuntimeEnabledFeatures::SetRestrictDeviceSensorEventsToSecureContextsEnabled(
enable);
}
void WebRuntimeFeatures::EnableRestrictLazyFrameLoadingToDataSaver(
bool enable) {
RuntimeEnabledFeatures::SetRestrictLazyFrameLoadingToDataSaverEnabled(enable);
}
void WebRuntimeFeatures::EnableRestrictLazyImageLoadingToDataSaver(
bool enable) {
RuntimeEnabledFeatures::SetRestrictLazyImageLoadingToDataSaverEnabled(enable);
}
void WebRuntimeFeatures::EnableExpensiveBackgroundTimerThrottling(bool enable) {
RuntimeEnabledFeatures::SetExpensiveBackgroundTimerThrottlingEnabled(enable);
}
void WebRuntimeFeatures::EnableScrollAnchorSerialization(bool enable) {
RuntimeEnabledFeatures::SetScrollAnchorSerializationEnabled(enable);
}
void WebRuntimeFeatures::EnableSecMetadata(bool enable) {
RuntimeEnabledFeatures::SetSecMetadataEnabled(enable);
}
void WebRuntimeFeatures::EnableSerial(bool enable) {
RuntimeEnabledFeatures::SetSerialEnabled(enable);
}
void WebRuntimeFeatures::EnableTimerThrottlingForBackgroundTabs(bool enable) {
RuntimeEnabledFeatures::SetTimerThrottlingForBackgroundTabsEnabled(enable);
}
void WebRuntimeFeatures::EnableTimerThrottlingForHiddenFrames(bool enable) {
RuntimeEnabledFeatures::SetTimerThrottlingForHiddenFramesEnabled(enable);
}
void WebRuntimeFeatures::EnableSendBeaconThrowForBlobWithNonSimpleType(
bool enable) {
RuntimeEnabledFeatures::SetSendBeaconThrowForBlobWithNonSimpleTypeEnabled(
enable);
}
void WebRuntimeFeatures::EnableBackgroundVideoTrackOptimization(bool enable) {
RuntimeEnabledFeatures::SetBackgroundVideoTrackOptimizationEnabled(enable);
}
void WebRuntimeFeatures::EnableRemotePlaybackAPI(bool enable) {
RuntimeEnabledFeatures::SetRemotePlaybackEnabled(enable);
}
void WebRuntimeFeatures::EnableVideoFullscreenOrientationLock(bool enable) {
RuntimeEnabledFeatures::SetVideoFullscreenOrientationLockEnabled(enable);
}
void WebRuntimeFeatures::EnableVideoRotateToFullscreen(bool enable) {
RuntimeEnabledFeatures::SetVideoRotateToFullscreenEnabled(enable);
}
void WebRuntimeFeatures::EnableVideoFullscreenDetection(bool enable) {
RuntimeEnabledFeatures::SetVideoFullscreenDetectionEnabled(enable);
}
void WebRuntimeFeatures::EnableMediaControlsOverlayPlayButton(bool enable) {
RuntimeEnabledFeatures::SetMediaControlsOverlayPlayButtonEnabled(enable);
}
void WebRuntimeFeatures::EnableRemotePlaybackBackend(bool enable) {
RuntimeEnabledFeatures::SetRemotePlaybackBackendEnabled(enable);
}
void WebRuntimeFeatures::EnableMediaCastOverlayButton(bool enable) {
RuntimeEnabledFeatures::SetMediaCastOverlayButtonEnabled(enable);
}
void WebRuntimeFeatures::EnableWebAuth(bool enable) {
RuntimeEnabledFeatures::SetWebAuthEnabled(enable);
}
void WebRuntimeFeatures::EnableClientPlaceholdersForServerLoFi(bool enable) {
RuntimeEnabledFeatures::SetClientPlaceholdersForServerLoFiEnabled(enable);
}
void WebRuntimeFeatures::EnableLazyInitializeMediaControls(bool enable) {
RuntimeEnabledFeatures::SetLazyInitializeMediaControlsEnabled(enable);
}
void WebRuntimeFeatures::EnableMediaEngagementBypassAutoplayPolicies(
bool enable) {
RuntimeEnabledFeatures::SetMediaEngagementBypassAutoplayPoliciesEnabled(
enable);
}
void WebRuntimeFeatures::EnableAutomationControlled(bool enable) {
RuntimeEnabledFeatures::SetAutomationControlledEnabled(enable);
}
void WebRuntimeFeatures::EnableScriptStreamingOnPreload(bool enable) {
RuntimeEnabledFeatures::SetScriptStreamingOnPreloadEnabled(enable);
}
void WebRuntimeFeatures::EnableExperimentalProductivityFeatures(bool enable) {
RuntimeEnabledFeatures::SetExperimentalProductivityFeaturesEnabled(enable);
}
void WebRuntimeFeatures::EnableDisplayCutoutAPI(bool enable) {
RuntimeEnabledFeatures::SetDisplayCutoutAPIEnabled(enable);
}
void WebRuntimeFeatures::EnableAutoplayIgnoresWebAudio(bool enable) {
RuntimeEnabledFeatures::SetAutoplayIgnoresWebAudioEnabled(enable);
}
void WebRuntimeFeatures::EnableMediaControlsExpandGesture(bool enable) {
RuntimeEnabledFeatures::SetMediaControlsExpandGestureEnabled(enable);
}
void WebRuntimeFeatures::EnableTranslateService(bool enable) {
RuntimeEnabledFeatures::SetTranslateServiceEnabled(enable);
}
void WebRuntimeFeatures::EnableBackgroundFetch(bool enable) {
RuntimeEnabledFeatures::SetBackgroundFetchEnabled(enable);
}
void WebRuntimeFeatures::EnableMergeBlockingNonBlockingPools(bool enable) {
RuntimeEnabledFeatures::SetMergeBlockingNonBlockingPoolsEnabled(enable);
}
void WebRuntimeFeatures::EnableGetDisplayMedia(bool enable) {
RuntimeEnabledFeatures::SetGetDisplayMediaEnabled(enable);
}
void WebRuntimeFeatures::EnableForbidSyncXHRInPageDismissal(bool enable) {
RuntimeEnabledFeatures::SetForbidSyncXHRInPageDismissalEnabled(enable);
}
void WebRuntimeFeatures::EnableShadowDOMV0(bool enable) {
RuntimeEnabledFeatures::SetShadowDOMV0Enabled(enable);
}
void WebRuntimeFeatures::EnableCustomElementsV0(bool enable) {
RuntimeEnabledFeatures::SetCustomElementsV0Enabled(enable);
}
void WebRuntimeFeatures::EnableHTMLImports(bool enable) {
RuntimeEnabledFeatures::SetHTMLImportsEnabled(enable);
RuntimeEnabledFeatures::SetHTMLImportsOnlyChromeEnabled(enable);
}
} // namespace blink