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

Unified Diff: ui/keyboard/keyboard_util.cc

Issue 848843003: Add a --enable-gesture-typing flag. Currently this flag does nothing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « ui/keyboard/keyboard_util.h ('k') | ui/keyboard/resources/keyboard_mojo.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/keyboard_util.cc
diff --git a/ui/keyboard/keyboard_util.cc b/ui/keyboard/keyboard_util.cc
index 8a67e54260814d88f1b051577a67d8ac66b74f6f..bac427c8504ee9b6a4bd1d36c8b9b5e78926be99 100644
--- a/ui/keyboard/keyboard_util.cc
+++ b/ui/keyboard/keyboard_util.cc
@@ -161,6 +161,14 @@ bool IsExperimentalInputViewEnabled() {
return false;
}
+bool IsGestureTypingEnabled() {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableGestureTyping)) {
+ return true;
+ }
+ return false;
bshe 2015/01/21 16:53:47 Do you mind to clean up this code to: return base:
SteveT 2015/01/21 17:02:31 Sure. I was not sure if doing that was going to ca
+}
+
bool InsertText(const base::string16& text) {
keyboard::KeyboardController* controller = KeyboardController::GetInstance();
if (!controller)
« no previous file with comments | « ui/keyboard/keyboard_util.h ('k') | ui/keyboard/resources/keyboard_mojo.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698