From 815b571bca91247d394032997280457a7a2a8f54 Mon Sep 17 00:00:00 2001 From: "varunjain@chromium.org" Date: Sun, 9 Jun 2013 18:10:58 +0000 Subject: Turn on touch drag and drop and touch editing by default on chromeos. BUG=168162 Review URL: https://chromiumcodereview.appspot.com/16268020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205124 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/base/ui_base_switches_util.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '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 c541a9b..3203421 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() { -- cgit v1.1