| OLD | NEW |
| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 : m_settings(settings), | 45 : m_settings(settings), |
| 46 m_devToolsEmulator(devToolsEmulator), | 46 m_devToolsEmulator(devToolsEmulator), |
| 47 m_showFPSCounter(false), | 47 m_showFPSCounter(false), |
| 48 m_showPaintRects(false), | 48 m_showPaintRects(false), |
| 49 m_renderVSyncNotificationEnabled(false), | 49 m_renderVSyncNotificationEnabled(false), |
| 50 m_autoZoomFocusedNodeToLegibleScale(false), | 50 m_autoZoomFocusedNodeToLegibleScale(false), |
| 51 m_supportDeprecatedTargetDensityDPI(false), | 51 m_supportDeprecatedTargetDensityDPI(false), |
| 52 m_shrinksViewportContentToFit(false), | 52 m_shrinksViewportContentToFit(false), |
| 53 m_viewportMetaLayoutSizeQuirk(false), | 53 m_viewportMetaLayoutSizeQuirk(false), |
| 54 m_viewportMetaNonUserScalableQuirk(false), | 54 m_viewportMetaNonUserScalableQuirk(false), |
| 55 m_clobberUserAgentInitialScaleQuirk(false) { | 55 m_clobberUserAgentInitialScaleQuirk(false), |
| 56 m_expensiveBackgroundThrottlingCPUBudget(-1), |
| 57 m_expensiveBackgroundThrottlingMaxDelay(-1) { |
| 56 DCHECK(settings); | 58 DCHECK(settings); |
| 57 } | 59 } |
| 58 | 60 |
| 59 void WebSettingsImpl::setFromStrings(const WebString& name, | 61 void WebSettingsImpl::setFromStrings(const WebString& name, |
| 60 const WebString& value) { | 62 const WebString& value) { |
| 61 m_settings->setFromStrings(name, value); | 63 m_settings->setFromStrings(name, value); |
| 62 } | 64 } |
| 63 | 65 |
| 64 void WebSettingsImpl::setStandardFontFamily(const WebString& font, | 66 void WebSettingsImpl::setStandardFontFamily(const WebString& font, |
| 65 UScriptCode script) { | 67 UScriptCode script) { |
| (...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 void WebSettingsImpl::setV8CacheStrategiesForCacheStorage( | 686 void WebSettingsImpl::setV8CacheStrategiesForCacheStorage( |
| 685 V8CacheStrategiesForCacheStorage strategies) { | 687 V8CacheStrategiesForCacheStorage strategies) { |
| 686 m_settings->setV8CacheStrategiesForCacheStorage( | 688 m_settings->setV8CacheStrategiesForCacheStorage( |
| 687 static_cast<blink::V8CacheStrategiesForCacheStorage>(strategies)); | 689 static_cast<blink::V8CacheStrategiesForCacheStorage>(strategies)); |
| 688 } | 690 } |
| 689 | 691 |
| 690 void WebSettingsImpl::setViewportStyle(WebViewportStyle style) { | 692 void WebSettingsImpl::setViewportStyle(WebViewportStyle style) { |
| 691 m_devToolsEmulator->setViewportStyle(style); | 693 m_devToolsEmulator->setViewportStyle(style); |
| 692 } | 694 } |
| 693 | 695 |
| 696 void WebSettingsImpl::setExpensiveBackgroundThrottlingCPUBudget( |
| 697 float cpuBudget) { |
| 698 m_expensiveBackgroundThrottlingCPUBudget = cpuBudget; |
| 699 } |
| 700 |
| 701 void WebSettingsImpl::setExpensiveBackgroundThrottlingInitialBudget( |
| 702 float initialBudget) { |
| 703 m_expensiveBackgroundThrottlingInitialBudget = initialBudget; |
| 704 } |
| 705 |
| 706 void WebSettingsImpl::setExpensiveBackgroundThrottlingMaxBudget( |
| 707 float maxBudget) { |
| 708 m_expensiveBackgroundThrottlingMaxBudget = maxBudget; |
| 709 } |
| 710 |
| 711 void WebSettingsImpl::setExpensiveBackgroundThrottlingMaxDelay(float maxDelay) { |
| 712 m_expensiveBackgroundThrottlingMaxDelay = maxDelay; |
| 713 } |
| 714 |
| 694 } // namespace blink | 715 } // namespace blink |
| OLD | NEW |