OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "device/bluetooth/bluetooth_device_mac.h" | 5 #include "device/bluetooth/bluetooth_device_mac.h" |
6 | 6 |
7 #include <IOBluetooth/Bluetooth.h> | 7 #include <IOBluetooth/Bluetooth.h> |
8 #import <IOBluetooth/objc/IOBluetoothDevice.h> | 8 #import <IOBluetooth/objc/IOBluetoothDevice.h> |
9 #import <IOBluetooth/objc/IOBluetoothSDPServiceRecord.h> | 9 #import <IOBluetooth/objc/IOBluetoothSDPServiceRecord.h> |
10 #import <IOBluetooth/objc/IOBluetoothSDPUUID.h> | 10 #import <IOBluetooth/objc/IOBluetoothSDPUUID.h> |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 } | 75 } |
76 | 76 |
77 std::string BluetoothDeviceMac::GetDeviceName() const { | 77 std::string BluetoothDeviceMac::GetDeviceName() const { |
78 return base::SysNSStringToUTF8([device_ name]); | 78 return base::SysNSStringToUTF8([device_ name]); |
79 } | 79 } |
80 | 80 |
81 std::string BluetoothDeviceMac::GetAddress() const { | 81 std::string BluetoothDeviceMac::GetAddress() const { |
82 return base::SysNSStringToUTF8([device_ addressString]); | 82 return base::SysNSStringToUTF8([device_ addressString]); |
83 } | 83 } |
84 | 84 |
| 85 uint16 BluetoothDeviceMac::GetVendorID() const { |
| 86 return 0; |
| 87 } |
| 88 |
| 89 uint16 BluetoothDeviceMac::GetProductID() const { |
| 90 return 0; |
| 91 } |
| 92 |
| 93 uint16 BluetoothDeviceMac::GetDeviceID() const { |
| 94 return 0; |
| 95 } |
| 96 |
85 bool BluetoothDeviceMac::IsPaired() const { | 97 bool BluetoothDeviceMac::IsPaired() const { |
86 return [device_ isPaired]; | 98 return [device_ isPaired]; |
87 } | 99 } |
88 | 100 |
89 bool BluetoothDeviceMac::IsConnected() const { | 101 bool BluetoothDeviceMac::IsConnected() const { |
90 return [device_ isConnected]; | 102 return [device_ isConnected]; |
91 } | 103 } |
92 | 104 |
93 bool BluetoothDeviceMac::IsConnectable() const { | 105 bool BluetoothDeviceMac::IsConnectable() const { |
94 return false; | 106 return false; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 NOTIMPLEMENTED(); | 226 NOTIMPLEMENTED(); |
215 } | 227 } |
216 | 228 |
217 void BluetoothDeviceMac::ClearOutOfBandPairingData( | 229 void BluetoothDeviceMac::ClearOutOfBandPairingData( |
218 const base::Closure& callback, | 230 const base::Closure& callback, |
219 const ErrorCallback& error_callback) { | 231 const ErrorCallback& error_callback) { |
220 NOTIMPLEMENTED(); | 232 NOTIMPLEMENTED(); |
221 } | 233 } |
222 | 234 |
223 } // namespace device | 235 } // namespace device |
OLD | NEW |