Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 [ | |
| 6 { | |
| 7 "namespace":"wallpaperManagerPrivate", | |
| 8 "nodoc": "true", | |
| 9 "functions": [ | |
| 10 { | |
| 11 "name": "getStrings", | |
| 12 "type": "function", | |
| 13 "description": "Gets translated strings.", | |
| 14 "nodoc": "true", | |
|
Mihai Parparita -not on Chrome
2012/07/16 23:14:25
Since the root namespace has nodoc, I believe you
bshe
2012/07/18 18:28:56
Done.
| |
| 15 "parameters": [ | |
| 16 { | |
| 17 "type": "function", | |
| 18 "name": "callback", | |
| 19 "parameters": [ | |
| 20 { | |
| 21 "name": "result", | |
| 22 "type": "object", | |
| 23 "additionalProperties": {"type": "string"} | |
| 24 } | |
| 25 ] | |
| 26 } | |
| 27 ] | |
| 28 }, | |
| 29 { | |
| 30 "name": "setWallpaper", | |
| 31 "type": "function", | |
| 32 "description": "Sets wallpaper to the image from url with specified layo ut", | |
| 33 "nodoc": "true", | |
| 34 "parameters": [ | |
| 35 { | |
| 36 "type": "string", | |
| 37 "name": "url" | |
|
Mihai Parparita -not on Chrome
2012/07/16 23:14:25
By making the API taken in a URL, you end up makin
bshe
2012/07/18 18:28:56
Done.
| |
| 38 }, | |
| 39 { | |
| 40 "type": "string", | |
| 41 "name": "layout", | |
| 42 "enum": [ "STRETCH", "CENTER", "CENTER_CROPPED"] | |
| 43 } | |
| 44 ] | |
| 45 } | |
| 46 ], | |
| 47 "events": [ | |
| 48 { | |
| 49 "name": "onDownloadStart", | |
| 50 "type": "function", | |
| 51 "description": "Fired when wallpaper downloading is started.", | |
| 52 "parameters": [] | |
| 53 }, | |
| 54 { | |
| 55 "name": "onDownloadProgress", | |
| 56 "type": "function", | |
| 57 "description": "Fired when wallpaper downloading is in progress.", | |
| 58 "parameters": [ | |
| 59 { | |
| 60 "name": "event", | |
| 61 "type": "object", | |
| 62 "properties": { | |
| 63 "remainingTime": { | |
| 64 "type": "integer", | |
| 65 "description": "The remaining download time in millseconds." | |
| 66 }, | |
| 67 "progress": { | |
| 68 "type": "number", | |
| 69 "description": "The downloading precentage." | |
| 70 } | |
| 71 } | |
| 72 } | |
| 73 ] | |
| 74 }, | |
| 75 { | |
| 76 "name": "onDownloadDone", | |
| 77 "type": "function", | |
| 78 "description": "Fired when wallpaper downloading is finished.", | |
| 79 "parameters": [] | |
| 80 }, | |
| 81 { | |
| 82 "name": "onDownloadError", | |
| 83 "type": "function", | |
| 84 "description": "Fired when wallpaper downloading has an error.", | |
| 85 "parameters": [ | |
| 86 { | |
| 87 "name": "event", | |
| 88 "type": "object", | |
| 89 "properties": { | |
| 90 "errorMessageID": { | |
| 91 "type": "string", | |
| 92 "description": "The error message ID." | |
| 93 } | |
| 94 } | |
| 95 } | |
| 96 ] | |
| 97 } | |
| 98 ] | |
| 99 } | |
| 100 ] | |
| OLD | NEW |