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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 void setCSSCustomFilterEnabled(bool enabled) { m_isCSSCustomFilterEnabled =
enabled; } | 136 void setCSSCustomFilterEnabled(bool enabled) { m_isCSSCustomFilterEnabled =
enabled; } |
137 bool isCSSCustomFilterEnabled() const { return m_isCSSCustomFilterEnabled; } | 137 bool isCSSCustomFilterEnabled() const { return m_isCSSCustomFilterEnabled; } |
138 | 138 |
139 void setCSSStickyPositionEnabled(bool enabled) { m_cssStickyPositionEnabled
= enabled; } | 139 void setCSSStickyPositionEnabled(bool enabled) { m_cssStickyPositionEnabled
= enabled; } |
140 bool cssStickyPositionEnabled() const { return m_cssStickyPositionEnabled; } | 140 bool cssStickyPositionEnabled() const { return m_cssStickyPositionEnabled; } |
141 | 141 |
142 static void setMockScrollbarsEnabled(bool flag); | 142 static void setMockScrollbarsEnabled(bool flag); |
143 static bool mockScrollbarsEnabled(); | 143 static bool mockScrollbarsEnabled(); |
144 | 144 |
145 static void setUsesOverlayScrollbars(bool flag); | 145 static void setMockScrollbarsUseOverlay(bool flag); |
146 static bool usesOverlayScrollbars(); | 146 static bool mockScrollbarsUseOverlay(); |
147 | 147 |
148 void setTouchEventEmulationEnabled(bool enabled) { m_touchEventEmulationEnab
led = enabled; } | 148 void setTouchEventEmulationEnabled(bool enabled) { m_touchEventEmulationEnab
led = enabled; } |
149 bool isTouchEventEmulationEnabled() const { return m_touchEventEmulationEnab
led; } | 149 bool isTouchEventEmulationEnabled() const { return m_touchEventEmulationEnab
led; } |
150 | 150 |
151 void setOpenGLMultisamplingEnabled(bool flag); | 151 void setOpenGLMultisamplingEnabled(bool flag); |
152 bool openGLMultisamplingEnabled(); | 152 bool openGLMultisamplingEnabled(); |
153 | 153 |
154 void setViewportEnabled(bool); | 154 void setViewportEnabled(bool); |
155 bool viewportEnabled() const { return m_viewportEnabled; } | 155 bool viewportEnabled() const { return m_viewportEnabled; } |
156 | 156 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 bool m_viewportEnabled : 1; | 195 bool m_viewportEnabled : 1; |
196 | 196 |
197 // FIXME: This is a temporary flag and should be removed once accelerated | 197 // FIXME: This is a temporary flag and should be removed once accelerated |
198 // overflow scroll is ready (crbug.com/254111). | 198 // overflow scroll is ready (crbug.com/254111). |
199 bool m_compositorDrivenAcceleratedScrollingEnabled : 1; | 199 bool m_compositorDrivenAcceleratedScrollingEnabled : 1; |
200 | 200 |
201 Timer<Settings> m_setImageLoadingSettingsTimer; | 201 Timer<Settings> m_setImageLoadingSettingsTimer; |
202 void imageLoadingSettingsTimerFired(Timer<Settings>*); | 202 void imageLoadingSettingsTimerFired(Timer<Settings>*); |
203 | 203 |
204 static bool gMockScrollbarsEnabled; | 204 static bool gMockScrollbarsEnabled; |
205 static bool gUsesOverlayScrollbars; | 205 static bool gMockScrollbarsUseOverlay; |
206 }; | 206 }; |
207 | 207 |
208 } // namespace WebCore | 208 } // namespace WebCore |
209 | 209 |
210 #endif // Settings_h | 210 #endif // Settings_h |
OLD | NEW |