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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 bool WebSettingsImpl::multiTargetTapNotificationEnabled() | 672 bool WebSettingsImpl::multiTargetTapNotificationEnabled() |
673 { | 673 { |
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 | |
683 { | |
684 return m_settings->availablePointerTypes(); | |
685 } | |
686 | |
687 WebSettings::PointerType WebSettingsImpl::primaryPointerType() const | |
688 { | |
689 return static_cast<PointerType>(m_settings->primaryPointerType()); | |
690 } | |
691 | |
692 int WebSettingsImpl::availableHoverTypes() const | |
693 { | |
694 return m_settings->availableHoverTypes(); | |
695 } | |
696 | |
697 WebSettings::HoverType WebSettingsImpl::primaryHoverType() const | |
698 { | |
699 return static_cast<HoverType>(m_settings->primaryHoverType()); | |
700 } | |
701 | |
702 bool WebSettingsImpl::viewportEnabled() const | 682 bool WebSettingsImpl::viewportEnabled() const |
703 { | 683 { |
704 return m_settings->viewportEnabled(); | 684 return m_settings->viewportEnabled(); |
705 } | 685 } |
706 | 686 |
707 bool WebSettingsImpl::viewportMetaEnabled() const | 687 bool WebSettingsImpl::viewportMetaEnabled() const |
708 { | 688 { |
709 return m_settings->viewportMetaEnabled(); | 689 return m_settings->viewportMetaEnabled(); |
710 } | 690 } |
711 | 691 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 { | 799 { |
820 m_devToolsEmulator->setUseMobileViewportStyle(enabled); | 800 m_devToolsEmulator->setUseMobileViewportStyle(enabled); |
821 } | 801 } |
822 | 802 |
823 void WebSettingsImpl::setHidePinchScrollbarsNearMinScale(bool enabled) | 803 void WebSettingsImpl::setHidePinchScrollbarsNearMinScale(bool enabled) |
824 { | 804 { |
825 m_devToolsEmulator->setHidePinchScrollbarsNearMinScale(enabled); | 805 m_devToolsEmulator->setHidePinchScrollbarsNearMinScale(enabled); |
826 } | 806 } |
827 | 807 |
828 } // namespace blink | 808 } // namespace blink |
OLD | NEW |