Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2351)

Unified Diff: chrome/browser/extensions/extension_input_api.h

Issue 6905053: Add 2 Extension APIs for handwriting: experimental.input.sendHandritingStroke and cancelHandWriting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_input_api.h
diff --git a/chrome/browser/extensions/extension_input_api.h b/chrome/browser/extensions/extension_input_api.h
index 39a8161bf3b437a6b049e89ba4be9f9b68818f04..2bf7f8f524c45a3da59aae9a0ca8bc916f59df1a 100644
--- a/chrome/browser/extensions/extension_input_api.h
+++ b/chrome/browser/extensions/extension_input_api.h
@@ -33,4 +33,25 @@ class SendKeyboardEventInputFunction : public InputFunction {
views::Widget* GetTopLevelWidget();
};
+#if defined(OS_CHROMEOS) && defined(TOUCH_UI)
+// Note that this experimental APIs are currently only available for
+// TOUCH_UI version of Chrome OS. Please also note that the version of Chrome
+// OS is always built with TOOLKIT_VIEWS.
+//
+// We may eventually support other platforms, especially non TOUCH_UI version
+// of Chrome OS.
+class SendHandwritingStrokeFunction : public SyncExtensionFunction {
+ public:
+ virtual bool RunImpl();
+ DECLARE_EXTENSION_FUNCTION_NAME("experimental.input.sendHandwritingStroke");
+};
+
+class CancelHandwritingStrokesFunction : public SyncExtensionFunction {
+ public:
+ virtual bool RunImpl();
+ DECLARE_EXTENSION_FUNCTION_NAME(
+ "experimental.input.cancelHandwritingStrokes");
+};
+#endif
+
#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_API_H_
« no previous file with comments | « chrome/browser/extensions/extension_function_dispatcher.cc ('k') | chrome/browser/extensions/extension_input_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698