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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 141 |
142 void setFontRenderingMode(FontRenderingMode mode); | 142 void setFontRenderingMode(FontRenderingMode mode); |
143 FontRenderingMode fontRenderingMode() const; | 143 FontRenderingMode fontRenderingMode() const; |
144 | 144 |
145 void setCSSCustomFilterEnabled(bool enabled) { m_isCSSCustomFilterEnabled =
enabled; } | 145 void setCSSCustomFilterEnabled(bool enabled) { m_isCSSCustomFilterEnabled =
enabled; } |
146 bool isCSSCustomFilterEnabled() const { return m_isCSSCustomFilterEnabled; } | 146 bool isCSSCustomFilterEnabled() const { return m_isCSSCustomFilterEnabled; } |
147 | 147 |
148 void setCSSStickyPositionEnabled(bool enabled) { m_cssStickyPositionEnabled
= enabled; } | 148 void setCSSStickyPositionEnabled(bool enabled) { m_cssStickyPositionEnabled
= enabled; } |
149 bool cssStickyPositionEnabled() const { return m_cssStickyPositionEnabled; } | 149 bool cssStickyPositionEnabled() const { return m_cssStickyPositionEnabled; } |
150 | 150 |
151 void setCSSVariablesEnabled(bool enabled) { m_cssVariablesEnabled = enabled;
} | |
152 bool cssVariablesEnabled() const { return m_cssVariablesEnabled; } | |
153 | |
154 static void setMockScrollbarsEnabled(bool flag); | 151 static void setMockScrollbarsEnabled(bool flag); |
155 static bool mockScrollbarsEnabled(); | 152 static bool mockScrollbarsEnabled(); |
156 | 153 |
157 static void setUsesOverlayScrollbars(bool flag); | 154 static void setUsesOverlayScrollbars(bool flag); |
158 static bool usesOverlayScrollbars(); | 155 static bool usesOverlayScrollbars(); |
159 | 156 |
160 void setTouchEventEmulationEnabled(bool enabled) { m_touchEventEmulationEnab
led = enabled; } | 157 void setTouchEventEmulationEnabled(bool enabled) { m_touchEventEmulationEnab
led = enabled; } |
161 bool isTouchEventEmulationEnabled() const { return m_touchEventEmulationEnab
led; } | 158 bool isTouchEventEmulationEnabled() const { return m_touchEventEmulationEnab
led; } |
162 | 159 |
163 private: | 160 private: |
(...skipping 20 matching lines...) Expand all Loading... |
184 SETTINGS_MEMBER_VARIABLES | 181 SETTINGS_MEMBER_VARIABLES |
185 | 182 |
186 bool m_isJavaEnabled : 1; | 183 bool m_isJavaEnabled : 1; |
187 bool m_loadsImagesAutomatically : 1; | 184 bool m_loadsImagesAutomatically : 1; |
188 bool m_areImagesEnabled : 1; | 185 bool m_areImagesEnabled : 1; |
189 bool m_arePluginsEnabled : 1; | 186 bool m_arePluginsEnabled : 1; |
190 bool m_isScriptEnabled : 1; | 187 bool m_isScriptEnabled : 1; |
191 unsigned m_fontRenderingMode : 1; | 188 unsigned m_fontRenderingMode : 1; |
192 bool m_isCSSCustomFilterEnabled : 1; | 189 bool m_isCSSCustomFilterEnabled : 1; |
193 bool m_cssStickyPositionEnabled : 1; | 190 bool m_cssStickyPositionEnabled : 1; |
194 bool m_cssVariablesEnabled : 1; | |
195 bool m_dnsPrefetchingEnabled : 1; | 191 bool m_dnsPrefetchingEnabled : 1; |
196 | 192 |
197 bool m_touchEventEmulationEnabled : 1; | 193 bool m_touchEventEmulationEnabled : 1; |
198 | 194 |
199 Timer<Settings> m_setImageLoadingSettingsTimer; | 195 Timer<Settings> m_setImageLoadingSettingsTimer; |
200 void imageLoadingSettingsTimerFired(Timer<Settings>*); | 196 void imageLoadingSettingsTimerFired(Timer<Settings>*); |
201 | 197 |
202 static bool gMockScrollbarsEnabled; | 198 static bool gMockScrollbarsEnabled; |
203 static bool gUsesOverlayScrollbars; | 199 static bool gUsesOverlayScrollbars; |
204 }; | 200 }; |
205 | 201 |
206 } // namespace WebCore | 202 } // namespace WebCore |
207 | 203 |
208 #endif // Settings_h | 204 #endif // Settings_h |
OLD | NEW |