| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 : m_settings(settings) | 51 : m_settings(settings) |
| 52 , m_showFPSCounter(false) | 52 , m_showFPSCounter(false) |
| 53 , m_showPaintRects(false) | 53 , m_showPaintRects(false) |
| 54 , m_renderVSyncNotificationEnabled(false) | 54 , m_renderVSyncNotificationEnabled(false) |
| 55 , m_viewportEnabled(false) | 55 , m_viewportEnabled(false) |
| 56 , m_gestureTapHighlightEnabled(true) | 56 , m_gestureTapHighlightEnabled(true) |
| 57 , m_autoZoomFocusedNodeToLegibleScale(false) | 57 , m_autoZoomFocusedNodeToLegibleScale(false) |
| 58 , m_deferredImageDecodingEnabled(false) | 58 , m_deferredImageDecodingEnabled(false) |
| 59 , m_doubleTapToZoomEnabled(false) | 59 , m_doubleTapToZoomEnabled(false) |
| 60 , m_supportDeprecatedTargetDensityDPI(false) | 60 , m_supportDeprecatedTargetDensityDPI(false) |
| 61 , m_deviceSupportsRotation(false) |
| 62 , m_desktopViewportEnabled(false) |
| 61 { | 63 { |
| 62 ASSERT(settings); | 64 ASSERT(settings); |
| 63 } | 65 } |
| 64 | 66 |
| 65 void WebSettingsImpl::setStandardFontFamily(const WebString& font, UScriptCode s
cript) | 67 void WebSettingsImpl::setStandardFontFamily(const WebString& font, UScriptCode s
cript) |
| 66 { | 68 { |
| 67 m_settings->setStandardFontFamily(font, script); | 69 m_settings->setStandardFontFamily(font, script); |
| 68 } | 70 } |
| 69 | 71 |
| 70 void WebSettingsImpl::setFixedFontFamily(const WebString& font, UScriptCode scri
pt) | 72 void WebSettingsImpl::setFixedFontFamily(const WebString& font, UScriptCode scri
pt) |
| (...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 void WebSettingsImpl::setSmartInsertDeleteEnabled(bool enabled) | 675 void WebSettingsImpl::setSmartInsertDeleteEnabled(bool enabled) |
| 674 { | 676 { |
| 675 m_settings->setSmartInsertDeleteEnabled(enabled); | 677 m_settings->setSmartInsertDeleteEnabled(enabled); |
| 676 } | 678 } |
| 677 | 679 |
| 678 void WebSettingsImpl::setPinchVirtualViewportEnabled(bool enabled) | 680 void WebSettingsImpl::setPinchVirtualViewportEnabled(bool enabled) |
| 679 { | 681 { |
| 680 m_settings->setPinchVirtualViewportEnabled(enabled); | 682 m_settings->setPinchVirtualViewportEnabled(enabled); |
| 681 } | 683 } |
| 682 | 684 |
| 685 bool WebSettingsImpl::deviceSupportsRotation() const |
| 686 { |
| 687 return m_deviceSupportsRotation; |
| 688 } |
| 689 |
| 690 void WebSettingsImpl::setDeviceSupportsRotation(bool deviceSupportsRotation) |
| 691 { |
| 692 m_deviceSupportsRotation = deviceSupportsRotation; |
| 693 } |
| 694 |
| 695 bool WebSettingsImpl::desktopViewportEnabled() const |
| 696 { |
| 697 return m_desktopViewportEnabled; |
| 698 } |
| 699 |
| 700 void WebSettingsImpl::setDesktopViewportEnabled(bool desktopViewportEnabled) |
| 701 { |
| 702 m_desktopViewportEnabled = desktopViewportEnabled; |
| 703 } |
| 704 |
| 683 } // namespace WebKit | 705 } // namespace WebKit |
| OLD | NEW |