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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 using namespace WebCore; | 45 using namespace WebCore; |
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) | |
55 , m_gestureTapHighlightEnabled(true) | 54 , m_gestureTapHighlightEnabled(true) |
56 , m_autoZoomFocusedNodeToLegibleScale(false) | 55 , m_autoZoomFocusedNodeToLegibleScale(false) |
57 , m_deferredImageDecodingEnabled(false) | 56 , m_deferredImageDecodingEnabled(false) |
58 , m_doubleTapToZoomEnabled(false) | 57 , m_doubleTapToZoomEnabled(false) |
59 , m_supportDeprecatedTargetDensityDPI(false) | 58 , m_supportDeprecatedTargetDensityDPI(false) |
60 , m_pinchOverlayScrollbarThickness(0) | 59 , m_pinchOverlayScrollbarThickness(0) |
61 { | 60 { |
62 ASSERT(settings); | 61 ASSERT(settings); |
63 } | 62 } |
64 | 63 |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 bool WebSettingsImpl::scrollAnimatorEnabled() const | 583 bool WebSettingsImpl::scrollAnimatorEnabled() const |
585 { | 584 { |
586 return m_settings->scrollAnimatorEnabled(); | 585 return m_settings->scrollAnimatorEnabled(); |
587 } | 586 } |
588 | 587 |
589 bool WebSettingsImpl::touchEditingEnabled() const | 588 bool WebSettingsImpl::touchEditingEnabled() const |
590 { | 589 { |
591 return m_settings->touchEditingEnabled(); | 590 return m_settings->touchEditingEnabled(); |
592 } | 591 } |
593 | 592 |
| 593 bool WebSettingsImpl::viewportEnabled() const |
| 594 { |
| 595 return m_settings->viewportEnabled(); |
| 596 } |
| 597 |
594 void WebSettingsImpl::setVisualWordMovementEnabled(bool enabled) | 598 void WebSettingsImpl::setVisualWordMovementEnabled(bool enabled) |
595 { | 599 { |
596 m_settings->setVisualWordMovementEnabled(enabled); | 600 m_settings->setVisualWordMovementEnabled(enabled); |
597 } | 601 } |
598 | 602 |
599 void WebSettingsImpl::setShouldDisplaySubtitles(bool enabled) | 603 void WebSettingsImpl::setShouldDisplaySubtitles(bool enabled) |
600 { | 604 { |
601 m_settings->setShouldDisplaySubtitles(enabled); | 605 m_settings->setShouldDisplaySubtitles(enabled); |
602 } | 606 } |
603 | 607 |
(...skipping 17 matching lines...) Expand all Loading... |
621 m_settings->setMediaPlaybackRequiresUserGesture(required); | 625 m_settings->setMediaPlaybackRequiresUserGesture(required); |
622 } | 626 } |
623 | 627 |
624 void WebSettingsImpl::setFixedPositionCreatesStackingContext(bool creates) | 628 void WebSettingsImpl::setFixedPositionCreatesStackingContext(bool creates) |
625 { | 629 { |
626 m_settings->setFixedPositionCreatesStackingContext(creates); | 630 m_settings->setFixedPositionCreatesStackingContext(creates); |
627 } | 631 } |
628 | 632 |
629 void WebSettingsImpl::setViewportEnabled(bool enabled) | 633 void WebSettingsImpl::setViewportEnabled(bool enabled) |
630 { | 634 { |
631 m_viewportEnabled = enabled; | 635 m_settings->setViewportEnabled(enabled); |
632 } | 636 } |
633 | 637 |
634 void WebSettingsImpl::setSyncXHRInDocumentsEnabled(bool enabled) | 638 void WebSettingsImpl::setSyncXHRInDocumentsEnabled(bool enabled) |
635 { | 639 { |
636 m_settings->setSyncXHRInDocumentsEnabled(enabled); | 640 m_settings->setSyncXHRInDocumentsEnabled(enabled); |
637 } | 641 } |
638 | 642 |
639 void WebSettingsImpl::setCookieEnabled(bool enabled) | 643 void WebSettingsImpl::setCookieEnabled(bool enabled) |
640 { | 644 { |
641 m_settings->setCookieEnabled(enabled); | 645 m_settings->setCookieEnabled(enabled); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 { | 679 { |
676 m_pinchOverlayScrollbarThickness = thickness; | 680 m_pinchOverlayScrollbarThickness = thickness; |
677 } | 681 } |
678 | 682 |
679 void WebSettingsImpl::setPinchVirtualViewportEnabled(bool enabled) | 683 void WebSettingsImpl::setPinchVirtualViewportEnabled(bool enabled) |
680 { | 684 { |
681 m_settings->setPinchVirtualViewportEnabled(enabled); | 685 m_settings->setPinchVirtualViewportEnabled(enabled); |
682 } | 686 } |
683 | 687 |
684 } // namespace WebKit | 688 } // namespace WebKit |
OLD | NEW |