| Index: chrome/common/extensions/api/quick_unlock_private.idl
|
| diff --git a/chrome/common/extensions/api/quick_unlock_private.idl b/chrome/common/extensions/api/quick_unlock_private.idl
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d6b53b34fe468c450293509ea1534283a78537e9
|
| --- /dev/null
|
| +++ b/chrome/common/extensions/api/quick_unlock_private.idl
|
| @@ -0,0 +1,38 @@
|
| +// 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.
|
| +
|
| +// Use the <code>chrome.quickUnlockPrivate</code> API to manage quick unlock.
|
| +[platforms=("chromeos"),
|
| + implemented_in="chrome/browser/chromeos/extensions/quick_unlock_private/quick_unlock_private_api.h"]
|
| +namespace quickUnlockPrivate {
|
| + enum QuickUnlockMode {
|
| + PIN
|
| + };
|
| +
|
| + callback BooleanResultCallback = void (boolean value);
|
| + callback ModesCallback = void (QuickUnlockMode[] modes);
|
| +
|
| + interface Functions {
|
| + // Checks to see if the given password is correct for the currently active
|
| + // profile. This only checks against the account password, not, for
|
| + // example, the PIN.
|
| + static void checkPassword(DOMString password,
|
| + BooleanResultCallback callback);
|
| +
|
| + // Returns the set of quick unlock modes that are available for the user to
|
| + // use. Some quick unlock modes may be disabled by policy.
|
| + static void getAvailableModes(ModesCallback onComplete);
|
| +
|
| + // Set the quick unlock modes that are active/enabled. Quick unlock can be
|
| + // disabled by calling this with an empty |modes| array.
|
| + //
|
| + // To keep the password for one of the modes the same, pass an empty string.
|
| + static void setModes(QuickUnlockMode[] modes, DOMString[] passwords,
|
| + BooleanResultCallback onComplete);
|
| +
|
| + // Returns the quick unlock modes that are currently enabled and usable on
|
| + // the lock screen.
|
| + static void getActiveModes(ModesCallback onComplete);
|
| + };
|
| +};
|
|
|