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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "extension", 3 "namespace": "extension",
4 "unprivileged": true, 4 "unprivileged": true,
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "MessageSender", 7 "id": "MessageSender",
8 "type": "object", 8 "type": "object",
9 "description": "An object containing information about the script contex t that sent a message or request.", 9 "description": "An object containing information about the script contex t that sent a message or request.",
10 "properties": { 10 "properties": {
(...skipping 2400 matching lines...) Expand 10 before | Expand all | Expand 10 after
2411 }, 2411 },
2412 "description": "The keyboard event to be sent." 2412 "description": "The keyboard event to be sent."
2413 }, 2413 },
2414 { "type": "function", 2414 { "type": "function",
2415 "name": "callback", 2415 "name": "callback",
2416 "optional": true, 2416 "optional": true,
2417 "description": "This function is called when the event processing is completed.", 2417 "description": "This function is called when the event processing is completed.",
2418 "parameters": [] 2418 "parameters": []
2419 } 2419 }
2420 ] 2420 ]
2421 },
2422 {
2423 "name": "sendHandwritingStroke",
2424 "type": "function",
2425 "description": "Send a handwriting event to Chrome.",
2426 "parameters": [
2427 {
2428 "name": "stroke",
2429 "type": "array",
2430 "items": {
2431 "type": "object",
2432 "properties": {
2433 "x": {"type": "number", "minimum": 0, "maximum": 1},
2434 "y": {"type": "number", "minimum": 0, "maximum": 1}
2435 }
2436 }
2437 }
2438 ]
2439 },
2440 {
2441 "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.
2442 "type": "function",
2443 "description": "Clear last N handwriting strokes.",
2444 "parameters": [
2445 {
2446 "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.
2447 "optional": true,
2448 "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
2449 }
2450 ]
2421 } 2451 }
2422 ], 2452 ],
2423 "events": [] 2453 "events": []
2424 }, 2454 },
2425 { 2455 {
2426 "namespace": "experimental.bookmarkManager", 2456 "namespace": "experimental.bookmarkManager",
2427 "nodoc": true, 2457 "nodoc": true,
2428 "types": [ 2458 "types": [
2429 { 2459 {
2430 "id": "BookmarkNodeDataElement", 2460 "id": "BookmarkNodeDataElement",
(...skipping 2940 matching lines...) Expand 10 before | Expand all | Expand 10 after
5371 { 5401 {
5372 "type": "integer", 5402 "type": "integer",
5373 "name": "tabId", 5403 "name": "tabId",
5374 "description": "The id of the tab that was detached." 5404 "description": "The id of the tab that was detached."
5375 } 5405 }
5376 ] 5406 ]
5377 } 5407 }
5378 ] 5408 ]
5379 } 5409 }
5380 ] 5410 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698