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

Side by Side Diff: device/bluetooth/bluetooth_device_mac.mm

Issue 13872017: Bluetooth: gather usage metrics (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase since Cellular.* appeared under us Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « device/bluetooth/bluetooth_device_mac.h ('k') | device/bluetooth/bluetooth_device_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_device_mac.h ('k') | device/bluetooth/bluetooth_device_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698