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 4540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4551 "properties": { | 4551 "properties": { |
4552 "login": { "type": "string", "optional": true }, | 4552 "login": { "type": "string", "optional": true }, |
4553 "token": { "type": "string", "optional": true } | 4553 "token": { "type": "string", "optional": true } |
4554 } | 4554 } |
4555 } | 4555 } |
4556 ] | 4556 ] |
4557 } | 4557 } |
4558 ] | 4558 ] |
4559 } | 4559 } |
4560 ] | 4560 ] |
| 4561 }, |
| 4562 { |
| 4563 "namespace": "experimental.extension", |
| 4564 "types": [ |
| 4565 { |
| 4566 "id": "Preference", |
| 4567 "type": "object", |
| 4568 "customBindings": "Preference", |
| 4569 "description": "An object which allows access to a preference.", |
| 4570 "functions": [ |
| 4571 { |
| 4572 "name": "get", |
| 4573 "type": "function", |
| 4574 "description": "Get the setting from the user preferences.", |
| 4575 "parameters": [ |
| 4576 { |
| 4577 "name": "details", |
| 4578 "type": "object", |
| 4579 "description": "What setting to return.", |
| 4580 "properties": { |
| 4581 "incognito": { |
| 4582 "type": "boolean", |
| 4583 "optional": true, |
| 4584 "description": "Whether to return the setting that applies t
o the incognito session only (default false)." |
| 4585 } |
| 4586 } |
| 4587 }, |
| 4588 { |
| 4589 "name": "callback", |
| 4590 "type": "function", |
| 4591 "parameters": [ |
| 4592 { |
| 4593 "name": "value", |
| 4594 "description": "The value of the preference.", |
| 4595 "type": "any" |
| 4596 } |
| 4597 ] |
| 4598 } |
| 4599 ] |
| 4600 }, |
| 4601 { |
| 4602 "name": "set", |
| 4603 "type": "function", |
| 4604 "description": "Set the setting in the user preferences", |
| 4605 "parameters": [ |
| 4606 { |
| 4607 "name": "details", |
| 4608 "type": "object", |
| 4609 "description": "What setting to change.", |
| 4610 "properties": { |
| 4611 "value": { |
| 4612 "description": "The value of the preference.", |
| 4613 "type": "any" |
| 4614 }, |
| 4615 "incognito": { |
| 4616 "type": "boolean", |
| 4617 "optional": true, |
| 4618 "description": "Whether to modify the setting for the incogn
ito session only (default false)." |
| 4619 } |
| 4620 } |
| 4621 }, |
| 4622 { |
| 4623 "name": "callback", |
| 4624 "type": "function", |
| 4625 "description": "Called after the preference has been set.", |
| 4626 "optional": true, |
| 4627 "parameters": [] |
| 4628 } |
| 4629 ] |
| 4630 } |
| 4631 ] |
| 4632 } |
| 4633 ] |
| 4634 }, |
| 4635 { |
| 4636 "namespace": "experimental.contentSettings.misc", |
| 4637 "properties": { |
| 4638 "blockThirdPartyCookies": { |
| 4639 "$ref": "Preference", |
| 4640 "value": ["blockThirdPartyCookies", {"type": "boolean"}], |
| 4641 "description": "Whether third party cookies should be blocked. The value
of this preference is of type boolean." |
| 4642 } |
| 4643 } |
4561 } | 4644 } |
4562 ] | 4645 ] |
OLD | NEW |