OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2007, 2008 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 void setAuthorAndUserStylesEnabled(bool); | 147 void setAuthorAndUserStylesEnabled(bool); |
148 bool authorAndUserStylesEnabled() const { return m_authorAndUserStylesEn
abled; } | 148 bool authorAndUserStylesEnabled() const { return m_authorAndUserStylesEn
abled; } |
149 | 149 |
150 void setFontRenderingMode(FontRenderingMode mode); | 150 void setFontRenderingMode(FontRenderingMode mode); |
151 FontRenderingMode fontRenderingMode() const; | 151 FontRenderingMode fontRenderingMode() const; |
152 | 152 |
153 void setNeedsSiteSpecificQuirks(bool); | 153 void setNeedsSiteSpecificQuirks(bool); |
154 bool needsSiteSpecificQuirks() const { return m_needsSiteSpecificQuirks;
} | 154 bool needsSiteSpecificQuirks() const { return m_needsSiteSpecificQuirks;
} |
155 | 155 |
| 156 void setAllowScriptsToCloseWindows(bool); |
| 157 bool allowScriptsToCloseWindows() const { return m_allow_scripts_to_clos
e_windows; } |
| 158 |
156 private: | 159 private: |
157 Page* m_page; | 160 Page* m_page; |
158 | 161 |
159 String m_defaultTextEncodingName; | 162 String m_defaultTextEncodingName; |
160 String m_ftpDirectoryTemplatePath; | 163 String m_ftpDirectoryTemplatePath; |
161 KURL m_userStyleSheetLocation; | 164 KURL m_userStyleSheetLocation; |
162 AtomicString m_standardFontFamily; | 165 AtomicString m_standardFontFamily; |
163 AtomicString m_fixedFontFamily; | 166 AtomicString m_fixedFontFamily; |
164 AtomicString m_serifFontFamily; | 167 AtomicString m_serifFontFamily; |
165 AtomicString m_sansSerifFontFamily; | 168 AtomicString m_sansSerifFontFamily; |
(...skipping 18 matching lines...) Expand all Loading... |
184 bool m_isDOMPasteAllowed : 1; | 187 bool m_isDOMPasteAllowed : 1; |
185 bool m_shrinksStandaloneImagesToFit : 1; | 188 bool m_shrinksStandaloneImagesToFit : 1; |
186 bool m_usesPageCache: 1; | 189 bool m_usesPageCache: 1; |
187 bool m_showsURLsInToolTips : 1; | 190 bool m_showsURLsInToolTips : 1; |
188 bool m_forceFTPDirectoryListings : 1; | 191 bool m_forceFTPDirectoryListings : 1; |
189 bool m_developerExtrasEnabled : 1; | 192 bool m_developerExtrasEnabled : 1; |
190 bool m_authorAndUserStylesEnabled : 1; | 193 bool m_authorAndUserStylesEnabled : 1; |
191 bool m_needsSiteSpecificQuirks : 1; | 194 bool m_needsSiteSpecificQuirks : 1; |
192 unsigned m_fontRenderingMode : 1; | 195 unsigned m_fontRenderingMode : 1; |
193 bool m_usesEncodingDetector : 1; | 196 bool m_usesEncodingDetector : 1; |
| 197 bool m_allow_scripts_to_close_windows : 1; |
194 }; | 198 }; |
195 | 199 |
196 } // namespace WebCore | 200 } // namespace WebCore |
197 | 201 |
198 #endif // Settings_h | 202 #endif // Settings_h |
OLD | NEW |