| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |