Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: ui/file_manager/externs/chrome_wallpaper.js

Issue 1738103002: Add type signatures for enums in wallpaper API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove leading spaces Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698