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

Unified Diff: third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothDevice.h

Issue 1427653003: bluetooth: Implement TxPower and RSSI of BluetoothAdvertisementData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Change PowerValueAdapter to int8_t Created 5 years, 1 month 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 | « third_party/WebKit/Source/modules/modules.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothDevice.h
diff --git a/third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothDevice.h b/third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothDevice.h
index 76534e50ab788a1dc1b188c173d24b1dfdb227c5..e2d97b5ae18eef833d5e99a5ddfb2fb17cd040c5 100644
--- a/third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothDevice.h
+++ b/third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothDevice.h
@@ -20,6 +20,8 @@ struct WebBluetoothDevice {
WebBluetoothDevice(const WebString& id,
const WebString& name,
+ int8_t txPower,
+ int8_t rssi,
int32_t deviceClass,
VendorIDSource vendorIDSource,
uint16_t vendorID,
@@ -29,6 +31,8 @@ struct WebBluetoothDevice {
const WebVector<WebString>& uuids)
: id(id)
, name(name)
+ , txPower(txPower)
+ , rssi(rssi)
, deviceClass(deviceClass)
, vendorIDSource(vendorIDSource)
, vendorID(vendorID)
@@ -42,6 +46,10 @@ struct WebBluetoothDevice {
// Members corresponding to BluetoothDevice attributes as specified in IDL.
const WebString id;
const WebString name;
+ // Powers:
+ // A value of 127 denotes an invalid power.
+ const int8_t txPower;
+ const int8_t rssi;
const int32_t deviceClass;
const VendorIDSource vendorIDSource;
const uint16_t vendorID;
« no previous file with comments | « third_party/WebKit/Source/modules/modules.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698