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

Side by Side 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, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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) {};
OLDNEW
« 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