Index: ui/file_manager/externs/chrome_wallpaper.js |
diff --git a/ui/file_manager/externs/chrome_wallpaper.js b/ui/file_manager/externs/chrome_wallpaper.js |
index f5ffa4ff6feaf93e4da5491438f2962d35e2dba4..72ec695de87fcb76c0b17414cba75b411dc6c2d8 100644 |
--- a/ui/file_manager/externs/chrome_wallpaper.js |
+++ b/ui/file_manager/externs/chrome_wallpaper.js |
@@ -5,24 +5,34 @@ |
* TODO(ryoh): REMOVE this file if we decide how to define annotations for this |
* API. |
* @see https://codereview.chromium.org/1679983003/ |
- */ |
- /** |
+*/ |
+/** |
* @const |
* @see https://goo.gl/7dvJFW |
*/ |
chrome.wallpaper = {}; |
/** |
+ * @enum {string} |
+ * @see https://goo.gl/7dvJFW#type-WallpaperLayout |
+ */ |
+chrome.wallpaper.WallpaperLayout = { |
+ STRETCH: '', |
+ CENTER: '', |
+ CENTER_CROPPED: '', |
+}; |
+ |
+/** |
* Sets wallpaper to the image at url or wallpaperData with the specified |
* layout. |
* @param {{ |
* data: (ArrayBuffer|undefined), |
* url: (string|undefined), |
- * layout: string, |
+ * layout: (chrome.wallpaper.WallpaperLayout|string), |
* filename: string, |
* thumbnail: (boolean|undefined) |
* }} details |
* @param {function(ArrayBuffer=)} callback |
- * |
+ * @see https://goo.gl/7dvJFW#method-setWallpaper |
*/ |
- chrome.wallpaper.setWallpaper = function(details, callback) {}; |
+chrome.wallpaper.setWallpaper = function(details, callback) {}; |