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":"experimental.wallpaperManager", |
| 8 "nodoc": "true", |
| 9 "functions": [ |
| 10 { |
| 11 "name": "getStrings", |
| 12 "type": "function", |
| 13 "description": "Gets Strings.", |
| 14 "nodoc": "true", |
| 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 given url.", |
| 33 "nodoc": "true", |
| 34 "parameters": [ |
| 35 { |
| 36 "type": "string", |
| 37 "name": "url" |
| 38 } |
| 39 ] |
| 40 } |
| 41 ], |
| 42 "events": [ |
| 43 { |
| 44 "name": "onDownloadProgress", |
| 45 "type": "function", |
| 46 "description": "Fired when wallpaper downloading is in progress.", |
| 47 "parameters": [ |
| 48 { |
| 49 "name": "event", |
| 50 "type": "object", |
| 51 "description": "A simple event." |
| 52 } |
| 53 ] |
| 54 }, |
| 55 { |
| 56 "name": "onDownloadDone", |
| 57 "type": "function", |
| 58 "description": "Fired when wallpaper downloading is finished.", |
| 59 "parameters": [] |
| 60 }, |
| 61 { |
| 62 "name": "onDownloadError", |
| 63 "type": "function", |
| 64 "description": "Fired when wallpaper downloading has an error.", |
| 65 "parameters": [ |
| 66 { |
| 67 "name": "event", |
| 68 "type": "object", |
| 69 "description": "A simple event." |
| 70 } |
| 71 ] |
| 72 } |
| 73 ] |
| 74 } |
| 75 ] |
OLD | NEW |