summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/api/tabs.json
diff options
context:
space:
mode:
authorrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-15 18:14:45 +0000
committerrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-15 18:14:45 +0000
commitba2a05080653855ad27feaec2bed12146e0e84c6 (patch)
tree731e718cba64d4ef8406d84d99eae5cc62efedc7 /chrome/common/extensions/api/tabs.json
parent0185693d286274e9ddf47073db402f073441c5f7 (diff)
downloadchromium_src-ba2a05080653855ad27feaec2bed12146e0e84c6.zip
chromium_src-ba2a05080653855ad27feaec2bed12146e0e84c6.tar.gz
chromium_src-ba2a05080653855ad27feaec2bed12146e0e84c6.tar.bz2
First cut at extension docs.
This adds the base mechanism for api reference pages to be generated from shared json schema api definitions. TBR=aa Review URL: http://codereview.chromium.org/149503 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20748 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/api/tabs.json')
-rwxr-xr-xchrome/common/extensions/api/tabs.json50
1 files changed, 50 insertions, 0 deletions
diff --git a/chrome/common/extensions/api/tabs.json b/chrome/common/extensions/api/tabs.json
new file mode 100755
index 0000000..112f231
--- /dev/null
+++ b/chrome/common/extensions/api/tabs.json
@@ -0,0 +1,50 @@
+{
+ "namespace": "chrome.tabs",
+ "types": [],
+ "functions": [
+ {
+ "name": "getLanguage",
+ "description": "Attempts to determine the language of the content of the tab with id <var>tabId</var>",
+ "parameters": [
+ {
+ "name": "tabId",
+ "description": "The id of the tab whose contents should be evaluated for it's source language",
+ "type": "integer",
+ "minimum": 0,
+ "optional": true
+ },
+ {
+ "name": "callback",
+ "description": "Function to callback upon completion.",
+ "type": "function",
+ "optional": true
+ }
+ ],
+ "callbackParameters" : [
+ {
+ "name": "result",
+ "type": "string",
+ "description": "The language of the content found in specified tab."
+ }
+ ]
+ }
+ ],
+ "events": [
+ {
+ "name": "onMoved",
+ "description": "Sent whenever a tab is moved.",
+ "parameters": [
+ {
+ "name": "tabId",
+ "type": "integer",
+ "description": "The id of the tab that was moved."
+ },
+ {
+ "name": "TabMoveDetails",
+ "type": "object",
+ "description": "Properties describing the tab move event."
+ }
+ ]
+ }
+ ]
+} \ No newline at end of file