This source file includes following definitions.
- m_mainFrameResizesAreOrientationChanges
- setStandardFontFamily
- setFixedFontFamily
- setSerifFontFamily
- setSansSerifFontFamily
- setCursiveFontFamily
- setFantasyFontFamily
- setPictographFontFamily
- setDefaultFontSize
- setDefaultFixedFontSize
- setDefaultVideoPosterURL
- setMinimumFontSize
- setMinimumLogicalFontSize
- setDeviceSupportsTouch
- setDeviceSupportsMouse
- setAutoZoomFocusedNodeToLegibleScale
- setTextAutosizingEnabled
- setAccessibilityFontScaleFactor
- setDeviceScaleAdjustment
- setDefaultTextEncodingName
- setJavaScriptEnabled
- setWebSecurityEnabled
- setJavaScriptCanOpenWindowsAutomatically
- setSupportDeprecatedTargetDensityDPI
- setViewportMetaLayoutSizeQuirk
- setViewportMetaMergeContentQuirk
- setViewportMetaNonUserScalableQuirk
- setViewportMetaZeroValuesQuirk
- setIgnoreMainFrameOverflowHiddenQuirk
- setReportScreenSizeInPhysicalPixelsQuirk
- setClobberUserAgentInitialScaleQuirk
- setSupportsMultipleWindows
- setLoadsImagesAutomatically
- setImagesEnabled
- setLoadWithOverviewMode
- setPluginsEnabled
- setDOMPasteAllowed
- setNeedsSiteSpecificQuirks
- setShrinksStandaloneImagesToFit
- setShrinksViewportContentToFit
- setSpatialNavigationEnabled
- setUsesEncodingDetector
- setTextAreasAreResizable
- setJavaEnabled
- setAllowScriptsToCloseWindows
- setUseLegacyBackgroundSizeShorthandBehavior
- setWideViewportQuirkEnabled
- setUseWideViewport
- setDoubleTapToZoomEnabled
- setDownloadableBinaryFontsEnabled
- setJavaScriptCanAccessClipboard
- setXSSAuditorEnabled
- setUnsafePluginPastingEnabled
- setDNSPrefetchingEnabled
- setLocalStorageEnabled
- setMainFrameClipsContent
- setMaxTouchPoints
- setEditableLinkBehaviorNeverLive
- setAllowUniversalAccessFromFileURLs
- setAllowFileAccessFromFileURLs
- setTouchDragDropEnabled
- setTouchEditingEnabled
- setThreadedHTMLParser
- setOfflineWebApplicationCacheEnabled
- setWebAudioEnabled
- setExperimentalWebGLEnabled
- setExperimentalWebSocketEnabled
- setRegionBasedColumnsEnabled
- setOpenGLMultisamplingEnabled
- setPrivilegedWebGLExtensionsEnabled
- setRenderVSyncNotificationEnabled
- setWebGLErrorsToConsoleEnabled
- setShowFPSCounter
- setShowPaintRects
- setEditingBehavior
- setAcceleratedCompositingEnabled
- setForceCompositingMode
- setMockScrollbarsEnabled
- setAcceleratedCompositingFor3DTransformsEnabled
- setAcceleratedCompositingForFiltersEnabled
- setAcceleratedCompositingForVideoEnabled
- setAcceleratedCompositingForOverflowScrollEnabled
- setCompositorDrivenAcceleratedScrollingEnabled
- setAcceleratedCompositingForFixedRootBackgroundEnabled
- setAcceleratedCompositingForGpuRasterizationHintEnabled
- setAcceleratedCompositingForPluginsEnabled
- setAcceleratedCompositingForCanvasEnabled
- setAcceleratedCompositingForAnimationEnabled
- setAcceleratedCompositingForScrollableFramesEnabled
- setAccelerated2dCanvasEnabled
- setAccelerated2dCanvasMSAASampleCount
- setAntialiased2dCanvasEnabled
- setContainerCullingEnabled
- setDeferredImageDecodingEnabled
- setDeferredFiltersEnabled
- setAcceleratedCompositingForFixedPositionEnabled
- setMinimumAccelerated2dCanvasSize
- setHyperlinkAuditingEnabled
- setLayerSquashingEnabled
- setAsynchronousSpellCheckingEnabled
- setUnifiedTextCheckerEnabled
- setCaretBrowsingEnabled
- setValidationMessageTimerMagnification
- setAllowDisplayOfInsecureContent
- setAllowRunningOfInsecureContent
- setPasswordEchoEnabled
- setPasswordEchoDurationInSeconds
- setPerTilePaintingEnabled
- setShouldPrintBackgrounds
- setShouldClearDocumentBackground
- setEnableScrollAnimator
- setEnableTouchAdjustment
- scrollAnimatorEnabled
- touchEditingEnabled
- viewportEnabled
- viewportMetaEnabled
- mainFrameResizesAreOrientationChanges
- shrinksViewportContentToFit
- setShouldRespectImageOrientation
- setMediaPlaybackRequiresUserGesture
- setViewportEnabled
- setViewportMetaEnabled
- setSyncXHRInDocumentsEnabled
- setCookieEnabled
- setNavigateOnDragDrop
- setGestureTapHighlightEnabled
- setAllowCustomScrollbarInMainFrame
- setCompositedScrollingForFramesEnabled
- setCompositorTouchHitTesting
- setSelectTrailingWhitespaceEnabled
- setSelectionIncludesAltImageText
- setSmartInsertDeleteEnabled
- setPinchOverlayScrollbarThickness
- setPinchVirtualViewportEnabled
- setUseSolidColorScrollbars
- setMainFrameResizesAreOrientationChanges
#include "config.h"
#include "WebSettingsImpl.h"
#include "core/frame/Settings.h"
#include "core/inspector/InspectorController.h"
#include "platform/graphics/DeferredImageDecoder.h"
#include "public/platform/WebString.h"
#include "public/platform/WebURL.h"
using namespace WebCore;
namespace blink {
WebSettingsImpl::WebSettingsImpl(Settings* settings, InspectorController* inspectorController)
: m_settings(settings)
, m_inspectorController(inspectorController)
, m_showFPSCounter(false)
, m_showPaintRects(false)
, m_renderVSyncNotificationEnabled(false)
, m_gestureTapHighlightEnabled(true)
, m_autoZoomFocusedNodeToLegibleScale(false)
, m_deferredImageDecodingEnabled(false)
, m_doubleTapToZoomEnabled(false)
, m_supportDeprecatedTargetDensityDPI(false)
, m_shrinksViewportContentToFit(false)
, m_viewportMetaLayoutSizeQuirk(false)
, m_viewportMetaNonUserScalableQuirk(false)
, m_clobberUserAgentInitialScaleQuirk(false)
, m_mainFrameResizesAreOrientationChanges(false)
{
ASSERT(settings);
}
void WebSettingsImpl::setStandardFontFamily(const WebString& font, UScriptCode script)
{
m_settings->genericFontFamilySettings().setStandard(font, script);
m_settings->notifyGenericFontFamilyChange();
}
void WebSettingsImpl::setFixedFontFamily(const WebString& font, UScriptCode script)
{
m_settings->genericFontFamilySettings().setFixed(font, script);
m_settings->notifyGenericFontFamilyChange();
}
void WebSettingsImpl::setSerifFontFamily(const WebString& font, UScriptCode script)
{
m_settings->genericFontFamilySettings().setSerif(font, script);
m_settings->notifyGenericFontFamilyChange();
}
void WebSettingsImpl::setSansSerifFontFamily(const WebString& font, UScriptCode script)
{
m_settings->genericFontFamilySettings().setSansSerif(font, script);
m_settings->notifyGenericFontFamilyChange();
}
void WebSettingsImpl::setCursiveFontFamily(const WebString& font, UScriptCode script)
{
m_settings->genericFontFamilySettings().setCursive(font, script);
m_settings->notifyGenericFontFamilyChange();
}
void WebSettingsImpl::setFantasyFontFamily(const WebString& font, UScriptCode script)
{
m_settings->genericFontFamilySettings().setFantasy(font, script);
m_settings->notifyGenericFontFamilyChange();
}
void WebSettingsImpl::setPictographFontFamily(const WebString& font, UScriptCode script)
{
m_settings->genericFontFamilySettings().setPictograph(font, script);
m_settings->notifyGenericFontFamilyChange();
}
void WebSettingsImpl::setDefaultFontSize(int size)
{
m_settings->setDefaultFontSize(size);
}
void WebSettingsImpl::setDefaultFixedFontSize(int size)
{
m_settings->setDefaultFixedFontSize(size);
}
void WebSettingsImpl::setDefaultVideoPosterURL(const WebString& url)
{
m_settings->setDefaultVideoPosterURL(url);
}
void WebSettingsImpl::setMinimumFontSize(int size)
{
m_settings->setMinimumFontSize(size);
}
void WebSettingsImpl::setMinimumLogicalFontSize(int size)
{
m_settings->setMinimumLogicalFontSize(size);
}
void WebSettingsImpl::setDeviceSupportsTouch(bool deviceSupportsTouch)
{
m_settings->setDeviceSupportsTouch(deviceSupportsTouch);
}
void WebSettingsImpl::setDeviceSupportsMouse(bool deviceSupportsMouse)
{
m_settings->setDeviceSupportsMouse(deviceSupportsMouse);
}
void WebSettingsImpl::setAutoZoomFocusedNodeToLegibleScale(bool autoZoomFocusedNodeToLegibleScale)
{
m_autoZoomFocusedNodeToLegibleScale = autoZoomFocusedNodeToLegibleScale;
}
void WebSettingsImpl::setTextAutosizingEnabled(bool enabled)
{
m_inspectorController->setTextAutosizingEnabled(enabled);
}
void WebSettingsImpl::setAccessibilityFontScaleFactor(float fontScaleFactor)
{
m_settings->setAccessibilityFontScaleFactor(fontScaleFactor);
}
void WebSettingsImpl::setDeviceScaleAdjustment(float deviceScaleAdjustment)
{
m_inspectorController->setDeviceScaleAdjustment(deviceScaleAdjustment);
}
void WebSettingsImpl::setDefaultTextEncodingName(const WebString& encoding)
{
m_settings->setDefaultTextEncodingName((String)encoding);
}
void WebSettingsImpl::setJavaScriptEnabled(bool enabled)
{
m_settings->setScriptEnabled(enabled);
}
void WebSettingsImpl::setWebSecurityEnabled(bool enabled)
{
m_settings->setWebSecurityEnabled(enabled);
}
void WebSettingsImpl::setJavaScriptCanOpenWindowsAutomatically(bool canOpenWindows)
{
m_settings->setJavaScriptCanOpenWindowsAutomatically(canOpenWindows);
}
void WebSettingsImpl::setSupportDeprecatedTargetDensityDPI(bool supportDeprecatedTargetDensityDPI)
{
m_supportDeprecatedTargetDensityDPI = supportDeprecatedTargetDensityDPI;
}
void WebSettingsImpl::setViewportMetaLayoutSizeQuirk(bool viewportMetaLayoutSizeQuirk)
{
m_viewportMetaLayoutSizeQuirk = viewportMetaLayoutSizeQuirk;
}
void WebSettingsImpl::setViewportMetaMergeContentQuirk(bool viewportMetaMergeContentQuirk)
{
m_settings->setViewportMetaMergeContentQuirk(viewportMetaMergeContentQuirk);
}
void WebSettingsImpl::setViewportMetaNonUserScalableQuirk(bool viewportMetaNonUserScalableQuirk)
{
m_viewportMetaNonUserScalableQuirk = viewportMetaNonUserScalableQuirk;
}
void WebSettingsImpl::setViewportMetaZeroValuesQuirk(bool viewportMetaZeroValuesQuirk)
{
m_settings->setViewportMetaZeroValuesQuirk(viewportMetaZeroValuesQuirk);
}
void WebSettingsImpl::setIgnoreMainFrameOverflowHiddenQuirk(bool ignoreMainFrameOverflowHiddenQuirk)
{
m_settings->setIgnoreMainFrameOverflowHiddenQuirk(ignoreMainFrameOverflowHiddenQuirk);
}
void WebSettingsImpl::setReportScreenSizeInPhysicalPixelsQuirk(bool reportScreenSizeInPhysicalPixelsQuirk)
{
m_settings->setReportScreenSizeInPhysicalPixelsQuirk(reportScreenSizeInPhysicalPixelsQuirk);
}
void WebSettingsImpl::setClobberUserAgentInitialScaleQuirk(bool clobberUserAgentInitialScaleQuirk)
{
m_clobberUserAgentInitialScaleQuirk = clobberUserAgentInitialScaleQuirk;
}
void WebSettingsImpl::setSupportsMultipleWindows(bool supportsMultipleWindows)
{
m_settings->setSupportsMultipleWindows(supportsMultipleWindows);
}
void WebSettingsImpl::setLoadsImagesAutomatically(bool loadsImagesAutomatically)
{
m_settings->setLoadsImagesAutomatically(loadsImagesAutomatically);
}
void WebSettingsImpl::setImagesEnabled(bool enabled)
{
m_settings->setImagesEnabled(enabled);
}
void WebSettingsImpl::setLoadWithOverviewMode(bool enabled)
{
m_settings->setLoadWithOverviewMode(enabled);
}
void WebSettingsImpl::setPluginsEnabled(bool enabled)
{
m_settings->setPluginsEnabled(enabled);
}
void WebSettingsImpl::setDOMPasteAllowed(bool enabled)
{
m_settings->setDOMPasteAllowed(enabled);
}
void WebSettingsImpl::setNeedsSiteSpecificQuirks(bool enabled)
{
m_settings->setNeedsSiteSpecificQuirks(enabled);
}
void WebSettingsImpl::setShrinksStandaloneImagesToFit(bool shrinkImages)
{
m_settings->setShrinksStandaloneImagesToFit(shrinkImages);
}
void WebSettingsImpl::setShrinksViewportContentToFit(bool shrinkViewportContent)
{
m_shrinksViewportContentToFit = shrinkViewportContent;
}
void WebSettingsImpl::setSpatialNavigationEnabled(bool enabled)
{
m_settings->setSpatialNavigationEnabled(enabled);
}
void WebSettingsImpl::setUsesEncodingDetector(bool usesDetector)
{
m_settings->setUsesEncodingDetector(usesDetector);
}
void WebSettingsImpl::setTextAreasAreResizable(bool areResizable)
{
m_settings->setTextAreasAreResizable(areResizable);
}
void WebSettingsImpl::setJavaEnabled(bool enabled)
{
m_settings->setJavaEnabled(enabled);
}
void WebSettingsImpl::setAllowScriptsToCloseWindows(bool allow)
{
m_settings->setAllowScriptsToCloseWindows(allow);
}
void WebSettingsImpl::setUseLegacyBackgroundSizeShorthandBehavior(bool useLegacyBackgroundSizeShorthandBehavior)
{
m_settings->setUseLegacyBackgroundSizeShorthandBehavior(useLegacyBackgroundSizeShorthandBehavior);
}
void WebSettingsImpl::setWideViewportQuirkEnabled(bool wideViewportQuirkEnabled)
{
m_settings->setWideViewportQuirkEnabled(wideViewportQuirkEnabled);
}
void WebSettingsImpl::setUseWideViewport(bool useWideViewport)
{
m_settings->setUseWideViewport(useWideViewport);
}
void WebSettingsImpl::setDoubleTapToZoomEnabled(bool doubleTapToZoomEnabled)
{
m_doubleTapToZoomEnabled = doubleTapToZoomEnabled;
}
void WebSettingsImpl::setDownloadableBinaryFontsEnabled(bool enabled)
{
m_settings->setDownloadableBinaryFontsEnabled(enabled);
}
void WebSettingsImpl::setJavaScriptCanAccessClipboard(bool enabled)
{
m_settings->setJavaScriptCanAccessClipboard(enabled);
}
void WebSettingsImpl::setXSSAuditorEnabled(bool enabled)
{
m_settings->setXSSAuditorEnabled(enabled);
}
void WebSettingsImpl::setUnsafePluginPastingEnabled(bool enabled)
{
m_settings->setUnsafePluginPastingEnabled(enabled);
}
void WebSettingsImpl::setDNSPrefetchingEnabled(bool enabled)
{
m_settings->setDNSPrefetchingEnabled(enabled);
}
void WebSettingsImpl::setLocalStorageEnabled(bool enabled)
{
m_settings->setLocalStorageEnabled(enabled);
}
void WebSettingsImpl::setMainFrameClipsContent(bool enabled)
{
m_settings->setMainFrameClipsContent(enabled);
}
void WebSettingsImpl::setMaxTouchPoints(int maxTouchPoints)
{
m_settings->setMaxTouchPoints(maxTouchPoints);
}
void WebSettingsImpl::setEditableLinkBehaviorNeverLive()
{
m_settings->setEditableLinkBehavior(WebCore::EditableLinkNeverLive);
}
void WebSettingsImpl::setAllowUniversalAccessFromFileURLs(bool allow)
{
m_settings->setAllowUniversalAccessFromFileURLs(allow);
}
void WebSettingsImpl::setAllowFileAccessFromFileURLs(bool allow)
{
m_settings->setAllowFileAccessFromFileURLs(allow);
}
void WebSettingsImpl::setTouchDragDropEnabled(bool enabled)
{
m_settings->setTouchDragDropEnabled(enabled);
}
void WebSettingsImpl::setTouchEditingEnabled(bool enabled)
{
m_settings->setTouchEditingEnabled(enabled);
}
void WebSettingsImpl::setThreadedHTMLParser(bool enabled)
{
m_settings->setThreadedHTMLParser(enabled);
}
void WebSettingsImpl::setOfflineWebApplicationCacheEnabled(bool enabled)
{
m_settings->setOfflineWebApplicationCacheEnabled(enabled);
}
void WebSettingsImpl::setWebAudioEnabled(bool enabled)
{
m_settings->setWebAudioEnabled(enabled);
}
void WebSettingsImpl::setExperimentalWebGLEnabled(bool enabled)
{
m_settings->setWebGLEnabled(enabled);
}
void WebSettingsImpl::setExperimentalWebSocketEnabled(bool enabled)
{
m_settings->setExperimentalWebSocketEnabled(enabled);
}
void WebSettingsImpl::setRegionBasedColumnsEnabled(bool enabled)
{
m_settings->setRegionBasedColumnsEnabled(enabled);
}
void WebSettingsImpl::setOpenGLMultisamplingEnabled(bool enabled)
{
m_settings->setOpenGLMultisamplingEnabled(enabled);
}
void WebSettingsImpl::setPrivilegedWebGLExtensionsEnabled(bool enabled)
{
m_settings->setPrivilegedWebGLExtensionsEnabled(enabled);
}
void WebSettingsImpl::setRenderVSyncNotificationEnabled(bool enabled)
{
m_renderVSyncNotificationEnabled = enabled;
}
void WebSettingsImpl::setWebGLErrorsToConsoleEnabled(bool enabled)
{
m_settings->setWebGLErrorsToConsoleEnabled(enabled);
}
void WebSettingsImpl::setShowFPSCounter(bool show)
{
m_showFPSCounter = show;
}
void WebSettingsImpl::setShowPaintRects(bool show)
{
m_showPaintRects = show;
}
void WebSettingsImpl::setEditingBehavior(EditingBehavior behavior)
{
m_settings->setEditingBehaviorType(static_cast<WebCore::EditingBehaviorType>(behavior));
}
void WebSettingsImpl::setAcceleratedCompositingEnabled(bool enabled)
{
m_settings->setAcceleratedCompositingEnabled(enabled);
m_settings->setScrollingCoordinatorEnabled(enabled);
}
void WebSettingsImpl::setForceCompositingMode(bool enabled)
{
m_settings->setForceCompositingMode(enabled);
}
void WebSettingsImpl::setMockScrollbarsEnabled(bool enabled)
{
m_settings->setMockScrollbarsEnabled(enabled);
}
void WebSettingsImpl::setAcceleratedCompositingFor3DTransformsEnabled(bool enabled)
{
m_settings->setAcceleratedCompositingFor3DTransformsEnabled(enabled);
}
void WebSettingsImpl::setAcceleratedCompositingForFiltersEnabled(bool enabled)
{
m_settings->setAcceleratedCompositingForFiltersEnabled(enabled);
}
void WebSettingsImpl::setAcceleratedCompositingForVideoEnabled(bool enabled)
{
m_settings->setAcceleratedCompositingForVideoEnabled(enabled);
}
void WebSettingsImpl::setAcceleratedCompositingForOverflowScrollEnabled(bool enabled)
{
m_settings->setAcceleratedCompositingForOverflowScrollEnabled(enabled);
}
void WebSettingsImpl::setCompositorDrivenAcceleratedScrollingEnabled(bool enabled)
{
m_settings->setCompositorDrivenAcceleratedScrollingEnabled(enabled);
}
void WebSettingsImpl::setAcceleratedCompositingForFixedRootBackgroundEnabled(bool enabled)
{
m_settings->setAcceleratedCompositingForFixedRootBackgroundEnabled(enabled);
}
void WebSettingsImpl::setAcceleratedCompositingForGpuRasterizationHintEnabled(bool enabled)
{
m_settings->setAcceleratedCompositingForGpuRasterizationHintEnabled(enabled);
}
void WebSettingsImpl::setAcceleratedCompositingForPluginsEnabled(bool enabled)
{
m_settings->setAcceleratedCompositingForPluginsEnabled(enabled);
}
void WebSettingsImpl::setAcceleratedCompositingForCanvasEnabled(bool enabled)
{
m_settings->setAcceleratedCompositingForCanvasEnabled(enabled);
}
void WebSettingsImpl::setAcceleratedCompositingForAnimationEnabled(bool enabled)
{
m_settings->setAcceleratedCompositingForAnimationEnabled(enabled);
}
void WebSettingsImpl::setAcceleratedCompositingForScrollableFramesEnabled(bool enabled)
{
m_settings->setAcceleratedCompositingForScrollableFramesEnabled(enabled);
}
void WebSettingsImpl::setAccelerated2dCanvasEnabled(bool enabled)
{
m_settings->setAccelerated2dCanvasEnabled(enabled);
}
void WebSettingsImpl::setAccelerated2dCanvasMSAASampleCount(int count)
{
m_settings->setAccelerated2dCanvasMSAASampleCount(count);
}
void WebSettingsImpl::setAntialiased2dCanvasEnabled(bool enabled)
{
m_settings->setAntialiased2dCanvasEnabled(enabled);
}
void WebSettingsImpl::setContainerCullingEnabled(bool enabled)
{
m_settings->setContainerCullingEnabled(enabled);
}
void WebSettingsImpl::setDeferredImageDecodingEnabled(bool enabled)
{
DeferredImageDecoder::setEnabled(enabled);
m_deferredImageDecodingEnabled = enabled;
}
void WebSettingsImpl::setDeferredFiltersEnabled(bool enabled)
{
m_settings->setDeferredFiltersEnabled(enabled);
}
void WebSettingsImpl::setAcceleratedCompositingForFixedPositionEnabled(bool enabled)
{
m_settings->setAcceleratedCompositingForFixedPositionEnabled(enabled);
}
void WebSettingsImpl::setMinimumAccelerated2dCanvasSize(int numPixels)
{
m_settings->setMinimumAccelerated2dCanvasSize(numPixels);
}
void WebSettingsImpl::setHyperlinkAuditingEnabled(bool enabled)
{
m_settings->setHyperlinkAuditingEnabled(enabled);
}
void WebSettingsImpl::setLayerSquashingEnabled(bool enabled)
{
m_settings->setLayerSquashingEnabled(enabled);
}
void WebSettingsImpl::setAsynchronousSpellCheckingEnabled(bool enabled)
{
m_settings->setAsynchronousSpellCheckingEnabled(enabled);
}
void WebSettingsImpl::setUnifiedTextCheckerEnabled(bool enabled)
{
m_settings->setUnifiedTextCheckerEnabled(enabled);
}
void WebSettingsImpl::setCaretBrowsingEnabled(bool enabled)
{
m_settings->setCaretBrowsingEnabled(enabled);
}
void WebSettingsImpl::setValidationMessageTimerMagnification(int newValue)
{
m_settings->setValidationMessageTimerMagnification(newValue);
}
void WebSettingsImpl::setAllowDisplayOfInsecureContent(bool enabled)
{
m_settings->setAllowDisplayOfInsecureContent(enabled);
}
void WebSettingsImpl::setAllowRunningOfInsecureContent(bool enabled)
{
m_settings->setAllowRunningOfInsecureContent(enabled);
}
void WebSettingsImpl::setPasswordEchoEnabled(bool flag)
{
m_settings->setPasswordEchoEnabled(flag);
}
void WebSettingsImpl::setPasswordEchoDurationInSeconds(double durationInSeconds)
{
m_settings->setPasswordEchoDurationInSeconds(durationInSeconds);
}
void WebSettingsImpl::setPerTilePaintingEnabled(bool enabled)
{
m_perTilePaintingEnabled = enabled;
}
void WebSettingsImpl::setShouldPrintBackgrounds(bool enabled)
{
m_settings->setShouldPrintBackgrounds(enabled);
}
void WebSettingsImpl::setShouldClearDocumentBackground(bool enabled)
{
m_settings->setShouldClearDocumentBackground(enabled);
}
void WebSettingsImpl::setEnableScrollAnimator(bool enabled)
{
m_settings->setScrollAnimatorEnabled(enabled);
}
void WebSettingsImpl::setEnableTouchAdjustment(bool enabled)
{
m_settings->setTouchAdjustmentEnabled(enabled);
}
bool WebSettingsImpl::scrollAnimatorEnabled() const
{
return m_settings->scrollAnimatorEnabled();
}
bool WebSettingsImpl::touchEditingEnabled() const
{
return m_settings->touchEditingEnabled();
}
bool WebSettingsImpl::viewportEnabled() const
{
return m_settings->viewportEnabled();
}
bool WebSettingsImpl::viewportMetaEnabled() const
{
return m_settings->viewportMetaEnabled();
}
bool WebSettingsImpl::mainFrameResizesAreOrientationChanges() const
{
return m_mainFrameResizesAreOrientationChanges;
}
bool WebSettingsImpl::shrinksViewportContentToFit() const
{
return m_shrinksViewportContentToFit;
}
void WebSettingsImpl::setShouldRespectImageOrientation(bool enabled)
{
m_settings->setShouldRespectImageOrientation(enabled);
}
void WebSettingsImpl::setMediaPlaybackRequiresUserGesture(bool required)
{
m_settings->setMediaPlaybackRequiresUserGesture(required);
}
void WebSettingsImpl::setViewportEnabled(bool enabled)
{
m_settings->setViewportEnabled(enabled);
}
void WebSettingsImpl::setViewportMetaEnabled(bool enabled)
{
m_settings->setViewportMetaEnabled(enabled);
}
void WebSettingsImpl::setSyncXHRInDocumentsEnabled(bool enabled)
{
m_settings->setSyncXHRInDocumentsEnabled(enabled);
}
void WebSettingsImpl::setCookieEnabled(bool enabled)
{
m_settings->setCookieEnabled(enabled);
}
void WebSettingsImpl::setNavigateOnDragDrop(bool enabled)
{
m_settings->setNavigateOnDragDrop(enabled);
}
void WebSettingsImpl::setGestureTapHighlightEnabled(bool enableHighlight)
{
m_gestureTapHighlightEnabled = enableHighlight;
}
void WebSettingsImpl::setAllowCustomScrollbarInMainFrame(bool enabled)
{
m_settings->setAllowCustomScrollbarInMainFrame(enabled);
}
void WebSettingsImpl::setCompositedScrollingForFramesEnabled(bool enabled)
{
m_settings->setCompositedScrollingForFramesEnabled(enabled);
}
void WebSettingsImpl::setCompositorTouchHitTesting(bool enabled)
{
m_settings->setCompositorTouchHitTesting(enabled);
}
void WebSettingsImpl::setSelectTrailingWhitespaceEnabled(bool enabled)
{
m_settings->setSelectTrailingWhitespaceEnabled(enabled);
}
void WebSettingsImpl::setSelectionIncludesAltImageText(bool enabled)
{
m_settings->setSelectionIncludesAltImageText(enabled);
}
void WebSettingsImpl::setSmartInsertDeleteEnabled(bool enabled)
{
m_settings->setSmartInsertDeleteEnabled(enabled);
}
void WebSettingsImpl::setPinchOverlayScrollbarThickness(int thickness)
{
m_settings->setPinchOverlayScrollbarThickness(thickness);
}
void WebSettingsImpl::setPinchVirtualViewportEnabled(bool enabled)
{
m_settings->setPinchVirtualViewportEnabled(enabled);
}
void WebSettingsImpl::setUseSolidColorScrollbars(bool enabled)
{
m_settings->setUseSolidColorScrollbars(enabled);
}
void WebSettingsImpl::setMainFrameResizesAreOrientationChanges(bool enabled)
{
m_mainFrameResizesAreOrientationChanges = enabled;
}
}