Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: Source/core/page/Settings.h

Issue 15687004: Switching CSS Variables over to RuntimeEnabledFeatures (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/page/RuntimeEnabledFeatures.in ('k') | Source/core/page/Settings.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 void setFontRenderingMode(FontRenderingMode mode); 138 void setFontRenderingMode(FontRenderingMode mode);
139 FontRenderingMode fontRenderingMode() const; 139 FontRenderingMode fontRenderingMode() const;
140 140
141 void setCSSCustomFilterEnabled(bool enabled) { m_isCSSCustomFilterEnabled = enabled; } 141 void setCSSCustomFilterEnabled(bool enabled) { m_isCSSCustomFilterEnabled = enabled; }
142 bool isCSSCustomFilterEnabled() const { return m_isCSSCustomFilterEnabled; } 142 bool isCSSCustomFilterEnabled() const { return m_isCSSCustomFilterEnabled; }
143 143
144 void setCSSStickyPositionEnabled(bool enabled) { m_cssStickyPositionEnabled = enabled; } 144 void setCSSStickyPositionEnabled(bool enabled) { m_cssStickyPositionEnabled = enabled; }
145 bool cssStickyPositionEnabled() const { return m_cssStickyPositionEnabled; } 145 bool cssStickyPositionEnabled() const { return m_cssStickyPositionEnabled; }
146 146
147 void setCSSVariablesEnabled(bool enabled) { m_cssVariablesEnabled = enabled; }
148 bool cssVariablesEnabled() const { return m_cssVariablesEnabled; }
149
150 static void setMockScrollbarsEnabled(bool flag); 147 static void setMockScrollbarsEnabled(bool flag);
151 static bool mockScrollbarsEnabled(); 148 static bool mockScrollbarsEnabled();
152 149
153 static void setUsesOverlayScrollbars(bool flag); 150 static void setUsesOverlayScrollbars(bool flag);
154 static bool usesOverlayScrollbars(); 151 static bool usesOverlayScrollbars();
155 152
156 void setTouchEventEmulationEnabled(bool enabled) { m_touchEventEmulationEnab led = enabled; } 153 void setTouchEventEmulationEnabled(bool enabled) { m_touchEventEmulationEnab led = enabled; }
157 bool isTouchEventEmulationEnabled() const { return m_touchEventEmulationEnab led; } 154 bool isTouchEventEmulationEnabled() const { return m_touchEventEmulationEnab led; }
158 155
159 void setOpenGLMultisamplingEnabled(bool flag); 156 void setOpenGLMultisamplingEnabled(bool flag);
(...skipping 24 matching lines...) Expand all
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 bool m_openGLMultisamplingEnabled : 1; 194 bool m_openGLMultisamplingEnabled : 1;
199 195
200 Timer<Settings> m_setImageLoadingSettingsTimer; 196 Timer<Settings> m_setImageLoadingSettingsTimer;
201 void imageLoadingSettingsTimerFired(Timer<Settings>*); 197 void imageLoadingSettingsTimerFired(Timer<Settings>*);
202 198
203 static bool gMockScrollbarsEnabled; 199 static bool gMockScrollbarsEnabled;
204 static bool gUsesOverlayScrollbars; 200 static bool gUsesOverlayScrollbars;
205 }; 201 };
206 202
207 } // namespace WebCore 203 } // namespace WebCore
208 204
209 #endif // Settings_h 205 #endif // Settings_h
OLDNEW
« no previous file with comments | « Source/core/page/RuntimeEnabledFeatures.in ('k') | Source/core/page/Settings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698