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

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: copy and paste from upstream 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..f02363c638cd4beb3beff91a394707bd1b4b7396 100644
--- a/ui/file_manager/externs/chrome_wallpaper.js
+++ b/ui/file_manager/externs/chrome_wallpaper.js
@@ -7,22 +7,32 @@
* @see https://codereview.chromium.org/1679983003/
*/
/**
- * @const
- * @see https://goo.gl/7dvJFW
- */
-chrome.wallpaper = {};
+ * @const
fukino 2016/02/29 05:51:43 nit: every line has a leading space. please remove
ryoh 2016/02/29 05:54:52 Done.
+ * @see https://goo.gl/7dvJFW
+ */
+ chrome.wallpaper = {};
-/**
- * Sets wallpaper to the image at url or wallpaperData with the specified
- * layout.
- * @param {{
- * data: (ArrayBuffer|undefined),
- * url: (string|undefined),
- * layout: string,
- * filename: string,
- * thumbnail: (boolean|undefined)
- * }} details
- * @param {function(ArrayBuffer=)} callback
- *
- */
- chrome.wallpaper.setWallpaper = function(details, callback) {};
+ /**
+ * @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: (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) {};
« 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