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

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
« no previous file with comments | « chrome/browser/extensions/extension_input_api.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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": "cancelHandwritingStrokes",
2442 "type": "function",
2443 "description": "Clear last N handwriting strokes.",
2444 "parameters": [
2445 {
2446 "name": "strokeCount",
2447 "optional": true,
2448 "description": "The number of strokes to be removed. Pass 0 to remov e all strokes. If omitted, removes all.",
2449 "type": "integer",
2450 "minimum": 0
2451 }
2452 ]
2421 } 2453 }
2422 ], 2454 ],
2423 "events": [] 2455 "events": []
2424 }, 2456 },
2425 { 2457 {
2426 "namespace": "experimental.inputUI", 2458 "namespace": "experimental.inputUI",
2427 "nodoc": true, 2459 "nodoc": true,
2428 "types": [], 2460 "types": [],
2429 "functions": [ 2461 "functions": [
2430 { 2462 {
(...skipping 3056 matching lines...) Expand 10 before | Expand all | Expand 10 after
5487 { 5519 {
5488 "type": "integer", 5520 "type": "integer",
5489 "name": "tabId", 5521 "name": "tabId",
5490 "description": "The id of the tab that was detached." 5522 "description": "The id of the tab that was detached."
5491 } 5523 }
5492 ] 5524 ]
5493 } 5525 }
5494 ] 5526 ]
5495 } 5527 }
5496 ] 5528 ]
OLDNEW
« 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