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

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

Issue 66383005: Remove the concept of user stylesheets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix WebFrameCSSCallbackTest tests Created 7 years, 1 month 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/Page.cpp ('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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 void setImagesEnabled(bool); 133 void setImagesEnabled(bool);
134 bool areImagesEnabled() const { return m_areImagesEnabled; } 134 bool areImagesEnabled() const { return m_areImagesEnabled; }
135 135
136 void setPluginsEnabled(bool); 136 void setPluginsEnabled(bool);
137 bool arePluginsEnabled() const { return m_arePluginsEnabled; } 137 bool arePluginsEnabled() const { return m_arePluginsEnabled; }
138 138
139 void setDNSPrefetchingEnabled(bool); 139 void setDNSPrefetchingEnabled(bool);
140 bool dnsPrefetchingEnabled() const { return m_dnsPrefetchingEnabled; } 140 bool dnsPrefetchingEnabled() const { return m_dnsPrefetchingEnabled; }
141 141
142 void setUserStyleSheetLocation(const KURL&);
143 const KURL& userStyleSheetLocation() const { return m_userStyleSheetLocation ; }
144
145 static void setMockScrollbarsEnabled(bool flag); 142 static void setMockScrollbarsEnabled(bool flag);
146 static bool mockScrollbarsEnabled(); 143 static bool mockScrollbarsEnabled();
147 144
148 void setTouchEventEmulationEnabled(bool enabled) { m_touchEventEmulationEnab led = enabled; } 145 void setTouchEventEmulationEnabled(bool enabled) { m_touchEventEmulationEnab led = enabled; }
149 bool isTouchEventEmulationEnabled() const { return m_touchEventEmulationEnab led; } 146 bool isTouchEventEmulationEnabled() const { return m_touchEventEmulationEnab led; }
150 147
151 void setOpenGLMultisamplingEnabled(bool flag); 148 void setOpenGLMultisamplingEnabled(bool flag);
152 bool openGLMultisamplingEnabled(); 149 bool openGLMultisamplingEnabled();
153 150
154 void setViewportEnabled(bool); 151 void setViewportEnabled(bool);
(...skipping 11 matching lines...) Expand all
166 // overflow scroll is ready (crbug.com/254111). 163 // overflow scroll is ready (crbug.com/254111).
167 void setCompositorDrivenAcceleratedScrollingEnabled(bool enabled) { m_compos itorDrivenAcceleratedScrollingEnabled = enabled; } 164 void setCompositorDrivenAcceleratedScrollingEnabled(bool enabled) { m_compos itorDrivenAcceleratedScrollingEnabled = enabled; }
168 bool isCompositorDrivenAcceleratedScrollingEnabled() const { return m_compos itorDrivenAcceleratedScrollingEnabled; } 165 bool isCompositorDrivenAcceleratedScrollingEnabled() const { return m_compos itorDrivenAcceleratedScrollingEnabled; }
169 166
170 private: 167 private:
171 explicit Settings(Page*); 168 explicit Settings(Page*);
172 169
173 Page* m_page; 170 Page* m_page;
174 171
175 String m_mediaTypeOverride; 172 String m_mediaTypeOverride;
176 KURL m_userStyleSheetLocation;
177 ScriptFontFamilyMap m_standardFontFamilyMap; 173 ScriptFontFamilyMap m_standardFontFamilyMap;
178 ScriptFontFamilyMap m_serifFontFamilyMap; 174 ScriptFontFamilyMap m_serifFontFamilyMap;
179 ScriptFontFamilyMap m_fixedFontFamilyMap; 175 ScriptFontFamilyMap m_fixedFontFamilyMap;
180 ScriptFontFamilyMap m_sansSerifFontFamilyMap; 176 ScriptFontFamilyMap m_sansSerifFontFamilyMap;
181 ScriptFontFamilyMap m_cursiveFontFamilyMap; 177 ScriptFontFamilyMap m_cursiveFontFamilyMap;
182 ScriptFontFamilyMap m_fantasyFontFamilyMap; 178 ScriptFontFamilyMap m_fantasyFontFamilyMap;
183 ScriptFontFamilyMap m_pictographFontFamilyMap; 179 ScriptFontFamilyMap m_pictographFontFamilyMap;
184 float m_textAutosizingFontScaleFactor; 180 float m_textAutosizingFontScaleFactor;
185 float m_deviceScaleAdjustment; 181 float m_deviceScaleAdjustment;
186 IntSize m_textAutosizingWindowSizeOverride; 182 IntSize m_textAutosizingWindowSizeOverride;
(...skipping 20 matching lines...) Expand all
207 bool m_compositorDrivenAcceleratedScrollingEnabled : 1; 203 bool m_compositorDrivenAcceleratedScrollingEnabled : 1;
208 204
209 Timer<Settings> m_setImageLoadingSettingsTimer; 205 Timer<Settings> m_setImageLoadingSettingsTimer;
210 void imageLoadingSettingsTimerFired(Timer<Settings>*); 206 void imageLoadingSettingsTimerFired(Timer<Settings>*);
211 void recalculateTextAutosizingMultipliers(); 207 void recalculateTextAutosizingMultipliers();
212 }; 208 };
213 209
214 } // namespace WebCore 210 } // namespace WebCore
215 211
216 #endif // Settings_h 212 #endif // Settings_h
OLDNEW
« no previous file with comments | « Source/core/page/Page.cpp ('k') | Source/core/page/Settings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698