Index: ui/keyboard/keyboard_util.cc |
diff --git a/ui/keyboard/keyboard_util.cc b/ui/keyboard/keyboard_util.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8ccb44138291f4aa55de80a93cb846cfc5112f12 |
--- /dev/null |
+++ b/ui/keyboard/keyboard_util.cc |
@@ -0,0 +1,17 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "ui/keyboard/keyboard_util.h" |
+ |
+#include "base/command_line.h" |
+#include "ui/keyboard/keyboard_switches.h" |
+ |
+namespace keyboard { |
+ |
+bool IsKeyboardEnabled() { |
+ return CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kEnableVirtualKeyboard); |
+} |
+ |
+} // namespace keyboard |