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

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

Issue 1143303004: Add IDL and stub implementation for chrome.usersPrivate API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a comment Created 5 years, 6 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
(Empty)
1 users_private_externs.js
Dan Beam 2015/05/29 23:51:22 why is this here?
Oren Blasberg 2015/05/30 00:13:53 Ah, long story short it's an accident; I was ">"'i
2
3 // Copyright 2015 The Chromium Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style license that can be
5 // found in the LICENSE file.
6
7 /** @fileoverview Externs generated from namespace: usersPrivate */
8
9 /**
10 * @const
11 */
12 chrome.usersPrivate = {};
13
14 /**
15 * Gets a list of the canonicalized emails of the currently whitelisted users.
16 * @param {function(!Array<string>):void} callback
17 * @see https://developer.chrome.com/extensions/usersPrivate#method-getWhitelist edUsers
18 */
19 chrome.usersPrivate.getWhitelistedUsers = function(callback) {};
20
21 /**
22 * Adds a new user with the given email to the whitelist. The callback is called
23 * with true if the user was added succesfully, or with false if not (e.g.
24 * because the user was already present).
25 * @param {string} email
26 * @param {function(boolean):void} callback
27 * @see https://developer.chrome.com/extensions/usersPrivate#method-addWhitelist edUser
28 */
29 chrome.usersPrivate.addWhitelistedUser = function(email, callback) {};
30
31 /**
32 * Removes the user with the given email from the whitelist.
33 * @param {string} email
34 * @see https://developer.chrome.com/extensions/usersPrivate#method-removeWhitel istedUser
35 */
36 chrome.usersPrivate.removeWhitelistedUser = function(email) {};
37
38 /**
39 * Whether the current user is the owner of the device.
40 * @param {function(boolean):void} callback
41 * @see https://developer.chrome.com/extensions/usersPrivate#method-isCurrentUse rOwner
42 */
43 chrome.usersPrivate.isCurrentUserOwner = function(callback) {};
44
45 /**
46 * Whether the whitelist is managed by enterprise.
47 * @param {function(boolean):void} callback
48 * @see https://developer.chrome.com/extensions/usersPrivate#method-isWhitelistM anaged
49 */
50 chrome.usersPrivate.isWhitelistManaged = function(callback) {};
51
52
OLDNEW
« no previous file with comments | « extensions/common/permissions/permission_message.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698