Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 /** @fileoverview Externs generated from namespace: quickUnlockPrivate */ | |
|
stevenjb
2016/06/28 22:30:21
How was this generated? Normally we run:
python .
jdufault
2016/06/28 22:36:42
I deleted this bit; I didn't see it in the other e
| |
| 6 | |
| 7 /** | |
| 8 * @const | |
| 9 */ | |
| 10 chrome.quickUnlockPrivate = {}; | |
| 11 | |
| 12 /** | |
| 13 * @enum {string} | |
| 14 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#type-QuickUnl ockMode | |
| 15 */ | |
| 16 chrome.quickUnlockPrivate.QuickUnlockMode = { | |
| 17 PIN: 'PIN', | |
| 18 }; | |
| 19 | |
| 20 /** | |
| 21 * Returns the set of quick unlock modes that are available for the user to use. | |
| 22 * Some quick unlock modes may be disabled by policy. | |
| 23 * @param {function(!Array<!chrome.quickUnlockPrivate.QuickUnlockMode>):void} | |
| 24 * onComplete | |
| 25 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-getAva ilableModes | |
| 26 */ | |
| 27 chrome.quickUnlockPrivate.getAvailableModes = function(onComplete) {}; | |
| 28 | |
| 29 /** | |
| 30 * Returns the quick unlock modes that are currently enabled and usable on the | |
| 31 * lock screen. | |
| 32 * @param {function(!Array<!chrome.quickUnlockPrivate.QuickUnlockMode>):void} | |
| 33 * onComplete | |
| 34 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-getAct iveModes | |
| 35 */ | |
| 36 chrome.quickUnlockPrivate.getActiveModes = function(onComplete) {}; | |
| 37 | |
| 38 /** | |
| 39 * Update the set of quick unlock modes that are currently active/enabled. | |
| 40 * @param {string} accountPassword The password associated with the account | |
| 41 * (e.g. the GAIA password). This is required to change the quick unlock | |
| 42 * credentials. | |
| 43 * @param {!Array<!chrome.quickUnlockPrivate.QuickUnlockMode>} modes The quick | |
| 44 * unlock modes that should be active. | |
| 45 * @param {!Array<string>} credentials The associated credential for each mode. | |
| 46 * To keep the credential the same for the associated mode, pass an empty | |
| 47 * string. | |
| 48 * @param {function(boolean):void} onComplete Called with true if the quick | |
| 49 * unlock state was updated, false otherwise. The update is treated as a | |
| 50 * single atomic operation. | |
| 51 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-setMod es | |
| 52 */ | |
| 53 chrome.quickUnlockPrivate.setModes = function(accountPassword, modes, credential s, onComplete) {}; | |
| 54 | |
| 55 /** | |
| 56 * Called after the active set of quick unlock modes has changed. | |
| 57 * @type {!ChromeEvent} | |
| 58 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#event-onActiv eModesChanged | |
| 59 */ | |
| 60 chrome.quickUnlockPrivate.onActiveModesChanged; | |
| OLD | NEW |