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

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: Fix unittest 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 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 { 797 {
793 m_settings->setV8CacheOptions(static_cast<blink::V8CacheOptions>(options)); 798 m_settings->setV8CacheOptions(static_cast<blink::V8CacheOptions>(options));
794 } 799 }
795 800
796 void WebSettingsImpl::setUseMobileViewportStyle(bool enabled) 801 void WebSettingsImpl::setUseMobileViewportStyle(bool enabled)
797 { 802 {
798 m_devToolsEmulator->setUseMobileViewportStyle(enabled); 803 m_devToolsEmulator->setUseMobileViewportStyle(enabled);
799 } 804 }
800 805
801 } // namespace blink 806 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698