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.
7 "namespace":"wallpaperPrivate",
9 "implemented_in": "chrome/browser/chromeos/extensions/wallpaper_private_api.h"
11 "platforms": ["chromeos"],
12 "description": "none",
15 "id": "WallpaperLayout",
17 "enum": [ "STRETCH", "CENTER", "CENTER_CROPPED" ]
24 "description": "Gets translated strings and initialization data.",
34 "additionalProperties": {"type": "any"}
41 "name": "setWallpaperIfExists",
43 "description": "Sets wallpaper if it exists in the local file system with specified layout",
52 "$ref": "WallpaperLayout"
67 "name": "setWallpaper",
69 "description": "Sets wallpaper to the image from url with specified layout",
78 "$ref": "WallpaperLayout"
92 "name": "resetWallpaper",
94 "description": "Clears current user's active custom wallpaper and changes to default wallpaper.",
99 "name": "setCustomWallpaper",
101 "description": "Sets wallpaper to the image from local file with specified layout and returns thumbnail if needed.",
110 "$ref": "WallpaperLayout"
114 "name": "generateThumbnail",
115 "description": "If true, callback should have a binary thumbnail."
135 "name": "setCustomWallpaperLayout",
137 "description": "Sets current custom wallpaper to the specified layout",
142 "$ref": "WallpaperLayout"
152 "name": "minimizeInactiveWindows",
154 "description": "Minimizes all inactive open windows.",
159 "name": "restoreMinimizedWindows",
161 "description": "Restores all previously minimized windows.",
166 "name": "getThumbnail",
168 "description": "Gets thumbnail of wallpaper from thumbnail directory.",
174 "description": "URL of ONLINE wallpaper or file name of CUSTOM wallpaper"
179 "enum": [ "ONLINE", "OEM" ]
184 "description": "Function called upon completion.",
190 "description": "The binary data of loaded thumbnail."
197 "name": "saveThumbnail",
199 "description": "Saves thumbnail to thumbnail directory.",
205 "description": "Wallpaper url."
210 "description": "The binary data of downloaded thumbnail."
215 "description": "Function called upon completion.",
222 "name": "getOfflineWallpaperList",
224 "description": "Get the list of file names of downloaded wallpapers.",
230 "description": "Function called upon completion.",
235 "items": {"type": "string"}
244 "name": "onRequestEnableSurpriseMe",
246 "description": "Fired to request enabling surprise me mode for new profiles.",