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