| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 173 |
| 174 void setCSSVariablesEnabled(bool enabled) { m_cssVariablesEnabled = enab
led; } | 174 void setCSSVariablesEnabled(bool enabled) { m_cssVariablesEnabled = enab
led; } |
| 175 bool cssVariablesEnabled() const { return m_cssVariablesEnabled; } | 175 bool cssVariablesEnabled() const { return m_cssVariablesEnabled; } |
| 176 | 176 |
| 177 static void setMockScrollbarsEnabled(bool flag); | 177 static void setMockScrollbarsEnabled(bool flag); |
| 178 static bool mockScrollbarsEnabled(); | 178 static bool mockScrollbarsEnabled(); |
| 179 | 179 |
| 180 static void setUsesOverlayScrollbars(bool flag); | 180 static void setUsesOverlayScrollbars(bool flag); |
| 181 static bool usesOverlayScrollbars(); | 181 static bool usesOverlayScrollbars(); |
| 182 | 182 |
| 183 #if ENABLE(TOUCH_EVENTS) | |
| 184 void setTouchEventEmulationEnabled(bool enabled) { m_touchEventEmulation
Enabled = enabled; } | 183 void setTouchEventEmulationEnabled(bool enabled) { m_touchEventEmulation
Enabled = enabled; } |
| 185 bool isTouchEventEmulationEnabled() const { return m_touchEventEmulation
Enabled; } | 184 bool isTouchEventEmulationEnabled() const { return m_touchEventEmulation
Enabled; } |
| 186 #endif | |
| 187 | 185 |
| 188 private: | 186 private: |
| 189 explicit Settings(Page*); | 187 explicit Settings(Page*); |
| 190 | 188 |
| 191 void initializeDefaultFontFamilies(); | 189 void initializeDefaultFontFamilies(); |
| 192 | 190 |
| 193 Page* m_page; | 191 Page* m_page; |
| 194 | 192 |
| 195 String m_mediaTypeOverride; | 193 String m_mediaTypeOverride; |
| 196 KURL m_userStyleSheetLocation; | 194 KURL m_userStyleSheetLocation; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 213 bool m_areImagesEnabled : 1; | 211 bool m_areImagesEnabled : 1; |
| 214 bool m_arePluginsEnabled : 1; | 212 bool m_arePluginsEnabled : 1; |
| 215 bool m_isScriptEnabled : 1; | 213 bool m_isScriptEnabled : 1; |
| 216 bool m_usesPageCache : 1; | 214 bool m_usesPageCache : 1; |
| 217 unsigned m_fontRenderingMode : 1; | 215 unsigned m_fontRenderingMode : 1; |
| 218 bool m_isCSSCustomFilterEnabled : 1; | 216 bool m_isCSSCustomFilterEnabled : 1; |
| 219 bool m_cssStickyPositionEnabled : 1; | 217 bool m_cssStickyPositionEnabled : 1; |
| 220 bool m_cssVariablesEnabled : 1; | 218 bool m_cssVariablesEnabled : 1; |
| 221 bool m_dnsPrefetchingEnabled : 1; | 219 bool m_dnsPrefetchingEnabled : 1; |
| 222 | 220 |
| 223 #if ENABLE(TOUCH_EVENTS) | |
| 224 bool m_touchEventEmulationEnabled : 1; | 221 bool m_touchEventEmulationEnabled : 1; |
| 225 #endif | |
| 226 | 222 |
| 227 Timer<Settings> m_setImageLoadingSettingsTimer; | 223 Timer<Settings> m_setImageLoadingSettingsTimer; |
| 228 void imageLoadingSettingsTimerFired(Timer<Settings>*); | 224 void imageLoadingSettingsTimerFired(Timer<Settings>*); |
| 229 | 225 |
| 230 #if ENABLE(HIDDEN_PAGE_DOM_TIMER_THROTTLING) | 226 #if ENABLE(HIDDEN_PAGE_DOM_TIMER_THROTTLING) |
| 231 bool m_hiddenPageDOMTimerThrottlingEnabled : 1; | 227 bool m_hiddenPageDOMTimerThrottlingEnabled : 1; |
| 232 #endif | 228 #endif |
| 233 | 229 |
| 234 static double gDefaultMinDOMTimerInterval; | 230 static double gDefaultMinDOMTimerInterval; |
| 235 static double gDefaultDOMTimerAlignmentInterval; | 231 static double gDefaultDOMTimerAlignmentInterval; |
| 236 | 232 |
| 237 static bool gMockScrollbarsEnabled; | 233 static bool gMockScrollbarsEnabled; |
| 238 static bool gUsesOverlayScrollbars; | 234 static bool gUsesOverlayScrollbars; |
| 239 | 235 |
| 240 #if USE(SAFARI_THEME) | 236 #if USE(SAFARI_THEME) |
| 241 static bool gShouldPaintNativeControls; | 237 static bool gShouldPaintNativeControls; |
| 242 #endif | 238 #endif |
| 243 | 239 |
| 244 static double gHiddenPageDOMTimerAlignmentInterval; | 240 static double gHiddenPageDOMTimerAlignmentInterval; |
| 245 }; | 241 }; |
| 246 | 242 |
| 247 } // namespace WebCore | 243 } // namespace WebCore |
| 248 | 244 |
| 249 #endif // Settings_h | 245 #endif // Settings_h |
| OLD | NEW |