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

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

Issue 1685823002: Cleanup checking for wheel gesture flags. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« 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..925452f56d9bb821465afb28bac9dde72f0813a8
--- /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::kEnableWheelGestures);
+}
+
+} // 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