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

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

Issue 813303003: Add easyUnlockPrivate.getConnection API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 11 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 4ab42327fa9f2608e76c72d59f0e1de0ea384072..c65ac7d8d2cca44915afeb0bef8ce4f2cd641649 100644
--- a/chrome/common/extensions/api/easy_unlock_private.idl
+++ b/chrome/common/extensions/api/easy_unlock_private.idl
@@ -185,6 +185,13 @@ namespace easyUnlockPrivate {
callback SignInChallengeCallback = void(optional ArrayBuffer challenge,
optional ArrayBuffer signedNonce);
+ // Callback for the |getConnectionInfo()| method.
+ // |rssi|: The received signal strength from the remote device in dB.
+ // |transmit_power| The local transmission power to the remote device in dB.
+ // |max_transmit_power| The maximum transmission power that can be achieved.
+ callback ConnectionInfoCallback = void(
+ long rssi, long transmit_power, long max_transmit_power);
+
interface Functions {
// Gets localized strings required to render the API.
//
@@ -315,6 +322,11 @@ namespace easyUnlockPrivate {
// Gets the user's profile image as a bitmap.
static void getUserImage(DataCallback callback);
+
+ // Gets the connection info for the Bluetooth device identified by
+ // deviceAddress.
+ static void getConnectionInfo(DOMString deviceAddress,
+ ConnectionInfoCallback callback);
};
interface Events {

Powered by Google App Engine
This is Rietveld 408576698