summaryrefslogtreecommitdiffstats
path: root/ui/keyboard
diff options
context:
space:
mode:
authorstevet@chromium.org <stevet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-25 01:16:18 +0000
committerstevet@chromium.org <stevet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-25 01:16:18 +0000
commit8b4321e816c28325b89619ddbec505c780246ce1 (patch)
tree747d7b0ff9c1b6f2bf569af7123bab19229dce80 /ui/keyboard
parentf16be8da70a1ef247a9e2a8a4c063b58f419a498 (diff)
downloadchromium_src-8b4321e816c28325b89619ddbec505c780246ce1.zip
chromium_src-8b4321e816c28325b89619ddbec505c780246ce1.tar.gz
chromium_src-8b4321e816c28325b89619ddbec505c780246ce1.tar.bz2
Hide the swipe selection feature behind a flag, --enable-swipe-selection.
We do this in a simple manner by making the extension API a NOP unless the flag is provided. BUG=303155 TEST=Run ash with the keyboard (--enable-virtual-keyboard) and try to use the swipe selection feature by typing some stuff and swiping across the keyboard area to move the selection. Note that it doesn't work unless you also specify the --enable-swipe-selection feature. Review URL: https://codereview.chromium.org/35593002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230894 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/keyboard')
-rw-r--r--ui/keyboard/keyboard_switches.cc2
-rw-r--r--ui/keyboard/keyboard_switches.h3
2 files changed, 5 insertions, 0 deletions
diff --git a/ui/keyboard/keyboard_switches.cc b/ui/keyboard/keyboard_switches.cc
index d1ea4e2..da81e77 100644
--- a/ui/keyboard/keyboard_switches.cc
+++ b/ui/keyboard/keyboard_switches.cc
@@ -7,6 +7,8 @@
namespace keyboard {
namespace switches {
+const char kEnableSwipeSelection[] = "enable-swipe-selection";
+
const char kEnableVirtualKeyboard[] = "enable-virtual-keyboard";
} // namespace switches
diff --git a/ui/keyboard/keyboard_switches.h b/ui/keyboard/keyboard_switches.h
index a7d0533..5ba00d7 100644
--- a/ui/keyboard/keyboard_switches.h
+++ b/ui/keyboard/keyboard_switches.h
@@ -10,6 +10,9 @@
namespace keyboard {
namespace switches {
+// Enables the swipe selection feature on the virtual keyboard.
+KEYBOARD_EXPORT extern const char kEnableSwipeSelection[];
+
// Enables the virtual keyboard.
KEYBOARD_EXPORT extern const char kEnableVirtualKeyboard[];