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

Side by Side Diff: third_party/closure_compiler/externs/users_private.js

Issue 2259943003: Settings People CrOS: Display supervised users' names correctly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test variables Created 4 years, 4 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
OLDNEW
1 // Copyright 2015 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 // This file was generated by:
6 // tools/json_schema_compiler/compiler.py.
7 // NOTE: The format of types has changed. 'FooType' is now
8 // 'chrome.usersPrivate.FooType'.
9 // Please run the closure compiler before committing changes.
10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp ilation.md
11
5 /** @fileoverview Externs generated from namespace: usersPrivate */ 12 /** @fileoverview Externs generated from namespace: usersPrivate */
6 13
7 /** 14 /**
8 * @const 15 * @const
9 */ 16 */
10 chrome.usersPrivate = {}; 17 chrome.usersPrivate = {};
11 18
12 /** 19 /**
13 * @typedef {{ 20 * @typedef {{
14 * email: string, 21 * email: string,
22 * name: string,
15 * isOwner: boolean 23 * isOwner: boolean
16 * }} 24 * }}
17 * @see https://developer.chrome.com/extensions/usersPrivate#type-User 25 * @see https://developer.chrome.com/extensions/usersPrivate#type-User
18 */ 26 */
19 var User; 27 chrome.usersPrivate.User;
20 28
21 /** 29 /**
22 * Gets a list of the currently whitelisted users. 30 * Gets a list of the currently whitelisted users.
23 * @param {function(!Array<User>):void} callback 31 * @param {function(!Array<!chrome.usersPrivate.User>):void} callback
24 * @see https://developer.chrome.com/extensions/usersPrivate#method-getWhitelist edUsers 32 * @see https://developer.chrome.com/extensions/usersPrivate#method-getWhitelist edUsers
25 */ 33 */
26 chrome.usersPrivate.getWhitelistedUsers = function(callback) {}; 34 chrome.usersPrivate.getWhitelistedUsers = function(callback) {};
27 35
28 /** 36 /**
29 * Adds a new user with the given email to the whitelist. The callback is called 37 * Adds a new user with the given email to the whitelist. The callback is called
30 * with true if the user was added succesfully, or with false if not (e.g. 38 * with true if the user was added succesfully, or with false if not (e.g.
31 * because the user was already present, or the current user isn't the owner). 39 * because the user was already present, or the current user isn't the owner).
32 * @param {string} email 40 * @param {string} email
33 * @param {function(boolean):void} callback 41 * @param {function(boolean):void} callback
(...skipping 18 matching lines...) Expand all
52 * @see https://developer.chrome.com/extensions/usersPrivate#method-isCurrentUse rOwner 60 * @see https://developer.chrome.com/extensions/usersPrivate#method-isCurrentUse rOwner
53 */ 61 */
54 chrome.usersPrivate.isCurrentUserOwner = function(callback) {}; 62 chrome.usersPrivate.isCurrentUserOwner = function(callback) {};
55 63
56 /** 64 /**
57 * Whether the whitelist is managed by enterprise. 65 * Whether the whitelist is managed by enterprise.
58 * @param {function(boolean):void} callback 66 * @param {function(boolean):void} callback
59 * @see https://developer.chrome.com/extensions/usersPrivate#method-isWhitelistM anaged 67 * @see https://developer.chrome.com/extensions/usersPrivate#method-isWhitelistM anaged
60 */ 68 */
61 chrome.usersPrivate.isWhitelistManaged = function(callback) {}; 69 chrome.usersPrivate.isWhitelistManaged = function(callback) {};
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698