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

Unified Diff: content/browser/bluetooth/bluetooth_device_chooser_controller.h

Issue 2245603003: Add signal strength indicator icon to WebBluetooth chooser on non-Mac desktops (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 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: content/browser/bluetooth/bluetooth_device_chooser_controller.h
diff --git a/content/browser/bluetooth/bluetooth_device_chooser_controller.h b/content/browser/bluetooth/bluetooth_device_chooser_controller.h
index 037590054699f742c65498a528d14a6510c60206..b9e21cc55689db5dee842442b57243593c81dcb2 100644
--- a/content/browser/bluetooth/bluetooth_device_chooser_controller.h
+++ b/content/browser/bluetooth/bluetooth_device_chooser_controller.h
@@ -78,6 +78,10 @@ class CONTENT_EXPORT BluetoothDeviceChooserController final {
// that the adapter changed states.
void AdapterPoweredChanged(bool powered);
+ // Received Signal Strength Indicator (RSSI) is a measurement of the power
+ // present in a received radio signal.
+ static int CalculateSignalStrengthLevel(int8_t rssi);
+
// After this method is called any new instance of
// BluetoothDeviceChooserController will have a scan duration of 0.
static void SetTestScanDurationForTesting();

Powered by Google App Engine
This is Rietveld 408576698