diff options
Diffstat (limited to 'WebCore/page/Settings.h')
-rw-r--r-- | WebCore/page/Settings.h | 57 |
1 files changed, 53 insertions, 4 deletions
diff --git a/WebCore/page/Settings.h b/WebCore/page/Settings.h index 28b92c3..8acc998 100644 --- a/WebCore/page/Settings.h +++ b/WebCore/page/Settings.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. + * Copyright (C) 2003, 2006, 2007, 2008 Apple Inc. All rights reserved. * (C) 2006 Graham Dennis (graham.dennis@gmail.com) * * Redistribution and use in source and binary forms, with or without @@ -28,8 +28,8 @@ #define Settings_h #include "AtomicString.h" -#include "KURL.h" #include "FontDescription.h" +#include "KURL.h" namespace WebCore { @@ -43,8 +43,7 @@ namespace WebCore { EditableLinkNeverLive }; - class Settings - { + class Settings { public: Settings(Page*); @@ -139,8 +138,10 @@ namespace WebCore { void setEditableLinkBehavior(EditableLinkBehavior); EditableLinkBehavior editableLinkBehavior() const { return m_editableLinkBehavior; } +#if ENABLE(DASHBOARD_SUPPORT) void setUsesDashboardBackwardCompatibilityMode(bool); bool usesDashboardBackwardCompatibilityMode() const { return m_usesDashboardBackwardCompatibilityMode; } +#endif void setNeedsAdobeFrameReloadingQuirk(bool); bool needsAcrobatFrameReloadingQuirk() const { return m_needsAdobeFrameReloadingQuirk; } @@ -195,6 +196,39 @@ namespace WebCore { void setNeedsSiteSpecificQuirks(bool); bool needsSiteSpecificQuirks() const { return m_needsSiteSpecificQuirks; } + + void setWebArchiveDebugModeEnabled(bool); + bool webArchiveDebugModeEnabled() const { return m_webArchiveDebugModeEnabled; } + + void setLocalStorageDatabasePath(const String&); + const String& localStorageDatabasePath() const { return m_localStorageDatabasePath; } + + void disableRangeMutationForOldAppleMail(bool); + bool rangeMutationDisabledForOldAppleMail() const { return m_rangeMutationDisabledForOldAppleMail; } + + void setApplicationChromeMode(bool); + bool inApplicationChromeMode() const { return m_inApplicationChromeMode; } + + void setOfflineWebApplicationCacheEnabled(bool); + bool offlineWebApplicationCacheEnabled() const { return m_offlineWebApplicationCacheEnabled; } + + void setShouldPaintCustomScrollbars(bool); + bool shouldPaintCustomScrollbars() const { return m_shouldPaintCustomScrollbars; } + + void setZoomsTextOnly(bool); + bool zoomsTextOnly() const { return m_zoomsTextOnly; } + + void setEnforceCSSMIMETypeInStrictMode(bool); + bool enforceCSSMIMETypeInStrictMode() { return m_enforceCSSMIMETypeInStrictMode; } + + void setMaximumDecodedImageSize(size_t size) { m_maximumDecodedImageSize = size; } + size_t maximumDecodedImageSize() const { return m_maximumDecodedImageSize; } + +#if USE(SAFARI_THEME) + // Windows debugging pref (global) for switching between the Aqua look and a native windows look. + static void setShouldPaintNativeControls(bool); + static bool shouldPaintNativeControls() { return gShouldPaintNativeControls; } +#endif private: Page* m_page; @@ -204,6 +238,7 @@ namespace WebCore { #ifdef ANDROID_PLUGINS String m_pluginsPath; #endif + String m_localStorageDatabasePath; KURL m_userStyleSheetLocation; AtomicString m_standardFontFamily; AtomicString m_fixedFontFamily; @@ -258,7 +293,9 @@ namespace WebCore { bool m_javaScriptCanOpenWindowsAutomatically : 1; bool m_shouldPrintBackgrounds : 1; bool m_textAreasAreResizable : 1; +#if ENABLE(DASHBOARD_SUPPORT) bool m_usesDashboardBackwardCompatibilityMode : 1; +#endif bool m_needsAdobeFrameReloadingQuirk : 1; bool m_needsKeyboardEventDisambiguationQuirks : 1; bool m_isDOMPasteAllowed : 1; @@ -270,6 +307,18 @@ namespace WebCore { bool m_authorAndUserStylesEnabled : 1; bool m_needsSiteSpecificQuirks : 1; unsigned m_fontRenderingMode : 1; + bool m_webArchiveDebugModeEnabled : 1; + bool m_inApplicationChromeMode : 1; + bool m_offlineWebApplicationCacheEnabled : 1; + bool m_rangeMutationDisabledForOldAppleMail : 1; + bool m_shouldPaintCustomScrollbars : 1; + bool m_zoomsTextOnly : 1; + bool m_enforceCSSMIMETypeInStrictMode : 1; + size_t m_maximumDecodedImageSize; + +#if USE(SAFARI_THEME) + static bool gShouldPaintNativeControls; +#endif }; } // namespace WebCore |