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

Unified Diff: chrome/common/extensions/api/extension_api.json

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
« no previous file with comments | « chrome/browser/extensions/extension_input_api.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/extension_api.json
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json
index cdaf051d596ee245334c8859a1341bf94819120f..8ae8075ef4431e3878bfd66dbffcccd78c17969c 100644
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -2418,6 +2418,38 @@
"parameters": []
}
]
+ },
+ {
+ "name": "sendHandwritingStroke",
+ "type": "function",
+ "description": "Send a handwriting event to Chrome.",
+ "parameters": [
+ {
+ "name": "stroke",
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "x": {"type": "number", "minimum": 0, "maximum": 1},
+ "y": {"type": "number", "minimum": 0, "maximum": 1}
+ }
+ }
+ }
+ ]
+ },
+ {
+ "name": "cancelHandwritingStrokes",
+ "type": "function",
+ "description": "Clear last N handwriting strokes.",
+ "parameters": [
+ {
+ "name": "strokeCount",
+ "optional": true,
+ "description": "The number of strokes to be removed. Pass 0 to remove all strokes. If omitted, removes all.",
+ "type": "integer",
+ "minimum": 0
+ }
+ ]
}
],
"events": []
« no previous file with comments | « chrome/browser/extensions/extension_input_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698