Chromium Code Reviews| 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) {}; |