diff options
author | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-15 18:14:45 +0000 |
---|---|---|
committer | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-15 18:14:45 +0000 |
commit | ba2a05080653855ad27feaec2bed12146e0e84c6 (patch) | |
tree | 731e718cba64d4ef8406d84d99eae5cc62efedc7 /chrome/common/extensions/api/tabs.json | |
parent | 0185693d286274e9ddf47073db402f073441c5f7 (diff) | |
download | chromium_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-x | chrome/common/extensions/api/tabs.json | 50 |
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 |