1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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."
}
]
}
]
}
|