summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/api/tabs.json
diff options
context:
space:
mode:
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