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

Side by Side Diff: device/bluetooth/bluetooth_device_chromeos.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: Implemented as a property of the Device object 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_CHROMEOS_H 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 19 matching lines...) Expand all
30 virtual void AddObserver( 30 virtual void AddObserver(
31 device::BluetoothDevice::Observer* observer) OVERRIDE; 31 device::BluetoothDevice::Observer* observer) OVERRIDE;
32 virtual void RemoveObserver( 32 virtual void RemoveObserver(
33 device::BluetoothDevice::Observer* observer) OVERRIDE; 33 device::BluetoothDevice::Observer* observer) OVERRIDE;
34 virtual uint32 GetBluetoothClass() const OVERRIDE; 34 virtual uint32 GetBluetoothClass() const OVERRIDE;
35 virtual std::string GetAddress() const OVERRIDE; 35 virtual std::string GetAddress() const OVERRIDE;
36 virtual VendorIDSource GetVendorIDSource() const OVERRIDE; 36 virtual VendorIDSource GetVendorIDSource() const OVERRIDE;
37 virtual uint16 GetVendorID() const OVERRIDE; 37 virtual uint16 GetVendorID() const OVERRIDE;
38 virtual uint16 GetProductID() const OVERRIDE; 38 virtual uint16 GetProductID() const OVERRIDE;
39 virtual uint16 GetDeviceID() const OVERRIDE; 39 virtual uint16 GetDeviceID() const OVERRIDE;
40 virtual int GetRSSI() const OVERRIDE;
41 virtual int GetCurrentHostTransmitPower() const OVERRIDE;
42 virtual int GetMaximumHostTransmitPower() const OVERRIDE;
40 virtual bool IsPaired() const OVERRIDE; 43 virtual bool IsPaired() const OVERRIDE;
41 virtual bool IsConnected() const OVERRIDE; 44 virtual bool IsConnected() const OVERRIDE;
42 virtual bool IsConnectable() const OVERRIDE; 45 virtual bool IsConnectable() const OVERRIDE;
43 virtual bool IsConnecting() const OVERRIDE; 46 virtual bool IsConnecting() const OVERRIDE;
44 virtual UUIDList GetUUIDs() const OVERRIDE; 47 virtual UUIDList GetUUIDs() const OVERRIDE;
45 virtual bool ExpectingPinCode() const OVERRIDE; 48 virtual bool ExpectingPinCode() const OVERRIDE;
46 virtual bool ExpectingPasskey() const OVERRIDE; 49 virtual bool ExpectingPasskey() const OVERRIDE;
47 virtual bool ExpectingConfirmation() const OVERRIDE; 50 virtual bool ExpectingConfirmation() const OVERRIDE;
48 virtual void Connect( 51 virtual void Connect(
49 device::BluetoothDevice::PairingDelegate* pairing_delegate, 52 device::BluetoothDevice::PairingDelegate* pairing_delegate,
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // Note: This should remain the last member so it'll be destroyed and 180 // Note: This should remain the last member so it'll be destroyed and
178 // invalidate its weak pointers before any other members are destroyed. 181 // invalidate its weak pointers before any other members are destroyed.
179 base::WeakPtrFactory<BluetoothDeviceChromeOS> weak_ptr_factory_; 182 base::WeakPtrFactory<BluetoothDeviceChromeOS> weak_ptr_factory_;
180 183
181 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceChromeOS); 184 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceChromeOS);
182 }; 185 };
183 186
184 } // namespace chromeos 187 } // namespace chromeos
185 188
186 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H 189 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_CHROMEOS_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698