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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
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_showPaintRects(false) | 52 , m_showPaintRects(false) |
53 , m_renderVSyncNotificationEnabled(false) | 53 , m_renderVSyncNotificationEnabled(false) |
54 , m_viewportEnabled(false) | 54 , m_viewportEnabled(false) |
55 , m_initializeAtMinimumPageScale(true) | 55 , m_initializeAtMinimumPageScale(true) |
| 56 , m_useWideViewport(true) |
56 , m_gestureTapHighlightEnabled(true) | 57 , m_gestureTapHighlightEnabled(true) |
57 , m_autoZoomFocusedNodeToLegibleScale(false) | 58 , m_autoZoomFocusedNodeToLegibleScale(false) |
58 , m_deferredImageDecodingEnabled(false) | 59 , m_deferredImageDecodingEnabled(false) |
59 , m_doubleTapToZoomEnabled(false) | 60 , m_doubleTapToZoomEnabled(false) |
60 , m_supportDeprecatedTargetDensityDPI(false) | 61 , m_supportDeprecatedTargetDensityDPI(false) |
61 { | 62 { |
62 ASSERT(settings); | 63 ASSERT(settings); |
63 } | 64 } |
64 | 65 |
65 void WebSettingsImpl::setStandardFontFamily(const WebString& font, UScriptCode s
cript) | 66 void WebSettingsImpl::setStandardFontFamily(const WebString& font, UScriptCode s
cript) |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 void WebSettingsImpl::setAuthorAndUserStylesEnabled(bool enabled) | 251 void WebSettingsImpl::setAuthorAndUserStylesEnabled(bool enabled) |
251 { | 252 { |
252 m_settings->setAuthorAndUserStylesEnabled(enabled); | 253 m_settings->setAuthorAndUserStylesEnabled(enabled); |
253 } | 254 } |
254 | 255 |
255 void WebSettingsImpl::setUsesPageCache(bool usesPageCache) | 256 void WebSettingsImpl::setUsesPageCache(bool usesPageCache) |
256 { | 257 { |
257 m_settings->setUsesPageCache(usesPageCache); | 258 m_settings->setUsesPageCache(usesPageCache); |
258 } | 259 } |
259 | 260 |
| 261 void WebSettingsImpl::setUseWideViewport(bool useWideViewport) |
| 262 { |
| 263 m_useWideViewport = useWideViewport; |
| 264 } |
| 265 |
260 void WebSettingsImpl::setPageCacheSupportsPlugins(bool pageCacheSupportsPlugins) | 266 void WebSettingsImpl::setPageCacheSupportsPlugins(bool pageCacheSupportsPlugins) |
261 { | 267 { |
262 m_settings->setPageCacheSupportsPlugins(pageCacheSupportsPlugins); | 268 m_settings->setPageCacheSupportsPlugins(pageCacheSupportsPlugins); |
263 } | 269 } |
264 | 270 |
265 void WebSettingsImpl::setDoubleTapToZoomEnabled(bool doubleTapToZoomEnabled) | 271 void WebSettingsImpl::setDoubleTapToZoomEnabled(bool doubleTapToZoomEnabled) |
266 { | 272 { |
267 m_doubleTapToZoomEnabled = doubleTapToZoomEnabled; | 273 m_doubleTapToZoomEnabled = doubleTapToZoomEnabled; |
268 } | 274 } |
269 | 275 |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 { | 690 { |
685 m_settings->setSelectionIncludesAltImageText(enabled); | 691 m_settings->setSelectionIncludesAltImageText(enabled); |
686 } | 692 } |
687 | 693 |
688 void WebSettingsImpl::setSmartInsertDeleteEnabled(bool enabled) | 694 void WebSettingsImpl::setSmartInsertDeleteEnabled(bool enabled) |
689 { | 695 { |
690 m_settings->setSmartInsertDeleteEnabled(enabled); | 696 m_settings->setSmartInsertDeleteEnabled(enabled); |
691 } | 697 } |
692 | 698 |
693 } // namespace WebKit | 699 } // namespace WebKit |
OLD | NEW |