OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 [ | 5 [ |
6 { | 6 { |
7 "namespace":"wallpaperPrivate", | 7 "namespace":"wallpaperPrivate", |
8 "nodoc": "true", | 8 "nodoc": "true", |
9 "functions": [ | 9 "functions": [ |
10 { | 10 { |
(...skipping 26 matching lines...) Expand all Loading... |
37 "name": "wallpaper" | 37 "name": "wallpaper" |
38 }, | 38 }, |
39 { | 39 { |
40 "type": "string", | 40 "type": "string", |
41 "name": "layout", | 41 "name": "layout", |
42 "enum": [ "STRETCH", "CENTER", "CENTER_CROPPED"] | 42 "enum": [ "STRETCH", "CENTER", "CENTER_CROPPED"] |
43 }, | 43 }, |
44 { | 44 { |
45 "type": "string", | 45 "type": "string", |
46 "name": "url" | 46 "name": "url" |
| 47 }, |
| 48 { |
| 49 "type": "function", |
| 50 "name": "callback", |
| 51 "parameters": [ |
| 52 { |
| 53 "name": "error", |
| 54 "type": "object", |
| 55 "additionalProperties": {"type": "string"} |
| 56 } |
| 57 ] |
47 } | 58 } |
48 ] | 59 ] |
49 }, | 60 }, |
50 { | 61 { |
51 "name": "setCustomWallpaper", | 62 "name": "setCustomWallpaper", |
52 "type": "function", | 63 "type": "function", |
53 "description": "Sets wallpaper to the image from local file with specifi
ed layout", | 64 "description": "Sets wallpaper to the image from local file with specifi
ed layout", |
54 "nodoc": "true", | 65 "nodoc": "true", |
55 "parameters": [ | 66 "parameters": [ |
56 { | 67 { |
57 "type": "binary", | 68 "type": "binary", |
58 "name": "wallpaper" | 69 "name": "wallpaper" |
59 }, | 70 }, |
60 { | 71 { |
61 "type": "string", | 72 "type": "string", |
62 "name": "layout", | 73 "name": "layout", |
63 "enum": [ "STRETCH", "CENTER", "CENTER_CROPPED"] | 74 "enum": [ "STRETCH", "CENTER", "CENTER_CROPPED"] |
| 75 }, |
| 76 { |
| 77 "type": "function", |
| 78 "name": "callback", |
| 79 "parameters": [ |
| 80 { |
| 81 "name": "error", |
| 82 "type": "object", |
| 83 "additionalProperties": {"type": "string"} |
| 84 } |
| 85 ] |
64 } | 86 } |
65 ] | 87 ] |
66 } | 88 } |
67 ] | 89 ] |
68 } | 90 } |
69 ] | 91 ] |
OLD | NEW |