OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSION_INPUT_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/extensions/extension_function.h" | 9 #include "chrome/browser/extensions/extension_function.h" |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 private: | 32 private: |
33 views::Widget* GetTopLevelWidget(); | 33 views::Widget* GetTopLevelWidget(); |
34 }; | 34 }; |
35 | 35 |
36 #if defined(TOUCH_UI) | 36 #if defined(TOUCH_UI) |
37 class HideKeyboardFunction : public AsyncExtensionFunction { | 37 class HideKeyboardFunction : public AsyncExtensionFunction { |
38 public: | 38 public: |
39 virtual bool RunImpl(); | 39 virtual bool RunImpl(); |
40 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.hideKeyboard"); | 40 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.hideKeyboard"); |
41 }; | 41 }; |
| 42 |
| 43 class SetKeyboardHeightFunction : public AsyncExtensionFunction { |
| 44 public: |
| 45 virtual bool RunImpl(); |
| 46 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.setKeyboardHeight"); |
| 47 }; |
42 #endif | 48 #endif |
43 | 49 |
44 #if defined(OS_CHROMEOS) && defined(TOUCH_UI) | 50 #if defined(OS_CHROMEOS) && defined(TOUCH_UI) |
45 // Note that this experimental APIs are currently only available for | 51 // Note that this experimental APIs are currently only available for |
46 // TOUCH_UI version of Chrome OS. Please also note that the version of Chrome | 52 // TOUCH_UI version of Chrome OS. Please also note that the version of Chrome |
47 // OS is always built with TOOLKIT_VIEWS. | 53 // OS is always built with TOOLKIT_VIEWS. |
48 // | 54 // |
49 // We may eventually support other platforms, especially non TOUCH_UI version | 55 // We may eventually support other platforms, especially non TOUCH_UI version |
50 // of Chrome OS. | 56 // of Chrome OS. |
51 class SendHandwritingStrokeFunction : public SyncExtensionFunction { | 57 class SendHandwritingStrokeFunction : public SyncExtensionFunction { |
52 public: | 58 public: |
53 virtual bool RunImpl(); | 59 virtual bool RunImpl(); |
54 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.sendHandwritingStroke"); | 60 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.sendHandwritingStroke"); |
55 }; | 61 }; |
56 | 62 |
57 class CancelHandwritingStrokesFunction : public SyncExtensionFunction { | 63 class CancelHandwritingStrokesFunction : public SyncExtensionFunction { |
58 public: | 64 public: |
59 virtual bool RunImpl(); | 65 virtual bool RunImpl(); |
60 DECLARE_EXTENSION_FUNCTION_NAME( | 66 DECLARE_EXTENSION_FUNCTION_NAME( |
61 "experimental.input.cancelHandwritingStrokes"); | 67 "experimental.input.cancelHandwritingStrokes"); |
62 }; | 68 }; |
63 #endif | 69 #endif |
64 | 70 |
65 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_ | 71 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_ |
OLD | NEW |