| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights
reserved. | 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights
reserved. |
| 3 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 3 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #ifndef Settings_h | 27 #ifndef Settings_h |
| 28 #define Settings_h | 28 #define Settings_h |
| 29 | 29 |
| 30 #include "EditingBehaviorTypes.h" | 30 #include "EditingBehaviorTypes.h" |
| 31 #include "FontRenderingMode.h" | 31 #include "FontRenderingMode.h" |
| 32 #include "IntSize.h" | 32 #include "IntSize.h" |
| 33 #include "KURL.h" | 33 #include "KURL.h" |
| 34 #include "SecurityOrigin.h" | |
| 35 #include "SettingsMacros.h" | 34 #include "SettingsMacros.h" |
| 36 #include "Timer.h" | 35 #include "Timer.h" |
| 37 #include <wtf/HashMap.h> | 36 #include <wtf/HashMap.h> |
| 38 #include <wtf/text/AtomicString.h> | 37 #include <wtf/text/AtomicString.h> |
| 39 #include <wtf/text/AtomicStringHash.h> | 38 #include <wtf/text/AtomicStringHash.h> |
| 40 #include <wtf/unicode/Unicode.h> | 39 #include <wtf/unicode/Unicode.h> |
| 41 | 40 |
| 42 namespace WebCore { | 41 namespace WebCore { |
| 43 | 42 |
| 44 class Page; | 43 class Page; |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 static bool mockScrollbarsEnabled(); | 187 static bool mockScrollbarsEnabled(); |
| 189 | 188 |
| 190 static void setUsesOverlayScrollbars(bool flag); | 189 static void setUsesOverlayScrollbars(bool flag); |
| 191 static bool usesOverlayScrollbars(); | 190 static bool usesOverlayScrollbars(); |
| 192 | 191 |
| 193 #if ENABLE(TOUCH_EVENTS) | 192 #if ENABLE(TOUCH_EVENTS) |
| 194 void setTouchEventEmulationEnabled(bool enabled) { m_touchEventEmulation
Enabled = enabled; } | 193 void setTouchEventEmulationEnabled(bool enabled) { m_touchEventEmulation
Enabled = enabled; } |
| 195 bool isTouchEventEmulationEnabled() const { return m_touchEventEmulation
Enabled; } | 194 bool isTouchEventEmulationEnabled() const { return m_touchEventEmulation
Enabled; } |
| 196 #endif | 195 #endif |
| 197 | 196 |
| 198 void setStorageBlockingPolicy(SecurityOrigin::StorageBlockingPolicy); | |
| 199 SecurityOrigin::StorageBlockingPolicy storageBlockingPolicy() const { re
turn m_storageBlockingPolicy; } | |
| 200 | |
| 201 void setTimeWithoutMouseMovementBeforeHidingControls(double time) { m_ti
meWithoutMouseMovementBeforeHidingControls = time; } | 197 void setTimeWithoutMouseMovementBeforeHidingControls(double time) { m_ti
meWithoutMouseMovementBeforeHidingControls = time; } |
| 202 double timeWithoutMouseMovementBeforeHidingControls() const { return m_t
imeWithoutMouseMovementBeforeHidingControls; } | 198 double timeWithoutMouseMovementBeforeHidingControls() const { return m_t
imeWithoutMouseMovementBeforeHidingControls; } |
| 203 | 199 |
| 204 private: | 200 private: |
| 205 explicit Settings(Page*); | 201 explicit Settings(Page*); |
| 206 | 202 |
| 207 void initializeDefaultFontFamilies(); | 203 void initializeDefaultFontFamilies(); |
| 208 | 204 |
| 209 Page* m_page; | 205 Page* m_page; |
| 210 | 206 |
| 211 String m_mediaTypeOverride; | 207 String m_mediaTypeOverride; |
| 212 KURL m_userStyleSheetLocation; | 208 KURL m_userStyleSheetLocation; |
| 213 ScriptFontFamilyMap m_standardFontFamilyMap; | 209 ScriptFontFamilyMap m_standardFontFamilyMap; |
| 214 ScriptFontFamilyMap m_serifFontFamilyMap; | 210 ScriptFontFamilyMap m_serifFontFamilyMap; |
| 215 ScriptFontFamilyMap m_fixedFontFamilyMap; | 211 ScriptFontFamilyMap m_fixedFontFamilyMap; |
| 216 ScriptFontFamilyMap m_sansSerifFontFamilyMap; | 212 ScriptFontFamilyMap m_sansSerifFontFamilyMap; |
| 217 ScriptFontFamilyMap m_cursiveFontFamilyMap; | 213 ScriptFontFamilyMap m_cursiveFontFamilyMap; |
| 218 ScriptFontFamilyMap m_fantasyFontFamilyMap; | 214 ScriptFontFamilyMap m_fantasyFontFamilyMap; |
| 219 ScriptFontFamilyMap m_pictographFontFamilyMap; | 215 ScriptFontFamilyMap m_pictographFontFamilyMap; |
| 220 SecurityOrigin::StorageBlockingPolicy m_storageBlockingPolicy; | |
| 221 float m_textAutosizingFontScaleFactor; | 216 float m_textAutosizingFontScaleFactor; |
| 222 IntSize m_textAutosizingWindowSizeOverride; | 217 IntSize m_textAutosizingWindowSizeOverride; |
| 223 bool m_textAutosizingEnabled : 1; | 218 bool m_textAutosizingEnabled : 1; |
| 224 IntSize m_resolutionDensityPerInchOverride; | 219 IntSize m_resolutionDensityPerInchOverride; |
| 225 | 220 |
| 226 SETTINGS_MEMBER_VARIABLES | 221 SETTINGS_MEMBER_VARIABLES |
| 227 | 222 |
| 228 bool m_isJavaEnabled : 1; | 223 bool m_isJavaEnabled : 1; |
| 229 bool m_loadsImagesAutomatically : 1; | 224 bool m_loadsImagesAutomatically : 1; |
| 230 bool m_areImagesEnabled : 1; | 225 bool m_areImagesEnabled : 1; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 259 #if USE(SAFARI_THEME) | 254 #if USE(SAFARI_THEME) |
| 260 static bool gShouldPaintNativeControls; | 255 static bool gShouldPaintNativeControls; |
| 261 #endif | 256 #endif |
| 262 | 257 |
| 263 static double gHiddenPageDOMTimerAlignmentInterval; | 258 static double gHiddenPageDOMTimerAlignmentInterval; |
| 264 }; | 259 }; |
| 265 | 260 |
| 266 } // namespace WebCore | 261 } // namespace WebCore |
| 267 | 262 |
| 268 #endif // Settings_h | 263 #endif // Settings_h |
| OLD | NEW |