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

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

Issue 2050033002: Revert of Remove enable/disable wheel gestures setting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@can_scroll_remove
Patch Set: Created 4 years, 6 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
« no previous file with comments | « content/common/input/input_event_utils.h ('k') | content/content_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/common/input/input_event_utils.h ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698