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

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

Issue 14813025: Refactor viewport initialization logic out of WebViewImpl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix webkit_unit_tests 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/PageScaleConstraintsSet.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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 void setTextAutosizingEnabled(bool); 90 void setTextAutosizingEnabled(bool);
91 bool textAutosizingEnabled() const { return m_textAutosizingEnabled; } 91 bool textAutosizingEnabled() const { return m_textAutosizingEnabled; }
92 92
93 void setTextAutosizingFontScaleFactor(float); 93 void setTextAutosizingFontScaleFactor(float);
94 float textAutosizingFontScaleFactor() const { return m_textAutosizingFontSca leFactor; } 94 float textAutosizingFontScaleFactor() const { return m_textAutosizingFontSca leFactor; }
95 95
96 // Only set by Layout Tests, and only used if textAutosizingEnabled() return s true. 96 // Only set by Layout Tests, and only used if textAutosizingEnabled() return s true.
97 void setTextAutosizingWindowSizeOverride(const IntSize&); 97 void setTextAutosizingWindowSizeOverride(const IntSize&);
98 const IntSize& textAutosizingWindowSizeOverride() const { return m_textAutos izingWindowSizeOverride; } 98 const IntSize& textAutosizingWindowSizeOverride() const { return m_textAutos izingWindowSizeOverride; }
99 99
100 void setUseWideViewport(bool);
101 bool useWideViewport() const { return m_useWideViewport; }
102
103 void setLoadWithOverviewMode(bool);
104 bool loadWithOverviewMode() const { return m_loadWithOverviewMode; }
105
100 // Only set by Layout Tests. 106 // Only set by Layout Tests.
101 void setMediaTypeOverride(const String&); 107 void setMediaTypeOverride(const String&);
102 const String& mediaTypeOverride() const { return m_mediaTypeOverride; } 108 const String& mediaTypeOverride() const { return m_mediaTypeOverride; }
103 109
104 // Unlike areImagesEnabled, this only suppresses the network load of 110 // Unlike areImagesEnabled, this only suppresses the network load of
105 // the image URL. A cached image will still be rendered if requested. 111 // the image URL. A cached image will still be rendered if requested.
106 void setLoadsImagesAutomatically(bool); 112 void setLoadsImagesAutomatically(bool);
107 bool loadsImagesAutomatically() const { return m_loadsImagesAutomatically; } 113 bool loadsImagesAutomatically() const { return m_loadsImagesAutomatically; }
108 114
109 // Clients that execute script should call ScriptController::canExecuteScrip ts() 115 // Clients that execute script should call ScriptController::canExecuteScrip ts()
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 ScriptFontFamilyMap m_standardFontFamilyMap; 171 ScriptFontFamilyMap m_standardFontFamilyMap;
166 ScriptFontFamilyMap m_serifFontFamilyMap; 172 ScriptFontFamilyMap m_serifFontFamilyMap;
167 ScriptFontFamilyMap m_fixedFontFamilyMap; 173 ScriptFontFamilyMap m_fixedFontFamilyMap;
168 ScriptFontFamilyMap m_sansSerifFontFamilyMap; 174 ScriptFontFamilyMap m_sansSerifFontFamilyMap;
169 ScriptFontFamilyMap m_cursiveFontFamilyMap; 175 ScriptFontFamilyMap m_cursiveFontFamilyMap;
170 ScriptFontFamilyMap m_fantasyFontFamilyMap; 176 ScriptFontFamilyMap m_fantasyFontFamilyMap;
171 ScriptFontFamilyMap m_pictographFontFamilyMap; 177 ScriptFontFamilyMap m_pictographFontFamilyMap;
172 float m_textAutosizingFontScaleFactor; 178 float m_textAutosizingFontScaleFactor;
173 IntSize m_textAutosizingWindowSizeOverride; 179 IntSize m_textAutosizingWindowSizeOverride;
174 bool m_textAutosizingEnabled : 1; 180 bool m_textAutosizingEnabled : 1;
181 bool m_useWideViewport : 1;
mnaganov (inactive) 2013/05/24 09:26:38 You should also add them into Settings.in to get t
mnaganov (inactive) 2013/05/24 09:29:26 Ah, sorry. In your case, you should list them in t
182 bool m_loadWithOverviewMode : 1;
175 183
176 SETTINGS_MEMBER_VARIABLES 184 SETTINGS_MEMBER_VARIABLES
177 185
178 bool m_isJavaEnabled : 1; 186 bool m_isJavaEnabled : 1;
179 bool m_loadsImagesAutomatically : 1; 187 bool m_loadsImagesAutomatically : 1;
180 bool m_areImagesEnabled : 1; 188 bool m_areImagesEnabled : 1;
181 bool m_arePluginsEnabled : 1; 189 bool m_arePluginsEnabled : 1;
182 bool m_isScriptEnabled : 1; 190 bool m_isScriptEnabled : 1;
183 unsigned m_fontRenderingMode : 1; 191 unsigned m_fontRenderingMode : 1;
184 bool m_isCSSCustomFilterEnabled : 1; 192 bool m_isCSSCustomFilterEnabled : 1;
185 bool m_cssStickyPositionEnabled : 1; 193 bool m_cssStickyPositionEnabled : 1;
186 bool m_cssVariablesEnabled : 1; 194 bool m_cssVariablesEnabled : 1;
187 bool m_dnsPrefetchingEnabled : 1; 195 bool m_dnsPrefetchingEnabled : 1;
188 196
189 bool m_touchEventEmulationEnabled : 1; 197 bool m_touchEventEmulationEnabled : 1;
190 bool m_openGLMultisamplingEnabled : 1; 198 bool m_openGLMultisamplingEnabled : 1;
191 199
192 Timer<Settings> m_setImageLoadingSettingsTimer; 200 Timer<Settings> m_setImageLoadingSettingsTimer;
193 void imageLoadingSettingsTimerFired(Timer<Settings>*); 201 void imageLoadingSettingsTimerFired(Timer<Settings>*);
194 202
195 static bool gMockScrollbarsEnabled; 203 static bool gMockScrollbarsEnabled;
196 static bool gUsesOverlayScrollbars; 204 static bool gUsesOverlayScrollbars;
197 }; 205 };
198 206
199 } // namespace WebCore 207 } // namespace WebCore
200 208
201 #endif // Settings_h 209 #endif // Settings_h
OLDNEW
« no previous file with comments | « Source/core/page/PageScaleConstraintsSet.cpp ('k') | Source/core/page/Settings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698