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

Unified Diff: ui/base/ui_base_switches_util.cc

Issue 580903003: Move Touch Feedback flag to ui_base_switches (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 6 years, 3 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 | « ui/base/ui_base_switches_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ui_base_switches_util.cc
diff --git a/ui/base/ui_base_switches_util.cc b/ui/base/ui_base_switches_util.cc
index ba20e53f7fa3ef355e499c948cfa34fbf76334e8..58b85c7ab4639bb56a0d943dad2dbc3bea0b4745 100644
--- a/ui/base/ui_base_switches_util.cc
+++ b/ui/base/ui_base_switches_util.cc
@@ -34,4 +34,10 @@ bool IsTouchEditingEnabled() {
#endif
}
+bool IsTouchFeedbackEnabled() {
+ static bool touch_feedback_enabled = CommandLine::ForCurrentProcess()->
+ HasSwitch(switches::kEnableTouchFeedback);
+ return touch_feedback_enabled;
+}
+
} // namespace switches
« no previous file with comments | « ui/base/ui_base_switches_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698