Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2158)

Unified Diff: Source/web/WebSettingsImpl.h

Issue 135753002: Update web classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/WebPopupMenuImpl.h ('k') | Source/web/WebSettingsImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebSettingsImpl.h
diff --git a/Source/web/WebSettingsImpl.h b/Source/web/WebSettingsImpl.h
index a976b4ba293b6724f9b31289bb8129e58725852c..1ff68fcc22fa9d2293aef30d55302524e8f40e96 100644
--- a/Source/web/WebSettingsImpl.h
+++ b/Source/web/WebSettingsImpl.h
@@ -39,155 +39,150 @@ class Settings;
namespace blink {
-class WebSettingsImpl : public WebSettings {
+class WebSettingsImpl FINAL : public WebSettings {
public:
explicit WebSettingsImpl(WebCore::Settings*);
virtual ~WebSettingsImpl() { }
- virtual bool mainFrameResizesAreOrientationChanges() const;
- virtual bool deviceSupportsTouch();
- virtual bool scrollAnimatorEnabled() const;
- virtual bool touchEditingEnabled() const;
- virtual bool viewportEnabled() const;
- virtual bool viewportMetaEnabled() const;
- virtual void setAccelerated2dCanvasEnabled(bool);
- virtual void setAccelerated2dCanvasMSAASampleCount(int);
- virtual void setAcceleratedCompositingEnabled(bool);
- virtual void setAcceleratedCompositingFor3DTransformsEnabled(bool);
- virtual void setAcceleratedCompositingForAnimationEnabled(bool);
- virtual void setAcceleratedCompositingForCanvasEnabled(bool);
- virtual void setAcceleratedCompositingForFiltersEnabled(bool);
- virtual void setAcceleratedCompositingForFixedPositionEnabled(bool);
- virtual void setAcceleratedCompositingForOverflowScrollEnabled(bool);
- virtual void setCompositorDrivenAcceleratedScrollingEnabled(bool);
- virtual void setAcceleratedCompositingForTransitionEnabled(bool);
- virtual void setAcceleratedCompositingForFixedRootBackgroundEnabled(bool);
- virtual void setAcceleratedCompositingForPluginsEnabled(bool);
- virtual void setAcceleratedCompositingForScrollableFramesEnabled(bool);
- virtual void setAcceleratedCompositingForVideoEnabled(bool);
- virtual void setAcceleratedFiltersEnabled(bool);
- virtual void setAllowDisplayOfInsecureContent(bool);
- virtual void setAllowFileAccessFromFileURLs(bool);
- virtual void setAllowCustomScrollbarInMainFrame(bool);
- virtual void setAllowRunningOfInsecureContent(bool);
- virtual void setAllowScriptsToCloseWindows(bool);
- virtual void setAllowUniversalAccessFromFileURLs(bool);
- virtual void setAntialiased2dCanvasEnabled(bool);
- virtual void setAsynchronousSpellCheckingEnabled(bool);
- virtual void setAutoZoomFocusedNodeToLegibleScale(bool);
- virtual void setCaretBrowsingEnabled(bool);
- virtual void setClobberUserAgentInitialScaleQuirk(bool);
- virtual void setCompositedScrollingForFramesEnabled(bool);
- virtual void setCompositorTouchHitTesting(bool);
- virtual void setCookieEnabled(bool);
- virtual void setCursiveFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON);
- virtual void setDNSPrefetchingEnabled(bool);
- virtual void setDOMPasteAllowed(bool);
- virtual void setDefaultFixedFontSize(int);
- virtual void setDefaultFontSize(int);
- virtual void setDefaultTextEncodingName(const WebString&);
- virtual void setDefaultVideoPosterURL(const WebString&);
- virtual void setDeferred2dCanvasEnabled(bool);
- virtual void setDeferredImageDecodingEnabled(bool);
- virtual void setDeviceScaleAdjustment(float);
- virtual void setDeviceSupportsMouse(bool);
- virtual void setDeviceSupportsTouch(bool);
- virtual void setDoubleTapToZoomEnabled(bool);
- virtual void setDownloadableBinaryFontsEnabled(bool);
- virtual void setEditableLinkBehaviorNeverLive();
- virtual void setEditingBehavior(EditingBehavior);
- virtual void setEnableScrollAnimator(bool);
- virtual void setEnableTouchAdjustment(bool);
- virtual void setRegionBasedColumnsEnabled(bool);
- virtual void setExperimentalWebGLEnabled(bool);
- virtual void setExperimentalWebSocketEnabled(bool);
- virtual void setFantasyFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON);
- virtual void setFixedFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON);
- virtual void setFixedPositionCreatesStackingContext(bool);
- virtual void setForceCompositingMode(bool);
- virtual void setFullScreenEnabled(bool);
- virtual void setGestureTapHighlightEnabled(bool);
- virtual void setHyperlinkAuditingEnabled(bool);
- virtual void setIgnoreMainFrameOverflowHiddenQuirk(bool);
- virtual void setImagesEnabled(bool);
- virtual void setJavaEnabled(bool);
- virtual void setJavaScriptCanAccessClipboard(bool);
- virtual void setJavaScriptCanOpenWindowsAutomatically(bool);
- virtual void setJavaScriptEnabled(bool);
- virtual void setLayerSquashingEnabled(bool);
- virtual void setLayoutFallbackWidth(int);
- virtual void setLoadsImagesAutomatically(bool);
- virtual void setLoadWithOverviewMode(bool);
- virtual void setLocalStorageEnabled(bool);
- virtual void setMainFrameClipsContent(bool);
- virtual void setMainFrameResizesAreOrientationChanges(bool);
- virtual void setMaxTouchPoints(int);
- virtual void setMediaPlaybackRequiresUserGesture(bool);
- virtual void setMediaFullscreenRequiresUserGesture(bool);
- virtual void setMemoryInfoEnabled(bool);
- virtual void setMinimumAccelerated2dCanvasSize(int);
- virtual void setMinimumFontSize(int);
- virtual void setMinimumLogicalFontSize(int);
- virtual void setMockScrollbarsEnabled(bool);
- virtual void setNeedsSiteSpecificQuirks(bool);
- virtual void setOfflineWebApplicationCacheEnabled(bool);
- virtual void setOpenGLMultisamplingEnabled(bool);
- virtual void setPasswordEchoDurationInSeconds(double);
- virtual void setPasswordEchoEnabled(bool);
- virtual void setPerTilePaintingEnabled(bool);
- virtual void setPictographFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON);
- virtual void setPinchOverlayScrollbarThickness(int);
- virtual void setPinchVirtualViewportEnabled(bool);
- virtual void setPluginsEnabled(bool);
- virtual void setPrivilegedWebGLExtensionsEnabled(bool);
- virtual void setRenderVSyncNotificationEnabled(bool);
- virtual void setReportScreenSizeInPhysicalPixelsQuirk(bool);
- virtual void setSansSerifFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON);
- virtual void setSelectTrailingWhitespaceEnabled(bool);
- virtual void setSelectionIncludesAltImageText(bool);
- virtual void setSerifFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON);
- virtual void setShouldDisplayCaptions(bool);
- virtual void setShouldDisplaySubtitles(bool);
- virtual void setShouldDisplayTextDescriptions(bool);
- virtual void setShouldPrintBackgrounds(bool);
- virtual void setShouldClearDocumentBackground(bool);
- virtual void setShouldRespectImageOrientation(bool);
- virtual void setShowFPSCounter(bool);
- virtual void setShowPaintRects(bool);
- virtual void setShrinksStandaloneImagesToFit(bool);
- virtual void setSmartInsertDeleteEnabled(bool);
- virtual void setSpatialNavigationEnabled(bool);
- virtual void setStandardFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON);
- virtual void setSupportDeprecatedTargetDensityDPI(bool);
- virtual void setSupportsMultipleWindows(bool);
- virtual void setSyncXHRInDocumentsEnabled(bool);
- virtual void setTextAreasAreResizable(bool);
- virtual void setTextAutosizingEnabled(bool);
- virtual void setAccessibilityFontScaleFactor(float);
- virtual void setTouchDragDropEnabled(bool);
- virtual void setTouchEditingEnabled(bool);
- virtual void setThreadedHTMLParser(bool);
- virtual void setUnifiedTextCheckerEnabled(bool);
- virtual void setUnsafePluginPastingEnabled(bool);
- virtual void setUsesEncodingDetector(bool);
- virtual void setUseLegacyBackgroundSizeShorthandBehavior(bool);
- virtual void setUseSolidColorScrollbars(bool);
- virtual void setUseWideViewport(bool);
- virtual void setValidationMessageTimerMagnification(int);
- virtual void setViewportEnabled(bool);
- virtual void setViewportMetaEnabled(bool);
- virtual void setViewportMetaLayoutSizeQuirk(bool);
- virtual void setViewportMetaMergeContentQuirk(bool);
- virtual void setViewportMetaNonUserScalableQuirk(bool);
- virtual void setViewportMetaZeroValuesQuirk(bool);
- virtual void setWebAudioEnabled(bool);
- virtual void setWebGLErrorsToConsoleEnabled(bool);
- virtual void setWebSecurityEnabled(bool);
- virtual void setWideViewportQuirkEnabled(bool);
- virtual void setXSSAuditorEnabled(bool);
+ virtual bool mainFrameResizesAreOrientationChanges() const OVERRIDE;
+ virtual bool scrollAnimatorEnabled() const OVERRIDE;
+ virtual bool touchEditingEnabled() const OVERRIDE;
+ virtual bool viewportEnabled() const OVERRIDE;
+ virtual bool viewportMetaEnabled() const OVERRIDE;
+ virtual void setAccelerated2dCanvasEnabled(bool) OVERRIDE;
+ virtual void setAccelerated2dCanvasMSAASampleCount(int) OVERRIDE;
+ virtual void setAcceleratedCompositingEnabled(bool) OVERRIDE;
+ virtual void setAcceleratedCompositingFor3DTransformsEnabled(bool) OVERRIDE;
+ virtual void setAcceleratedCompositingForAnimationEnabled(bool) OVERRIDE;
+ virtual void setAcceleratedCompositingForCanvasEnabled(bool) OVERRIDE;
+ virtual void setAcceleratedCompositingForFiltersEnabled(bool) OVERRIDE;
+ virtual void setAcceleratedCompositingForFixedPositionEnabled(bool) OVERRIDE;
+ virtual void setAcceleratedCompositingForOverflowScrollEnabled(bool) OVERRIDE;
+ virtual void setCompositorDrivenAcceleratedScrollingEnabled(bool) OVERRIDE;
+ virtual void setAcceleratedCompositingForTransitionEnabled(bool) OVERRIDE;
+ virtual void setAcceleratedCompositingForFixedRootBackgroundEnabled(bool) OVERRIDE;
+ virtual void setAcceleratedCompositingForPluginsEnabled(bool) OVERRIDE;
+ virtual void setAcceleratedCompositingForScrollableFramesEnabled(bool) OVERRIDE;
+ virtual void setAcceleratedCompositingForVideoEnabled(bool) OVERRIDE;
+ virtual void setAcceleratedFiltersEnabled(bool) OVERRIDE;
+ virtual void setAllowDisplayOfInsecureContent(bool) OVERRIDE;
+ virtual void setAllowFileAccessFromFileURLs(bool) OVERRIDE;
+ virtual void setAllowCustomScrollbarInMainFrame(bool) OVERRIDE;
+ virtual void setAllowRunningOfInsecureContent(bool) OVERRIDE;
+ virtual void setAllowScriptsToCloseWindows(bool) OVERRIDE;
+ virtual void setAllowUniversalAccessFromFileURLs(bool) OVERRIDE;
+ virtual void setAntialiased2dCanvasEnabled(bool) OVERRIDE;
+ virtual void setAsynchronousSpellCheckingEnabled(bool) OVERRIDE;
+ virtual void setAutoZoomFocusedNodeToLegibleScale(bool) OVERRIDE;
+ virtual void setCaretBrowsingEnabled(bool) OVERRIDE;
+ virtual void setClobberUserAgentInitialScaleQuirk(bool) OVERRIDE;
+ virtual void setCompositedScrollingForFramesEnabled(bool) OVERRIDE;
+ virtual void setCompositorTouchHitTesting(bool) OVERRIDE;
+ virtual void setCookieEnabled(bool) OVERRIDE;
+ virtual void setCursiveFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON) OVERRIDE;
+ virtual void setDNSPrefetchingEnabled(bool) OVERRIDE;
+ virtual void setDOMPasteAllowed(bool) OVERRIDE;
+ virtual void setDefaultFixedFontSize(int) OVERRIDE;
+ virtual void setDefaultFontSize(int) OVERRIDE;
+ virtual void setDefaultTextEncodingName(const WebString&) OVERRIDE;
+ virtual void setDefaultVideoPosterURL(const WebString&) OVERRIDE;
+ virtual void setDeferredImageDecodingEnabled(bool) OVERRIDE;
+ virtual void setDeviceScaleAdjustment(float) OVERRIDE;
+ virtual void setDeviceSupportsMouse(bool) OVERRIDE;
+ virtual void setDeviceSupportsTouch(bool) OVERRIDE;
+ virtual void setDoubleTapToZoomEnabled(bool) OVERRIDE;
+ virtual void setDownloadableBinaryFontsEnabled(bool) OVERRIDE;
+ virtual void setEditableLinkBehaviorNeverLive() OVERRIDE;
+ virtual void setEditingBehavior(EditingBehavior) OVERRIDE;
+ virtual void setEnableScrollAnimator(bool) OVERRIDE;
+ virtual void setEnableTouchAdjustment(bool) OVERRIDE;
+ virtual void setRegionBasedColumnsEnabled(bool) OVERRIDE;
+ virtual void setExperimentalWebGLEnabled(bool) OVERRIDE;
+ virtual void setExperimentalWebSocketEnabled(bool) OVERRIDE;
+ virtual void setFantasyFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON) OVERRIDE;
+ virtual void setFixedFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON) OVERRIDE;
+ virtual void setFixedPositionCreatesStackingContext(bool) OVERRIDE;
+ virtual void setForceCompositingMode(bool) OVERRIDE;
+ virtual void setFullScreenEnabled(bool) OVERRIDE;
+ virtual void setGestureTapHighlightEnabled(bool) OVERRIDE;
+ virtual void setHyperlinkAuditingEnabled(bool) OVERRIDE;
+ virtual void setIgnoreMainFrameOverflowHiddenQuirk(bool) OVERRIDE;
+ virtual void setImagesEnabled(bool) OVERRIDE;
+ virtual void setJavaEnabled(bool) OVERRIDE;
+ virtual void setJavaScriptCanAccessClipboard(bool) OVERRIDE;
+ virtual void setJavaScriptCanOpenWindowsAutomatically(bool) OVERRIDE;
+ virtual void setJavaScriptEnabled(bool) OVERRIDE;
+ virtual void setLayerSquashingEnabled(bool) OVERRIDE;
+ virtual void setLayoutFallbackWidth(int) OVERRIDE;
+ virtual void setLoadsImagesAutomatically(bool) OVERRIDE;
+ virtual void setLoadWithOverviewMode(bool) OVERRIDE;
+ virtual void setLocalStorageEnabled(bool) OVERRIDE;
+ virtual void setMainFrameClipsContent(bool) OVERRIDE;
+ virtual void setMainFrameResizesAreOrientationChanges(bool) OVERRIDE;
+ virtual void setMaxTouchPoints(int) OVERRIDE;
+ virtual void setMediaPlaybackRequiresUserGesture(bool) OVERRIDE;
+ virtual void setMediaFullscreenRequiresUserGesture(bool) OVERRIDE;
+ virtual void setMemoryInfoEnabled(bool) OVERRIDE;
+ virtual void setMinimumAccelerated2dCanvasSize(int) OVERRIDE;
+ virtual void setMinimumFontSize(int) OVERRIDE;
+ virtual void setMinimumLogicalFontSize(int) OVERRIDE;
+ virtual void setMockScrollbarsEnabled(bool) OVERRIDE;
+ virtual void setNeedsSiteSpecificQuirks(bool) OVERRIDE;
+ virtual void setOfflineWebApplicationCacheEnabled(bool) OVERRIDE;
+ virtual void setOpenGLMultisamplingEnabled(bool) OVERRIDE;
+ virtual void setPasswordEchoDurationInSeconds(double) OVERRIDE;
+ virtual void setPasswordEchoEnabled(bool) OVERRIDE;
+ virtual void setPerTilePaintingEnabled(bool) OVERRIDE;
+ virtual void setPictographFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON) OVERRIDE;
+ virtual void setPinchOverlayScrollbarThickness(int) OVERRIDE;
+ virtual void setPinchVirtualViewportEnabled(bool) OVERRIDE;
+ virtual void setPluginsEnabled(bool) OVERRIDE;
+ virtual void setPrivilegedWebGLExtensionsEnabled(bool) OVERRIDE;
+ virtual void setRenderVSyncNotificationEnabled(bool) OVERRIDE;
+ virtual void setReportScreenSizeInPhysicalPixelsQuirk(bool) OVERRIDE;
+ virtual void setSansSerifFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON) OVERRIDE;
+ virtual void setSelectTrailingWhitespaceEnabled(bool OVERRIDE);
+ virtual void setSelectionIncludesAltImageText(bool) OVERRIDE;
+ virtual void setSerifFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON) OVERRIDE;
+ virtual void setShouldPrintBackgrounds(bool) OVERRIDE;
+ virtual void setShouldClearDocumentBackground(bool) OVERRIDE;
+ virtual void setShouldRespectImageOrientation(bool) OVERRIDE;
+ virtual void setShowFPSCounter(bool) OVERRIDE;
+ virtual void setShowPaintRects(bool) OVERRIDE;
+ virtual void setShrinksStandaloneImagesToFit(bool) OVERRIDE;
+ virtual void setSmartInsertDeleteEnabled(bool) OVERRIDE;
+ virtual void setSpatialNavigationEnabled(bool) OVERRIDE;
+ virtual void setStandardFontFamily(const WebString&, UScriptCode = USCRIPT_COMMON) OVERRIDE;
+ virtual void setSupportDeprecatedTargetDensityDPI(bool) OVERRIDE;
+ virtual void setSupportsMultipleWindows(bool) OVERRIDE;
+ virtual void setSyncXHRInDocumentsEnabled(bool) OVERRIDE;
+ virtual void setTextAreasAreResizable(bool) OVERRIDE;
+ virtual void setTextAutosizingEnabled(bool) OVERRIDE;
+ virtual void setAccessibilityFontScaleFactor(float) OVERRIDE;
+ virtual void setTouchDragDropEnabled(bool) OVERRIDE;
+ virtual void setTouchEditingEnabled(bool) OVERRIDE;
+ virtual void setThreadedHTMLParser(bool) OVERRIDE;
+ virtual void setUnifiedTextCheckerEnabled(bool) OVERRIDE;
+ virtual void setUnsafePluginPastingEnabled(bool) OVERRIDE;
+ virtual void setUsesEncodingDetector(bool) OVERRIDE;
+ virtual void setUseLegacyBackgroundSizeShorthandBehavior(bool) OVERRIDE;
+ virtual void setUseSolidColorScrollbars(bool) OVERRIDE;
+ virtual void setUseWideViewport(bool) OVERRIDE;
+ virtual void setValidationMessageTimerMagnification(int) OVERRIDE;
+ virtual void setViewportEnabled(bool) OVERRIDE;
+ virtual void setViewportMetaEnabled(bool) OVERRIDE;
+ virtual void setViewportMetaLayoutSizeQuirk(bool) OVERRIDE;
+ virtual void setViewportMetaMergeContentQuirk(bool) OVERRIDE;
+ virtual void setViewportMetaNonUserScalableQuirk(bool) OVERRIDE;
+ virtual void setViewportMetaZeroValuesQuirk(bool) OVERRIDE;
+ virtual void setWebAudioEnabled(bool) OVERRIDE;
+ virtual void setWebGLErrorsToConsoleEnabled(bool) OVERRIDE;
+ virtual void setWebSecurityEnabled(bool) OVERRIDE;
+ virtual void setWideViewportQuirkEnabled(bool) OVERRIDE;
+ virtual void setXSSAuditorEnabled(bool) OVERRIDE;
// FIXME: Make chromium stop calling this and delete the method.
- virtual void setVisualWordMovementEnabled(bool) { }
+ virtual void setVisualWordMovementEnabled(bool) OVERRIDE { }
bool showFPSCounter() const { return m_showFPSCounter; }
bool showPaintRects() const { return m_showPaintRects; }
« no previous file with comments | « Source/web/WebPopupMenuImpl.h ('k') | Source/web/WebSettingsImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698