Chromium Code Reviews| 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 3036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3047 "name": "onDrop", | 3047 "name": "onDrop", |
| 3048 "type": "function", | 3048 "type": "function", |
| 3049 "description": "Fired when the user drops bookmarks on the document", | 3049 "description": "Fired when the user drops bookmarks on the document", |
| 3050 "parameters": [ | 3050 "parameters": [ |
| 3051 {"$ref": "BookmarkNodeData"} | 3051 {"$ref": "BookmarkNodeData"} |
| 3052 ] | 3052 ] |
| 3053 } | 3053 } |
| 3054 ] | 3054 ] |
| 3055 }, | 3055 }, |
| 3056 { | 3056 { |
| 3057 "namespace": "experimental.downloads", | |
|
Mihai Parparita -not on Chrome
2011/07/27 16:28:08
It's probably a good idea to add the "nodoc": true
benjhayden
2011/07/27 18:40:31
Done.
| |
| 3058 "events": [ | |
| 3059 { | |
| 3060 "name": "onCreated", | |
| 3061 "type": "function", | |
| 3062 "unprivileged": true, | |
| 3063 "description": "Fires when a download begins.", | |
| 3064 "parameters": [ | |
| 3065 {"$ref": "DownloadItem"} | |
| 3066 ] | |
| 3067 }, | |
| 3068 { | |
| 3069 "name": "onChanged", | |
| 3070 "type": "function", | |
| 3071 "unprivileged": true, | |
| 3072 "description": "Fires when a property of a DownloadItem changes.", | |
| 3073 "parameters": [ | |
| 3074 {"$ref": "DownloadDelta"} | |
| 3075 ] | |
| 3076 }, | |
| 3077 { | |
| 3078 "name": "onErased", | |
| 3079 "type": "function", | |
| 3080 "unprivileged": true, | |
| 3081 "description": "Fires when a download is erased from history.", | |
| 3082 "parameters": [ | |
| 3083 {"type": "integer", "name": "download_id"} | |
| 3084 ] | |
| 3085 } | |
| 3086 ], | |
| 3087 "properties": { | |
| 3088 "STATE_IN_PROGRESS": { | |
| 3089 "type": "string", | |
| 3090 "value": "in progress", | |
| 3091 "description": "The download is currently receiving data from the server ." | |
| 3092 }, | |
| 3093 "STATE_INTERRUPTED": { | |
| 3094 "type": "string", | |
| 3095 "value": "interrupted", | |
| 3096 "description": "An error broke the connection with the file host." | |
| 3097 }, | |
| 3098 "STATE_COMPLETE": { | |
| 3099 "type": "string", | |
| 3100 "value": "complete", | |
| 3101 "description": "The download has completed." | |
| 3102 }, | |
| 3103 "DANGER_SAFE": { | |
| 3104 "type": "string", | |
| 3105 "value": "safe", | |
| 3106 "description": "The file has been determined to present no known danger to the user's computer." | |
| 3107 }, | |
| 3108 "DANGER_FILE": { | |
| 3109 "type": "string", | |
| 3110 "value": "file", | |
| 3111 "description": "The download's filename is suspicious." | |
| 3112 }, | |
| 3113 "DANGER_URL": { | |
| 3114 "type": "string", | |
| 3115 "value": "url", | |
| 3116 "description": "The download's URL is suspicious." | |
| 3117 } | |
| 3118 }, | |
| 3119 "types": [ | |
| 3120 { | |
| 3121 "id": "DownloadItem", | |
| 3122 "type": "object", | |
| 3123 "description": "The state of a file as it is downloaded from the interne t.", | |
| 3124 "properties": { | |
| 3125 "id": {"type": "integer", "description": "An identifier that is persis tent across browser sessions."}, | |
| 3126 "url": {"type": "string", "description": "absolute URL"}, | |
| 3127 "filename": {"type": "string", "description": "absolute local path"}, | |
| 3128 "danger": {"type": "string", "description": "Safety", "enum": ["safe", "file", "url"]}, | |
| 3129 "dangerAccepted": {"type": "boolean", "description": "true if the user has accepted the download's danger."}, | |
| 3130 "mime": {"type": "string", "description": "The file's MIME type."}, | |
| 3131 "startTime": {"type": "integer", "description": "ms since epoch"}, | |
| 3132 "endTime": {"type": "integer", "description": "ms since epoch"}, | |
| 3133 "state": {"type": "string", "description": "", "enum": ["in progress", "complete", "interrupted"]}, | |
| 3134 "paused": {"type": "boolean", "description": "true if the download has stopped reading data"}, | |
| 3135 "error": {"type": "integer", "description": "net error code if state i s interrupted"}, | |
| 3136 "bytesReceived": {"type": "integer", "description": "pre-decompression "}, | |
| 3137 "totalBytes": {"type": "integer", "description": "pre-decompression"}, | |
| 3138 "fileSize": {"type": "integer", "description": "post-decompression"} | |
| 3139 } | |
| 3140 }, | |
| 3141 { | |
| 3142 "id": "DownloadOptions", | |
| 3143 "type": "object", | |
| 3144 "properties": { | |
| 3145 "url": {"type": "string", "description": "The URL to download."}, | |
| 3146 "filename": {"type": "string", "description": "relative local path", " optional": true}, | |
| 3147 "saveAs": {"type": "boolean", "optional": true, "description": "Show t he Save File As dialog."}, | |
| 3148 "method": {"type": "string", "description": "GET or POST", "optional": true}, | |
| 3149 "headers": {"type": "object", "description": "request headers", "optio nal": true, "properties": {}, "additionalProperties": { "type": "any" }}, | |
| 3150 "body": {"type": "string", "description": "post body", "optional": tru e} | |
| 3151 } | |
| 3152 }, | |
| 3153 { | |
| 3154 "id": "DownloadQuery", | |
| 3155 "type": "object", | |
| 3156 "description": "", | |
| 3157 "properties": { | |
| 3158 "query": {"type": "string", "description": "boolean search terms", "op tional": true}, | |
| 3159 "startedBefore": {"type": "integer", "description": "ms since epoch", "optional": true}, | |
| 3160 "startedAfter": {"type": "integer", "description": "ms since epoch", " optional": true}, | |
| 3161 "endedBefore": {"type": "integer", "description": "ms since epoch", "o ptional": true}, | |
| 3162 "endedAfter": {"type": "integer", "description": "ms since epoch", "op tional": true}, | |
| 3163 "totalBytesGreater": {"type": "integer", "description": "", "optional" : true}, | |
| 3164 "totalBytesLess": {"type": "integer", "description": "", "optional": t rue}, | |
| 3165 "filenameRegex": {"type": "string", "description": "", "optional": tru e}, | |
| 3166 "urlRegex": {"type": "string", "description": "", "optional": true}, | |
| 3167 "limit": {"type": "integer", "optional": true, "description": ""}, | |
| 3168 "orderBy": {"type": "string", "optional": true, "description": ""}, | |
| 3169 "id": {"type": "integer", "description": "A persistent identifier", "o ptional": true}, | |
| 3170 "url": {"type": "string", "description": "absolute URL", "optional": t rue}, | |
| 3171 "filename": {"type": "string", "description": "absolute local path", " optional": true}, | |
| 3172 "danger": {"type": "string", "description": "Safety", "optional": true , "enum": ["safe", "file", "url"]}, | |
| 3173 "dangerAccepted": {"type": "boolean", "description": "true if the user has accepted the download's danger.", "optional": true}, | |
| 3174 "mime": {"type": "string", "description": "The file's MIME type.", "op tional": true}, | |
| 3175 "startTime": {"type": "integer", "description": "ms since epoch", "opt ional": true}, | |
| 3176 "endTime": {"type": "integer", "description": "ms since epoch", "optio nal": true}, | |
| 3177 "state": {"type": "string", "description": "", "optional": true, "enum ": ["in progress", "complete", "interrupted"]}, | |
| 3178 "paused": {"type": "boolean", "description": "true if the download has stopped reading data", "optional": true}, | |
| 3179 "error": {"type": "integer", "description": "net error code if state i s interrupted", "optional": true}, | |
| 3180 "bytesReceived": {"type": "integer", "description": "pre-decompression ", "optional": true}, | |
| 3181 "totalBytes": {"type": "integer", "description": "pre-decompression", "optional": true}, | |
| 3182 "fileSize": {"type": "integer", "description": "post-decompression", " optional": true} | |
| 3183 } | |
| 3184 }, | |
| 3185 { | |
| 3186 "id": "DownloadIntegerDiff", | |
| 3187 "type": "object", | |
| 3188 "description": "", | |
| 3189 "properties": { | |
| 3190 } | |
| 3191 }, | |
| 3192 { | |
| 3193 "id": "DownloadDelta", | |
| 3194 "type": "object", | |
| 3195 "description": "", | |
| 3196 "properties": { | |
| 3197 } | |
| 3198 }, | |
| 3199 { | |
| 3200 "id": "DownloadResponse", | |
| 3201 "type": "object", | |
| 3202 "description": "Result of download()", | |
| 3203 "properties": { | |
| 3204 "id": {"type": "integer", "optional": true}, | |
| 3205 "error": {"type": "integer", "optional": true} | |
| 3206 } | |
| 3207 } | |
| 3208 ], | |
| 3209 "functions": [ | |
| 3210 { | |
| 3211 "name": "download", | |
| 3212 "type": "function", | |
| 3213 "description": "Download a URL.", | |
| 3214 "parameters": [ | |
| 3215 {"$ref": "DownloadOptions"}, | |
| 3216 { | |
| 3217 "name": "callback", | |
| 3218 "type": "function", | |
| 3219 "optional": true, | |
| 3220 "parameters": [ | |
| 3221 {"$ref": "DownloadResponse"} | |
| 3222 ] | |
| 3223 } | |
| 3224 ] | |
| 3225 }, | |
| 3226 { | |
| 3227 "name": "search", | |
| 3228 "type": "function", | |
| 3229 "description": "Find DownloadItems", | |
| 3230 "parameters": [ | |
| 3231 {"$ref": "DownloadQuery"}, | |
| 3232 { | |
| 3233 "name": "callback", | |
| 3234 "type": "function", | |
| 3235 "optional": true, | |
| 3236 "parameters": [ | |
| 3237 {"name": "items", "type": "array"} | |
| 3238 ] | |
| 3239 } | |
| 3240 ] | |
| 3241 }, | |
| 3242 { | |
| 3243 "name": "erase", | |
| 3244 "type": "function", | |
| 3245 "description": "Erase DownloadItems from history", | |
| 3246 "parameters": [ | |
| 3247 {"$ref": "DownloadQuery"}, | |
| 3248 { | |
| 3249 "name": "callback", | |
| 3250 "type": "function", | |
| 3251 "optional": true, | |
| 3252 "parameters": [ | |
| 3253 {"name": "ids", "type": "array"} | |
| 3254 ] | |
| 3255 } | |
| 3256 ] | |
| 3257 }, | |
| 3258 { | |
| 3259 "name": "setDestination", | |
| 3260 "type": "function", | |
| 3261 "description": "Move a downloaded file", | |
| 3262 "parameters": [ | |
| 3263 {"name": "id", "type": "integer"}, | |
| 3264 {"name": "path", "type": "string"} | |
| 3265 ] | |
| 3266 }, | |
| 3267 { | |
| 3268 "name": "acceptDanger", | |
| 3269 "type": "function", | |
| 3270 "description": "Accept a dangerous download", | |
| 3271 "parameters": [ | |
| 3272 {"name": "id", "type": "integer"} | |
| 3273 ] | |
| 3274 }, | |
| 3275 { | |
| 3276 "name": "show", | |
| 3277 "type": "function", | |
| 3278 "description": "Show in folder", | |
| 3279 "parameters": [ | |
| 3280 {"name": "id", "type": "integer"} | |
| 3281 ] | |
| 3282 }, | |
| 3283 { | |
| 3284 "name": "drag", | |
| 3285 "type": "function", | |
| 3286 "description": "Drag the file to another application", | |
| 3287 "parameters": [ | |
| 3288 {"name": "id", "type": "integer"} | |
| 3289 ] | |
| 3290 }, | |
| 3291 { | |
| 3292 "name": "pause", | |
| 3293 "type": "function", | |
| 3294 "description": "Pause the download", | |
| 3295 "parameters": [ | |
| 3296 {"name": "id", "type": "integer"} | |
| 3297 ] | |
| 3298 }, | |
| 3299 { | |
| 3300 "name": "resume", | |
| 3301 "type": "function", | |
| 3302 "description": "Resume a paused download", | |
| 3303 "parameters": [ | |
| 3304 {"name": "id", "type": "integer"} | |
| 3305 ] | |
| 3306 }, | |
| 3307 { | |
| 3308 "name": "cancel", | |
| 3309 "type": "function", | |
| 3310 "description": "Cancel a download", | |
| 3311 "parameters": [ | |
| 3312 {"name": "id", "type": "integer"} | |
| 3313 ] | |
| 3314 } | |
| 3315 ] | |
| 3316 }, | |
| 3317 { | |
| 3057 "namespace": "devtools", | 3318 "namespace": "devtools", |
| 3058 "nodoc": "true", | 3319 "nodoc": "true", |
| 3059 "types": [], | 3320 "types": [], |
| 3060 "functions": [ | 3321 "functions": [ |
| 3061 { | 3322 { |
| 3062 "name": "getTabEvents", | 3323 "name": "getTabEvents", |
| 3063 "type": "function", | 3324 "type": "function", |
| 3064 "description": "Experimental support for timeline API", | 3325 "description": "Experimental support for timeline API", |
| 3065 "nodoc": "true", | 3326 "nodoc": "true", |
| 3066 "parameters": [ | 3327 "parameters": [ |
| (...skipping 3596 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.", | 6924 "description": "A string result code. The value is non-empty on success only in tests.", |
| 6664 "optional": "true" | 6925 "optional": "true" |
| 6665 } | 6926 } |
| 6666 ] | 6927 ] |
| 6667 } | 6928 } |
| 6668 ] | 6929 ] |
| 6669 } | 6930 } |
| 6670 ] | 6931 ] |
| 6671 } | 6932 } |
| 6672 ] | 6933 ] |
| OLD | NEW |