diff options
Diffstat (limited to 'WebCore/page/Settings.h')
-rw-r--r-- | WebCore/page/Settings.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/WebCore/page/Settings.h b/WebCore/page/Settings.h index fbb70b0..8a553de 100644 --- a/WebCore/page/Settings.h +++ b/WebCore/page/Settings.h @@ -117,6 +117,8 @@ namespace WebCore { void setDefaultFixedFontSize(int); int defaultFixedFontSize() const { return m_defaultFixedFontSize; } + // Unlike areImagesEnabled, this only suppresses the network load of + // the image URL. A cached image will still be rendered if requested. void setLoadsImagesAutomatically(bool); bool loadsImagesAutomatically() const { return m_loadsImagesAutomatically; } @@ -139,6 +141,9 @@ namespace WebCore { void setJavaEnabled(bool); bool isJavaEnabled() const { return m_isJavaEnabled; } + void setImagesEnabled(bool); + bool areImagesEnabled() const { return m_areImagesEnabled; } + void setPluginsEnabled(bool); bool arePluginsEnabled() const { return m_arePluginsEnabled; } @@ -323,7 +328,7 @@ namespace WebCore { void setExperimentalNotificationsEnabled(bool); bool experimentalNotificationsEnabled() const { return m_experimentalNotificationsEnabled; } -#if PLATFORM(WIN) || (PLATFORM(WIN_OS) && PLATFORM(WX)) +#if PLATFORM(WIN) || (OS(WINDOWS) && PLATFORM(WX)) static void setShouldUseHighResolutionTimers(bool); static bool shouldUseHighResolutionTimers() { return gShouldUseHighResolutionTimers; } #endif @@ -337,6 +342,9 @@ namespace WebCore { void setGeolocationEnabled(bool); bool geolocationEnabled() const { return m_geolocationEnabled; } + void setLoadDeferringEnabled(bool); + bool loadDeferringEnabled() const { return m_loadDeferringEnabled; } + private: Page* m_page; @@ -400,6 +408,7 @@ namespace WebCore { bool m_loadsImagesAutomatically : 1; bool m_privateBrowsingEnabled : 1; bool m_caretBrowsingEnabled : 1; + bool m_areImagesEnabled : 1; bool m_arePluginsEnabled : 1; bool m_databasesEnabled : 1; bool m_localStorageEnabled : 1; @@ -444,11 +453,12 @@ namespace WebCore { bool m_experimentalNotificationsEnabled : 1; bool m_webGLEnabled : 1; bool m_geolocationEnabled : 1; + bool m_loadDeferringEnabled : 1; #if USE(SAFARI_THEME) static bool gShouldPaintNativeControls; #endif -#if PLATFORM(WIN) || (PLATFORM(WIN_OS) && PLATFORM(WX)) +#if PLATFORM(WIN) || (OS(WINDOWS) && PLATFORM(WX)) static bool gShouldUseHighResolutionTimers; #endif }; |