| 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 { | |
| 13 class Widget; | |
| 14 } // namespace views | |
| 15 | |
| 16 // Note that this experimental API is currently only available for | 12 // Note that this experimental API is currently only available for |
| 17 // TOOLKIT_VIEWS (see chrome/chrome_browser.gypi). | 13 // TOOLKIT_VIEWS (see chrome/chrome_browser.gypi). |
| 18 // | 14 // |
| 19 // We may eventually support other platforms by adding the necessary | 15 // We may eventually support other platforms by adding the necessary |
| 20 // synthetic event distribution code to this Function. | 16 // synthetic event distribution code to this Function. |
| 21 class SendKeyboardEventInputFunction : public SyncExtensionFunction { | 17 class SendKeyboardEventInputFunction : public SyncExtensionFunction { |
| 22 public: | 18 public: |
| 23 virtual bool RunImpl() OVERRIDE; | 19 virtual bool RunImpl() OVERRIDE; |
| 24 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.sendKeyboardEvent"); | 20 DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.sendKeyboardEvent"); |
| 25 }; | 21 }; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 53 | 49 |
| 54 class CancelHandwritingStrokesFunction : public SyncExtensionFunction { | 50 class CancelHandwritingStrokesFunction : public SyncExtensionFunction { |
| 55 public: | 51 public: |
| 56 virtual bool RunImpl() OVERRIDE; | 52 virtual bool RunImpl() OVERRIDE; |
| 57 DECLARE_EXTENSION_FUNCTION_NAME( | 53 DECLARE_EXTENSION_FUNCTION_NAME( |
| 58 "experimental.input.cancelHandwritingStrokes"); | 54 "experimental.input.cancelHandwritingStrokes"); |
| 59 }; | 55 }; |
| 60 #endif | 56 #endif |
| 61 | 57 |
| 62 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_ | 58 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_ |
| OLD | NEW |