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 "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "chrome/browser/extensions/extension_function.h" | 10 #include "chrome/browser/extensions/extension_function.h" |
11 | 11 |
12 namespace views { | 12 namespace views { |
13 class Widget; | 13 class Widget; |
14 } // namespace views | 14 } // namespace views |
15 | 15 |
16 // Note that this experimental API is currently only available for | 16 // Note that this experimental API is currently only available for |
17 // TOOLKIT_VIEWS (see chrome/chrome_browser.gypi). | 17 // TOOLKIT_VIEWS (see chrome/chrome_browser.gypi). |
18 // | 18 // |
19 // We may eventually support other platforms by adding the necessary | 19 // We may eventually support other platforms by adding the necessary |
20 // synthetic event distribution code to this Function. | 20 // synthetic event distribution code to this Function. |
21 class SendKeyboardEventInputFunction : public SyncExtensionFunction { | 21 class SendKeyboardEventInputFunction : public SyncExtensionFunction { |
22 public: | 22 public: |
23 virtual bool RunImpl() OVERRIDE; | 23 virtual bool RunImpl() OVERRIDE; |
24 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.sendKeyboardEvent"); | 24 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.sendKeyboardEvent"); |
25 }; | 25 }; |
26 | 26 |
27 #if defined(TOUCH_UI) | 27 #if defined(USE_VIRTUAL_KEYBOARD) |
28 class HideKeyboardFunction : public AsyncExtensionFunction { | 28 class HideKeyboardFunction : public AsyncExtensionFunction { |
29 public: | 29 public: |
30 virtual bool RunImpl() OVERRIDE; | 30 virtual bool RunImpl() OVERRIDE; |
31 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.hideKeyboard"); | 31 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.hideKeyboard"); |
32 }; | 32 }; |
33 | 33 |
34 class SetKeyboardHeightFunction : public AsyncExtensionFunction { | 34 class SetKeyboardHeightFunction : public AsyncExtensionFunction { |
35 public: | 35 public: |
36 virtual bool RunImpl() OVERRIDE; | 36 virtual bool RunImpl() OVERRIDE; |
37 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.setKeyboardHeight"); | 37 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.setKeyboardHeight"); |
(...skipping 15 matching lines...) Expand all Loading... |
53 | 53 |
54 class CancelHandwritingStrokesFunction : public SyncExtensionFunction { | 54 class CancelHandwritingStrokesFunction : public SyncExtensionFunction { |
55 public: | 55 public: |
56 virtual bool RunImpl() OVERRIDE; | 56 virtual bool RunImpl() OVERRIDE; |
57 DECLARE_EXTENSION_FUNCTION_NAME( | 57 DECLARE_EXTENSION_FUNCTION_NAME( |
58 "experimental.input.cancelHandwritingStrokes"); | 58 "experimental.input.cancelHandwritingStrokes"); |
59 }; | 59 }; |
60 #endif | 60 #endif |
61 | 61 |
62 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_ | 62 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_ |
OLD | NEW |