OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_experimental_chromeos.h" | 5 #include "device/bluetooth/bluetooth_adapter_experimental_chromeos.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 using device::BluetoothAdapter; | 9 using device::BluetoothAdapter; |
10 | 10 |
11 namespace chromeos { | 11 namespace chromeos { |
12 | 12 |
13 BluetoothAdapterExperimentalChromeOS::BluetoothAdapterExperimentalChromeOS() | 13 BluetoothAdapterExperimentalChromeOS::BluetoothAdapterExperimentalChromeOS() |
14 : BluetoothAdapter(), | 14 : BluetoothAdapter(), |
15 weak_ptr_factory_(this) { | 15 weak_ptr_factory_(this) { |
16 } | 16 } |
17 | 17 |
18 BluetoothAdapterExperimentalChromeOS::~BluetoothAdapterExperimentalChromeOS() { | 18 BluetoothAdapterExperimentalChromeOS::~BluetoothAdapterExperimentalChromeOS() { |
19 } | 19 } |
20 | 20 |
21 void BluetoothAdapterExperimentalChromeOS::AddObserver( | 21 void BluetoothAdapterExperimentalChromeOS::AddObserver( |
22 BluetoothAdapter::Observer* observer) { | 22 BluetoothAdapter::Observer* observer) { |
23 } | 23 } |
24 | 24 |
25 void BluetoothAdapterExperimentalChromeOS::RemoveObserver( | 25 void BluetoothAdapterExperimentalChromeOS::RemoveObserver( |
26 BluetoothAdapter::Observer* observer) { | 26 BluetoothAdapter::Observer* observer) { |
27 } | 27 } |
28 | 28 |
29 std::string BluetoothAdapterExperimentalChromeOS::address() const { | 29 std::string BluetoothAdapterExperimentalChromeOS::GetAddress() const { |
30 return std::string(); | 30 return std::string(); |
31 } | 31 } |
32 | 32 |
33 std::string BluetoothAdapterExperimentalChromeOS::name() const { | 33 std::string BluetoothAdapterExperimentalChromeOS::GetName() const { |
34 return std::string(); | 34 return std::string(); |
35 } | 35 } |
36 | 36 |
37 bool BluetoothAdapterExperimentalChromeOS::IsInitialized() const { | 37 bool BluetoothAdapterExperimentalChromeOS::IsInitialized() const { |
38 return true; | 38 return true; |
39 } | 39 } |
40 | 40 |
41 bool BluetoothAdapterExperimentalChromeOS::IsPresent() const { | 41 bool BluetoothAdapterExperimentalChromeOS::IsPresent() const { |
42 return false; | 42 return false; |
43 } | 43 } |
(...skipping 24 matching lines...) Expand all Loading... |
68 error_callback.Run(); | 68 error_callback.Run(); |
69 } | 69 } |
70 | 70 |
71 void BluetoothAdapterExperimentalChromeOS::ReadLocalOutOfBandPairingData( | 71 void BluetoothAdapterExperimentalChromeOS::ReadLocalOutOfBandPairingData( |
72 const BluetoothAdapter::BluetoothOutOfBandPairingDataCallback& callback, | 72 const BluetoothAdapter::BluetoothOutOfBandPairingDataCallback& callback, |
73 const ErrorCallback& error_callback) { | 73 const ErrorCallback& error_callback) { |
74 error_callback.Run(); | 74 error_callback.Run(); |
75 } | 75 } |
76 | 76 |
77 } // namespace chromeos | 77 } // namespace chromeos |
OLD | NEW |