1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_KEYBOARD_KEYBOARD_UTIL_H_
6 #define UI_KEYBOARD_KEYBOARD_UTIL_H_
10 #include "ui/keyboard/keyboard_export.h"
22 // Returns true if the virtual keyboard is enabled.
23 KEYBOARD_EXPORT
bool IsKeyboardEnabled();
25 // Creates a ui::KeyEvent from the argument base::ListValue that is passed to
26 // the synthetic input APIs (either the Extension API or the WebUI API). The
27 // returned ui::KeyEvent is owned by the caller. If an error occurs, NULL is
28 // returned and |error| will be populated with a description of the error. For
29 // a description of the expected input, please see
30 // chrome/common/extensions/api/experimental_input_virtual_keyboard.json
31 KEYBOARD_EXPORT
ui::KeyEvent
* KeyEventFromArgs(const base::ListValue
* args
,
34 } // namespace keyboard
36 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_