Chromium Code Reviews| 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 |
| index c3121beffcaf4e61c5d7148737a66a8e72b6f317..3e59a2e115ccaca4ee8944d6b548219870570935 100644 |
| --- a/chrome/common/extensions/api/quick_unlock_private.idl |
| +++ b/chrome/common/extensions/api/quick_unlock_private.idl |
| @@ -19,8 +19,17 @@ namespace quickUnlockPrivate { |
| PIN |
| }; |
| + enum PinState { |
| + GOOD, |
| + SHORTER_THAN_MIN, |
| + LONGER_THAN_MAX, |
| + ALL_SAME_NUM, |
| + INCREASING |
| + }; |
| + |
| callback BooleanResultCallback = void (boolean value); |
| callback ModesCallback = void (QuickUnlockMode[] modes); |
| + callback PinStatesCallback = void (PinState state); |
| interface Functions { |
| // Returns the set of quick unlock modes that are available for the user to |
| @@ -31,6 +40,11 @@ namespace quickUnlockPrivate { |
| // the lock screen. |
| static void getActiveModes(ModesCallback onComplete); |
| + // Returns whether the pin can be used or if there is issue with the choice |
| + // of pin. |
| + static void getUsablePin(DOMString attemptedPassword, |
|
jdufault
2016/09/29 19:36:52
Note the difference between how password and crede
sammiequon
2016/09/30 00:35:08
Done.
|
| + PinStatesCallback onComplete); |
| + |
| // Update the set of quick unlock modes that are currently active/enabled. |
| // |accountPassword|: The password associated with the account (e.g. the |
| // GAIA password). This is required to change the quick unlock credentials. |