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

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

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 | « chromeos/dbus/fake_bluetooth_device_client.cc ('k') | device/bluetooth/bluetooth_device.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_adapter_chromeos.h" 5 #include "device/bluetooth/bluetooth_adapter_chromeos.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 BluetoothDeviceClient::Properties* properties = 328 BluetoothDeviceClient::Properties* properties =
329 DBusThreadManager::Get()->GetBluetoothDeviceClient()-> 329 DBusThreadManager::Get()->GetBluetoothDeviceClient()->
330 GetProperties(object_path); 330 GetProperties(object_path);
331 331
332 if (property_name == properties->bluetooth_class.name() || 332 if (property_name == properties->bluetooth_class.name() ||
333 property_name == properties->address.name() || 333 property_name == properties->address.name() ||
334 property_name == properties->alias.name() || 334 property_name == properties->alias.name() ||
335 property_name == properties->paired.name() || 335 property_name == properties->paired.name() ||
336 property_name == properties->trusted.name() || 336 property_name == properties->trusted.name() ||
337 property_name == properties->connected.name() || 337 property_name == properties->connected.name() ||
338 property_name == properties->uuids.name()) 338 property_name == properties->uuids.name() ||
339 property_name == properties->rssi.name() ||
340 property_name == properties->connection_rssi.name() ||
341 property_name == properties->connection_tx_power.name())
339 NotifyDeviceChanged(device_chromeos); 342 NotifyDeviceChanged(device_chromeos);
340 343
341 // When a device becomes paired, mark it as trusted so that the user does 344 // When a device becomes paired, mark it as trusted so that the user does
342 // not need to approve every incoming connection 345 // not need to approve every incoming connection
343 if (property_name == properties->paired.name() && 346 if (property_name == properties->paired.name() &&
344 properties->paired.value()) 347 properties->paired.value())
345 device_chromeos->SetTrusted(); 348 device_chromeos->SetTrusted();
346 349
347 // UMA connection counting 350 // UMA connection counting
348 if (property_name == properties->connected.name()) { 351 if (property_name == properties->connected.name()) {
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 884
882 // If the queued request resulted in a pending call, then let it 885 // If the queued request resulted in a pending call, then let it
883 // asynchonously process the remaining queued requests once the pending 886 // asynchonously process the remaining queued requests once the pending
884 // call returns. 887 // call returns.
885 if (discovery_request_pending_) 888 if (discovery_request_pending_)
886 return; 889 return;
887 } 890 }
888 } 891 }
889 892
890 } // namespace chromeos 893 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_bluetooth_device_client.cc ('k') | device/bluetooth/bluetooth_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698