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 "description": "none",
14 "id": "WallpaperSource",
16 "enum": [ "ONLINE", "OEM" ]
23 "description": "Gets translated strings and initialization data.",
33 "additionalProperties": {"type": "any"}
40 "name": "getSyncSetting",
42 "description": "Gets the sync themes(and wallpaper on ChromeOS) setting value.",
52 "additionalProperties": {"type": "any"}
59 "name": "setWallpaperIfExists",
61 "description": "Sets wallpaper if it exists in the local file system with specified layout",
70 "$ref": "wallpaper.WallpaperLayout"
85 "name": "setWallpaper",
87 "description": "Sets wallpaper to the image from url with specified layout",
96 "$ref": "wallpaper.WallpaperLayout"
110 "name": "resetWallpaper",
112 "description": "Clears current user's active custom wallpaper and changes to default wallpaper.",
117 "name": "setCustomWallpaper",
119 "description": "Sets wallpaper to the image from local file with specified layout and returns thumbnail if needed.",
128 "$ref": "wallpaper.WallpaperLayout"
132 "name": "generateThumbnail",
133 "description": "If true, callback should have a binary thumbnail."
153 "name": "setCustomWallpaperLayout",
155 "description": "Sets current custom wallpaper to the specified layout",
160 "$ref": "wallpaper.WallpaperLayout"
170 "name": "minimizeInactiveWindows",
172 "description": "Minimizes all inactive open windows.",
177 "name": "restoreMinimizedWindows",
179 "description": "Restores all previously minimized windows.",
184 "name": "getThumbnail",
186 "description": "Gets thumbnail of wallpaper from thumbnail directory.",
192 "description": "URL of ONLINE wallpaper or file name of CUSTOM wallpaper"
196 "$ref": "WallpaperSource"
201 "description": "Function called upon completion.",
207 "description": "The binary data of loaded thumbnail."
214 "name": "saveThumbnail",
216 "description": "Saves thumbnail to thumbnail directory.",
222 "description": "Wallpaper url."
227 "description": "The binary data of downloaded thumbnail."
232 "description": "Function called upon completion.",
239 "name": "getOfflineWallpaperList",
241 "description": "Get the list of file names of downloaded wallpapers.",
247 "description": "Function called upon completion.",
252 "items": {"type": "string"}
261 "name": "onWallpaperChangedBy3rdParty",
263 "description": "This event is sent when the current wallpaper was set by a third party application."