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 8052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
8063 "name": "result", | 8063 "name": "result", |
8064 "type": "string", | 8064 "type": "string", |
8065 "description": "A string result code. The value is non-empty on success only in tests.", | 8065 "description": "A string result code. The value is non-empty on success only in tests.", |
8066 "optional": "true" | 8066 "optional": "true" |
8067 } | 8067 } |
8068 ] | 8068 ] |
8069 } | 8069 } |
8070 ] | 8070 ] |
8071 } | 8071 } |
8072 ] | 8072 ] |
8073 }, | |
8074 { | |
8075 "namespace": "experimental.clear", | |
8076 "types": [ | |
8077 { | |
8078 "id": "TimePeriod", | |
8079 "type": "string", | |
8080 "enum": ["last_hour", "last_day", "last_week", "last_month", "everything "], | |
8081 "description": "The timeframe inside of which to delete browsing data. P assing 'last_day', for example, will delete all browsing data that was touched b etween 24 hours ago and right now, inclusive." | |
8082 } | |
8083 ], | |
8084 "functions": [ | |
8085 { | |
8086 "name": "browsingData", | |
8087 "description": "Clears data generated by browsing within a particular ti meframe.", | |
8088 "type": "function", | |
8089 "parameters": [ | |
8090 { | |
8091 "$ref": "TimePeriod", | |
8092 "name": "period" | |
8093 }, | |
8094 { | |
8095 "name": "dataToRemove", | |
8096 "type": "object", | |
8097 "properties": { | |
8098 "cache": { | |
8099 "type": "boolean", | |
8100 "optional": true, | |
8101 "description": "Should the browser cache be cleared?" | |
8102 }, | |
8103 "cookies": { | |
8104 "type": "boolean", | |
8105 "optional": true, | |
8106 "description": "Should the browser's cookies be cleared?" | |
8107 }, | |
8108 "downloads": { | |
8109 "type": "boolean", | |
8110 "optional": true, | |
8111 "description": "Should the browser's download list be cleared?" | |
8112 }, | |
8113 "formData": { | |
8114 "type": "boolean", | |
8115 "optional": true, | |
8116 "description": "Should stored form data be cleared?" | |
8117 }, | |
8118 "history": { | |
8119 "type": "boolean", | |
8120 "optional": true, | |
8121 "description": "Should the browser's history be cleared?" | |
8122 }, | |
8123 "passwords": { | |
8124 "type": "boolean", | |
8125 "optional": true, | |
8126 "description": "Should the stored passwords be cleared?" | |
8127 } | |
8128 } | |
8129 }, | |
8130 { | |
8131 "name": "callback", | |
8132 "type": "function", | |
8133 "description": "Called when deletion has completed.", | |
8134 "optional": true, | |
8135 "parameters": [ | |
8136 { | |
8137 "name": "result", | |
8138 "type": "boolean", | |
Mihai Parparita -not on Chrome
2011/08/23 23:24:13
I'm not seeing this parameter being passed back. E
Mike West
2011/08/24 09:10:33
It's hardcoded to `true` at the moment (see Browsi
| |
8139 "description": "Was the data deletion successful?" | |
8140 } | |
8141 ] | |
8142 } | |
8143 ] | |
8144 }, | |
8145 { | |
8146 "name": "cache", | |
8147 "description": "Clears the browser's cache.", | |
8148 "type": "function", | |
8149 "parameters": [ | |
8150 { | |
8151 "$ref": "TimePeriod", | |
8152 "name": "period" | |
8153 }, | |
8154 { | |
8155 "name": "callback", | |
8156 "type": "function", | |
8157 "description": "Called when the browser's cache has cleared.", | |
8158 "optional": true, | |
8159 "parameters": [ | |
8160 { | |
8161 "name": "result", | |
8162 "type": "boolean", | |
8163 "description": "Was the data deletion successful?" | |
8164 } | |
8165 ] | |
8166 } | |
8167 ] | |
8168 }, | |
8169 { | |
8170 "name": "cookies", | |
8171 "description": "Clears the browser's cookies and site data.", | |
8172 "type": "function", | |
8173 "parameters": [ | |
8174 { | |
8175 "$ref": "TimePeriod", | |
8176 "name": "period" | |
8177 }, | |
8178 { | |
8179 "name": "callback", | |
8180 "type": "function", | |
8181 "description": "Called when the browser's cookies and site data have been cleared.", | |
8182 "optional": true, | |
8183 "parameters": [ | |
8184 { | |
8185 "name": "result", | |
8186 "type": "boolean", | |
8187 "description": "Was the data deletion successful?" | |
8188 } | |
8189 ] | |
8190 } | |
8191 ] | |
8192 }, | |
8193 { | |
8194 "name": "downloads", | |
8195 "description": "Clears the browser's list of downloaded files (<em>not</ em> the downloaded files themselves).", | |
8196 "type": "function", | |
8197 "parameters": [ | |
8198 { | |
8199 "$ref": "TimePeriod", | |
8200 "name": "period" | |
8201 }, | |
8202 { | |
8203 "name": "callback", | |
8204 "type": "function", | |
8205 "description": "Called when the browser's list of downloaded files h as been cleared.", | |
8206 "optional": true, | |
8207 "parameters": [ | |
8208 { | |
8209 "name": "result", | |
8210 "type": "boolean", | |
8211 "description": "Was the data deletion successful?" | |
8212 } | |
8213 ] | |
8214 } | |
8215 ] | |
8216 }, | |
8217 { | |
8218 "name": "formData", | |
8219 "description": "Clears the browser's stored form data (autofill).", | |
8220 "type": "function", | |
8221 "parameters": [ | |
8222 { | |
8223 "$ref": "TimePeriod", | |
8224 "name": "period" | |
8225 }, | |
8226 { | |
8227 "name": "callback", | |
8228 "type": "function", | |
8229 "description": "Called when the browser's form data has been cleared .", | |
8230 "optional": true, | |
8231 "parameters": [ | |
8232 { | |
8233 "name": "result", | |
8234 "type": "boolean", | |
8235 "description": "Was the data deletion successful?" | |
8236 } | |
8237 ] | |
8238 } | |
8239 ] | |
8240 }, | |
8241 { | |
8242 "name": "history", | |
8243 "description": "Clears the browser's history.", | |
8244 "type": "function", | |
8245 "parameters": [ | |
8246 { | |
8247 "$ref": "TimePeriod", | |
8248 "name": "period" | |
8249 }, | |
8250 { | |
8251 "name": "callback", | |
8252 "type": "function", | |
8253 "description": "Called when the browser's history has cleared.", | |
8254 "optional": true, | |
8255 "parameters": [ | |
8256 { | |
8257 "name": "result", | |
8258 "type": "boolean", | |
8259 "description": "Was the data deletion successful?" | |
8260 } | |
8261 ] | |
8262 } | |
8263 ] | |
8264 }, | |
8265 { | |
8266 "name": "passwords", | |
8267 "description": "Clears the browser's stored passwords.", | |
8268 "type": "function", | |
8269 "parameters": [ | |
8270 { | |
8271 "$ref": "TimePeriod", | |
8272 "name": "period" | |
8273 }, | |
8274 { | |
8275 "name": "callback", | |
8276 "type": "function", | |
8277 "description": "Called when the browser's passwords have been cleare d.", | |
8278 "optional": true, | |
8279 "parameters": [ | |
8280 { | |
8281 "name": "result", | |
8282 "type": "boolean", | |
8283 "description": "Was the data deletion successful?" | |
8284 } | |
8285 ] | |
8286 } | |
8287 ] | |
8288 } | |
8289 ] | |
8073 } | 8290 } |
8074 ] | 8291 ] |
OLD | NEW |