OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 /** | 4 /** |
5 * TODO(ryoh): REMOVE this file if we decide how to define annotations for this | 5 * TODO(ryoh): REMOVE this file if we decide how to define annotations for this |
6 * API. | 6 * API. |
7 * @see https://codereview.chromium.org/1679983003/ | 7 * @see https://codereview.chromium.org/1679983003/ |
8 */ | 8 */ |
9 /** | 9 /** |
10 * @const | 10 * @const |
11 * @see https://goo.gl/7dvJFW | 11 * @see https://goo.gl/7dvJFW |
12 */ | 12 */ |
13 chrome.wallpaper = {}; | 13 chrome.wallpaper = {}; |
14 | 14 |
15 /** | 15 /** |
| 16 * @enum {string} |
| 17 * @see https://goo.gl/7dvJFW#type-WallpaperLayout |
| 18 */ |
| 19 chrome.wallpaper.WallpaperLayout = { |
| 20 STRETCH: '', |
| 21 CENTER: '', |
| 22 CENTER_CROPPED: '', |
| 23 }; |
| 24 |
| 25 /** |
16 * Sets wallpaper to the image at url or wallpaperData with the specified | 26 * Sets wallpaper to the image at url or wallpaperData with the specified |
17 * layout. | 27 * layout. |
18 * @param {{ | 28 * @param {{ |
19 * data: (ArrayBuffer|undefined), | 29 * data: (ArrayBuffer|undefined), |
20 * url: (string|undefined), | 30 * url: (string|undefined), |
21 * layout: string, | 31 * layout: (chrome.wallpaper.WallpaperLayout|string), |
22 * filename: string, | 32 * filename: string, |
23 * thumbnail: (boolean|undefined) | 33 * thumbnail: (boolean|undefined) |
24 * }} details | 34 * }} details |
25 * @param {function(ArrayBuffer=)} callback | 35 * @param {function(ArrayBuffer=)} callback |
26 * | 36 * @see https://goo.gl/7dvJFW#method-setWallpaper |
27 */ | 37 */ |
28 chrome.wallpaper.setWallpaper = function(details, callback) {}; | 38 chrome.wallpaper.setWallpaper = function(details, callback) {}; |
OLD | NEW |