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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..31669ed3ca3b576e0771f99689331596fb0e990e |
--- /dev/null |
+++ b/content/common/input/input_event_utils.cc |
@@ -0,0 +1,17 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "content/common/input/input_event_utils.h" |
+ |
+#include "base/command_line.h" |
+#include "content/public/common/content_switches.h" |
+ |
+namespace content { |
+ |
+bool UseGestureBasedWheelScrolling() { |
+ base::CommandLine* cmd = base::CommandLine::ForCurrentProcess(); |
+ return !cmd->HasSwitch(switches::kDisableWheelGestures); |
+} |
+ |
+} // namespace content |