Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: chrome/browser/extensions/api/bluetooth/bluetooth_api.h

Issue 273953002: Hook up RSSI and host transmit power Bluetooth device properties for ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Start connection monitor when connected through chrome.bluetooth API Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 public: 176 public:
177 DECLARE_EXTENSION_FUNCTION("bluetooth.connect", BLUETOOTH_CONNECT) 177 DECLARE_EXTENSION_FUNCTION("bluetooth.connect", BLUETOOTH_CONNECT)
178 178
179 protected: 179 protected:
180 virtual ~BluetoothConnectFunction(); 180 virtual ~BluetoothConnectFunction();
181 181
182 // BluetoothExtensionFunction: 182 // BluetoothExtensionFunction:
183 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE; 183 virtual bool DoWork(scoped_refptr<device::BluetoothAdapter> adapter) OVERRIDE;
184 184
185 private: 185 private:
186 void OnSuccessCallback(); 186 void OnSuccessCallback(device::BluetoothDevice* device);
187 void OnErrorCallback(const std::string& error); 187 void OnErrorCallback(const std::string& error);
188 }; 188 };
189 189
190 class BluetoothDisconnectFunction : public AsyncExtensionFunction { 190 class BluetoothDisconnectFunction : public AsyncExtensionFunction {
191 public: 191 public:
192 DECLARE_EXTENSION_FUNCTION("bluetooth.disconnect", BLUETOOTH_DISCONNECT) 192 DECLARE_EXTENSION_FUNCTION("bluetooth.disconnect", BLUETOOTH_DISCONNECT)
193 193
194 protected: 194 protected:
195 virtual ~BluetoothDisconnectFunction() {} 195 virtual ~BluetoothDisconnectFunction() {}
196 196
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 314
315 private: 315 private:
316 void OnSuccessCallback(); 316 void OnSuccessCallback();
317 void OnErrorCallback(); 317 void OnErrorCallback();
318 }; 318 };
319 319
320 } // namespace api 320 } // namespace api
321 } // namespace extensions 321 } // namespace extensions
322 322
323 #endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_ 323 #endif // CHROME_BROWSER_EXTENSIONS_API_BLUETOOTH_BLUETOOTH_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698