| 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 30 matching lines...) Expand all Loading... |
| 41 using namespace WebCore; | 41 using namespace WebCore; |
| 42 | 42 |
| 43 namespace blink { | 43 namespace blink { |
| 44 | 44 |
| 45 WebSettingsImpl::WebSettingsImpl(Settings* settings, InspectorController* inspec
torController) | 45 WebSettingsImpl::WebSettingsImpl(Settings* settings, InspectorController* inspec
torController) |
| 46 : m_settings(settings) | 46 : m_settings(settings) |
| 47 , m_inspectorController(inspectorController) | 47 , m_inspectorController(inspectorController) |
| 48 , m_showFPSCounter(false) | 48 , m_showFPSCounter(false) |
| 49 , m_showPaintRects(false) | 49 , m_showPaintRects(false) |
| 50 , m_renderVSyncNotificationEnabled(false) | 50 , m_renderVSyncNotificationEnabled(false) |
| 51 , m_gestureTapHighlightEnabled(true) | |
| 52 , m_autoZoomFocusedNodeToLegibleScale(false) | 51 , m_autoZoomFocusedNodeToLegibleScale(false) |
| 53 , m_deferredImageDecodingEnabled(false) | 52 , m_deferredImageDecodingEnabled(false) |
| 54 , m_doubleTapToZoomEnabled(false) | 53 , m_doubleTapToZoomEnabled(false) |
| 55 , m_supportDeprecatedTargetDensityDPI(false) | 54 , m_supportDeprecatedTargetDensityDPI(false) |
| 56 , m_shrinksViewportContentToFit(false) | 55 , m_shrinksViewportContentToFit(false) |
| 57 , m_useExpandedHeuristicsForGpuRasterization(false) | 56 , m_useExpandedHeuristicsForGpuRasterization(false) |
| 58 , m_viewportMetaLayoutSizeQuirk(false) | 57 , m_viewportMetaLayoutSizeQuirk(false) |
| 59 , m_viewportMetaNonUserScalableQuirk(false) | 58 , m_viewportMetaNonUserScalableQuirk(false) |
| 60 , m_clobberUserAgentInitialScaleQuirk(false) | 59 , m_clobberUserAgentInitialScaleQuirk(false) |
| 61 , m_mainFrameResizesAreOrientationChanges(false) | 60 , m_mainFrameResizesAreOrientationChanges(false) |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 650 void WebSettingsImpl::setCookieEnabled(bool enabled) | 649 void WebSettingsImpl::setCookieEnabled(bool enabled) |
| 651 { | 650 { |
| 652 m_settings->setCookieEnabled(enabled); | 651 m_settings->setCookieEnabled(enabled); |
| 653 } | 652 } |
| 654 | 653 |
| 655 void WebSettingsImpl::setNavigateOnDragDrop(bool enabled) | 654 void WebSettingsImpl::setNavigateOnDragDrop(bool enabled) |
| 656 { | 655 { |
| 657 m_settings->setNavigateOnDragDrop(enabled); | 656 m_settings->setNavigateOnDragDrop(enabled); |
| 658 } | 657 } |
| 659 | 658 |
| 660 void WebSettingsImpl::setGestureTapHighlightEnabled(bool enableHighlight) | |
| 661 { | |
| 662 m_gestureTapHighlightEnabled = enableHighlight; | |
| 663 } | |
| 664 | |
| 665 void WebSettingsImpl::setAllowCustomScrollbarInMainFrame(bool enabled) | 659 void WebSettingsImpl::setAllowCustomScrollbarInMainFrame(bool enabled) |
| 666 { | 660 { |
| 667 m_settings->setAllowCustomScrollbarInMainFrame(enabled); | 661 m_settings->setAllowCustomScrollbarInMainFrame(enabled); |
| 668 } | 662 } |
| 669 | 663 |
| 670 void WebSettingsImpl::setCompositedScrollingForFramesEnabled(bool enabled) | 664 void WebSettingsImpl::setCompositedScrollingForFramesEnabled(bool enabled) |
| 671 { | 665 { |
| 672 m_settings->setCompositedScrollingForFramesEnabled(enabled); | 666 m_settings->setCompositedScrollingForFramesEnabled(enabled); |
| 673 } | 667 } |
| 674 | 668 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 { | 705 { |
| 712 m_mainFrameResizesAreOrientationChanges = enabled; | 706 m_mainFrameResizesAreOrientationChanges = enabled; |
| 713 } | 707 } |
| 714 | 708 |
| 715 void WebSettingsImpl::setDisallowFullscreenForNonMediaElements(bool enabled) | 709 void WebSettingsImpl::setDisallowFullscreenForNonMediaElements(bool enabled) |
| 716 { | 710 { |
| 717 m_disallowFullscreenForNonMediaElements = enabled; | 711 m_disallowFullscreenForNonMediaElements = enabled; |
| 718 } | 712 } |
| 719 | 713 |
| 720 } // namespace blink | 714 } // namespace blink |
| OLD | NEW |