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

Unified Diff: content/common/input/input_event_utils.cc

Issue 1688853002: Enable gestures for wheel events on all platforms other than MacOSX. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_wheel_passive_listeners_3
Patch Set: Fix overscroll unit tests Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/common/input/input_event_utils.cc
diff --git a/content/common/input/input_event_utils.cc b/content/common/input/input_event_utils.cc
index 925452f56d9bb821465afb28bac9dde72f0813a8..6154dc74b00959f95b266161573dd0b46a9e046e 100644
--- a/content/common/input/input_event_utils.cc
+++ b/content/common/input/input_event_utils.cc
@@ -11,7 +11,11 @@ namespace content {
bool UseGestureBasedWheelScrolling() {
base::CommandLine* cmd = base::CommandLine::ForCurrentProcess();
+#if defined(OS_MACOSX)
return cmd->HasSwitch(switches::kEnableWheelGestures);
+#else
+ return !cmd->HasSwitch(switches::kDisableWheelGestures);
+#endif
}
} // namespace content
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura_unittest.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698