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

Side by Side Diff: device/bluetooth/bluetooth_device_mac.h

Issue 246603008: Expose device RSSI and Tx power via the chrome.bluetooth API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 14 matching lines...) Expand all
25 virtual void AddObserver( 25 virtual void AddObserver(
26 device::BluetoothDevice::Observer* observer) OVERRIDE; 26 device::BluetoothDevice::Observer* observer) OVERRIDE;
27 virtual void RemoveObserver( 27 virtual void RemoveObserver(
28 device::BluetoothDevice::Observer* observer) OVERRIDE; 28 device::BluetoothDevice::Observer* observer) OVERRIDE;
29 virtual uint32 GetBluetoothClass() const OVERRIDE; 29 virtual uint32 GetBluetoothClass() const OVERRIDE;
30 virtual std::string GetAddress() const OVERRIDE; 30 virtual std::string GetAddress() const OVERRIDE;
31 virtual VendorIDSource GetVendorIDSource() const OVERRIDE; 31 virtual VendorIDSource GetVendorIDSource() const OVERRIDE;
32 virtual uint16 GetVendorID() const OVERRIDE; 32 virtual uint16 GetVendorID() const OVERRIDE;
33 virtual uint16 GetProductID() const OVERRIDE; 33 virtual uint16 GetProductID() const OVERRIDE;
34 virtual uint16 GetDeviceID() const OVERRIDE; 34 virtual uint16 GetDeviceID() const OVERRIDE;
35 virtual int GetRSSI() const OVERRIDE;
35 virtual bool IsPaired() const OVERRIDE; 36 virtual bool IsPaired() const OVERRIDE;
36 virtual bool IsConnected() const OVERRIDE; 37 virtual bool IsConnected() const OVERRIDE;
37 virtual bool IsConnectable() const OVERRIDE; 38 virtual bool IsConnectable() const OVERRIDE;
38 virtual bool IsConnecting() const OVERRIDE; 39 virtual bool IsConnecting() const OVERRIDE;
39 virtual UUIDList GetUUIDs() const OVERRIDE; 40 virtual UUIDList GetUUIDs() const OVERRIDE;
40 virtual bool ExpectingPinCode() const OVERRIDE; 41 virtual bool ExpectingPinCode() const OVERRIDE;
41 virtual bool ExpectingPasskey() const OVERRIDE; 42 virtual bool ExpectingPasskey() const OVERRIDE;
42 virtual bool ExpectingConfirmation() const OVERRIDE; 43 virtual bool ExpectingConfirmation() const OVERRIDE;
43 virtual void Connect( 44 virtual void Connect(
44 PairingDelegate* pairing_delegate, 45 PairingDelegate* pairing_delegate,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 ObserverList<Observer> observers_; 77 ObserverList<Observer> observers_;
77 78
78 base::scoped_nsobject<IOBluetoothDevice> device_; 79 base::scoped_nsobject<IOBluetoothDevice> device_;
79 80
80 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac); 81 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceMac);
81 }; 82 };
82 83
83 } // namespace device 84 } // namespace device
84 85
85 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_ 86 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698