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

Side by Side Diff: device/bluetooth/bluetooth_device_win.cc

Issue 246603008: Expose device RSSI and Tx power via the chrome.bluetooth API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_win.h" 5 #include "device/bluetooth/bluetooth_device_win.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 } 104 }
105 105
106 uint16 BluetoothDeviceWin::GetProductID() const { 106 uint16 BluetoothDeviceWin::GetProductID() const {
107 return 0; 107 return 0;
108 } 108 }
109 109
110 uint16 BluetoothDeviceWin::GetDeviceID() const { 110 uint16 BluetoothDeviceWin::GetDeviceID() const {
111 return 0; 111 return 0;
112 } 112 }
113 113
114 int BluetoothDeviceWin::GetRSSI() const {
115 NOTIMPLEMENTED();
116 return 0;
117 }
118
114 bool BluetoothDeviceWin::IsPaired() const { 119 bool BluetoothDeviceWin::IsPaired() const {
115 return paired_; 120 return paired_;
116 } 121 }
117 122
118 bool BluetoothDeviceWin::IsConnected() const { 123 bool BluetoothDeviceWin::IsConnected() const {
119 return connected_; 124 return connected_;
120 } 125 }
121 126
122 bool BluetoothDeviceWin::IsConnectable() const { 127 bool BluetoothDeviceWin::IsConnectable() const {
123 return false; 128 return false;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 for (ServiceRecordList::const_iterator iter = service_record_list_.begin(); 220 for (ServiceRecordList::const_iterator iter = service_record_list_.begin();
216 iter != service_record_list_.end(); 221 iter != service_record_list_.end();
217 ++iter) { 222 ++iter) {
218 if ((*iter)->uuid() == uuid) 223 if ((*iter)->uuid() == uuid)
219 return *iter; 224 return *iter;
220 } 225 }
221 return NULL; 226 return NULL;
222 } 227 }
223 228
224 } // namespace device 229 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698