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 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1053 "name": "onFocusChanged", | 1053 "name": "onFocusChanged", |
1054 "type": "function", | 1054 "type": "function", |
1055 "description": "Fired when the currently focused window changes. Will be
chrome.windows.WINDOW_ID_NONE if all chrome windows have lost focus. Note: On s
ome Linux window managers, WINDOW_ID_NONE will always be sent immediately preced
ing a switch from one chrome window to another.", | 1055 "description": "Fired when the currently focused window changes. Will be
chrome.windows.WINDOW_ID_NONE if all chrome windows have lost focus. Note: On s
ome Linux window managers, WINDOW_ID_NONE will always be sent immediately preced
ing a switch from one chrome window to another.", |
1056 "parameters": [ | 1056 "parameters": [ |
1057 {"type": "integer", "name": "windowId", "minimum": 0, "description": "
ID of the newly focused window."} | 1057 {"type": "integer", "name": "windowId", "minimum": 0, "description": "
ID of the newly focused window."} |
1058 ] | 1058 ] |
1059 } | 1059 } |
1060 ] | 1060 ] |
1061 }, | 1061 }, |
1062 { | 1062 { |
| 1063 "namespace": "experimental.permissions", |
| 1064 "types": [ |
| 1065 { |
| 1066 "id": "Permissions", |
| 1067 "type": "object", |
| 1068 "properties": { |
| 1069 "permissions": { |
| 1070 "type": "array", |
| 1071 "items": {"type": "string"}, |
| 1072 "optional": true, |
| 1073 "description": "List of named permissions (does not include hosts or
origins)." |
| 1074 } |
| 1075 } |
| 1076 } |
| 1077 ], |
| 1078 "events": [ |
| 1079 { |
| 1080 "name": "onAdded", |
| 1081 "type": "function", |
| 1082 "unprivileged": true, |
| 1083 "description": "Fired when the extension acquires new permissions.", |
| 1084 "parameters": [ |
| 1085 { |
| 1086 "$ref": "Permissions", |
| 1087 "name": "permissions", |
| 1088 "description": "The newly acquired permissions." |
| 1089 } |
| 1090 ] |
| 1091 }, |
| 1092 { |
| 1093 "name": "onRemoved", |
| 1094 "type": "function", |
| 1095 "unprivileged": true, |
| 1096 "description": "Fired when access to permissions has been removed from t
he extension.", |
| 1097 "parameters": [ |
| 1098 { |
| 1099 "$ref": "Permissions", |
| 1100 "name": "permissions", |
| 1101 "description": "The permissions that have been removed." |
| 1102 } |
| 1103 ] |
| 1104 } |
| 1105 ], |
| 1106 "functions": [ |
| 1107 { |
| 1108 "name": "getAll", |
| 1109 "type": "function", |
| 1110 "unprivileged": true, |
| 1111 "description": "Gets the extension's current set of permissions.", |
| 1112 "parameters": [ |
| 1113 { |
| 1114 "name": "callback", |
| 1115 "type": "function", |
| 1116 "parameters": [ |
| 1117 { |
| 1118 "name": "permissions", |
| 1119 "$ref": "Permissions", |
| 1120 "description": "The extension's active permissions." |
| 1121 } |
| 1122 ] |
| 1123 } |
| 1124 ] |
| 1125 }, |
| 1126 { |
| 1127 "name": "contains", |
| 1128 "type": "function", |
| 1129 "unprivileged": true, |
| 1130 "description": "Checks if the extension has the specified permissions.", |
| 1131 "parameters": [ |
| 1132 { |
| 1133 "name": "permissions", |
| 1134 "$ref": "Permissions" |
| 1135 }, |
| 1136 { |
| 1137 "name": "callback", |
| 1138 "type": "function", |
| 1139 "parameters": [ |
| 1140 { |
| 1141 "name": "result", |
| 1142 "type": "boolean", |
| 1143 "description": "True if the extension has the specified permissi
ons." |
| 1144 } |
| 1145 ] |
| 1146 } |
| 1147 ] |
| 1148 }, |
| 1149 { |
| 1150 "name": "request", |
| 1151 "type": "function", |
| 1152 "unprivileged": true, |
| 1153 "description": "Requests access to the specified permissions. These perm
issions must be defined in the optional_permissions field of the manifest.", |
| 1154 "parameters": [ |
| 1155 { |
| 1156 "name": "permissions", |
| 1157 "$ref": "Permissions" |
| 1158 }, |
| 1159 { |
| 1160 "name": "callback", |
| 1161 "type": "function", |
| 1162 "optional": true, |
| 1163 "parameters": [ |
| 1164 { |
| 1165 "name": "granted", |
| 1166 "type": "boolean", |
| 1167 "description": "True if the user granted the specified permissio
ns." |
| 1168 } |
| 1169 ] |
| 1170 } |
| 1171 ] |
| 1172 }, |
| 1173 { |
| 1174 "name": "remove", |
| 1175 "type": "function", |
| 1176 "unprivileged": true, |
| 1177 "description": "Removes access to the specified permissions.", |
| 1178 "parameters": [ |
| 1179 { |
| 1180 "name": "permissions", |
| 1181 "$ref": "Permissions" |
| 1182 }, |
| 1183 { |
| 1184 "name": "callback", |
| 1185 "type": "function", |
| 1186 "optional": true, |
| 1187 "parameters": [ |
| 1188 { |
| 1189 "name": "removed", |
| 1190 "type": "boolean", |
| 1191 "description": "True if the permissions were removed." |
| 1192 } |
| 1193 ] |
| 1194 } |
| 1195 ] |
| 1196 } |
| 1197 ] |
| 1198 }, |
| 1199 { |
1063 "namespace": "tabs", | 1200 "namespace": "tabs", |
1064 "types": [ | 1201 "types": [ |
1065 { | 1202 { |
1066 "id": "Tab", | 1203 "id": "Tab", |
1067 "type": "object", | 1204 "type": "object", |
1068 "properties": { | 1205 "properties": { |
1069 "id": {"type": "integer", "minimum": 0, "description": "The ID of the
tab. Tab IDs are unique within a browser session."}, | 1206 "id": {"type": "integer", "minimum": 0, "description": "The ID of the
tab. Tab IDs are unique within a browser session."}, |
1070 "index": {"type": "integer", "minimum": 0, "description": "The zero-ba
sed index of the tab within its window."}, | 1207 "index": {"type": "integer", "minimum": 0, "description": "The zero-ba
sed index of the tab within its window."}, |
1071 "windowId": {"type": "integer", "minimum": 0, "description": "The ID o
f the window the tab is contained within."}, | 1208 "windowId": {"type": "integer", "minimum": 0, "description": "The ID o
f the window the tab is contained within."}, |
1072 "selected": {"type": "boolean", "description": "Whether the tab is sel
ected."}, | 1209 "selected": {"type": "boolean", "description": "Whether the tab is sel
ected."}, |
(...skipping 5590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6663 "description": "A string result code. The value is non-empty on
success only in tests.", | 6800 "description": "A string result code. The value is non-empty on
success only in tests.", |
6664 "optional": "true" | 6801 "optional": "true" |
6665 } | 6802 } |
6666 ] | 6803 ] |
6667 } | 6804 } |
6668 ] | 6805 ] |
6669 } | 6806 } |
6670 ] | 6807 ] |
6671 } | 6808 } |
6672 ] | 6809 ] |
OLD | NEW |