| OLD | NEW |
| 1 [ | 1 [ |
| 2 { | 2 { |
| 3 "namespace": "extension", | 3 "namespace": "extension", |
| 4 "unprivileged": true, | 4 "unprivileged": true, |
| 5 "types": [ | 5 "types": [ |
| 6 { | 6 { |
| 7 "id": "MessageSender", | 7 "id": "MessageSender", |
| 8 "type": "object", | 8 "type": "object", |
| 9 "description": "An object containing information about the script contex
t that sent a message or request.", | 9 "description": "An object containing information about the script contex
t that sent a message or request.", |
| 10 "properties": { | 10 "properties": { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 ], | 44 ], |
| 45 "properties": { | 45 "properties": { |
| 46 "lastError": { | 46 "lastError": { |
| 47 "type": "object", | 47 "type": "object", |
| 48 "optional": true, | 48 "optional": true, |
| 49 "description": "Set for the lifetime of a callback if an ansychronous ex
tension api has resulted in an error. If no error has occured lastError will be
<var>undefined</var>.", | 49 "description": "Set for the lifetime of a callback if an ansychronous ex
tension api has resulted in an error. If no error has occured lastError will be
<var>undefined</var>.", |
| 50 "properties": { | 50 "properties": { |
| 51 "message": { "type": "string", "description": "Description of the erro
r that has taken place." } | 51 "message": { "type": "string", "description": "Description of the erro
r that has taken place." } |
| 52 } | 52 } |
| 53 }, | 53 }, |
| 54 "inIncognitoTab": { | 54 "inIncognitoContext": { |
| 55 "type": "object", | 55 "type": "object", |
| 56 "optional": true, | 56 "optional": true, |
| 57 "unprivileged": true, | 57 "unprivileged": true, |
| 58 "description": "True for content scripts running inside incognito tabs.
Will be undefined for non-content scripts.", | 58 "description": "True for content scripts running inside incognito tabs,
and for extension pages running inside an incognito process. The latter only app
lies to extensions with 'split' incognito_behavior.", |
| 59 "properties": { | 59 "properties": { |
| 60 "message": { "type": "boolean", "description": "True if the script is
in an incongito tab." } | 60 "message": { "type": "boolean", "description": "True if the page or sc
ript is in an incongito process." } |
| 61 } | 61 } |
| 62 } | 62 } |
| 63 }, | 63 }, |
| 64 "functions": [ | 64 "functions": [ |
| 65 { | 65 { |
| 66 "name": "connect", | 66 "name": "connect", |
| 67 "type": "function", | 67 "type": "function", |
| 68 "unprivileged": true, | 68 "unprivileged": true, |
| 69 "description": "Attempts to connect to other listeners within the extens
ion (such as the extension's background page). This is primarily useful for cont
ent scripts connecting to their extension processes. Extensions may connect to c
ontent scripts embedded in tabs via <a href='tabs.html#method-connect'><code>chr
ome.tabs.connect()</code></a>.", | 69 "description": "Attempts to connect to other listeners within the extens
ion (such as the extension's background page). This is primarily useful for cont
ent scripts connecting to their extension processes. Extensions may connect to c
ontent scripts embedded in tabs via <a href='tabs.html#method-connect'><code>chr
ome.tabs.connect()</code></a>.", |
| 70 "parameters": [ | 70 "parameters": [ |
| (...skipping 3994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4065 }, | 4065 }, |
| 4066 { | 4066 { |
| 4067 "name": "onDisabled", | 4067 "name": "onDisabled", |
| 4068 "description": "Fired when an app or extension has been disabled", | 4068 "description": "Fired when an app or extension has been disabled", |
| 4069 "type": "function", | 4069 "type": "function", |
| 4070 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] | 4070 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] |
| 4071 } | 4071 } |
| 4072 ] | 4072 ] |
| 4073 } | 4073 } |
| 4074 ] | 4074 ] |
| OLD | NEW |