Index: Source/modules/bluetooth/BluetoothDevice.h |
diff --git a/Source/modules/bluetooth/BluetoothDevice.h b/Source/modules/bluetooth/BluetoothDevice.h |
index 7c4f4ae11731160c59d9750649a06a21d7d5af02..99e215db3267c7f5b1b55b62f2fd97299689c60f 100644 |
--- a/Source/modules/bluetooth/BluetoothDevice.h |
+++ b/Source/modules/bluetooth/BluetoothDevice.h |
@@ -7,12 +7,12 @@ |
#include "bindings/core/v8/ScriptWrappable.h" |
#include "platform/heap/Heap.h" |
+#include "public/platform/WebBluetoothDevice.h" |
#include "wtf/text/WTFString.h" |
namespace blink { |
class ScriptPromiseResolver; |
-struct WebBluetoothDevice; |
// BluetoothDevice represents a physical bluetooth device in the DOM. See IDL. |
// |
@@ -25,23 +25,23 @@ class BluetoothDevice final |
, public ScriptWrappable { |
DEFINE_WRAPPERTYPEINFO(); |
public: |
- BluetoothDevice(const String& instanceId); |
+ BluetoothDevice(const WebBluetoothDevice&); |
static BluetoothDevice* create(const WebBluetoothDevice&); |
// Interface required by CallbackPromiseAdapter: |
typedef WebBluetoothDevice WebType; |
static BluetoothDevice* take(ScriptPromiseResolver*, WebBluetoothDevice*); |
- static void dispose(blink::WebBluetoothDevice*); |
+ static void dispose(WebBluetoothDevice*); |
// Interface required by Garbage Collection: |
void trace(Visitor*) { } |
// IDL exposed interface: |
- String instanceId() { return m_instanceId; } |
+ String instanceID() { return m_webDevice.instanceID; } |
private: |
- String m_instanceId; |
+ WebBluetoothDevice m_webDevice; |
}; |
} // namespace blink |