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

Side by Side Diff: third_party/closure_compiler/interfaces/quick_unlock_private_interface.js

Issue 2376293005: cros: Tweaked the good/bad pin checking on the js to use the new quick unlock api function. (Closed)
Patch Set: Rebased. Created 3 years, 12 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 2016 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: 5 // This file was generated by:
6 // ./tools/json_schema_compiler/compiler.py. 6 // ./tools/json_schema_compiler/compiler.py.
7 7
8 /** @fileoverview Interface for quickUnlockPrivate that can be overriden. */ 8 /** @fileoverview Interface for quickUnlockPrivate that can be overriden. */
9 9
10 assertNotReached('Interface file for Closure Compiler should not be executed.'); 10 assertNotReached('Interface file for Closure Compiler should not be executed.');
(...skipping 14 matching lines...) Expand all
25 /** 25 /**
26 * Returns the quick unlock modes that are currently enabled and usable on the 26 * Returns the quick unlock modes that are currently enabled and usable on the
27 * lock screen. 27 * lock screen.
28 * @param {function(!Array<!chrome.quickUnlockPrivate.QuickUnlockMode>):void} 28 * @param {function(!Array<!chrome.quickUnlockPrivate.QuickUnlockMode>):void}
29 * onComplete 29 * onComplete
30 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-getA ctiveModes 30 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-getA ctiveModes
31 */ 31 */
32 getActiveModes: assertNotReached, 32 getActiveModes: assertNotReached,
33 33
34 /** 34 /**
35 * Checks if the given credential can be used for the given unlock mode.
36 * Enterprise policy can change credential requirements.
37 * @param {!chrome.quickUnlockPrivate.QuickUnlockMode} mode The quick unlock
38 * mode that is used.
39 * @param {string} credential The given credential.
40 * @param {function(!chrome.quickUnlockPrivate.CredentialCheck):void}
41 * onComplete Called with a list of warnings and errors the given
42 * |credential| has (or an empty list if there are none).
43 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-chec kCredential
44 */
45 checkCredential: assertNotReached,
46
47 /**
48 * Gets the credential requirements for the given unlock mode.
49 * @param {!chrome.quickUnlockPrivate.QuickUnlockMode} mode The quick unlock
50 * mode that is used.
51 * @param {function(!chrome.quickUnlockPrivate.CredentialRequirements):void}
52 * onComplete Called with the credential requirements of the given
53 * |mode|.
54 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-getC redentialRequirements
55 */
56 getCredentialRequirements: assertNotReached,
57
58 /**
35 * Update the set of quick unlock modes that are currently active/enabled. 59 * Update the set of quick unlock modes that are currently active/enabled.
36 * @param {string} accountPassword The password associated with the account 60 * @param {string} accountPassword The password associated with the account
37 * (e.g. the GAIA password). This is required to change the quick unlock 61 * (e.g. the GAIA password). This is required to change the quick unlock
38 * credentials. 62 * credentials.
39 * @param {!Array<!chrome.quickUnlockPrivate.QuickUnlockMode>} modes The quick 63 * @param {!Array<!chrome.quickUnlockPrivate.QuickUnlockMode>} modes The quick
40 * unlock modes that should be active. 64 * unlock modes that should be active.
41 * @param {!Array<string>} credentials The associated credential for each 65 * @param {!Array<string>} credentials The associated credential for each
42 * mode. To keep the credential the same for the associated mode, pass an 66 * mode. To keep the credential the same for the associated mode, pass an
43 * empty string. 67 * empty string.
44 * @param {function(boolean):void} onComplete Called with true if the quick 68 * @param {function(boolean):void} onComplete Called with true if the quick
45 * unlock state was updated, false otherwise. The update is treated as a 69 * unlock state was updated, false otherwise. The update is treated as a
46 * single atomic operation. 70 * single atomic operation.
47 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-setM odes 71 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-setM odes
48 */ 72 */
49 setModes: assertNotReached, 73 setModes: assertNotReached,
50 }; 74 };
51 75
52 /** 76 /**
53 * Called after the active set of quick unlock modes has changed. 77 * Called after the active set of quick unlock modes has changed.
54 * @type {!ChromeEvent} 78 * @type {!ChromeEvent}
55 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#event-onActiv eModesChanged 79 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#event-onActiv eModesChanged
56 */ 80 */
57 QuickUnlockPrivate.prototype.onActiveModesChanged; 81 QuickUnlockPrivate.prototype.onActiveModesChanged;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698