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

Unified Diff: third_party/closure_compiler/externs/chrome_extensions.js

Issue 1679983003: Set wallpaper from right click menu in Files app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update the annotation file with generated signatures 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
Index: third_party/closure_compiler/externs/chrome_extensions.js
diff --git a/third_party/closure_compiler/externs/chrome_extensions.js b/third_party/closure_compiler/externs/chrome_extensions.js
index ea1d2f249c8d6d976d10c14ddfef3dcfb59fcd61..bde2305c5030e24a817f0de6c47224829f8873f1 100644
--- a/third_party/closure_compiler/externs/chrome_extensions.js
+++ b/third_party/closure_compiler/externs/chrome_extensions.js
@@ -9159,3 +9159,35 @@ chrome.inlineInstallPrivate = {};
* (2) an error code in case of error
*/
chrome.inlineInstallPrivate.install = function(id, opt_callback) {};
+
+/** @fileoverview Externs generated from namespace: wallpaper */
+
+/**
+ * @const
ewa 2016/02/23 22:15:47 I was thinking there should be an @see link to the
+ */
+chrome.wallpaper = {};
+
+/**
+ * @enum {string}
+ * @see https://developer.chrome.com/extensions/wallpaper#type-WallpaperLayout
+ */
+chrome.wallpaper.WallpaperLayout = {
+ STRETCH: 'STRETCH',
+ CENTER: 'CENTER',
+ CENTER_CROPPED: 'CENTER_CROPPED',
+};
ewa 2016/02/23 22:15:47 The docs mention the chrome.wallpaper.WallpaperLay
Devlin 2016/02/23 23:19:18 Yes, the docs should be updated to indicate this.
ewa 2016/02/24 01:56:33 Ok, I think we're making different points. For a
Devlin 2016/02/24 04:38:49 I would say that anyone consuming *new* externs (w
+
+/**
+ * Sets wallpaper to the image at <em>url</em> or <em>wallpaperData</em> with
+ * the specified <em>layout</em>
ewa 2016/02/23 22:15:47 No need for HTML markup in this comment. In this
Devlin 2016/02/23 23:19:18 Agreed, it'd be good to not have the markup in the
+ * @param {{
+ * data: (!ArrayBuffer|undefined),
+ * url: (string|undefined),
+ * layout: !chrome.wallpaper.WallpaperLayout,
+ * filename: string,
+ * thumbnail: (boolean|undefined)
+ * }} details
+ * @param {function(?):void} callback
ewa 2016/02/23 22:15:47 The callback's param should be an ArrayBuffer.
+ * @see https://developer.chrome.com/extensions/wallpaper#method-setWallpaper
+ */
+chrome.wallpaper.setWallpaper = function(details, callback) {};

Powered by Google App Engine
This is Rietveld 408576698