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

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, 8 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/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 8de6a8d1f3c7b1878209fe693ac2df0ea52742ca..390930035076bea6ef80f4a7cc128b259f6fc546 100644
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -2418,6 +2418,36 @@
"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": "cancelHandwriting",
Mihai Parparita -not on Chrome 2011/05/05 22:47:49 Shouldn't this be called cancelHandwritingStrokes,
Yusuke Sato 2011/05/16 15:47:38 Done.
+ "type": "function",
+ "description": "Clear last N handwriting strokes.",
+ "parameters": [
+ {
+ "name": "n_strokes",
Mihai Parparita -not on Chrome 2011/05/05 22:47:49 The name of this should be strokeCount. You should
Yusuke Sato 2011/05/16 15:47:38 Done.
+ "optional": true,
+ "type": "integer"
Erik does not do reviews 2011/05/06 00:51:03 also, should this be a positive only int?
Yusuke Sato 2011/05/16 15:47:38 Added "minimum": 0. On 2011/05/06 00:51:03, Erik
+ }
+ ]
}
],
"events": []

Powered by Google App Engine
This is Rietveld 408576698