| 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 "compiler_options": { | 8 "compiler_options": { |
| 9 "implemented_in": "chrome/browser/chromeos/extensions/wallpaper_private_ap
i.h" | 9 "implemented_in": "chrome/browser/chromeos/extensions/wallpaper_private_ap
i.h" |
| 10 }, | 10 }, |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 { | 79 { |
| 80 "type": "function", | 80 "type": "function", |
| 81 "name": "callback", | 81 "name": "callback", |
| 82 "parameters": [] | 82 "parameters": [] |
| 83 } | 83 } |
| 84 ] | 84 ] |
| 85 }, | 85 }, |
| 86 { | 86 { |
| 87 "name": "setCustomWallpaper", | 87 "name": "setCustomWallpaper", |
| 88 "type": "function", | 88 "type": "function", |
| 89 "description": "Sets wallpaper to the image from local file with specifi
ed layout", | 89 "description": "Sets wallpaper to the image from local file with specifi
ed layout and returns thumbnail if needed.", |
| 90 "nodoc": "true", | 90 "nodoc": "true", |
| 91 "parameters": [ | 91 "parameters": [ |
| 92 { | 92 { |
| 93 "type": "binary", | 93 "type": "binary", |
| 94 "name": "wallpaper" | 94 "name": "wallpaper" |
| 95 }, | 95 }, |
| 96 { | 96 { |
| 97 "type": "string", | 97 "type": "string", |
| 98 "name": "layout", | 98 "name": "layout", |
| 99 "enum": [ "STRETCH", "CENTER", "CENTER_CROPPED" ] | 99 "enum": [ "STRETCH", "CENTER", "CENTER_CROPPED" ] |
| 100 }, | 100 }, |
| 101 { | 101 { |
| 102 "type": "boolean", |
| 103 "name": "generateThumbnail", |
| 104 "description": "If true, callback should have a binary thumbnail." |
| 105 }, |
| 106 { |
| 107 "type": "string", |
| 108 "name": "fileName" |
| 109 }, |
| 110 { |
| 102 "type": "function", | 111 "type": "function", |
| 103 "name": "callback", | 112 "name": "callback", |
| 104 "parameters": [ | 113 "parameters": [ |
| 105 { | 114 { |
| 106 "type": "string", | 115 "type": "binary", |
| 107 "name": "fileName" | 116 "optional": true, |
| 117 "name": "thumbnail" |
| 108 } | 118 } |
| 109 ] | 119 ] |
| 110 } | 120 } |
| 111 ] | 121 ] |
| 112 }, | 122 }, |
| 113 { | 123 { |
| 114 "name": "setCustomWallpaperLayout", | 124 "name": "setCustomWallpaperLayout", |
| 115 "type": "function", | 125 "type": "function", |
| 116 "description": "Sets current custom wallpaper to the specified layout", | 126 "description": "Sets current custom wallpaper to the specified layout", |
| 117 "nodoc": "true", | 127 "nodoc": "true", |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 "name": "results", | 229 "name": "results", |
| 220 "items": {"type": "string"} | 230 "items": {"type": "string"} |
| 221 } | 231 } |
| 222 ] | 232 ] |
| 223 } | 233 } |
| 224 ] | 234 ] |
| 225 } | 235 } |
| 226 ] | 236 ] |
| 227 } | 237 } |
| 228 ] | 238 ] |
| OLD | NEW |