| 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 19 matching lines...) Expand all Loading... |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 class SetKeyboardHeightFunction : public AsyncExtensionFunction { | 32 class SetKeyboardHeightFunction : public AsyncExtensionFunction { |
| 33 public: | 33 public: |
| 34 virtual bool RunImpl() OVERRIDE; | 34 virtual bool RunImpl() OVERRIDE; |
| 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(TOUCH_UI) | 40 #if defined(OS_CHROMEOS) |
| 41 // Note that this experimental APIs are currently only available for | 41 // Please note that the version of Chrome OS is always built with TOOLKIT_VIEWS. |
| 42 // TOUCH_UI version of Chrome OS. Please also note that the version of Chrome | |
| 43 // OS is always built with TOOLKIT_VIEWS. | |
| 44 // | |
| 45 // We may eventually support other platforms, especially non TOUCH_UI version | |
| 46 // of Chrome OS. | |
| 47 class SendHandwritingStrokeFunction : public SyncExtensionFunction { | 42 class SendHandwritingStrokeFunction : public SyncExtensionFunction { |
| 48 public: | 43 public: |
| 49 virtual bool RunImpl() OVERRIDE; | 44 virtual bool RunImpl() OVERRIDE; |
| 50 DECLARE_EXTENSION_FUNCTION_NAME( | 45 DECLARE_EXTENSION_FUNCTION_NAME( |
| 51 "experimental.input.virtualKeyboard.sendHandwritingStroke"); | 46 "experimental.input.virtualKeyboard.sendHandwritingStroke"); |
| 52 }; | 47 }; |
| 53 | 48 |
| 54 class CancelHandwritingStrokesFunction : public SyncExtensionFunction { | 49 class CancelHandwritingStrokesFunction : public SyncExtensionFunction { |
| 55 public: | 50 public: |
| 56 virtual bool RunImpl() OVERRIDE; | 51 virtual bool RunImpl() OVERRIDE; |
| 57 DECLARE_EXTENSION_FUNCTION_NAME( | 52 DECLARE_EXTENSION_FUNCTION_NAME( |
| 58 "experimental.input.virtualKeyboard.cancelHandwritingStrokes"); | 53 "experimental.input.virtualKeyboard.cancelHandwritingStrokes"); |
| 59 }; | 54 }; |
| 60 #endif | 55 #endif |
| 61 | 56 |
| 62 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_ | 57 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_ |
| OLD | NEW |