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

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: add histogram enume ntry 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..3c126c3e638b4dab3e18ba83fcff3e5c262a6aae 100644
--- a/ui/keyboard/keyboard_util.cc
+++ b/ui/keyboard/keyboard_util.cc
@@ -154,11 +154,13 @@ bool IsInputViewEnabled() {
}
bool IsExperimentalInputViewEnabled() {
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableExperimentalInputViewFeatures)) {
- return true;
- }
- return false;
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableExperimentalInputViewFeatures);
+}
+
+bool IsGestureTypingEnabled() {
+ return base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableGestureTyping);
}
bool InsertText(const base::string16& text) {
« 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