Chromium Code Reviews| 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 |
|
fukino
2016/02/29 05:51:43
nit: every line has a leading space. please remove
ryoh
2016/02/29 05:54:52
Done.
| |
| 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 * Sets wallpaper to the image at url or wallpaperData with the specified | 16 * @enum {string} |
| 17 * layout. | 17 * @see https://goo.gl/7dvJFW#type-WallpaperLayout |
| 18 * @param {{ | 18 */ |
| 19 * data: (ArrayBuffer|undefined), | 19 chrome.wallpaper.WallpaperLayout = { |
| 20 * url: (string|undefined), | 20 STRETCH: '', |
| 21 * layout: string, | 21 CENTER: '', |
| 22 * filename: string, | 22 CENTER_CROPPED: '', |
| 23 * thumbnail: (boolean|undefined) | 23 }; |
| 24 * }} details | 24 |
| 25 * @param {function(ArrayBuffer=)} callback | 25 /** |
| 26 * | 26 * Sets wallpaper to the image at url or wallpaperData with the specified |
| 27 */ | 27 * layout. |
| 28 chrome.wallpaper.setWallpaper = function(details, callback) {}; | 28 * @param {{ |
| 29 * data: (ArrayBuffer|undefined), | |
| 30 * url: (string|undefined), | |
| 31 * layout: (chrome.wallpaper.WallpaperLayout|string), | |
| 32 * filename: string, | |
| 33 * thumbnail: (boolean|undefined) | |
| 34 * }} details | |
| 35 * @param {function(ArrayBuffer=)} callback | |
| 36 * @see https://goo.gl/7dvJFW#method-setWallpaper | |
| 37 */ | |
| 38 chrome.wallpaper.setWallpaper = function(details, callback) {}; | |
| OLD | NEW |