| 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 27 matching lines...) Expand all Loading... |
| 38 #include "public/platform/WebURL.h" | 38 #include "public/platform/WebURL.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 WebSettingsImpl::WebSettingsImpl(Settings* settings) | 42 WebSettingsImpl::WebSettingsImpl(Settings* settings) |
| 43 : m_settings(settings) | 43 : m_settings(settings) |
| 44 , m_showFPSCounter(false) | 44 , m_showFPSCounter(false) |
| 45 , m_showPaintRects(false) | 45 , m_showPaintRects(false) |
| 46 , m_renderVSyncNotificationEnabled(false) | 46 , m_renderVSyncNotificationEnabled(false) |
| 47 , m_deferredImageDecodingEnabled(false) | 47 , m_deferredImageDecodingEnabled(false) |
| 48 , m_doubleTapToZoomEnabled(false) | |
| 49 , m_supportDeprecatedTargetDensityDPI(false) | 48 , m_supportDeprecatedTargetDensityDPI(false) |
| 50 , m_shrinksViewportContentToFit(false) | 49 , m_shrinksViewportContentToFit(false) |
| 51 , m_mainFrameResizesAreOrientationChanges(false) | 50 , m_mainFrameResizesAreOrientationChanges(false) |
| 52 { | 51 { |
| 53 ASSERT(settings); | 52 ASSERT(settings); |
| 54 } | 53 } |
| 55 | 54 |
| 56 void WebSettingsImpl::setStandardFontFamily(const WebString& font, UScriptCode s
cript) | 55 void WebSettingsImpl::setStandardFontFamily(const WebString& font, UScriptCode s
cript) |
| 57 { | 56 { |
| 58 if (m_settings->genericFontFamilySettings().updateStandard(font, script)) | 57 if (m_settings->genericFontFamilySettings().updateStandard(font, script)) |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 void WebSettingsImpl::setShrinksViewportContentToFit(bool shrinkViewportContent) | 187 void WebSettingsImpl::setShrinksViewportContentToFit(bool shrinkViewportContent) |
| 189 { | 188 { |
| 190 m_shrinksViewportContentToFit = shrinkViewportContent; | 189 m_shrinksViewportContentToFit = shrinkViewportContent; |
| 191 } | 190 } |
| 192 | 191 |
| 193 void WebSettingsImpl::setUseWideViewport(bool useWideViewport) | 192 void WebSettingsImpl::setUseWideViewport(bool useWideViewport) |
| 194 { | 193 { |
| 195 m_settings->setUseWideViewport(useWideViewport); | 194 m_settings->setUseWideViewport(useWideViewport); |
| 196 } | 195 } |
| 197 | 196 |
| 198 void WebSettingsImpl::setDoubleTapToZoomEnabled(bool doubleTapToZoomEnabled) | |
| 199 { | |
| 200 m_doubleTapToZoomEnabled = doubleTapToZoomEnabled; | |
| 201 } | |
| 202 | |
| 203 void WebSettingsImpl::setDownloadableBinaryFontsEnabled(bool enabled) | 197 void WebSettingsImpl::setDownloadableBinaryFontsEnabled(bool enabled) |
| 204 { | 198 { |
| 205 m_settings->setDownloadableBinaryFontsEnabled(enabled); | 199 m_settings->setDownloadableBinaryFontsEnabled(enabled); |
| 206 } | 200 } |
| 207 | 201 |
| 208 void WebSettingsImpl::setJavaScriptCanAccessClipboard(bool enabled) | 202 void WebSettingsImpl::setJavaScriptCanAccessClipboard(bool enabled) |
| 209 { | 203 { |
| 210 m_settings->setJavaScriptCanAccessClipboard(enabled); | 204 m_settings->setJavaScriptCanAccessClipboard(enabled); |
| 211 } | 205 } |
| 212 | 206 |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 { | 387 { |
| 394 m_mainFrameResizesAreOrientationChanges = enabled; | 388 m_mainFrameResizesAreOrientationChanges = enabled; |
| 395 } | 389 } |
| 396 | 390 |
| 397 void WebSettingsImpl::setV8CacheOptions(V8CacheOptions options) | 391 void WebSettingsImpl::setV8CacheOptions(V8CacheOptions options) |
| 398 { | 392 { |
| 399 m_settings->setV8CacheOptions(static_cast<blink::V8CacheOptions>(options)); | 393 m_settings->setV8CacheOptions(static_cast<blink::V8CacheOptions>(options)); |
| 400 } | 394 } |
| 401 | 395 |
| 402 } // namespace blink | 396 } // namespace blink |
| OLD | NEW |