| 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" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 DECLARE_EXTENSION_FUNCTION_NAME( | 35 DECLARE_EXTENSION_FUNCTION_NAME( |
| 36 "experimental.input.virtualKeyboard.setKeyboardHeight"); | 36 "experimental.input.virtualKeyboard.setKeyboardHeight"); |
| 37 }; | 37 }; |
| 38 #endif | 38 #endif |
| 39 | 39 |
| 40 #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD) | 40 #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD) |
| 41 // Note that these experimental APIs are currently only available for | 41 // Note that these experimental APIs are currently only available for |
| 42 // versions of Chrome OS built with USE_VIRTUAL_KEYBOARD. Please also note that | 42 // versions of Chrome OS built with USE_VIRTUAL_KEYBOARD. Please also note that |
| 43 // the version of Chrome OS is always built with TOOLKIT_VIEWS. | 43 // the version of Chrome OS is always built with TOOLKIT_VIEWS. |
| 44 // | 44 // |
| 45 // We may eventually support other platforms, especially non TOUCH_UI version | 45 // We may eventually support other platforms, especially versions of ChromeOS |
| 46 // of Chrome OS. | 46 // without USE_VIRTUAL_KEYBOARD. |
| 47 class SendHandwritingStrokeFunction : public SyncExtensionFunction { | 47 class SendHandwritingStrokeFunction : public SyncExtensionFunction { |
| 48 public: | 48 public: |
| 49 virtual bool RunImpl() OVERRIDE; | 49 virtual bool RunImpl() OVERRIDE; |
| 50 DECLARE_EXTENSION_FUNCTION_NAME( | 50 DECLARE_EXTENSION_FUNCTION_NAME( |
| 51 "experimental.input.virtualKeyboard.sendHandwritingStroke"); | 51 "experimental.input.virtualKeyboard.sendHandwritingStroke"); |
| 52 }; | 52 }; |
| 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.virtualKeyboard.cancelHandwritingStrokes"); | 58 "experimental.input.virtualKeyboard.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 |