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 35 matching lines...) Loading... |
46 "lastError": { | 46 "lastError": { |
47 "type": "object", | 47 "type": "object", |
48 "optional": true, | 48 "optional": true, |
49 "unprivileged": true, | 49 "unprivileged": true, |
50 "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 "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>.", |
51 "properties": { | 51 "properties": { |
52 "message": { "type": "string", "description": "Description of the erro
r that has taken place." } | 52 "message": { "type": "string", "description": "Description of the erro
r that has taken place." } |
53 } | 53 } |
54 }, | 54 }, |
55 "inIncognitoContext": { | 55 "inIncognitoContext": { |
56 "type": "object", | 56 "type": "boolean", |
57 "optional": true, | 57 "optional": true, |
58 "unprivileged": true, | 58 "unprivileged": true, |
59 "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 "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." |
60 "properties": { | |
61 "message": { "type": "boolean", "description": "True if the page or sc
ript is in an incongito process." } | |
62 } | |
63 } | 60 } |
64 }, | 61 }, |
65 "functions": [ | 62 "functions": [ |
66 { | 63 { |
67 "name": "connect", | 64 "name": "connect", |
68 "type": "function", | 65 "type": "function", |
69 "unprivileged": true, | 66 "unprivileged": true, |
70 "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>.", | 67 "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>.", |
71 "parameters": [ | 68 "parameters": [ |
72 {"type": "string", "name": "extensionId", "optional": true, "descripti
on": "The extension ID of the extension you want to connect to. If omitted, defa
ult is your own extension."}, | 69 {"type": "string", "name": "extensionId", "optional": true, "descripti
on": "The extension ID of the extension you want to connect to. If omitted, defa
ult is your own extension."}, |
(...skipping 5593 matching lines...) Loading... |
5666 } | 5663 } |
5667 } | 5664 } |
5668 } | 5665 } |
5669 ] | 5666 ] |
5670 } | 5667 } |
5671 ] | 5668 ] |
5672 } | 5669 } |
5673 ] | 5670 ] |
5674 }, | 5671 }, |
5675 { | 5672 { |
5676 "namespace": "experimental.contentSettings.global", | 5673 "namespace": "experimental.contentSettings", |
| 5674 "types": [ |
| 5675 { |
| 5676 "id": "ResourceIdentifier", |
| 5677 "type": "object", |
| 5678 "properties": { |
| 5679 "id": { |
| 5680 "type": "string", |
| 5681 "description": "The resource identifier for the given content type." |
| 5682 }, |
| 5683 "description": { |
| 5684 "type": "string", |
| 5685 "description": "A human readable description of the resource." |
| 5686 } |
| 5687 }, |
| 5688 "description": "Currently, no content types use resource identifiers." |
| 5689 }, |
| 5690 { |
| 5691 "id": "Pattern", |
| 5692 "type": "object", |
| 5693 "properties": { |
| 5694 "pattern": { |
| 5695 "type": "string", |
| 5696 "description": "The pattern string. The pattern should never be cons
tructed directly, but should always be derived from an URL using the methods in
the <var>contentSettings.patterns</var> module." |
| 5697 } |
| 5698 } |
| 5699 }, |
| 5700 { |
| 5701 "id": "ContentSettingRule", |
| 5702 "type": "object", |
| 5703 "properties": { |
| 5704 "topLevelPattern": { |
| 5705 "$ref": "Pattern", |
| 5706 "description": "The pattern for the top-level frame URL." |
| 5707 }, |
| 5708 "embeddedPattern": { |
| 5709 "$ref": "Pattern", |
| 5710 "description": "The pattern for the frame or object URL." |
| 5711 }, |
| 5712 "resourceIdentifier": { |
| 5713 "$ref": "ResourceIdentifier", |
| 5714 "optional": true, |
| 5715 "description": "The resource identifier for the content type." |
| 5716 }, |
| 5717 "setting": { |
| 5718 "type": "any", |
| 5719 "description": "The setting applied by this rule. See the descriptio
n of the individual ContentSetting objects for the possible values." |
| 5720 } |
| 5721 } |
| 5722 }, |
| 5723 { |
| 5724 "id": "ContentSetting", |
| 5725 "type": "object", |
| 5726 "functions": [ |
| 5727 { |
| 5728 "name": "clear", |
| 5729 "type": "function", |
| 5730 "description": "Clear all content setting rules set by this extensio
n.", |
| 5731 "parameters": [ |
| 5732 { |
| 5733 "name": "details", |
| 5734 "type": "object", |
| 5735 "properties": { |
| 5736 "scope": { |
| 5737 "type": "string", |
| 5738 "enum": ["regular", "incognito_session_only"], |
| 5739 "optional": true, |
| 5740 "description": "Where to set the setting (default: regular).
One of<br><var>regular</var>: setting for regular profile (which is inherited b
y the incognito profile if not overridden elsewhere),<br><var>incognito_session_
only</var>: setting for incognito profile that can only be set during an incogni
to session and is deleted when the incognito session ends (overrides regular set
tings)." |
| 5741 } |
| 5742 } |
| 5743 }, |
| 5744 { |
| 5745 "type": "function", |
| 5746 "name": "callback", |
| 5747 "optional": true, |
| 5748 "parameters": [] |
| 5749 } |
| 5750 ] |
| 5751 }, |
| 5752 { |
| 5753 "name": "get", |
| 5754 "type": "function", |
| 5755 "description": "Get the current content setting for a given pair of
URLs.", |
| 5756 "parameters": [ |
| 5757 { |
| 5758 "name": "details", |
| 5759 "type": "object", |
| 5760 "properties": { |
| 5761 "embeddedUrl": { |
| 5762 "type": "string", |
| 5763 "description": "The URL of the frame or object for which the
content settings should be retrieved." |
| 5764 }, |
| 5765 "topLevelUrl": { |
| 5766 "type": "string", |
| 5767 "description": "The URL of the top-level frame." |
| 5768 }, |
| 5769 "resourceIdentifier": { |
| 5770 "$ref": "ResourceIdentifier", |
| 5771 "optional": true, |
| 5772 "description": "A more specific identifier of the type of co
ntent for which the settings should be retrieved." |
| 5773 }, |
| 5774 "incognito": { |
| 5775 "type": "boolean", |
| 5776 "optional": true, |
| 5777 "description": "Whether to check the content settings for an
incognito session. (default false)" |
| 5778 } |
| 5779 } |
| 5780 }, |
| 5781 { |
| 5782 "type": "function", |
| 5783 "name": "callback", |
| 5784 "parameters": [ |
| 5785 { |
| 5786 "name": "details", |
| 5787 "type": "object", |
| 5788 "properties": { |
| 5789 "setting": { |
| 5790 "type": "any", |
| 5791 "description": "The content setting. See the description
of the individual ContentSetting objects for the possible values." |
| 5792 } |
| 5793 } |
| 5794 } |
| 5795 ] |
| 5796 } |
| 5797 ] |
| 5798 }, |
| 5799 { |
| 5800 "name": "set", |
| 5801 "type": "function", |
| 5802 "description": "Apply a new content setting rule.", |
| 5803 "parameters": [ |
| 5804 { |
| 5805 "name": "details", |
| 5806 "type": "object", |
| 5807 "properties": { |
| 5808 "topLevelPattern": { |
| 5809 "$ref": "Pattern", |
| 5810 "description": "The pattern for the top-level frame URL." |
| 5811 }, |
| 5812 "embeddedPattern": { |
| 5813 "$ref": "Pattern", |
| 5814 "description": "The pattern for the frame or object URL." |
| 5815 }, |
| 5816 "resourceIdentifier": { |
| 5817 "$ref": "ResourceIdentifier", |
| 5818 "optional": true, |
| 5819 "description": "The resource identifier for the content type
." |
| 5820 }, |
| 5821 "setting": { |
| 5822 "type": "any", |
| 5823 "description": "The setting applied by this rule. See the de
scription of the individual ContentSetting objects for the possible values." |
| 5824 }, |
| 5825 "scope": { |
| 5826 "type": "string", |
| 5827 "enum": ["regular", "incognito_session_only"], |
| 5828 "optional": true, |
| 5829 "description": "Where to clear the setting (default: regular
). One of<br><var>regular</var>: setting for regular profile (which is inherited
by the incognito profile if not overridden elsewhere),<br><var>incognito_sessio
n_only</var>: setting for incognito profile that can only be set during an incog
nito session and is deleted when the incognito session ends (overrides regular s
ettings)." |
| 5830 } |
| 5831 } |
| 5832 }, |
| 5833 { |
| 5834 "type": "function", |
| 5835 "name": "callback", |
| 5836 "optional": true, |
| 5837 "parameters": [] |
| 5838 } |
| 5839 ] |
| 5840 } |
| 5841 ] |
| 5842 } |
| 5843 ], |
5677 "properties": { | 5844 "properties": { |
5678 "thirdPartyCookiesAllowed": { | 5845 "global": { |
5679 "$ref": "ChromeSetting", | 5846 "type": "object", |
5680 "value": ["thirdPartyCookiesAllowed", {"type": "boolean"}], | 5847 "value": {}, |
5681 "description": "Whether third party cookies should be allowed. The value
of this preference is of type boolean, and the default value is true." | 5848 "properties": { |
5682 }, | 5849 "thirdPartyCookiesAllowed": { |
5683 "referrersEnabled": { | 5850 "$ref": "ChromeSetting", |
5684 "$ref": "ChromeSetting", | 5851 "value": ["thirdPartyCookiesAllowed", {"type": "boolean"}], |
5685 "value": ["referrersEnabled", {"type":"boolean"}], | 5852 "description": "Whether third party cookies should be allowed. The v
alue of this preference is of type boolean, and the default value is true." |
5686 "description": "Whether referrers should be enabled. The value of this p
reference is of type boolean, and the default value is true." | 5853 }, |
5687 }, | 5854 "referrersEnabled": { |
5688 "hyperlinkAuditingEnabled": { | 5855 "$ref": "ChromeSetting", |
5689 "$ref": "ChromeSetting", | 5856 "value": ["referrersEnabled", {"type":"boolean"}], |
5690 "value": ["hyperlinkAuditingEnabled", {"type":"boolean"}], | 5857 "description": "Whether referrers should be enabled. The value of th
is preference is of type boolean, and the default value is true." |
5691 "description": "Whether to enable hyperlink auditing (\"<a ping>\"
). The value of this preference is of type boolean, and the default value is tru
e." | 5858 }, |
| 5859 "hyperlinkAuditingEnabled": { |
| 5860 "$ref": "ChromeSetting", |
| 5861 "value": ["hyperlinkAuditingEnabled", {"type":"boolean"}], |
| 5862 "description": "Whether to enable hyperlink auditing (\"<a ping&g
t;\"). The value of this preference is of type boolean, and the default value is
true." |
| 5863 } |
| 5864 } |
| 5865 }, |
| 5866 "cookies": { |
| 5867 "$ref": "ContentSetting", |
| 5868 "description": "Whether to allow cookies and other local data to be set
by websites. One of<br><var>allow</var>: Accept cookies,<br><var>block</var>: Bl
ock cookies,<br><var>session_only</var>: Accept cookies only for the current ses
sion. Default is <var>allow</var>.", |
| 5869 "value": [ |
| 5870 "cookies", |
| 5871 {"type":"string", "enum": ["allow", "block", "session_only"]} |
| 5872 ] |
| 5873 }, |
| 5874 "images": { |
| 5875 "$ref": "ContentSetting", |
| 5876 "description": "Whether to show images. One of<br><var>allow</var>: Show
images,<br><var>block</var>: Don't show images. Default is <var>allow</var>.", |
| 5877 "value": [ |
| 5878 "images", |
| 5879 {"type":"string", "enum": ["allow", "block"]} |
| 5880 ] |
| 5881 }, |
| 5882 "javascript": { |
| 5883 "$ref": "ContentSetting", |
| 5884 "description": "Whether to run Javascript. One of<br><var>allow</var>: R
un Javascript,<br><var>block</var>: Don't run Javascript. Default is <var>allow<
/var>.", |
| 5885 "value": [ |
| 5886 "javascript", |
| 5887 {"type":"string", "enum": ["allow", "block"]} |
| 5888 ] |
| 5889 }, |
| 5890 "plugins": { |
| 5891 "$ref": "ContentSetting", |
| 5892 "description": "Whether to run plug-ins. One of<br><var>allow</var>: Run
plug-ins automatically,<br><var>block</var>: Don't run plug-ins automatically.
Default is <var>allow</var>.", |
| 5893 "value": [ |
| 5894 "plugins", |
| 5895 {"type":"string", "enum": ["allow", "block"]} |
| 5896 ] |
| 5897 }, |
| 5898 "popups": { |
| 5899 "$ref": "ContentSetting", |
| 5900 "description": "Whether to allow sites to show pop-ups. One of<br><var>a
llow</var>: Allow sites to show pop-ups,<br><var>block</var>: Don't allow sites
to show pop-ups. Default is <var>block</var>.", |
| 5901 "value": [ |
| 5902 "popups", |
| 5903 {"type":"string", "enum": ["allow", "block"]} |
| 5904 ] |
| 5905 }, |
| 5906 "notifications": { |
| 5907 "$ref": "ContentSetting", |
| 5908 "description": "Whether to allow sites to show desktop notifications. On
e of<br><var>allow</var>: Allow sites to show desktop notifications,<br><var>blo
ck</var>: Don't allow sites to show desktop notifications,<br><var>ask</var>: As
k when a site wants to show desktop notifications. Default is <var>ask</var>.", |
| 5909 "value": [ |
| 5910 "notifications", |
| 5911 {"type":"string", "enum": ["allow", "block", "ask"]} |
| 5912 ] |
5692 } | 5913 } |
5693 } | 5914 } |
5694 }, | 5915 }, |
5695 { | 5916 { |
5696 "namespace": "experimental.debugger", | 5917 "namespace": "experimental.debugger", |
5697 "functions": [ | 5918 "functions": [ |
5698 { | 5919 { |
5699 "name": "attach", | 5920 "name": "attach", |
5700 "type": "function", | 5921 "type": "function", |
5701 "description": "Attaches debugger to the tab with given id.", | 5922 "description": "Attaches debugger to the tab with given id.", |
(...skipping 107 matching lines...) Loading... |
5809 { | 6030 { |
5810 "type": "integer", | 6031 "type": "integer", |
5811 "name": "tabId", | 6032 "name": "tabId", |
5812 "description": "The id of the tab that was detached." | 6033 "description": "The id of the tab that was detached." |
5813 } | 6034 } |
5814 ] | 6035 ] |
5815 } | 6036 } |
5816 ] | 6037 ] |
5817 } | 6038 } |
5818 ] | 6039 ] |
OLD | NEW |