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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 } | 74 } |
75 | 75 |
76 std::string BluetoothDeviceMac::GetDeviceName() const { | 76 std::string BluetoothDeviceMac::GetDeviceName() const { |
77 return base::SysNSStringToUTF8([device_ name]); | 77 return base::SysNSStringToUTF8([device_ name]); |
78 } | 78 } |
79 | 79 |
80 std::string BluetoothDeviceMac::GetAddress() const { | 80 std::string BluetoothDeviceMac::GetAddress() const { |
81 return base::SysNSStringToUTF8([device_ addressString]); | 81 return base::SysNSStringToUTF8([device_ addressString]); |
82 } | 82 } |
83 | 83 |
| 84 uint16 BluetoothDeviceMac::GetVendorID() const { |
| 85 return 0; |
| 86 } |
| 87 |
| 88 uint16 BluetoothDeviceMac::GetProductID() const { |
| 89 return 0; |
| 90 } |
| 91 |
| 92 uint16 BluetoothDeviceMac::GetDeviceID() const { |
| 93 return 0; |
| 94 } |
| 95 |
84 bool BluetoothDeviceMac::IsPaired() const { | 96 bool BluetoothDeviceMac::IsPaired() const { |
85 return [device_ isPaired]; | 97 return [device_ isPaired]; |
86 } | 98 } |
87 | 99 |
88 bool BluetoothDeviceMac::IsConnected() const { | 100 bool BluetoothDeviceMac::IsConnected() const { |
89 return [device_ isConnected]; | 101 return [device_ isConnected]; |
90 } | 102 } |
91 | 103 |
92 bool BluetoothDeviceMac::IsConnectable() const { | 104 bool BluetoothDeviceMac::IsConnectable() const { |
93 return false; | 105 return false; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 NOTIMPLEMENTED(); | 221 NOTIMPLEMENTED(); |
210 } | 222 } |
211 | 223 |
212 void BluetoothDeviceMac::ClearOutOfBandPairingData( | 224 void BluetoothDeviceMac::ClearOutOfBandPairingData( |
213 const base::Closure& callback, | 225 const base::Closure& callback, |
214 const ErrorCallback& error_callback) { | 226 const ErrorCallback& error_callback) { |
215 NOTIMPLEMENTED(); | 227 NOTIMPLEMENTED(); |
216 } | 228 } |
217 | 229 |
218 } // namespace device | 230 } // namespace device |
OLD | NEW |