Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: chrome/browser/extensions/api/virtual_keyboard_private/chrome_virtual_keyboard_delegate.h

Issue 1339763004: Add chrome.virtualKeyboardPrivate.setHotrodKeyboard api (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2490
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/virtual_keyboard_private/chrome_virtual_keyboard_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/virtual_keyboard_private/chrome_virtual_keyboard_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698