OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_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 | |
8 | 7 |
9 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
10 #include "chrome/browser/extensions/extension_function.h" | 9 #include "chrome/browser/extensions/extension_function.h" |
11 | 10 |
12 // Note that this experimental API is currently only available for | 11 // Note that this experimental API is currently only available for |
13 // TOOLKIT_VIEWS (see chrome/chrome_browser.gypi). | 12 // TOOLKIT_VIEWS (see chrome/chrome_browser.gypi). |
14 // | 13 // |
15 // We may eventually support other platforms by adding the necessary | 14 // We may eventually support other platforms by adding the necessary |
16 // synthetic event distribution code to this Function. | 15 // synthetic event distribution code to this Function. |
17 class SendKeyboardEventInputFunction : public SyncExtensionFunction { | 16 class SendKeyboardEventInputFunction : public SyncExtensionFunction { |
18 public: | 17 public: |
19 DECLARE_EXTENSION_FUNCTION_NAME( | 18 DECLARE_EXTENSION_FUNCTION_NAME( |
20 "experimental.input.virtualKeyboard.sendKeyboardEvent"); | 19 "experimental.input.virtualKeyboard.sendKeyboardEvent"); |
21 | 20 |
22 protected: | 21 protected: |
23 virtual ~SendKeyboardEventInputFunction() {} | 22 virtual ~SendKeyboardEventInputFunction() {} |
24 | 23 |
25 // ExtensionFunction: | 24 // ExtensionFunction: |
26 virtual bool RunImpl() OVERRIDE; | 25 virtual bool RunImpl() OVERRIDE; |
27 }; | 26 }; |
28 | 27 |
29 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_ | 28 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_ |
OLD | NEW |