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

Unified Diff: third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h

Issue 1991063002: Implement the gattserverdisconnected event. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rename-web-bluetooth-device
Patch Set: Skip the new tests on Mac, where getCharacteristic isn't implemented yet. Created 4 years, 7 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
Index: third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h
diff --git a/third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h b/third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h
index 49f0cc4e2b8f18b3360e5366be1bfa142c785def..b7930bcc36af30b12bab3309bc52d5a745909941 100644
--- a/third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h
+++ b/third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h
@@ -15,6 +15,7 @@
namespace blink {
+class WebBluetoothDevice;
class WebBluetoothRemoteGATTCharacteristic;
struct WebBluetoothDeviceInit;
@@ -58,7 +59,8 @@ public:
// BluetoothRemoteGATTServer methods:
// See https://webbluetoothchrome.github.io/web-bluetooth/#idl-def-bluetoothgattremoteserver
virtual void connect(const WebString& deviceId,
- WebBluetoothRemoteGATTServerConnectCallbacks*) { }
+ WebBluetoothDevice* device,
+ WebBluetoothRemoteGATTServerConnectCallbacks*) {}
virtual void disconnect(const WebString& deviceId) = 0;
virtual void getPrimaryService(const WebString& deviceId,
const WebString& serviceUUID,

Powered by Google App Engine
This is Rietveld 408576698