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

Unified Diff: device/bluetooth/bluetooth_classic_device_mac.mm

Issue 1292263002: bluetooth: Create base class BluetoothDevice::CreateGattConnection impl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bt-adapter-
Patch Set: fix ProximityAuthBluetoothLowEnergyConnectionTest Created 5 years, 3 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/bluetooth_classic_device_mac.h ('k') | device/bluetooth/bluetooth_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_classic_device_mac.mm
diff --git a/device/bluetooth/bluetooth_classic_device_mac.mm b/device/bluetooth/bluetooth_classic_device_mac.mm
index f7743e0dca26c6167ea07c3f4a00f6aa5378d4eb..e524e8123db2493213c76c6c6977c74d03b97788 100644
--- a/device/bluetooth/bluetooth_classic_device_mac.mm
+++ b/device/bluetooth/bluetooth_classic_device_mac.mm
@@ -74,6 +74,13 @@ std::string BluetoothClassicDeviceMac::GetDeviceName() const {
return base::SysNSStringToUTF8([device_ name]);
}
+void BluetoothClassicDeviceMac::CreateGattConnectionImpl() {
+ // Classic devices do not support GATT connection.
+ DidFailToConnectGatt(ERROR_UNSUPPORTED_DEVICE);
+}
+
+void BluetoothClassicDeviceMac::DisconnectGatt() {}
+
std::string BluetoothClassicDeviceMac::GetAddress() const {
return GetDeviceAddress(device_);
}
@@ -103,6 +110,10 @@ bool BluetoothClassicDeviceMac::IsConnected() const {
return [device_ isConnected];
}
+bool BluetoothClassicDeviceMac::IsGattConnected() const {
+ return false; // Classic devices do not support GATT connection.
+}
+
bool BluetoothClassicDeviceMac::IsConnectable() const {
return false;
}
« no previous file with comments | « device/bluetooth/bluetooth_classic_device_mac.h ('k') | device/bluetooth/bluetooth_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698