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

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: 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 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 {
Peng 2011/04/27 15:13:44 I am thinking it is better to have a namespace chr
Yusuke Sato 2011/04/28 10:57:07 Are we planning to have an API which allows extens
Peng 2011/04/28 15:00:30 We don't have a plan to allow the VK interact with
2423 "name": "sendHandwritingStrokes",
2424 "type": "function",
2425 "description": "Send a handwriting event to Chrome.",
2426 "parameters": [
2427 {
2428 "name": "strokes",
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",
2442 "type": "function",
2443 "description": "Clear last N handwriting strokes.",
2444 "parameters": [
2445 {
2446 "name": "n_strokes",
2447 "optional": true,
2448 "type": "integer"
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 2904 matching lines...) Expand 10 before | Expand all | Expand 10 after
5335 { 5365 {
5336 "type": "integer", 5366 "type": "integer",
5337 "name": "tabId", 5367 "name": "tabId",
5338 "description": "The id of the tab that was detached." 5368 "description": "The id of the tab that was detached."
5339 } 5369 }
5340 ] 5370 ]
5341 } 5371 }
5342 ] 5372 ]
5343 } 5373 }
5344 ] 5374 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698