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

Side by Side Diff: chrome/common/extensions/api/extension_api.json

Issue 160228: Functionality has been requested in the Extension API for Javascript to... (Closed)
Patch Set: added docs Created 11 years, 4 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
« no previous file with comments | « chrome/common/common_resources.grd ('k') | chrome/common/extensions/docs/tabs.html » ('j') | 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 "types": [ 4 "types": [
5 { 5 {
6 "id": "Port", 6 "id": "Port",
7 "type": "object", 7 "type": "object",
8 "properties": { 8 "properties": {
9 "name": {"type": "string"}, 9 "name": {"type": "string"},
10 "onDisconnect": {"type": "object"}, 10 "onDisconnect": {"type": "object"},
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 "parameters": [ 391 "parameters": [
392 {"type": "integer", "name": "tabId", "minimum": 0, "optional": true}, 392 {"type": "integer", "name": "tabId", "minimum": 0, "optional": true},
393 { 393 {
394 "type": "function", 394 "type": "function",
395 "name": "callback", 395 "name": "callback",
396 "parameters": [ 396 "parameters": [
397 {"type": "string", "name": "language"} 397 {"type": "string", "name": "language"}
398 ] 398 ]
399 } 399 }
400 ] 400 ]
401 },
402 {
403 "name": "captureVisibleTab",
404 "type": "function",
405 "description": "Captures the visible area of the visible tab in the give n window.",
406 "parameters": [
407 {"type": "integer", "name": "windowId", "minimum": 0, "optional": true , "description": "The target window. If <var>null</var> or <var>undefined</var>, the 'current' window will be assumed."},
408 {"type": "function", "name": "callback", "parameters": [
409 {"type": "string", "name": "dataUrl", "description": "a data url e ncoding of the captured tab."}
410 ]
411 }
412 ]
401 } 413 }
402 ], 414 ],
403 "events": [ 415 "events": [
404 { 416 {
405 "name": "onCreated", 417 "name": "onCreated",
406 "type": "function", 418 "type": "function",
407 "description": "", 419 "description": "",
408 "parameters": [ 420 "parameters": [
409 {"$ref": "Tab", "name": "tab"} 421 {"$ref": "Tab", "name": "tab"}
410 ] 422 ]
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 "description": "", 817 "description": "",
806 "parameters": [ 818 "parameters": [
807 {"type": "string", "name": "url", "optional": true}, 819 {"type": "string", "name": "url", "optional": true},
808 {"type": "function", "name": "callback", "optional": true, "parameters ": []} 820 {"type": "function", "name": "callback", "optional": true, "parameters ": []}
809 ] 821 ]
810 } 822 }
811 ], 823 ],
812 "events": [] 824 "events": []
813 } 825 }
814 ] 826 ]
OLDNEW
« no previous file with comments | « chrome/common/common_resources.grd ('k') | chrome/common/extensions/docs/tabs.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698