1 // Copyright 2014 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 CHROME_BROWSER_EXTENSIONS_API_VIRTUAL_KEYBOARD_PRIVATE_CHROME_VIRTUAL_KEYBOARD_DELEGATE_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_VIRTUAL_KEYBOARD_PRIVATE_CHROME_VIRTUAL_KEYBOARD_DELEGATE_H_
8 #include "base/compiler_specific.h"
9 #include "extensions/browser/api/virtual_keyboard_private/virtual_keyboard_delegate.h"
11 namespace extensions
{
13 class ChromeVirtualKeyboardDelegate
: public VirtualKeyboardDelegate
{
15 ChromeVirtualKeyboardDelegate() {}
16 ~ChromeVirtualKeyboardDelegate() override
{}
17 bool GetKeyboardConfig(base::DictionaryValue
* settings
) override
;
18 bool HideKeyboard() override
;
19 bool InsertText(const base::string16
& text
) override
;
20 bool OnKeyboardLoaded() override
;
21 void SetHotrodKeyboard(bool enable
) override
;
22 bool LockKeyboard(bool state
) override
;
23 bool SendKeyEvent(const std::string
& type
,
26 const std::string
& key_name
,
27 int modifiers
) override
;
28 bool ShowLanguageSettings() override
;
29 bool IsLanguageSettingsEnabled() override
;
30 bool SetVirtualKeyboardMode(int mode_enum
) override
;
31 bool SetRequestedKeyboardState(int state_enum
) override
;
34 DISALLOW_COPY_AND_ASSIGN(ChromeVirtualKeyboardDelegate
);
37 } // namespace extensions
39 #endif // CHROME_BROWSER_EXTENSIONS_API_VIRTUAL_KEYBOARD_PRIVATE_CHROME_VIRTUAL_KEYBOARD_DELEGATE_H_