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

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

Issue 14089003: Remove storageBlockingPolicy (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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/WebCore/page/SecurityOrigin.cpp ('k') | Source/WebCore/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 13 matching lines...) Expand all
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27 #ifndef Settings_h 27 #ifndef Settings_h
28 #define Settings_h 28 #define Settings_h
29 29
30 #include "EditingBehaviorTypes.h" 30 #include "EditingBehaviorTypes.h"
31 #include "FontRenderingMode.h" 31 #include "FontRenderingMode.h"
32 #include "IntSize.h" 32 #include "IntSize.h"
33 #include "KURL.h" 33 #include "KURL.h"
34 #include "SecurityOrigin.h"
35 #include "SettingsMacros.h" 34 #include "SettingsMacros.h"
36 #include "Timer.h" 35 #include "Timer.h"
37 #include <wtf/HashMap.h> 36 #include <wtf/HashMap.h>
38 #include <wtf/text/AtomicString.h> 37 #include <wtf/text/AtomicString.h>
39 #include <wtf/text/AtomicStringHash.h> 38 #include <wtf/text/AtomicStringHash.h>
40 #include <wtf/unicode/Unicode.h> 39 #include <wtf/unicode/Unicode.h>
41 40
42 namespace WebCore { 41 namespace WebCore {
43 42
44 class Page; 43 class Page;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 static bool mockScrollbarsEnabled(); 178 static bool mockScrollbarsEnabled();
180 179
181 static void setUsesOverlayScrollbars(bool flag); 180 static void setUsesOverlayScrollbars(bool flag);
182 static bool usesOverlayScrollbars(); 181 static bool usesOverlayScrollbars();
183 182
184 #if ENABLE(TOUCH_EVENTS) 183 #if ENABLE(TOUCH_EVENTS)
185 void setTouchEventEmulationEnabled(bool enabled) { m_touchEventEmulation Enabled = enabled; } 184 void setTouchEventEmulationEnabled(bool enabled) { m_touchEventEmulation Enabled = enabled; }
186 bool isTouchEventEmulationEnabled() const { return m_touchEventEmulation Enabled; } 185 bool isTouchEventEmulationEnabled() const { return m_touchEventEmulation Enabled; }
187 #endif 186 #endif
188 187
189 void setStorageBlockingPolicy(SecurityOrigin::StorageBlockingPolicy);
190 SecurityOrigin::StorageBlockingPolicy storageBlockingPolicy() const { re turn m_storageBlockingPolicy; }
191
192 void setTimeWithoutMouseMovementBeforeHidingControls(double time) { m_ti meWithoutMouseMovementBeforeHidingControls = time; } 188 void setTimeWithoutMouseMovementBeforeHidingControls(double time) { m_ti meWithoutMouseMovementBeforeHidingControls = time; }
193 double timeWithoutMouseMovementBeforeHidingControls() const { return m_t imeWithoutMouseMovementBeforeHidingControls; } 189 double timeWithoutMouseMovementBeforeHidingControls() const { return m_t imeWithoutMouseMovementBeforeHidingControls; }
194 190
195 private: 191 private:
196 explicit Settings(Page*); 192 explicit Settings(Page*);
197 193
198 void initializeDefaultFontFamilies(); 194 void initializeDefaultFontFamilies();
199 195
200 Page* m_page; 196 Page* m_page;
201 197
202 String m_mediaTypeOverride; 198 String m_mediaTypeOverride;
203 KURL m_userStyleSheetLocation; 199 KURL m_userStyleSheetLocation;
204 ScriptFontFamilyMap m_standardFontFamilyMap; 200 ScriptFontFamilyMap m_standardFontFamilyMap;
205 ScriptFontFamilyMap m_serifFontFamilyMap; 201 ScriptFontFamilyMap m_serifFontFamilyMap;
206 ScriptFontFamilyMap m_fixedFontFamilyMap; 202 ScriptFontFamilyMap m_fixedFontFamilyMap;
207 ScriptFontFamilyMap m_sansSerifFontFamilyMap; 203 ScriptFontFamilyMap m_sansSerifFontFamilyMap;
208 ScriptFontFamilyMap m_cursiveFontFamilyMap; 204 ScriptFontFamilyMap m_cursiveFontFamilyMap;
209 ScriptFontFamilyMap m_fantasyFontFamilyMap; 205 ScriptFontFamilyMap m_fantasyFontFamilyMap;
210 ScriptFontFamilyMap m_pictographFontFamilyMap; 206 ScriptFontFamilyMap m_pictographFontFamilyMap;
211 SecurityOrigin::StorageBlockingPolicy m_storageBlockingPolicy;
212 float m_textAutosizingFontScaleFactor; 207 float m_textAutosizingFontScaleFactor;
213 IntSize m_textAutosizingWindowSizeOverride; 208 IntSize m_textAutosizingWindowSizeOverride;
214 bool m_textAutosizingEnabled : 1; 209 bool m_textAutosizingEnabled : 1;
215 IntSize m_resolutionDensityPerInchOverride; 210 IntSize m_resolutionDensityPerInchOverride;
216 211
217 SETTINGS_MEMBER_VARIABLES 212 SETTINGS_MEMBER_VARIABLES
218 213
219 bool m_isJavaEnabled : 1; 214 bool m_isJavaEnabled : 1;
220 bool m_loadsImagesAutomatically : 1; 215 bool m_loadsImagesAutomatically : 1;
221 bool m_areImagesEnabled : 1; 216 bool m_areImagesEnabled : 1;
(...skipping 27 matching lines...) Expand all
249 #if USE(SAFARI_THEME) 244 #if USE(SAFARI_THEME)
250 static bool gShouldPaintNativeControls; 245 static bool gShouldPaintNativeControls;
251 #endif 246 #endif
252 247
253 static double gHiddenPageDOMTimerAlignmentInterval; 248 static double gHiddenPageDOMTimerAlignmentInterval;
254 }; 249 };
255 250
256 } // namespace WebCore 251 } // namespace WebCore
257 252
258 #endif // Settings_h 253 #endif // Settings_h
OLDNEW
« no previous file with comments | « Source/WebCore/page/SecurityOrigin.cpp ('k') | Source/WebCore/page/Settings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698