Move "pack" button in the top toolbar to an action in the list of unpacked items.
[chromium-blink-merge.git] / ui / keyboard / keyboard_util.h
blob0674fa12fe0c4d4c1120e1cf858d251a9c75719e
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_
8 #include <string>
10 #include "ui/keyboard/keyboard_export.h"
12 namespace base {
13 class ListValue;
16 namespace ui {
17 class KeyEvent;
20 namespace keyboard {
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,
32 std::string* error);
34 } // namespace keyboard
36 #endif // UI_KEYBOARD_KEYBOARD_UTIL_H_