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

Side by Side Diff: third_party/WebKit/Source/web/WebSettingsImpl.h

Issue 2471153002: [scheduler] Use Finch to control background throttling. (Closed)
Patch Set: Fix test and address comments Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 void setViewportEnabled(bool) override; 196 void setViewportEnabled(bool) override;
197 void setViewportMetaEnabled(bool) override; 197 void setViewportMetaEnabled(bool) override;
198 void setViewportMetaLayoutSizeQuirk(bool) override; 198 void setViewportMetaLayoutSizeQuirk(bool) override;
199 void setViewportMetaMergeContentQuirk(bool) override; 199 void setViewportMetaMergeContentQuirk(bool) override;
200 void setViewportMetaNonUserScalableQuirk(bool) override; 200 void setViewportMetaNonUserScalableQuirk(bool) override;
201 void setViewportMetaZeroValuesQuirk(bool) override; 201 void setViewportMetaZeroValuesQuirk(bool) override;
202 void setWebGLErrorsToConsoleEnabled(bool) override; 202 void setWebGLErrorsToConsoleEnabled(bool) override;
203 void setWebSecurityEnabled(bool) override; 203 void setWebSecurityEnabled(bool) override;
204 void setWideViewportQuirkEnabled(bool) override; 204 void setWideViewportQuirkEnabled(bool) override;
205 void setXSSAuditorEnabled(bool) override; 205 void setXSSAuditorEnabled(bool) override;
206 void setExpensiveBackgroundThrottlingCPUBudget(float) override;
207 void setExpensiveBackgroundThrottlingInitialBudget(float) override;
208 void setExpensiveBackgroundThrottlingMaxBudget(float) override;
209 void setExpensiveBackgroundThrottlingMaxDelay(float) override;
206 210
207 bool showFPSCounter() const { return m_showFPSCounter; } 211 bool showFPSCounter() const { return m_showFPSCounter; }
208 bool showPaintRects() const { return m_showPaintRects; } 212 bool showPaintRects() const { return m_showPaintRects; }
209 bool renderVSyncNotificationEnabled() const { 213 bool renderVSyncNotificationEnabled() const {
210 return m_renderVSyncNotificationEnabled; 214 return m_renderVSyncNotificationEnabled;
211 } 215 }
212 bool autoZoomFocusedNodeToLegibleScale() const { 216 bool autoZoomFocusedNodeToLegibleScale() const {
213 return m_autoZoomFocusedNodeToLegibleScale; 217 return m_autoZoomFocusedNodeToLegibleScale;
214 } 218 }
215 bool doubleTapToZoomEnabled() const; 219 bool doubleTapToZoomEnabled() const;
216 bool perTilePaintingEnabled() const { return m_perTilePaintingEnabled; } 220 bool perTilePaintingEnabled() const { return m_perTilePaintingEnabled; }
217 bool supportDeprecatedTargetDensityDPI() const { 221 bool supportDeprecatedTargetDensityDPI() const {
218 return m_supportDeprecatedTargetDensityDPI; 222 return m_supportDeprecatedTargetDensityDPI;
219 } 223 }
220 bool viewportMetaEnabled() const; 224 bool viewportMetaEnabled() const;
221 bool viewportMetaLayoutSizeQuirk() const { 225 bool viewportMetaLayoutSizeQuirk() const {
222 return m_viewportMetaLayoutSizeQuirk; 226 return m_viewportMetaLayoutSizeQuirk;
223 } 227 }
224 bool viewportMetaNonUserScalableQuirk() const { 228 bool viewportMetaNonUserScalableQuirk() const {
225 return m_viewportMetaNonUserScalableQuirk; 229 return m_viewportMetaNonUserScalableQuirk;
226 } 230 }
227 bool clobberUserAgentInitialScaleQuirk() const { 231 bool clobberUserAgentInitialScaleQuirk() const {
228 return m_clobberUserAgentInitialScaleQuirk; 232 return m_clobberUserAgentInitialScaleQuirk;
229 } 233 }
234 float expensiveBackgroundThrottlingCPUBudget() const {
235 return m_expensiveBackgroundThrottlingCPUBudget;
236 }
237 float expensiveBackgroundThrottlingInitialBudget() const {
238 return m_expensiveBackgroundThrottlingInitialBudget;
239 }
240 float expensiveBackgroundThrottlingMaxDelay() const {
241 return m_expensiveBackgroundThrottlingMaxDelay;
242 }
243 float expensiveBackgroundThrottlingMaxBudget() const {
244 return m_expensiveBackgroundThrottlingMaxBudget;
245 }
230 246
231 void setMockGestureTapHighlightsEnabled(bool); 247 void setMockGestureTapHighlightsEnabled(bool);
232 bool mockGestureTapHighlightsEnabled() const; 248 bool mockGestureTapHighlightsEnabled() const;
233 249
234 private: 250 private:
235 Settings* m_settings; 251 Settings* m_settings;
236 UntracedMember<DevToolsEmulator> m_devToolsEmulator; 252 UntracedMember<DevToolsEmulator> m_devToolsEmulator;
237 bool m_showFPSCounter; 253 bool m_showFPSCounter;
238 bool m_showPaintRects; 254 bool m_showPaintRects;
239 bool m_renderVSyncNotificationEnabled; 255 bool m_renderVSyncNotificationEnabled;
240 bool m_autoZoomFocusedNodeToLegibleScale; 256 bool m_autoZoomFocusedNodeToLegibleScale;
241 bool m_perTilePaintingEnabled; 257 bool m_perTilePaintingEnabled;
242 bool m_supportDeprecatedTargetDensityDPI; 258 bool m_supportDeprecatedTargetDensityDPI;
243 bool m_shrinksViewportContentToFit; 259 bool m_shrinksViewportContentToFit;
244 // This quirk is to maintain compatibility with Android apps built on 260 // This quirk is to maintain compatibility with Android apps built on
245 // the Android SDK prior to and including version 18. Presumably, this 261 // the Android SDK prior to and including version 18. Presumably, this
246 // can be removed any time after 2015. See http://crbug.com/277369. 262 // can be removed any time after 2015. See http://crbug.com/277369.
247 bool m_viewportMetaLayoutSizeQuirk; 263 bool m_viewportMetaLayoutSizeQuirk;
248 // This quirk is to maintain compatibility with Android apps built on 264 // This quirk is to maintain compatibility with Android apps built on
249 // the Android SDK prior to and including version 18. Presumably, this 265 // the Android SDK prior to and including version 18. Presumably, this
250 // can be removed any time after 2015. See http://crbug.com/312691. 266 // can be removed any time after 2015. See http://crbug.com/312691.
251 bool m_viewportMetaNonUserScalableQuirk; 267 bool m_viewportMetaNonUserScalableQuirk;
252 // This quirk is to maintain compatibility with Android apps built on 268 // This quirk is to maintain compatibility with Android apps built on
253 // the Android SDK prior to and including version 18. Presumably, this 269 // the Android SDK prior to and including version 18. Presumably, this
254 // can be removed any time after 2015. See http://crbug.com/313754. 270 // can be removed any time after 2015. See http://crbug.com/313754.
255 bool m_clobberUserAgentInitialScaleQuirk; 271 bool m_clobberUserAgentInitialScaleQuirk;
272 float m_expensiveBackgroundThrottlingCPUBudget;
273 float m_expensiveBackgroundThrottlingInitialBudget;
274 float m_expensiveBackgroundThrottlingMaxBudget;
275 float m_expensiveBackgroundThrottlingMaxDelay;
256 }; 276 };
257 277
258 } // namespace blink 278 } // namespace blink
259 279
260 #endif 280 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h ('k') | third_party/WebKit/Source/web/WebSettingsImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698