Commit 877dd945 authored by mohsen@chromium.org's avatar mohsen@chromium.org

Reland: Enable touch text selection by default on desktop Aura

--disable-touch-editing can be used to disable touch text selection.

Originally landed as r274972, but reverted due to blink layout test
failures. Layout tests are fixed in r175595 (blink).

BUG=304872

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274972

Review URL: https://codereview.chromium.org/305423003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275452 0039d316-1c4b-4281-b951-d872f2087c98
parent 7044f8d1
...@@ -1155,7 +1155,7 @@ const Experiment kExperiments[] = { ...@@ -1155,7 +1155,7 @@ const Experiment kExperiments[] = {
"enable-touch-editing", "enable-touch-editing",
IDS_FLAGS_ENABLE_TOUCH_EDITING_NAME, IDS_FLAGS_ENABLE_TOUCH_EDITING_NAME,
IDS_FLAGS_ENABLE_TOUCH_EDITING_DESCRIPTION, IDS_FLAGS_ENABLE_TOUCH_EDITING_DESCRIPTION,
kOsCrOS, kOsCrOS | kOsWin | kOsLinux,
ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTouchEditing, ENABLE_DISABLE_VALUE_TYPE(switches::kEnableTouchEditing,
switches::kDisableTouchEditing) switches::kDisableTouchEditing)
}, },
......
...@@ -25,7 +25,7 @@ bool IsTouchDragDropEnabled() { ...@@ -25,7 +25,7 @@ bool IsTouchDragDropEnabled() {
} }
bool IsTouchEditingEnabled() { bool IsTouchEditingEnabled() {
#if defined(OS_CHROMEOS) #if defined(USE_AURA)
return !CommandLine::ForCurrentProcess()->HasSwitch( return !CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableTouchEditing); switches::kDisableTouchEditing);
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment