diff options
author | varunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-09 18:10:58 +0000 |
---|---|---|
committer | varunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-09 18:10:58 +0000 |
commit | 815b571bca91247d394032997280457a7a2a8f54 (patch) | |
tree | d44e4c5bb3d69ffa0cba29eb8d2a23f82ca83d70 /ui/base/ui_base_switches_util.cc | |
parent | f4b83f238a729706775382d2bedb2e55eb665b69 (diff) | |
download | chromium_src-815b571bca91247d394032997280457a7a2a8f54.zip chromium_src-815b571bca91247d394032997280457a7a2a8f54.tar.gz chromium_src-815b571bca91247d394032997280457a7a2a8f54.tar.bz2 |
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
Diffstat (limited to 'ui/base/ui_base_switches_util.cc')
-rw-r--r-- | ui/base/ui_base_switches_util.cc | 10 |
1 files changed, 10 insertions, 0 deletions
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() { |