| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 } | 305 } |
| 306 | 306 |
| 307 void WebRuntimeFeatures::enableWebFontsInterventionTrigger(bool enable) { | 307 void WebRuntimeFeatures::enableWebFontsInterventionTrigger(bool enable) { |
| 308 RuntimeEnabledFeatures::setWebFontsInterventionTriggerEnabled(enable); | 308 RuntimeEnabledFeatures::setWebFontsInterventionTriggerEnabled(enable); |
| 309 } | 309 } |
| 310 | 310 |
| 311 void WebRuntimeFeatures::enableRenderingPipelineThrottling(bool enable) { | 311 void WebRuntimeFeatures::enableRenderingPipelineThrottling(bool enable) { |
| 312 RuntimeEnabledFeatures::setRenderingPipelineThrottlingEnabled(enable); | 312 RuntimeEnabledFeatures::setRenderingPipelineThrottlingEnabled(enable); |
| 313 } | 313 } |
| 314 | 314 |
| 315 void WebRuntimeFeatures::enableExpensiveBackgroundTimerThrottling(bool enable) { | |
| 316 RuntimeEnabledFeatures::setExpensiveBackgroundTimerThrottlingEnabled(enable); | |
| 317 } | |
| 318 | |
| 319 void WebRuntimeFeatures::enableRootLayerScrolling(bool enable) { | 315 void WebRuntimeFeatures::enableRootLayerScrolling(bool enable) { |
| 320 RuntimeEnabledFeatures::setRootLayerScrollingEnabled(enable); | 316 RuntimeEnabledFeatures::setRootLayerScrollingEnabled(enable); |
| 321 } | 317 } |
| 322 | 318 |
| 323 void WebRuntimeFeatures::enableScrollAnchoring(bool enable) { | 319 void WebRuntimeFeatures::enableScrollAnchoring(bool enable) { |
| 324 RuntimeEnabledFeatures::setScrollAnchoringEnabled(enable); | 320 RuntimeEnabledFeatures::setScrollAnchoringEnabled(enable); |
| 325 } | 321 } |
| 326 | 322 |
| 327 void WebRuntimeFeatures::enableAutoplayMutedVideos(bool enable) { | 323 void WebRuntimeFeatures::enableAutoplayMutedVideos(bool enable) { |
| 328 RuntimeEnabledFeatures::setAutoplayMutedVideosEnabled(enable); | 324 RuntimeEnabledFeatures::setAutoplayMutedVideosEnabled(enable); |
| 329 } | 325 } |
| 330 | 326 |
| 331 void WebRuntimeFeatures::enableTimerThrottlingForBackgroundTabs(bool enable) { | 327 void WebRuntimeFeatures::enableTimerThrottlingForBackgroundTabs(bool enable) { |
| 332 RuntimeEnabledFeatures::setTimerThrottlingForBackgroundTabsEnabled(enable); | 328 RuntimeEnabledFeatures::setTimerThrottlingForBackgroundTabsEnabled(enable); |
| 333 } | 329 } |
| 334 | 330 |
| 335 void WebRuntimeFeatures::enableTimerThrottlingForHiddenFrames(bool enable) { | 331 void WebRuntimeFeatures::enableTimerThrottlingForHiddenFrames(bool enable) { |
| 336 RuntimeEnabledFeatures::setTimerThrottlingForHiddenFramesEnabled(enable); | 332 RuntimeEnabledFeatures::setTimerThrottlingForHiddenFramesEnabled(enable); |
| 337 } | 333 } |
| 338 | 334 |
| 339 void WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType( | 335 void WebRuntimeFeatures::enableSendBeaconThrowForBlobWithNonSimpleType( |
| 340 bool enable) { | 336 bool enable) { |
| 341 RuntimeEnabledFeatures::setSendBeaconThrowForBlobWithNonSimpleTypeEnabled( | 337 RuntimeEnabledFeatures::setSendBeaconThrowForBlobWithNonSimpleTypeEnabled( |
| 342 enable); | 338 enable); |
| 343 } | 339 } |
| 344 | 340 |
| 345 } // namespace blink | 341 } // namespace blink |
| OLD | NEW |