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

Side by Side Diff: chrome/browser/extensions/api/input/input.h

Issue 20526005: Implement virtual keyboard hiding. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase yet again Created 7 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 | « ash/root_window_controller.h ('k') | chrome/browser/extensions/api/input/input.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_INPUT_INPUT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_INPUT_INPUT_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_INPUT_INPUT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_INPUT_INPUT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" 9 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
10 #include "chrome/browser/extensions/extension_function.h" 10 #include "chrome/browser/extensions/extension_function.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 "virtualKeyboardPrivate.sendKeyEvent", 43 "virtualKeyboardPrivate.sendKeyEvent",
44 VIRTUALKEYBOARDPRIVATE_SENDKEYEVENT); 44 VIRTUALKEYBOARDPRIVATE_SENDKEYEVENT);
45 45
46 protected: 46 protected:
47 virtual ~SendKeyEventFunction() {} 47 virtual ~SendKeyEventFunction() {}
48 48
49 // ExtensionFunction: 49 // ExtensionFunction:
50 virtual bool RunImpl() OVERRIDE; 50 virtual bool RunImpl() OVERRIDE;
51 }; 51 };
52 52
53 class HideKeyboardFunction : public SyncExtensionFunction {
54 public:
55 DECLARE_EXTENSION_FUNCTION(
56 "virtualKeyboardPrivate.hideKeyboard",
57 VIRTUALKEYBOARDPRIVATE_HIDEKEYBOARD);
58
59 protected:
60 virtual ~HideKeyboardFunction() {}
61
62 // ExtensionFunction:
63 virtual bool RunImpl() OVERRIDE;
64 };
65
53 class InputAPI : public ProfileKeyedAPI { 66 class InputAPI : public ProfileKeyedAPI {
54 public: 67 public:
55 explicit InputAPI(Profile* profile); 68 explicit InputAPI(Profile* profile);
56 virtual ~InputAPI(); 69 virtual ~InputAPI();
57 70
58 // ProfileKeyedAPI implementation. 71 // ProfileKeyedAPI implementation.
59 static ProfileKeyedAPIFactory<InputAPI>* GetFactoryInstance(); 72 static ProfileKeyedAPIFactory<InputAPI>* GetFactoryInstance();
60 73
61 private: 74 private:
62 friend class ProfileKeyedAPIFactory<InputAPI>; 75 friend class ProfileKeyedAPIFactory<InputAPI>;
63 76
64 // ProfileKeyedAPI implementation. 77 // ProfileKeyedAPI implementation.
65 static const char* service_name() { 78 static const char* service_name() {
66 return "InputAPI"; 79 return "InputAPI";
67 } 80 }
68 static const bool kServiceIsNULLWhileTesting = true; 81 static const bool kServiceIsNULLWhileTesting = true;
69 }; 82 };
70 83
71 } // namespace extensions 84 } // namespace extensions
72 85
73 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_INPUT_H_ 86 #endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_INPUT_H_
OLDNEW
« no previous file with comments | « ash/root_window_controller.h ('k') | chrome/browser/extensions/api/input/input.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698