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

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

Issue 14987004: Switching CSS Variables over to RuntimeEnabledFeatures (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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