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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 131 |
132 void setFontRenderingMode(FontRenderingMode mode); | 132 void setFontRenderingMode(FontRenderingMode mode); |
133 FontRenderingMode fontRenderingMode() const; | 133 FontRenderingMode fontRenderingMode() const; |
134 | 134 |
135 void setCSSCustomFilterEnabled(bool enabled) { m_isCSSCustomFilterEnabled =
enabled; } | 135 void setCSSCustomFilterEnabled(bool enabled) { m_isCSSCustomFilterEnabled =
enabled; } |
136 bool isCSSCustomFilterEnabled() const { return m_isCSSCustomFilterEnabled; } | 136 bool isCSSCustomFilterEnabled() const { return m_isCSSCustomFilterEnabled; } |
137 | 137 |
138 void setCSSStickyPositionEnabled(bool enabled) { m_cssStickyPositionEnabled
= enabled; } | 138 void setCSSStickyPositionEnabled(bool enabled) { m_cssStickyPositionEnabled
= enabled; } |
139 bool cssStickyPositionEnabled() const { return m_cssStickyPositionEnabled; } | 139 bool cssStickyPositionEnabled() const { return m_cssStickyPositionEnabled; } |
140 | 140 |
| 141 void setCSSVariablesEnabled(bool enabled) { m_cssVariablesEnabled = enabled;
} |
| 142 bool cssVariablesEnabled() const { return m_cssVariablesEnabled; } |
| 143 |
141 static void setMockScrollbarsEnabled(bool flag); | 144 static void setMockScrollbarsEnabled(bool flag); |
142 static bool mockScrollbarsEnabled(); | 145 static bool mockScrollbarsEnabled(); |
143 | 146 |
144 static void setUsesOverlayScrollbars(bool flag); | 147 static void setUsesOverlayScrollbars(bool flag); |
145 static bool usesOverlayScrollbars(); | 148 static bool usesOverlayScrollbars(); |
146 | 149 |
147 void setTouchEventEmulationEnabled(bool enabled) { m_touchEventEmulationEnab
led = enabled; } | 150 void setTouchEventEmulationEnabled(bool enabled) { m_touchEventEmulationEnab
led = enabled; } |
148 bool isTouchEventEmulationEnabled() const { return m_touchEventEmulationEnab
led; } | 151 bool isTouchEventEmulationEnabled() const { return m_touchEventEmulationEnab
led; } |
149 | 152 |
150 void setOpenGLMultisamplingEnabled(bool flag); | 153 void setOpenGLMultisamplingEnabled(bool flag); |
(...skipping 22 matching lines...) Expand all Loading... |
173 SETTINGS_MEMBER_VARIABLES | 176 SETTINGS_MEMBER_VARIABLES |
174 | 177 |
175 bool m_isJavaEnabled : 1; | 178 bool m_isJavaEnabled : 1; |
176 bool m_loadsImagesAutomatically : 1; | 179 bool m_loadsImagesAutomatically : 1; |
177 bool m_areImagesEnabled : 1; | 180 bool m_areImagesEnabled : 1; |
178 bool m_arePluginsEnabled : 1; | 181 bool m_arePluginsEnabled : 1; |
179 bool m_isScriptEnabled : 1; | 182 bool m_isScriptEnabled : 1; |
180 unsigned m_fontRenderingMode : 1; | 183 unsigned m_fontRenderingMode : 1; |
181 bool m_isCSSCustomFilterEnabled : 1; | 184 bool m_isCSSCustomFilterEnabled : 1; |
182 bool m_cssStickyPositionEnabled : 1; | 185 bool m_cssStickyPositionEnabled : 1; |
| 186 bool m_cssVariablesEnabled : 1; |
183 bool m_dnsPrefetchingEnabled : 1; | 187 bool m_dnsPrefetchingEnabled : 1; |
184 | 188 |
185 bool m_touchEventEmulationEnabled : 1; | 189 bool m_touchEventEmulationEnabled : 1; |
186 bool m_openGLMultisamplingEnabled : 1; | 190 bool m_openGLMultisamplingEnabled : 1; |
187 | 191 |
188 Timer<Settings> m_setImageLoadingSettingsTimer; | 192 Timer<Settings> m_setImageLoadingSettingsTimer; |
189 void imageLoadingSettingsTimerFired(Timer<Settings>*); | 193 void imageLoadingSettingsTimerFired(Timer<Settings>*); |
190 | 194 |
191 static bool gMockScrollbarsEnabled; | 195 static bool gMockScrollbarsEnabled; |
192 static bool gUsesOverlayScrollbars; | 196 static bool gUsesOverlayScrollbars; |
193 }; | 197 }; |
194 | 198 |
195 } // namespace WebCore | 199 } // namespace WebCore |
196 | 200 |
197 #endif // Settings_h | 201 #endif // Settings_h |
OLD | NEW |