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

Unified Diff: chrome/common/extensions/api/easy_unlock_private.idl

Issue 446743003: Hook up new API for easy unlock to update lock screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: v Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/easy_unlock_private.idl
diff --git a/chrome/common/extensions/api/easy_unlock_private.idl b/chrome/common/extensions/api/easy_unlock_private.idl
index 9f43c2f3d2de762411ba073813f00a1834bc7992..0360bf0fe33228795d4b4af34b122d0175c8beb1 100644
--- a/chrome/common/extensions/api/easy_unlock_private.idl
+++ b/chrome/common/extensions/api/easy_unlock_private.idl
@@ -18,6 +18,32 @@
AES_256_CBC
};
+ // Available states for the Easy Unlock app.
+ enum State {
+ // Screen is either not locked, or the Easy Unlock is not enabled.
+ INACTIVE,
+ // The Bluetooth is not enabled.
+ NO_BLUETOOTH,
+ // Bluetooth is being activated.
+ BLUETOOTH_CONNECTING,
+ // There are no phones eligible to unlock the device.
+ NO_PHONE,
+ // A phone eligible to unlock the device is detected, but can't be
+ // authenticated.
+ PHONE_NOT_AUTHENTICATED,
+ // A phone eligible to unlock the device is detected, but it's locked and
+ // thus unable to unlock the device.
+ PHONE_LOCKED,
+ // A phone eligible to unlock the devioce is detected, but it is not allowed
xiyuan 2014/08/12 18:09:47 nit: devioce -> device
tbarzic 2014/08/12 19:14:36 Done.
+ // to unlock the device because it doesn't have lock screen enabled.
+ PHONE_UNLOCKABLE,
+ // A phone eligible to unlock the device is detected, but it's not close
+ // enough to be allowed to unlock the device.
+ PHONE_NOT_NEARBY,
+ // The devie can be unlocked using Easy Unlock.
+ AUTHENTICATED
+ };
+
// Options that can be passed to |unwrapSecureMessage| method.
dictionary UnwrapSecureMessageOptions {
// The data associated with the message. For the message to be succesfully
@@ -145,5 +171,9 @@
// |callback|: Called to indicate success or failure.
static void seekBluetoothDeviceByAddress(DOMString deviceAddress,
optional EmptyCallback callback);
+
+ // Updates the screenlock state to reflect the Easy Unlock app state.
+ static void updateScreenlockState(State state,
+ optional EmptyCallback callback);
};
};

Powered by Google App Engine
This is Rietveld 408576698