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

Unified Diff: chromeos/dbus/bluetooth_device_client.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: fix clang warnings, test flakiness, and bluetooth.connect should succeed even if monitor fails 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/api/bluetooth/bluetooth_api.cc ('k') | chromeos/dbus/bluetooth_device_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/bluetooth_device_client.h
diff --git a/chromeos/dbus/bluetooth_device_client.h b/chromeos/dbus/bluetooth_device_client.h
index 11f5a1cb772db7d88f3971a417f4ade59405c27a..a09b4ef528a5800dc87ddcace2648afcbb29b078 100644
--- a/chromeos/dbus/bluetooth_device_client.h
+++ b/chromeos/dbus/bluetooth_device_client.h
@@ -76,9 +76,24 @@ class CHROMEOS_EXPORT BluetoothDeviceClient : public DBusClient {
// Remote Device ID information in Linux kernel modalias format. Read-only.
dbus::Property<std::string> modalias;
- // Received signal strength indicator. Read-only.
+ // Received signal strength indicator that is set when the device is
+ // discovered during inquiry. Read-only.
dbus::Property<int16> rssi;
+ // Received signal strength indicator when a connection is open to the
+ // device. This property is not set unless connection monitor is enabled.
+ // Read-only.
+ dbus::Property<int16> connection_rssi;
+
+ // The transmit power level of the host when a connection is open
+ // to the device. This property is not set unless connection monitor is
+ // enabled. Read-only.
+ dbus::Property<int16> connection_tx_power;
+
+ // The maximum transmit power level of the host that can be set
+ // when connected to the device. Read-only.
+ dbus::Property<int16> connection_tx_power_max;
+
Properties(dbus::ObjectProxy* object_proxy,
const std::string& interface_name,
const PropertyChangedCallback& callback);
@@ -169,6 +184,19 @@ class CHROMEOS_EXPORT BluetoothDeviceClient : public DBusClient {
const base::Closure& callback,
const ErrorCallback& error_callback) = 0;
+ // Starts connection monitor for the device with object path
+ // |object_path|. Connection monitor is a mode the connection properties,
+ // RSSI and TX power are tracked and updated when they change.
+ virtual void StartConnectionMonitor(const dbus::ObjectPath& object_path,
+ const base::Closure& callback,
+ const ErrorCallback& error_callback) = 0;
+
+ // Stops connection monitor for the device with object path
+ // |object_path|.
+ virtual void StopConnectionMonitor(const dbus::ObjectPath& object_path,
+ const base::Closure& callback,
+ const ErrorCallback& error_callback) = 0;
+
// Creates the instance.
static BluetoothDeviceClient* Create();
« no previous file with comments | « chrome/browser/extensions/api/bluetooth/bluetooth_api.cc ('k') | chromeos/dbus/bluetooth_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698