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

Unified Diff: Source/modules/bluetooth/BluetoothDevice.h

Issue 882223002: bluetooth: Add more attributes to WebBluetoothDevice. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@gclient
Patch Set: Created 5 years, 11 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 | « LayoutTests/bluetooth/idl-BluetoothDevice.html ('k') | Source/modules/bluetooth/BluetoothDevice.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/bluetooth/BluetoothDevice.h
diff --git a/Source/modules/bluetooth/BluetoothDevice.h b/Source/modules/bluetooth/BluetoothDevice.h
index 7c4f4ae11731160c59d9750649a06a21d7d5af02..5c5bb5f302c77cac44629f5212b5aeba68bad0c5 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,7 +25,7 @@ class BluetoothDevice final
, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
public:
- BluetoothDevice(const String& instanceId);
+ BluetoothDevice(const WebBluetoothDevice&);
static BluetoothDevice* create(const WebBluetoothDevice&);
@@ -38,10 +38,10 @@ public:
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
« no previous file with comments | « LayoutTests/bluetooth/idl-BluetoothDevice.html ('k') | Source/modules/bluetooth/BluetoothDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698