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

Unified Diff: device/bluetooth/bluetooth_adapter_factory.h

Issue 2808353004: bluetooth: Rename Is*Available to Is*Supported (Closed)
Patch Set: Add const Created 3 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
« no previous file with comments | « device/bluetooth/adapter_factory.cc ('k') | device/bluetooth/bluetooth_adapter_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_adapter_factory.h
diff --git a/device/bluetooth/bluetooth_adapter_factory.h b/device/bluetooth/bluetooth_adapter_factory.h
index ab800db0b63e3366f7c99b0a00a25d2bec2c5072..4dbdbf312ab1fe0550550efb698d9542693f92bd 100644
--- a/device/bluetooth/bluetooth_adapter_factory.h
+++ b/device/bluetooth/bluetooth_adapter_factory.h
@@ -20,13 +20,17 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterFactory {
typedef base::Callback<void(scoped_refptr<BluetoothAdapter> adapter)>
AdapterCallback;
- // Returns true if the Bluetooth adapter is available for the current
- // platform.
- static bool IsBluetoothAdapterAvailable();
-
- // Returns true if Bluetooth Low Energy is available for the current
- // platform.
- static bool IsLowEnergyAvailable();
+ // Returns true if the platform supports Bluetooth. It does not imply that
+ // there is a Bluetooth radio. Use BluetoothAdapter::IsPresent to know
+ // if there is a Bluetooth radio present.
+ static bool IsBluetoothSupported();
+
+ // Returns true if the platform supports Bluetooth Low Energy. This is
+ // independent of whether or not there is a Bluetooth radio present e.g.
+ // Windows 7 does not support BLE so IsLowEnergySupported would return
+ // false. Windows 10, on the other hand, supports BLE so this function
+ // returns true even if there is no Bluetooth radio on the system.
+ static bool IsLowEnergySupported();
// Returns the shared instance of the default adapter, creating and
// initializing it if necessary. |callback| is called with the adapter
« no previous file with comments | « device/bluetooth/adapter_factory.cc ('k') | device/bluetooth/bluetooth_adapter_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698