| 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 | 183 |
| 184 #if defined(OS_CHROMEOS) | 184 #if defined(OS_CHROMEOS) |
| 185 void ReadCallback(const chromeos::BluetoothOutOfBandPairingData& data); | 185 void ReadCallback(const chromeos::BluetoothOutOfBandPairingData& data); |
| 186 void ErrorCallback(); | 186 void ErrorCallback(); |
| 187 #endif | 187 #endif |
| 188 | 188 |
| 189 // ExtensionFunction: | 189 // ExtensionFunction: |
| 190 virtual bool RunImpl() OVERRIDE; | 190 virtual bool RunImpl() OVERRIDE; |
| 191 }; | 191 }; |
| 192 | 192 |
| 193 class BluetoothStartDiscoveryFunction : public AsyncExtensionFunction { |
| 194 public: |
| 195 DECLARE_EXTENSION_FUNCTION_NAME("experimental.bluetooth.startDiscovery") |
| 196 |
| 197 protected: |
| 198 virtual ~BluetoothStartDiscoveryFunction() {} |
| 199 |
| 200 // ExtensionFunction: |
| 201 virtual bool RunImpl() OVERRIDE; |
| 202 |
| 203 #if defined(OS_CHROMEOS) |
| 204 private: |
| 205 void OnSuccessCallback(); |
| 206 void OnErrorCallback(); |
| 207 #endif |
| 208 }; |
| 209 |
| 210 class BluetoothStopDiscoveryFunction : public AsyncExtensionFunction { |
| 211 public: |
| 212 DECLARE_EXTENSION_FUNCTION_NAME("experimental.bluetooth.stopDiscovery") |
| 213 |
| 214 protected: |
| 215 virtual ~BluetoothStopDiscoveryFunction() {} |
| 216 |
| 217 // ExtensionFunction: |
| 218 virtual bool RunImpl() OVERRIDE; |
| 219 |
| 220 #if defined(OS_CHROMEOS) |
| 221 private: |
| 222 void OnSuccessCallback(); |
| 223 void OnErrorCallback(); |
| 224 #endif |
| 225 }; |
| 226 |
| 193 } // namespace api | 227 } // namespace api |
| 194 } // namespace extensions | 228 } // namespace extensions |
| 195 | 229 |
| 196 #endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_ | 230 #endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_ |
| OLD | NEW |