| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // Use the <code>chrome.usersPrivate</code> API to manage users. | 5 // Use the <code>chrome.usersPrivate</code> API to manage users. |
| 6 [platforms=("chromeos"), | 6 [platforms=("chromeos"), |
| 7 implemented_in="chrome/browser/chromeos/extensions/users_private/users_private_
api.h"] | 7 implemented_in="chrome/browser/chromeos/extensions/users_private/users_private_
api.h"] |
| 8 namespace usersPrivate { | 8 namespace usersPrivate { |
| 9 | 9 |
| 10 dictionary User { | 10 dictionary User { |
| 11 // Email for the user. | 11 // Email for the user. |
| 12 DOMString email; | 12 DOMString email; |
| 13 | 13 |
| 14 // Display name for the user. | 14 // Display name for the user. |
| 15 DOMString name; | 15 DOMString name; |
| 16 | 16 |
| 17 // Whether this user is the device owner. | 17 // Whether this user is the device owner. |
| 18 boolean isOwner; | 18 boolean isOwner; |
| 19 |
| 20 // Whether this user is supervised. |
| 21 boolean isSupervised; |
| 19 }; | 22 }; |
| 20 | 23 |
| 21 callback UsersCallback = void (User[] users); | 24 callback UsersCallback = void (User[] users); |
| 22 callback UserAddedCallback = void (boolean success); | 25 callback UserAddedCallback = void (boolean success); |
| 23 callback UserRemovedCallback = void (boolean success); | 26 callback UserRemovedCallback = void (boolean success); |
| 24 callback IsOwnerCallback = void (boolean isOwner); | 27 callback IsOwnerCallback = void (boolean isOwner); |
| 25 callback ManagedCallback = void (boolean managed); | 28 callback ManagedCallback = void (boolean managed); |
| 26 | 29 |
| 27 interface Functions { | 30 interface Functions { |
| 28 // Gets a list of the currently whitelisted users. | 31 // Gets a list of the currently whitelisted users. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 40 // the current user isn't the owner). | 43 // the current user isn't the owner). |
| 41 static void removeWhitelistedUser(DOMString email, UserRemovedCallback callb
ack); | 44 static void removeWhitelistedUser(DOMString email, UserRemovedCallback callb
ack); |
| 42 | 45 |
| 43 // Whether the current user is the owner of the device. | 46 // Whether the current user is the owner of the device. |
| 44 static void isCurrentUserOwner(IsOwnerCallback callback); | 47 static void isCurrentUserOwner(IsOwnerCallback callback); |
| 45 | 48 |
| 46 // Whether the whitelist is managed by enterprise. | 49 // Whether the whitelist is managed by enterprise. |
| 47 static void isWhitelistManaged(ManagedCallback callback); | 50 static void isWhitelistManaged(ManagedCallback callback); |
| 48 }; | 51 }; |
| 49 }; | 52 }; |
| OLD | NEW |