Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: third_party/WebKit/Source/web/WebSettingsImpl.cpp

Issue 1841053002: Fix mouse wheel scrolling on PDFs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 void WebSettingsImpl::setJavaScriptEnabled(bool enabled) 201 void WebSettingsImpl::setJavaScriptEnabled(bool enabled)
202 { 202 {
203 m_devToolsEmulator->setScriptEnabled(enabled); 203 m_devToolsEmulator->setScriptEnabled(enabled);
204 } 204 }
205 205
206 void WebSettingsImpl::setWebSecurityEnabled(bool enabled) 206 void WebSettingsImpl::setWebSecurityEnabled(bool enabled)
207 { 207 {
208 m_settings->setWebSecurityEnabled(enabled); 208 m_settings->setWebSecurityEnabled(enabled);
209 } 209 }
210 210
211 void WebSettingsImpl::setWheelGesturesEnabled(bool enabled)
212 {
213 m_settings->setWheelGesturesEnabled(enabled);
214 }
215
211 void WebSettingsImpl::setJavaScriptCanOpenWindowsAutomatically(bool canOpenWindo ws) 216 void WebSettingsImpl::setJavaScriptCanOpenWindowsAutomatically(bool canOpenWindo ws)
212 { 217 {
213 m_settings->setJavaScriptCanOpenWindowsAutomatically(canOpenWindows); 218 m_settings->setJavaScriptCanOpenWindowsAutomatically(canOpenWindows);
214 } 219 }
215 220
216 void WebSettingsImpl::setSupportDeprecatedTargetDensityDPI(bool supportDeprecate dTargetDensityDPI) 221 void WebSettingsImpl::setSupportDeprecatedTargetDensityDPI(bool supportDeprecate dTargetDensityDPI)
217 { 222 {
218 m_supportDeprecatedTargetDensityDPI = supportDeprecatedTargetDensityDPI; 223 m_supportDeprecatedTargetDensityDPI = supportDeprecatedTargetDensityDPI;
219 } 224 }
220 225
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 bool WebSettingsImpl::doubleTapToZoomEnabled() const 690 bool WebSettingsImpl::doubleTapToZoomEnabled() const
686 { 691 {
687 return m_devToolsEmulator->doubleTapToZoomEnabled(); 692 return m_devToolsEmulator->doubleTapToZoomEnabled();
688 } 693 }
689 694
690 bool WebSettingsImpl::mockGestureTapHighlightsEnabled() const 695 bool WebSettingsImpl::mockGestureTapHighlightsEnabled() const
691 { 696 {
692 return m_settings->mockGestureTapHighlightsEnabled(); 697 return m_settings->mockGestureTapHighlightsEnabled();
693 } 698 }
694 699
700 bool WebSettingsImpl::wheelGesturesEnabled() const
701 {
702 return m_settings->wheelGesturesEnabled();
703 }
704
695 bool WebSettingsImpl::mainFrameResizesAreOrientationChanges() const 705 bool WebSettingsImpl::mainFrameResizesAreOrientationChanges() const
696 { 706 {
697 return m_devToolsEmulator->mainFrameResizesAreOrientationChanges(); 707 return m_devToolsEmulator->mainFrameResizesAreOrientationChanges();
698 } 708 }
699 709
700 bool WebSettingsImpl::shrinksViewportContentToFit() const 710 bool WebSettingsImpl::shrinksViewportContentToFit() const
701 { 711 {
702 return m_shrinksViewportContentToFit; 712 return m_shrinksViewportContentToFit;
703 } 713 }
704 714
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 { 802 {
793 m_settings->setV8CacheOptions(static_cast<blink::V8CacheOptions>(options)); 803 m_settings->setV8CacheOptions(static_cast<blink::V8CacheOptions>(options));
794 } 804 }
795 805
796 void WebSettingsImpl::setUseMobileViewportStyle(bool enabled) 806 void WebSettingsImpl::setUseMobileViewportStyle(bool enabled)
797 { 807 {
798 m_devToolsEmulator->setUseMobileViewportStyle(enabled); 808 m_devToolsEmulator->setUseMobileViewportStyle(enabled);
799 } 809 }
800 810
801 } // namespace blink 811 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698