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

Unified Diff: chrome/browser/extensions/api/bluetooth/bluetooth_private_api.h

Issue 246603008: Expose device RSSI and Tx power via the chrome.bluetooth API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/browser/extensions/api/bluetooth/bluetooth_private_api.h
diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_private_api.h b/chrome/browser/extensions/api/bluetooth/bluetooth_private_api.h
index 5c65e0fee8ee1f2da38ce9269b45a509c8e17f89..f1f13c919eb1880e7825d785485301121bb1ee7f 100644
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_private_api.h
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_private_api.h
@@ -118,6 +118,20 @@ class BluetoothPrivateSetPairingResponseFunction
DISALLOW_COPY_AND_ASSIGN(BluetoothPrivateSetPairingResponseFunction);
};
+class BluetoothPrivateGetDeviceRSSIFunction
+ : public BluetoothExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("bluetoothPrivate.getDeviceRSSI",
+ BLUETOOTHPRIVATE_GETDEVICERSSI)
+ BluetoothPrivateGetDeviceRSSIFunction();
+ // BluetoothExtensionFunction overrides:
+ virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE;
+
+ private:
+ virtual ~BluetoothPrivateGetDeviceRSSIFunction();
+ DISALLOW_COPY_AND_ASSIGN(BluetoothPrivateGetDeviceRSSIFunction);
+};
+
} // namespace api
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698