Chromium Code Reviews| 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) |