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

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

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 | « Source/modules/bluetooth/BluetoothDevice.h ('k') | Source/modules/bluetooth/BluetoothDevice.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/bluetooth/BluetoothDevice.cpp
diff --git a/Source/modules/bluetooth/BluetoothDevice.cpp b/Source/modules/bluetooth/BluetoothDevice.cpp
index 65d4104f561640214dc8c7cf3fb412296e453263..e679e5ada2e848a22d3bd7b342a9395bfa1fb1be 100644
--- a/Source/modules/bluetooth/BluetoothDevice.cpp
+++ b/Source/modules/bluetooth/BluetoothDevice.cpp
@@ -5,19 +5,18 @@
#include "config.h"
#include "modules/bluetooth/BluetoothDevice.h"
-#include "public/platform/WebBluetoothDevice.h"
#include "wtf/OwnPtr.h"
namespace blink {
-BluetoothDevice::BluetoothDevice(const String& instanceId)
- : m_instanceId(instanceId)
+BluetoothDevice::BluetoothDevice(const WebBluetoothDevice& webDevice)
+ : m_webDevice(webDevice)
{
}
BluetoothDevice* BluetoothDevice::create(const WebBluetoothDevice& webDevice)
{
- return new BluetoothDevice(webDevice.instanceId);
+ return new BluetoothDevice(webDevice);
}
BluetoothDevice* BluetoothDevice::take(ScriptPromiseResolver*, WebBluetoothDevice* webDeviceRawPointer)
« no previous file with comments | « Source/modules/bluetooth/BluetoothDevice.h ('k') | Source/modules/bluetooth/BluetoothDevice.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698