| OLD | NEW |
| 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.h" | 5 #include "device/bluetooth/bluetooth_device.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "grit/generated_resources.h" | 8 #include "grit/generated_resources.h" |
| 9 #include "ui/base/l10n/l10n_util.h" | 9 #include "ui/base/l10n/l10n_util.h" |
| 10 | 10 |
| 11 namespace device { | 11 namespace device { |
| 12 | 12 |
| 13 BluetoothDevice::BluetoothDevice() | 13 BluetoothDevice::BluetoothDevice() |
| 14 : bluetooth_class_(0), | 14 : bluetooth_class_(0), |
| 15 connectable_(true), |
| 15 visible_(false), | 16 visible_(false), |
| 16 bonded_(false), | 17 bonded_(false), |
| 17 connected_(false) { | 18 connected_(false) { |
| 18 } | 19 } |
| 19 | 20 |
| 20 BluetoothDevice::~BluetoothDevice() { | 21 BluetoothDevice::~BluetoothDevice() { |
| 21 } | 22 } |
| 22 | 23 |
| 23 const std::string& BluetoothDevice::address() const { | 24 const std::string& BluetoothDevice::address() const { |
| 24 return address_; | 25 return address_; |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 } | 161 } |
| 161 | 162 |
| 162 bool BluetoothDevice::IsBonded() const { | 163 bool BluetoothDevice::IsBonded() const { |
| 163 return bonded_; | 164 return bonded_; |
| 164 } | 165 } |
| 165 | 166 |
| 166 bool BluetoothDevice::IsConnected() const { | 167 bool BluetoothDevice::IsConnected() const { |
| 167 return connected_; | 168 return connected_; |
| 168 } | 169 } |
| 169 | 170 |
| 171 bool BluetoothDevice::IsConnectable() const { |
| 172 return connectable_; |
| 173 } |
| 174 |
| 170 } // namespace device | 175 } // namespace device |
| OLD | NEW |