| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 void WebSettingsImpl::setMinimumFontSize(int size) | 120 void WebSettingsImpl::setMinimumFontSize(int size) |
| 121 { | 121 { |
| 122 m_settings->setMinimumFontSize(size); | 122 m_settings->setMinimumFontSize(size); |
| 123 } | 123 } |
| 124 | 124 |
| 125 void WebSettingsImpl::setMinimumLogicalFontSize(int size) | 125 void WebSettingsImpl::setMinimumLogicalFontSize(int size) |
| 126 { | 126 { |
| 127 m_settings->setMinimumLogicalFontSize(size); | 127 m_settings->setMinimumLogicalFontSize(size); |
| 128 } | 128 } |
| 129 | 129 |
| 130 // FIXME: Remove this http://crbug.com/136119 |
| 130 void WebSettingsImpl::setDeviceSupportsTouch(bool deviceSupportsTouch) | 131 void WebSettingsImpl::setDeviceSupportsTouch(bool deviceSupportsTouch) |
| 131 { | 132 { |
| 132 m_settings->setDeviceSupportsTouch(deviceSupportsTouch); | 133 m_settings->setDeviceSupportsTouch(deviceSupportsTouch); |
| 133 } | 134 } |
| 134 | 135 |
| 135 void WebSettingsImpl::setDeviceSupportsMouse(bool deviceSupportsMouse) | 136 void WebSettingsImpl::setDeviceSupportsMouse(bool deviceSupportsMouse) |
| 136 { | 137 { |
| 137 m_settings->setDeviceSupportsMouse(deviceSupportsMouse); | 138 m_settings->setDeviceSupportsMouse(deviceSupportsMouse); |
| 138 } | 139 } |
| 139 | 140 |
| 140 bool WebSettingsImpl::deviceSupportsTouch() | 141 bool WebSettingsImpl::deviceSupportsTouch() |
| 141 { | 142 { |
| 142 return m_settings->deviceSupportsTouch(); | 143 return m_settings->deviceSupportsTouch(); |
| 143 } | 144 } |
| 144 | 145 |
| 146 int WebSettingsImpl::primaryPointerDevices() |
| 147 { |
| 148 return m_settings->primaryPointerDevices(); |
| 149 } |
| 150 |
| 145 void WebSettingsImpl::setAutoZoomFocusedNodeToLegibleScale(bool autoZoomFocusedN
odeToLegibleScale) | 151 void WebSettingsImpl::setAutoZoomFocusedNodeToLegibleScale(bool autoZoomFocusedN
odeToLegibleScale) |
| 146 { | 152 { |
| 147 m_autoZoomFocusedNodeToLegibleScale = autoZoomFocusedNodeToLegibleScale; | 153 m_autoZoomFocusedNodeToLegibleScale = autoZoomFocusedNodeToLegibleScale; |
| 148 } | 154 } |
| 149 | 155 |
| 150 void WebSettingsImpl::setTextAutosizingEnabled(bool enabled) | 156 void WebSettingsImpl::setTextAutosizingEnabled(bool enabled) |
| 151 { | 157 { |
| 152 m_settings->setTextAutosizingEnabled(enabled); | 158 m_settings->setTextAutosizingEnabled(enabled); |
| 153 } | 159 } |
| 154 | 160 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 void WebSettingsImpl::setInitializeAtMinimumPageScale(bool enabled) | 206 void WebSettingsImpl::setInitializeAtMinimumPageScale(bool enabled) |
| 201 { | 207 { |
| 202 m_initializeAtMinimumPageScale = enabled; | 208 m_initializeAtMinimumPageScale = enabled; |
| 203 } | 209 } |
| 204 | 210 |
| 205 void WebSettingsImpl::setPluginsEnabled(bool enabled) | 211 void WebSettingsImpl::setPluginsEnabled(bool enabled) |
| 206 { | 212 { |
| 207 m_settings->setPluginsEnabled(enabled); | 213 m_settings->setPluginsEnabled(enabled); |
| 208 } | 214 } |
| 209 | 215 |
| 216 void WebSettingsImpl::setPrimaryPointerDevices(int devices) |
| 217 { |
| 218 m_settings->setPrimaryPointerDevices(devices); |
| 219 } |
| 220 |
| 210 void WebSettingsImpl::setDOMPasteAllowed(bool enabled) | 221 void WebSettingsImpl::setDOMPasteAllowed(bool enabled) |
| 211 { | 222 { |
| 212 m_settings->setDOMPasteAllowed(enabled); | 223 m_settings->setDOMPasteAllowed(enabled); |
| 213 } | 224 } |
| 214 | 225 |
| 215 void WebSettingsImpl::setNeedsSiteSpecificQuirks(bool enabled) | 226 void WebSettingsImpl::setNeedsSiteSpecificQuirks(bool enabled) |
| 216 { | 227 { |
| 217 m_settings->setNeedsSiteSpecificQuirks(enabled); | 228 m_settings->setNeedsSiteSpecificQuirks(enabled); |
| 218 } | 229 } |
| 219 | 230 |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 void WebSettingsImpl::setSelectionIncludesAltImageText(bool enabled) | 714 void WebSettingsImpl::setSelectionIncludesAltImageText(bool enabled) |
| 704 { | 715 { |
| 705 m_settings->setSelectionIncludesAltImageText(enabled); | 716 m_settings->setSelectionIncludesAltImageText(enabled); |
| 706 } | 717 } |
| 707 | 718 |
| 708 void WebSettingsImpl::setSmartInsertDeleteEnabled(bool enabled) | 719 void WebSettingsImpl::setSmartInsertDeleteEnabled(bool enabled) |
| 709 { | 720 { |
| 710 m_settings->setSmartInsertDeleteEnabled(enabled); | 721 m_settings->setSmartInsertDeleteEnabled(enabled); |
| 711 } | 722 } |
| 712 | 723 |
| 724 COMPILE_ASSERT(static_cast<int>(WebSettings::PointerDeviceMouse) == static_cast<
int>(WebCore::PointerDeviceMouse), mismatched_enums); |
| 725 COMPILE_ASSERT(static_cast<int>(WebSettings::PointerDeviceTouch) == static_cast<
int>(WebCore::PointerDeviceTouch), mismatched_enums); |
| 726 COMPILE_ASSERT(static_cast<int>(WebSettings::PointerDeviceNone) == static_cast<i
nt>(WebCore::PointerDeviceNone), mismatched_enums); |
| 727 COMPILE_ASSERT(static_cast<int>(WebSettings::PointerDeviceUnknown) == static_cas
t<int>(WebCore::PointerDeviceUnknown), mismatched_enums); |
| 728 |
| 713 } // namespace WebKit | 729 } // namespace WebKit |
| OLD | NEW |