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

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

Issue 1182973002: Implement the Blink side of RequestDeviceOptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Prepare readValue.html for a mock data change Created 5 years, 6 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: public/platform/modules/bluetooth/WebBluetooth.h
diff --git a/public/platform/modules/bluetooth/WebBluetooth.h b/public/platform/modules/bluetooth/WebBluetooth.h
index ef959057e3abaf28907dbcdb46269235bbb0c937..af88258b3ddd10c45776b4de91e21b597a174ca8 100644
--- a/public/platform/modules/bluetooth/WebBluetooth.h
+++ b/public/platform/modules/bluetooth/WebBluetooth.h
@@ -16,6 +16,7 @@ struct WebBluetoothError;
struct WebBluetoothGATTCharacteristic;
struct WebBluetoothGATTRemoteServer;
struct WebBluetoothGATTService;
+struct WebRequestDeviceOptions;
// Success and failure callbacks for requestDevice.
// WebBluetoothDevice and WebBluetoothError object ownership is transferred.
@@ -44,7 +45,10 @@ public:
// BluetoothDiscovery Methods:
// See https://webbluetoothcg.github.io/web-bluetooth/#idl-def-bluetoothdiscovery
// WebBluetoothRequestDeviceCallbacks ownership transferred to the client.
- virtual void requestDevice(WebBluetoothRequestDeviceCallbacks*) = 0;
+ virtual void requestDevice(const WebRequestDeviceOptions&, WebBluetoothRequestDeviceCallbacks* callbacks) { requestDevice(callbacks); }
+ // TODO(jyasskin): Remove this overload after
+ // https://codereview.chromium.org/1172853004/ lands.
+ virtual void requestDevice(WebBluetoothRequestDeviceCallbacks*) { }
// BluetoothDevice methods:
// See https://webbluetoothcg.github.io/web-bluetooth/#idl-def-bluetoothdevice

Powered by Google App Engine
This is Rietveld 408576698