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 // This file was generated by: |
| 6 // ./tools/json_schema_compiler/compiler.py. |
| 7 |
| 8 /** @fileoverview Interface for quickUnlockPrivate that can be overriden. */ |
| 9 |
| 10 assertNotReached('Interface file for Closure Compiler should not be executed.'); |
| 11 |
| 12 /** @interface */ |
| 13 function QuickUnlockPrivate() {} |
| 14 |
| 15 QuickUnlockPrivate.prototype = { |
| 16 /** |
| 17 * Returns the set of quick unlock modes that are available for the user to |
| 18 * use. Some quick unlock modes may be disabled by policy. |
| 19 * @param {function(!Array<!chrome.quickUnlockPrivate.QuickUnlockMode>):void} |
| 20 * onComplete |
| 21 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-getA
vailableModes |
| 22 */ |
| 23 getAvailableModes: assertNotReached, |
| 24 |
| 25 /** |
| 26 * Returns the quick unlock modes that are currently enabled and usable on the |
| 27 * lock screen. |
| 28 * @param {function(!Array<!chrome.quickUnlockPrivate.QuickUnlockMode>):void} |
| 29 * onComplete |
| 30 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-getA
ctiveModes |
| 31 */ |
| 32 getActiveModes: assertNotReached, |
| 33 |
| 34 /** |
| 35 * Update the set of quick unlock modes that are currently active/enabled. |
| 36 * @param {string} accountPassword The password associated with the account |
| 37 * (e.g. the GAIA password). This is required to change the quick unlock |
| 38 * credentials. |
| 39 * @param {!Array<!chrome.quickUnlockPrivate.QuickUnlockMode>} modes The quick |
| 40 * unlock modes that should be active. |
| 41 * @param {!Array<string>} credentials The associated credential for each |
| 42 * mode. To keep the credential the same for the associated mode, pass an |
| 43 * empty string. |
| 44 * @param {function(boolean):void} onComplete Called with true if the quick |
| 45 * unlock state was updated, false otherwise. The update is treated as a |
| 46 * single atomic operation. |
| 47 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-setM
odes |
| 48 */ |
| 49 setModes: assertNotReached, |
| 50 }; |
| 51 |
| 52 /** |
| 53 * Called after the active set of quick unlock modes has changed. |
| 54 * @type {!ChromeEvent} |
| 55 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#event-onActiv
eModesChanged |
| 56 */ |
| 57 QuickUnlockPrivate.prototype.onActiveModesChanged; |
OLD | NEW |