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": "getSyncSetting",
43 "description": "Gets the sync themes(and wallpaper on ChromeOS) setting value.",
53 "additionalProperties": {"type": "any"}
60 "name": "setWallpaperIfExists",
62 "description": "Sets wallpaper if it exists in the local file system with specified layout",
71 "$ref": "WallpaperLayout"
86 "name": "setWallpaper",
88 "description": "Sets wallpaper to the image from url with specified layout",
97 "$ref": "WallpaperLayout"
111 "name": "resetWallpaper",
113 "description": "Clears current user's active custom wallpaper and changes to default wallpaper.",
118 "name": "setCustomWallpaper",
120 "description": "Sets wallpaper to the image from local file with specified layout and returns thumbnail if needed.",
129 "$ref": "WallpaperLayout"
133 "name": "generateThumbnail",
134 "description": "If true, callback should have a binary thumbnail."
154 "name": "setCustomWallpaperLayout",
156 "description": "Sets current custom wallpaper to the specified layout",
161 "$ref": "WallpaperLayout"
171 "name": "minimizeInactiveWindows",
173 "description": "Minimizes all inactive open windows.",
178 "name": "restoreMinimizedWindows",
180 "description": "Restores all previously minimized windows.",
185 "name": "getThumbnail",
187 "description": "Gets thumbnail of wallpaper from thumbnail directory.",
193 "description": "URL of ONLINE wallpaper or file name of CUSTOM wallpaper"
198 "enum": [ "ONLINE", "OEM" ]
203 "description": "Function called upon completion.",
209 "description": "The binary data of loaded thumbnail."
216 "name": "saveThumbnail",
218 "description": "Saves thumbnail to thumbnail directory.",
224 "description": "Wallpaper url."
229 "description": "The binary data of downloaded thumbnail."
234 "description": "Function called upon completion.",
241 "name": "getOfflineWallpaperList",
243 "description": "Get the list of file names of downloaded wallpapers.",
249 "description": "Function called upon completion.",
254 "items": {"type": "string"}