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

Unified Diff: device/bluetooth/bluetooth_adapter.h

Issue 2037173003: Notify the BluetoothAdapter::Observer when a bluetooth peripheral disconnects on Android and Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_adapter.h
diff --git a/device/bluetooth/bluetooth_adapter.h b/device/bluetooth/bluetooth_adapter.h
index a9224562426118cae2a0fa293fd8fef09dc7ae83..4fcc8c76972940a844da551692271c45820af14a 100644
--- a/device/bluetooth/bluetooth_adapter.h
+++ b/device/bluetooth/bluetooth_adapter.h
@@ -82,9 +82,22 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapter
virtual void DeviceAdded(BluetoothAdapter* adapter,
BluetoothDevice* device) {}
- // Called when properties of the device |device| known to the adapter
- // |adapter| change. |device| should not be cached. Instead, copy its
- // Bluetooth address.
+ // Called when the result of one of the following methods of the device
+ // |device| changes:
+ // * GetAddress()
+ // * GetAppearance()
+ // * GetBluetoothClass()
+ // * GetInquiryRSSI()
+ // * GetInquiryTxPower()
+ // * GetUUIDs()
+ // * IsConnectable()
+ // * IsConnected()
+ // * IsConnecting()
+ // * IsGattConnected()
+ // * IsPaired()
+ // * IsTrustable()
+ //
+ // |device| should not be cached. Instead, copy its Bluetooth address.
virtual void DeviceChanged(BluetoothAdapter* adapter,
BluetoothDevice* device) {}
@@ -428,6 +441,8 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapter
// The following methods are used to send various events to observers.
void NotifyAdapterStateChanged(bool powered);
+ void NotifyDeviceChanged(BluetoothDevice* device);
+
#if defined(OS_CHROMEOS) || defined(OS_LINUX)
// This function is implemented for ChromeOS only, and the support on
// Android, MaxOS and Windows should be added on demand in the future.
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698