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

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: remove leading spaces 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
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) {};
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