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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 namespace WebKit { | 47 namespace WebKit { |
48 | 48 |
49 WebSettingsImpl::WebSettingsImpl(Settings* settings) | 49 WebSettingsImpl::WebSettingsImpl(Settings* settings) |
50 : m_settings(settings) | 50 : m_settings(settings) |
51 , m_showFPSCounter(false) | 51 , m_showFPSCounter(false) |
52 , m_showPlatformLayerTree(false) | 52 , m_showPlatformLayerTree(false) |
53 , m_showPaintRects(false) | 53 , m_showPaintRects(false) |
54 , m_renderVSyncEnabled(true) | 54 , m_renderVSyncEnabled(true) |
55 , m_lowLatencyRenderingEnabled(false) | 55 , m_lowLatencyRenderingEnabled(false) |
56 , m_viewportEnabled(false) | 56 , m_viewportEnabled(false) |
57 , m_applyDeviceScaleFactorInCompositor(false) | |
58 , m_gestureTapHighlightEnabled(true) | 57 , m_gestureTapHighlightEnabled(true) |
59 , m_autoZoomFocusedNodeToLegibleScale(false) | 58 , m_autoZoomFocusedNodeToLegibleScale(false) |
60 , m_deferredImageDecodingEnabled(false) | 59 , m_deferredImageDecodingEnabled(false) |
61 , m_doubleTapToZoomEnabled(false) | 60 , m_doubleTapToZoomEnabled(false) |
62 , m_defaultTileSize(WebSize(256, 256)) | 61 , m_defaultTileSize(WebSize(256, 256)) |
63 , m_maxUntiledLayerSize(WebSize(512, 512)) | 62 , m_maxUntiledLayerSize(WebSize(512, 512)) |
64 { | 63 { |
65 ASSERT(settings); | 64 ASSERT(settings); |
66 } | 65 } |
67 | 66 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 m_settings->setDeviceSupportsMouse(deviceSupportsMouse); | 134 m_settings->setDeviceSupportsMouse(deviceSupportsMouse); |
136 } | 135 } |
137 | 136 |
138 bool WebSettingsImpl::deviceSupportsTouch() | 137 bool WebSettingsImpl::deviceSupportsTouch() |
139 { | 138 { |
140 return m_settings->deviceSupportsTouch(); | 139 return m_settings->deviceSupportsTouch(); |
141 } | 140 } |
142 | 141 |
143 void WebSettingsImpl::setApplyDeviceScaleFactorInCompositor(bool applyDeviceScal
eFactorInCompositor) | 142 void WebSettingsImpl::setApplyDeviceScaleFactorInCompositor(bool applyDeviceScal
eFactorInCompositor) |
144 { | 143 { |
145 m_applyDeviceScaleFactorInCompositor = applyDeviceScaleFactorInCompositor; | 144 m_settings->setApplyDeviceScaleFactorInCompositor(applyDeviceScaleFactorInCo
mpositor); |
146 } | 145 } |
147 | 146 |
148 void WebSettingsImpl::setApplyPageScaleFactorInCompositor(bool applyPageScaleFac
torInCompositor) | 147 void WebSettingsImpl::setApplyPageScaleFactorInCompositor(bool applyPageScaleFac
torInCompositor) |
149 { | 148 { |
150 m_settings->setApplyPageScaleFactorInCompositor(applyPageScaleFactorInCompos
itor); | 149 m_settings->setApplyPageScaleFactorInCompositor(applyPageScaleFactorInCompos
itor); |
151 } | 150 } |
152 | 151 |
153 void WebSettingsImpl::setAutoZoomFocusedNodeToLegibleScale(bool autoZoomFocusedN
odeToLegibleScale) | 152 void WebSettingsImpl::setAutoZoomFocusedNodeToLegibleScale(bool autoZoomFocusedN
odeToLegibleScale) |
154 { | 153 { |
155 m_autoZoomFocusedNodeToLegibleScale = autoZoomFocusedNodeToLegibleScale; | 154 m_autoZoomFocusedNodeToLegibleScale = autoZoomFocusedNodeToLegibleScale; |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 void WebSettingsImpl::setCookieEnabled(bool enabled) | 706 void WebSettingsImpl::setCookieEnabled(bool enabled) |
708 { | 707 { |
709 m_settings->setCookieEnabled(enabled); | 708 m_settings->setCookieEnabled(enabled); |
710 } | 709 } |
711 | 710 |
712 void WebSettingsImpl::setGestureTapHighlightEnabled(bool enableHighlight) | 711 void WebSettingsImpl::setGestureTapHighlightEnabled(bool enableHighlight) |
713 { | 712 { |
714 m_gestureTapHighlightEnabled = enableHighlight; | 713 m_gestureTapHighlightEnabled = enableHighlight; |
715 } | 714 } |
716 | 715 |
| 716 bool WebSettingsImpl::applyDeviceScaleFactorInCompositor() const |
| 717 { |
| 718 return m_settings->applyDeviceScaleFactorInCompositor(); |
| 719 } |
| 720 |
717 bool WebSettingsImpl::applyPageScaleFactorInCompositor() const | 721 bool WebSettingsImpl::applyPageScaleFactorInCompositor() const |
718 { | 722 { |
719 return m_settings->applyPageScaleFactorInCompositor(); | 723 return m_settings->applyPageScaleFactorInCompositor(); |
720 } | 724 } |
721 | 725 |
722 void WebSettingsImpl::setAllowCustomScrollbarInMainFrame(bool enabled) | 726 void WebSettingsImpl::setAllowCustomScrollbarInMainFrame(bool enabled) |
723 { | 727 { |
724 m_settings->setAllowCustomScrollbarInMainFrame(enabled); | 728 m_settings->setAllowCustomScrollbarInMainFrame(enabled); |
725 } | 729 } |
726 | 730 |
727 } // namespace WebKit | 731 } // namespace WebKit |
OLD | NEW |