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

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

Issue 14840015: Lose/restore WebGL contexts if multisampling blackist status changes at runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 153
154 static void setMockScrollbarsEnabled(bool flag); 154 static void setMockScrollbarsEnabled(bool flag);
155 static bool mockScrollbarsEnabled(); 155 static bool mockScrollbarsEnabled();
156 156
157 static void setUsesOverlayScrollbars(bool flag); 157 static void setUsesOverlayScrollbars(bool flag);
158 static bool usesOverlayScrollbars(); 158 static bool usesOverlayScrollbars();
159 159
160 void setTouchEventEmulationEnabled(bool enabled) { m_touchEventEmulation Enabled = enabled; } 160 void setTouchEventEmulationEnabled(bool enabled) { m_touchEventEmulation Enabled = enabled; }
161 bool isTouchEventEmulationEnabled() const { return m_touchEventEmulation Enabled; } 161 bool isTouchEventEmulationEnabled() const { return m_touchEventEmulation Enabled; }
162 162
163 void setOpenGLMultisamplingEnabled(bool flag);
164 bool openGLMultisamplingEnabled();
165
163 private: 166 private:
164 explicit Settings(Page*); 167 explicit Settings(Page*);
165 168
166 void initializeDefaultFontFamilies(); 169 void initializeDefaultFontFamilies();
167 170
168 Page* m_page; 171 Page* m_page;
169 172
170 String m_mediaTypeOverride; 173 String m_mediaTypeOverride;
171 KURL m_userStyleSheetLocation; 174 KURL m_userStyleSheetLocation;
172 ScriptFontFamilyMap m_standardFontFamilyMap; 175 ScriptFontFamilyMap m_standardFontFamilyMap;
(...skipping 15 matching lines...) Expand all
188 bool m_areImagesEnabled : 1; 191 bool m_areImagesEnabled : 1;
189 bool m_arePluginsEnabled : 1; 192 bool m_arePluginsEnabled : 1;
190 bool m_isScriptEnabled : 1; 193 bool m_isScriptEnabled : 1;
191 unsigned m_fontRenderingMode : 1; 194 unsigned m_fontRenderingMode : 1;
192 bool m_isCSSCustomFilterEnabled : 1; 195 bool m_isCSSCustomFilterEnabled : 1;
193 bool m_cssStickyPositionEnabled : 1; 196 bool m_cssStickyPositionEnabled : 1;
194 bool m_cssVariablesEnabled : 1; 197 bool m_cssVariablesEnabled : 1;
195 bool m_dnsPrefetchingEnabled : 1; 198 bool m_dnsPrefetchingEnabled : 1;
196 199
197 bool m_touchEventEmulationEnabled : 1; 200 bool m_touchEventEmulationEnabled : 1;
201 bool m_openGLMultisamplingEnabled : 1;
198 202
199 Timer<Settings> m_setImageLoadingSettingsTimer; 203 Timer<Settings> m_setImageLoadingSettingsTimer;
200 void imageLoadingSettingsTimerFired(Timer<Settings>*); 204 void imageLoadingSettingsTimerFired(Timer<Settings>*);
201 205
202 static bool gMockScrollbarsEnabled; 206 static bool gMockScrollbarsEnabled;
203 static bool gUsesOverlayScrollbars; 207 static bool gUsesOverlayScrollbars;
204 }; 208 };
205 209
206 } // namespace WebCore 210 } // namespace WebCore
207 211
208 #endif // Settings_h 212 #endif // Settings_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698