| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 m_settings->setLoadWithOverviewMode(enabled); | 289 m_settings->setLoadWithOverviewMode(enabled); |
| 290 } | 290 } |
| 291 | 291 |
| 292 void WebSettingsImpl::setPluginsEnabled(bool enabled) | 292 void WebSettingsImpl::setPluginsEnabled(bool enabled) |
| 293 { | 293 { |
| 294 m_devToolsEmulator->setPluginsEnabled(enabled); | 294 m_devToolsEmulator->setPluginsEnabled(enabled); |
| 295 } | 295 } |
| 296 | 296 |
| 297 void WebSettingsImpl::setAvailablePointerTypes(int pointers) | 297 void WebSettingsImpl::setAvailablePointerTypes(int pointers) |
| 298 { | 298 { |
| 299 m_settings->setAvailablePointerTypes(pointers); | 299 m_devToolsEmulator->setAvailablePointerTypes(pointers); |
| 300 } | 300 } |
| 301 | 301 |
| 302 void WebSettingsImpl::setPrimaryPointerType(PointerType pointer) | 302 void WebSettingsImpl::setPrimaryPointerType(PointerType pointer) |
| 303 { | 303 { |
| 304 m_settings->setPrimaryPointerType(static_cast<blink::PointerType>(pointer)); | 304 m_devToolsEmulator->setPrimaryPointerType(static_cast<blink::PointerType>(po
inter)); |
| 305 } | 305 } |
| 306 | 306 |
| 307 void WebSettingsImpl::setAvailableHoverTypes(int types) | 307 void WebSettingsImpl::setAvailableHoverTypes(int types) |
| 308 { | 308 { |
| 309 m_settings->setAvailableHoverTypes(types); | 309 m_devToolsEmulator->setAvailableHoverTypes(types); |
| 310 } | 310 } |
| 311 | 311 |
| 312 void WebSettingsImpl::setPrimaryHoverType(HoverType type) | 312 void WebSettingsImpl::setPrimaryHoverType(HoverType type) |
| 313 { | 313 { |
| 314 m_settings->setPrimaryHoverType(static_cast<blink::HoverType>(type)); | 314 m_devToolsEmulator->setPrimaryHoverType(static_cast<blink::HoverType>(type))
; |
| 315 } | 315 } |
| 316 | 316 |
| 317 void WebSettingsImpl::setPreferHiddenVolumeControls(bool enabled) | 317 void WebSettingsImpl::setPreferHiddenVolumeControls(bool enabled) |
| 318 { | 318 { |
| 319 m_settings->setPreferHiddenVolumeControls(enabled); | 319 m_settings->setPreferHiddenVolumeControls(enabled); |
| 320 } | 320 } |
| 321 | 321 |
| 322 void WebSettingsImpl::setDOMPasteAllowed(bool enabled) | 322 void WebSettingsImpl::setDOMPasteAllowed(bool enabled) |
| 323 { | 323 { |
| 324 m_settings->setDOMPasteAllowed(enabled); | 324 m_settings->setDOMPasteAllowed(enabled); |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 return m_settings->multiTargetTapNotificationEnabled(); | 674 return m_settings->multiTargetTapNotificationEnabled(); |
| 675 } | 675 } |
| 676 | 676 |
| 677 void WebSettingsImpl::setMultiTargetTapNotificationEnabled(bool enabled) | 677 void WebSettingsImpl::setMultiTargetTapNotificationEnabled(bool enabled) |
| 678 { | 678 { |
| 679 m_settings->setMultiTargetTapNotificationEnabled(enabled); | 679 m_settings->setMultiTargetTapNotificationEnabled(enabled); |
| 680 } | 680 } |
| 681 | 681 |
| 682 int WebSettingsImpl::availablePointerTypes() const | 682 int WebSettingsImpl::availablePointerTypes() const |
| 683 { | 683 { |
| 684 return m_settings->availablePointerTypes(); | 684 return m_devToolsEmulator->availablePointerTypes(); |
| 685 } | 685 } |
| 686 | 686 |
| 687 WebSettings::PointerType WebSettingsImpl::primaryPointerType() const | 687 WebSettings::PointerType WebSettingsImpl::primaryPointerType() const |
| 688 { | 688 { |
| 689 return static_cast<PointerType>(m_settings->primaryPointerType()); | 689 return static_cast<PointerType>(m_devToolsEmulator->primaryPointerType()); |
| 690 } | 690 } |
| 691 | 691 |
| 692 int WebSettingsImpl::availableHoverTypes() const | 692 int WebSettingsImpl::availableHoverTypes() const |
| 693 { | 693 { |
| 694 return m_settings->availableHoverTypes(); | 694 return m_devToolsEmulator->availableHoverTypes(); |
| 695 } | 695 } |
| 696 | 696 |
| 697 WebSettings::HoverType WebSettingsImpl::primaryHoverType() const | 697 WebSettings::HoverType WebSettingsImpl::primaryHoverType() const |
| 698 { | 698 { |
| 699 return static_cast<HoverType>(m_settings->primaryHoverType()); | 699 return static_cast<HoverType>(m_devToolsEmulator->primaryHoverType()); |
| 700 } | 700 } |
| 701 | 701 |
| 702 bool WebSettingsImpl::viewportEnabled() const | 702 bool WebSettingsImpl::viewportEnabled() const |
| 703 { | 703 { |
| 704 return m_settings->viewportEnabled(); | 704 return m_settings->viewportEnabled(); |
| 705 } | 705 } |
| 706 | 706 |
| 707 bool WebSettingsImpl::viewportMetaEnabled() const | 707 bool WebSettingsImpl::viewportMetaEnabled() const |
| 708 { | 708 { |
| 709 return m_settings->viewportMetaEnabled(); | 709 return m_settings->viewportMetaEnabled(); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 819 { | 819 { |
| 820 m_devToolsEmulator->setUseMobileViewportStyle(enabled); | 820 m_devToolsEmulator->setUseMobileViewportStyle(enabled); |
| 821 } | 821 } |
| 822 | 822 |
| 823 void WebSettingsImpl::setHidePinchScrollbarsNearMinScale(bool enabled) | 823 void WebSettingsImpl::setHidePinchScrollbarsNearMinScale(bool enabled) |
| 824 { | 824 { |
| 825 m_devToolsEmulator->setHidePinchScrollbarsNearMinScale(enabled); | 825 m_devToolsEmulator->setHidePinchScrollbarsNearMinScale(enabled); |
| 826 } | 826 } |
| 827 | 827 |
| 828 } // namespace blink | 828 } // namespace blink |
| OLD | NEW |