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

Unified Diff: device/bluetooth/bluetooth_service_record.h

Issue 12310048: Bluetooth: Add a "connectable" property to the BluetoothDevice. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed the bug about calling twice the callback. Created 7 years, 10 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
Index: device/bluetooth/bluetooth_service_record.h
diff --git a/device/bluetooth/bluetooth_service_record.h b/device/bluetooth/bluetooth_service_record.h
index 5059776abc37b98cce551823639a429b83ceeb2f..8108b7197564ee7223e37ddda30723fb52778bdd 100644
--- a/device/bluetooth/bluetooth_service_record.h
+++ b/device/bluetooth/bluetooth_service_record.h
@@ -29,6 +29,17 @@ class BluetoothServiceRecord {
// specified in the service record.
const std::string& uuid() const { return uuid_; }
+ // Indicates if this service supports HIDP.
keybuk 2013/02/22 23:50:03 nit: HID not HIDP
deymo 2013/02/23 00:43:16 Done.
+ bool SupportsHid() const { return supports_hid_; }
+
+ // For HID services, returns the HIDReconnectInitiate attribute. For non-HID
+ // or unknown services defaults to true.
+ bool hid_reconnect_initiate() const { return hid_reconnect_initiate_; }
+
+ // For HID services, returns the HIDNormallyConnectable attribute. For non-HID
+ // or unknown services defaults to true.
+ bool hid_normally_connectable() const { return hid_normally_connectable_; }
+
// Indicates if this service supports RFCOMM communication.
bool SupportsRfcomm() const { return supports_rfcomm_; }
@@ -43,6 +54,10 @@ class BluetoothServiceRecord {
std::string name_;
std::string uuid_;
+ bool supports_hid_;
+ bool hid_reconnect_initiate_;
+ bool hid_normally_connectable_;
+
bool supports_rfcomm_;
uint8 rfcomm_channel_;

Powered by Google App Engine
This is Rietveld 408576698