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

Unified Diff: device/bluetooth/adapter.cc

Issue 2567983007: bluetooth: Add adapter page to internals page. (Closed)
Patch Set: Merge upstream Created 3 years, 11 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 | « device/bluetooth/adapter.h ('k') | device/bluetooth/discovery_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/adapter.cc
diff --git a/device/bluetooth/adapter.cc b/device/bluetooth/adapter.cc
index 3f1d32274a92a64adcbec1948f79f444f84ab314..85a36183dbe6e4ee499ea5e6161dc072cdbb769d 100644
--- a/device/bluetooth/adapter.cc
+++ b/device/bluetooth/adapter.cc
@@ -79,6 +79,24 @@ void Adapter::StartDiscoverySession(
weak_ptr_factory_.GetWeakPtr(), callback));
}
+void Adapter::AdapterPresentChanged(device::BluetoothAdapter* adapter,
+ bool present) {
+ if (client_)
+ client_->PresentChanged(present);
+}
+
+void Adapter::AdapterPoweredChanged(device::BluetoothAdapter* adapter,
+ bool powered) {
+ if (client_)
+ client_->PoweredChanged(powered);
+}
+
+void Adapter::AdapterDiscoverableChanged(device::BluetoothAdapter* adapter,
+ bool discoverable) {
+ if (client_)
+ client_->DiscoverableChanged(discoverable);
+}
+
void Adapter::AdapterDiscoveringChanged(device::BluetoothAdapter* adapter,
bool discovering) {
if (client_)
« no previous file with comments | « device/bluetooth/adapter.h ('k') | device/bluetooth/discovery_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698