OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_VIRTUAL_KEYBOARD_PRIVATE_CHROME_VIRTUAL_KE
YBOARD_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_VIRTUAL_KEYBOARD_PRIVATE_CHROME_VIRTUAL_KE
YBOARD_DELEGATE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_VIRTUAL_KEYBOARD_PRIVATE_CHROME_VIRTUAL_KE
YBOARD_DELEGATE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_VIRTUAL_KEYBOARD_PRIVATE_CHROME_VIRTUAL_KE
YBOARD_DELEGATE_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "extensions/browser/api/virtual_keyboard_private/virtual_keyboard_deleg
ate.h" | 9 #include "extensions/browser/api/virtual_keyboard_private/virtual_keyboard_deleg
ate.h" |
10 | 10 |
11 namespace extensions { | 11 namespace extensions { |
12 | 12 |
13 class ChromeVirtualKeyboardDelegate : public VirtualKeyboardDelegate { | 13 class ChromeVirtualKeyboardDelegate : public VirtualKeyboardDelegate { |
14 public: | 14 public: |
15 ChromeVirtualKeyboardDelegate() {} | 15 ChromeVirtualKeyboardDelegate() {} |
16 ~ChromeVirtualKeyboardDelegate() override {} | 16 ~ChromeVirtualKeyboardDelegate() override {} |
17 bool GetKeyboardConfig(base::DictionaryValue* settings) override; | 17 bool GetKeyboardConfig(base::DictionaryValue* settings) override; |
18 bool HideKeyboard() override; | 18 bool HideKeyboard() override; |
19 bool InsertText(const base::string16& text) override; | 19 bool InsertText(const base::string16& text) override; |
20 bool OnKeyboardLoaded() override; | 20 bool OnKeyboardLoaded() override; |
| 21 void SetHotrodKeyboard(bool enable) override; |
21 bool LockKeyboard(bool state) override; | 22 bool LockKeyboard(bool state) override; |
22 bool SendKeyEvent(const std::string& type, | 23 bool SendKeyEvent(const std::string& type, |
23 int char_value, | 24 int char_value, |
24 int key_code, | 25 int key_code, |
25 const std::string& key_name, | 26 const std::string& key_name, |
26 int modifiers) override; | 27 int modifiers) override; |
27 bool ShowLanguageSettings() override; | 28 bool ShowLanguageSettings() override; |
28 bool IsLanguageSettingsEnabled() override; | 29 bool IsLanguageSettingsEnabled() override; |
29 bool SetVirtualKeyboardMode(int mode_enum) override; | 30 bool SetVirtualKeyboardMode(int mode_enum) override; |
30 bool SetRequestedKeyboardState(int state_enum) override; | 31 bool SetRequestedKeyboardState(int state_enum) override; |
31 | 32 |
32 private: | 33 private: |
33 DISALLOW_COPY_AND_ASSIGN(ChromeVirtualKeyboardDelegate); | 34 DISALLOW_COPY_AND_ASSIGN(ChromeVirtualKeyboardDelegate); |
34 }; | 35 }; |
35 | 36 |
36 } // namespace extensions | 37 } // namespace extensions |
37 | 38 |
38 #endif // CHROME_BROWSER_EXTENSIONS_API_VIRTUAL_KEYBOARD_PRIVATE_CHROME_VIRTUAL
_KEYBOARD_DELEGATE_H_ | 39 #endif // CHROME_BROWSER_EXTENSIONS_API_VIRTUAL_KEYBOARD_PRIVATE_CHROME_VIRTUAL
_KEYBOARD_DELEGATE_H_ |
OLD | NEW |