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

Side by Side Diff: third_party/closure_compiler/externs/quick_unlock_private.js

Issue 2104053003: Add chrome.quickUnlockPrivate externs to closure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Add generated snippet back 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/externs/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 // NOTE: The format of types has changed. 'FooType' is now
8 // 'chrome.quickUnlockPrivate.FooType'.
9 // Please run the closure compiler before committing changes.
10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp ilation.md
11
12 /** @fileoverview Externs generated from namespace: quickUnlockPrivate */
13
14 /**
15 * @const
16 */
17 chrome.quickUnlockPrivate = {};
18
19 /**
20 * @enum {string}
21 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#type-QuickUnl ockMode
22 */
23 chrome.quickUnlockPrivate.QuickUnlockMode = {
24 PIN: 'PIN',
25 };
26
27 /**
28 * Returns the set of quick unlock modes that are available for the user to use.
29 * Some quick unlock modes may be disabled by policy.
30 * @param {function(!Array<!chrome.quickUnlockPrivate.QuickUnlockMode>):void}
31 * onComplete
32 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-getAva ilableModes
33 */
34 chrome.quickUnlockPrivate.getAvailableModes = function(onComplete) {};
35
36 /**
37 * Returns the quick unlock modes that are currently enabled and usable on the
38 * lock screen.
39 * @param {function(!Array<!chrome.quickUnlockPrivate.QuickUnlockMode>):void}
40 * onComplete
41 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-getAct iveModes
42 */
43 chrome.quickUnlockPrivate.getActiveModes = function(onComplete) {};
44
45 /**
46 * Update the set of quick unlock modes that are currently active/enabled.
47 * @param {string} accountPassword The password associated with the account
48 * (e.g. the GAIA password). This is required to change the quick unlock
49 * credentials.
50 * @param {!Array<!chrome.quickUnlockPrivate.QuickUnlockMode>} modes The quick
51 * unlock modes that should be active.
52 * @param {!Array<string>} credentials The associated credential for each mode.
53 * To keep the credential the same for the associated mode, pass an empty
54 * string.
55 * @param {function(boolean):void} onComplete Called with true if the quick
56 * unlock state was updated, false otherwise. The update is treated as a
57 * single atomic operation.
58 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-setMod es
59 */
60 chrome.quickUnlockPrivate.setModes = function(accountPassword, modes, credential s, onComplete) {};
61
62 /**
63 * Called after the active set of quick unlock modes has changed.
64 * @type {!ChromeEvent}
65 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#event-onActiv eModesChanged
66 */
67 chrome.quickUnlockPrivate.onActiveModesChanged;
OLDNEW
« no previous file with comments | « third_party/closure_compiler/externs/compiled_resources2.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698