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

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

Issue 2142423003: Add quick unlock private interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Add interface to gyp file Created 4 years, 5 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
« no previous file with comments | « third_party/closure_compiler/interfaces/compiled_resources2.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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;
OLDNEW
« no previous file with comments | « third_party/closure_compiler/interfaces/compiled_resources2.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698