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

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

Issue 273953002: Hook up RSSI and host transmit power Bluetooth device properties for ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix clang warnings, test flakiness, and bluetooth.connect should succeed even if monitor fails Created 6 years, 7 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 <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/hash.h" 10 #include "base/hash.h"
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 const ErrorCallback& error_callback) { 215 const ErrorCallback& error_callback) {
216 NOTIMPLEMENTED(); 216 NOTIMPLEMENTED();
217 } 217 }
218 218
219 void BluetoothDeviceMac::ClearOutOfBandPairingData( 219 void BluetoothDeviceMac::ClearOutOfBandPairingData(
220 const base::Closure& callback, 220 const base::Closure& callback,
221 const ErrorCallback& error_callback) { 221 const ErrorCallback& error_callback) {
222 NOTIMPLEMENTED(); 222 NOTIMPLEMENTED();
223 } 223 }
224 224
225 void BluetoothDeviceMac::StartConnectionMonitor(
226 const base::Closure& callback,
227 const ErrorCallback& error_callback) {
228 NOTIMPLEMENTED();
229 }
230
225 int BluetoothDeviceMac::GetHostTransmitPower( 231 int BluetoothDeviceMac::GetHostTransmitPower(
226 BluetoothHCITransmitPowerLevelType power_level_type) const { 232 BluetoothHCITransmitPowerLevelType power_level_type) const {
227 IOBluetoothHostController* controller = 233 IOBluetoothHostController* controller =
228 [IOBluetoothHostController defaultController]; 234 [IOBluetoothHostController defaultController];
229 235
230 // Bail if the undocumented API is unavailable on this machine. 236 // Bail if the undocumented API is unavailable on this machine.
231 SEL selector = @selector( 237 SEL selector = @selector(
232 BluetoothHCIReadTransmitPowerLevel:inType:outTransmitPowerLevel:); 238 BluetoothHCIReadTransmitPowerLevel:inType:outTransmitPowerLevel:);
233 if (![controller respondsToSelector:selector]) 239 if (![controller respondsToSelector:selector])
234 return kUnknownPower; 240 return kUnknownPower;
(...skipping 16 matching lines...) Expand all
251 257
252 // static 258 // static
253 std::string BluetoothDeviceMac::NormalizeAddress(const std::string& address) { 259 std::string BluetoothDeviceMac::NormalizeAddress(const std::string& address) {
254 std::string normalized; 260 std::string normalized;
255 base::ReplaceChars(address, "-", ":", &normalized); 261 base::ReplaceChars(address, "-", ":", &normalized);
256 StringToUpperASCII(&normalized); 262 StringToUpperASCII(&normalized);
257 return normalized; 263 return normalized;
258 } 264 }
259 265
260 } // namespace device 266 } // 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