{"size": 2722, "ext": "js", "max_stars_repo_path": "third_party/closure_compiler/externs/quick_unlock_private.js", "max_stars_repo_name": "xzhan96/chromium.src", "max_stars_repo_stars_event_min_datetime": "2019-01-28T08:09:58.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-15T15:32:10.000Z", "max_issues_repo_path": "third_party/closure_compiler/externs/quick_unlock_private.js", "max_issues_repo_name": "emilio/chromium.src", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "third_party/closure_compiler/externs/quick_unlock_private.js", "max_forks_repo_name": "emilio/chromium.src", "max_forks_repo_forks_event_min_datetime": "2020-09-23T08:56:12.000Z", "max_forks_repo_forks_event_max_datetime": "2021-11-18T03:40:49.000Z"}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": 6, "avg_line_length": 40.0294117647, "max_line_length": 98, "alphanum_fraction": 0.7531227039}
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// This file was generated by:
//   ./tools/json_schema_compiler/compiler.py.
// NOTE: The format of types has changed. 'FooType' is now
//   'chrome.quickUnlockPrivate.FooType'.
// Please run the closure compiler before committing changes.
// See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_compilation.md

/** @fileoverview Externs generated from namespace: quickUnlockPrivate */

/**
 * @const
 */
chrome.quickUnlockPrivate = {};

/**
 * @enum {string}
 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#type-QuickUnlockMode
 */
chrome.quickUnlockPrivate.QuickUnlockMode = {
  PIN: 'PIN',
};

/**
 * Returns the set of quick unlock modes that are available for the user to use.
 * Some quick unlock modes may be disabled by policy.
 * @param {function(!Array<!chrome.quickUnlockPrivate.QuickUnlockMode>):void}
 *     onComplete
 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-getAvailableModes
 */
chrome.quickUnlockPrivate.getAvailableModes = function(onComplete) {};

/**
 * Returns the quick unlock modes that are currently enabled and usable on the
 * lock screen.
 * @param {function(!Array<!chrome.quickUnlockPrivate.QuickUnlockMode>):void}
 *     onComplete
 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-getActiveModes
 */
chrome.quickUnlockPrivate.getActiveModes = function(onComplete) {};

/**
 * Update the set of quick unlock modes that are currently active/enabled.
 * @param {string} accountPassword The password associated with the account
 *     (e.g. the GAIA password). This is required to change the quick unlock
 *     credentials.
 * @param {!Array<!chrome.quickUnlockPrivate.QuickUnlockMode>} modes The quick
 *     unlock modes that should be active.
 * @param {!Array<string>} credentials The associated credential for each mode.
 *     To keep the credential the same for the associated mode, pass an empty
 *     string.
 * @param {function(boolean):void} onComplete Called with true if the quick
 *     unlock state was updated, false otherwise. The update is treated as a
 *     single atomic operation.
 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#method-setModes
 */
chrome.quickUnlockPrivate.setModes = function(accountPassword, modes, credentials, onComplete) {};

/**
 * Called after the active set of quick unlock modes has changed.
 * @type {!ChromeEvent}
 * @see https://developer.chrome.com/extensions/quickUnlockPrivate#event-onActiveModesChanged
 */
chrome.quickUnlockPrivate.onActiveModesChanged;
