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 15 matching lines...) Expand all Loading... |
26 // synthetic event distribution code to this Function. | 26 // synthetic event distribution code to this Function. |
27 class SendKeyboardEventInputFunction : public InputFunction { | 27 class SendKeyboardEventInputFunction : public InputFunction { |
28 public: | 28 public: |
29 virtual bool RunImpl(); | 29 virtual bool RunImpl(); |
30 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.sendKeyboardEvent"); | 30 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.sendKeyboardEvent"); |
31 | 31 |
32 private: | 32 private: |
33 views::Widget* GetTopLevelWidget(); | 33 views::Widget* GetTopLevelWidget(); |
34 }; | 34 }; |
35 | 35 |
| 36 class SendHandwritingStrokesFunction : public SyncExtensionFunction { |
| 37 public: |
| 38 virtual bool RunImpl(); |
| 39 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.sendHandwritingStrokes"); |
| 40 }; |
| 41 |
| 42 class CancelHandwritingFunction : public SyncExtensionFunction { |
| 43 public: |
| 44 virtual bool RunImpl(); |
| 45 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.cancelHandwriting"); |
| 46 }; |
| 47 |
36 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_ | 48 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_ |
OLD | NEW |