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

Side by Side Diff: chromeos/dbus/bluetooth_device_client.cc

Issue 1133173002: Expose TxPower for bluetooth devices during discovery (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added unittests Created 5 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
« no previous file with comments | « chromeos/dbus/bluetooth_device_client.h ('k') | device/bluetooth/bluetooth_adapter_chromeos.cc » ('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 "chromeos/dbus/bluetooth_device_client.h" 5 #include "chromeos/dbus/bluetooth_device_client.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/stl_util.h" 9 #include "base/stl_util.h"
10 #include "dbus/bus.h" 10 #include "dbus/bus.h"
(...skipping 29 matching lines...) Expand all
40 RegisterProperty(bluetooth_device::kUUIDsProperty, &uuids); 40 RegisterProperty(bluetooth_device::kUUIDsProperty, &uuids);
41 RegisterProperty(bluetooth_device::kPairedProperty, &paired); 41 RegisterProperty(bluetooth_device::kPairedProperty, &paired);
42 RegisterProperty(bluetooth_device::kConnectedProperty, &connected); 42 RegisterProperty(bluetooth_device::kConnectedProperty, &connected);
43 RegisterProperty(bluetooth_device::kTrustedProperty, &trusted); 43 RegisterProperty(bluetooth_device::kTrustedProperty, &trusted);
44 RegisterProperty(bluetooth_device::kBlockedProperty, &blocked); 44 RegisterProperty(bluetooth_device::kBlockedProperty, &blocked);
45 RegisterProperty(bluetooth_device::kAliasProperty, &alias); 45 RegisterProperty(bluetooth_device::kAliasProperty, &alias);
46 RegisterProperty(bluetooth_device::kAdapterProperty, &adapter); 46 RegisterProperty(bluetooth_device::kAdapterProperty, &adapter);
47 RegisterProperty(bluetooth_device::kLegacyPairingProperty, &legacy_pairing); 47 RegisterProperty(bluetooth_device::kLegacyPairingProperty, &legacy_pairing);
48 RegisterProperty(bluetooth_device::kModaliasProperty, &modalias); 48 RegisterProperty(bluetooth_device::kModaliasProperty, &modalias);
49 RegisterProperty(bluetooth_device::kRSSIProperty, &rssi); 49 RegisterProperty(bluetooth_device::kRSSIProperty, &rssi);
50 RegisterProperty(bluetooth_device::kTxPowerProperty, &tx_power);
50 } 51 }
51 52
52 BluetoothDeviceClient::Properties::~Properties() { 53 BluetoothDeviceClient::Properties::~Properties() {
53 } 54 }
54 55
55 56
56 // The BluetoothDeviceClient implementation used in production. 57 // The BluetoothDeviceClient implementation used in production.
57 class BluetoothDeviceClientImpl 58 class BluetoothDeviceClientImpl
58 : public BluetoothDeviceClient, 59 : public BluetoothDeviceClient,
59 public dbus::ObjectManager::Interface { 60 public dbus::ObjectManager::Interface {
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 } 391 }
391 392
392 BluetoothDeviceClient::~BluetoothDeviceClient() { 393 BluetoothDeviceClient::~BluetoothDeviceClient() {
393 } 394 }
394 395
395 BluetoothDeviceClient* BluetoothDeviceClient::Create() { 396 BluetoothDeviceClient* BluetoothDeviceClient::Create() {
396 return new BluetoothDeviceClientImpl(); 397 return new BluetoothDeviceClientImpl();
397 } 398 }
398 399
399 } // namespace chromeos 400 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/bluetooth_device_client.h ('k') | device/bluetooth/bluetooth_adapter_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698