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

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.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
Index: third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
index 096cda7b8d4f6d9d1963926e0b9b70ac515a07a0..a0ec5dbebcccce6851544e0904fec601537a1b9d 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.h
@@ -6,6 +6,7 @@
#define BluetoothDevice_h
#include "bindings/core/v8/ScriptWrappable.h"
+#include "modules/bluetooth/BluetoothAdvertisingData.h"
#include "platform/heap/Heap.h"
#include "public/platform/modules/bluetooth/WebBluetoothDevice.h"
#include "wtf/OwnPtr.h"
@@ -38,11 +39,12 @@ public:
static BluetoothDevice* take(ScriptPromiseResolver*, PassOwnPtr<WebBluetoothDevice>);
// Interface required by Garbage Collection:
- DEFINE_INLINE_TRACE() { }
+ DECLARE_VIRTUAL_TRACE();
// IDL exposed interface:
String id() { return m_webDevice->id; }
String name() { return m_webDevice->name; }
+ BluetoothAdvertisingData* adData() { return m_adData; }
unsigned deviceClass(bool& isNull);
String vendorIDSource();
unsigned vendorID(bool& isNull);
@@ -53,6 +55,7 @@ public:
private:
OwnPtr<WebBluetoothDevice> m_webDevice;
+ Member<BluetoothAdvertisingData> m_adData;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698