| 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_chromeos.h" | 5 #include "device/bluetooth/bluetooth_device_chromeos.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 } | 71 } |
| 72 | 72 |
| 73 std::string BluetoothDeviceChromeOS::GetDeviceName() const { | 73 std::string BluetoothDeviceChromeOS::GetDeviceName() const { |
| 74 return name_; | 74 return name_; |
| 75 } | 75 } |
| 76 | 76 |
| 77 std::string BluetoothDeviceChromeOS::GetAddress() const { | 77 std::string BluetoothDeviceChromeOS::GetAddress() const { |
| 78 return address_; | 78 return address_; |
| 79 } | 79 } |
| 80 | 80 |
| 81 uint16 BluetoothDeviceChromeOS::GetVendorID() const { |
| 82 return 0; |
| 83 } |
| 84 |
| 85 uint16 BluetoothDeviceChromeOS::GetProductID() const { |
| 86 return 0; |
| 87 } |
| 88 |
| 89 uint16 BluetoothDeviceChromeOS::GetDeviceID() const { |
| 90 return 0; |
| 91 } |
| 92 |
| 81 bool BluetoothDeviceChromeOS::IsPaired() const { | 93 bool BluetoothDeviceChromeOS::IsPaired() const { |
| 82 return paired_ || trusted_; | 94 return paired_ || trusted_; |
| 83 } | 95 } |
| 84 | 96 |
| 85 bool BluetoothDeviceChromeOS::IsConnected() const { | 97 bool BluetoothDeviceChromeOS::IsConnected() const { |
| 86 return connected_; | 98 return connected_; |
| 87 } | 99 } |
| 88 | 100 |
| 89 bool BluetoothDeviceChromeOS::IsConnectable() const { | 101 bool BluetoothDeviceChromeOS::IsConnectable() const { |
| 90 return connectable_; | 102 return connectable_; |
| (...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 871 } | 883 } |
| 872 | 884 |
| 873 | 885 |
| 874 // static | 886 // static |
| 875 BluetoothDeviceChromeOS* BluetoothDeviceChromeOS::Create( | 887 BluetoothDeviceChromeOS* BluetoothDeviceChromeOS::Create( |
| 876 BluetoothAdapterChromeOS* adapter) { | 888 BluetoothAdapterChromeOS* adapter) { |
| 877 return new BluetoothDeviceChromeOS(adapter); | 889 return new BluetoothDeviceChromeOS(adapter); |
| 878 } | 890 } |
| 879 | 891 |
| 880 } // namespace chromeos | 892 } // namespace chromeos |
| OLD | NEW |