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

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: addressed comment 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..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
« 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