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

Unified Diff: ui/base/ui_base_switches_util.cc

Issue 16268020: Turn on touch drag and drop and touch editing by default on chromeos. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « no previous file | 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 c541a9b1b26414d25ad7aee0ff41f98a645f049d..32034218dd5e31ff5ff82e3153fd482859ec0f78 100644
--- a/ui/base/ui_base_switches_util.cc
+++ b/ui/base/ui_base_switches_util.cc
@@ -10,13 +10,23 @@
namespace switches {
bool IsTouchDragDropEnabled() {
+#if defined(OS_CHROMEOS)
+ return !CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableTouchDragDrop);
+#else
return CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableTouchDragDrop);
+#endif
}
bool IsTouchEditingEnabled() {
+#if defined(OS_CHROMEOS)
+ return !CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableTouchEditing);
+#else
return CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableTouchEditing);
+#endif
}
bool IsNewDialogStyleEnabled() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698