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

Unified Diff: content/browser/bluetooth/web_bluetooth_service_impl.h

Issue 2654403002: Implement WebBluetooth descriptor.writeValue() (Closed)
Patch Set: Inital Created 3 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
Index: content/browser/bluetooth/web_bluetooth_service_impl.h
diff --git a/content/browser/bluetooth/web_bluetooth_service_impl.h b/content/browser/bluetooth/web_bluetooth_service_impl.h
index c8a4c590726844bb6fb92ca659fe42af7a45c7fa..c459f7894659cea15c5e29f10ae54904c8370a60 100644
--- a/content/browser/bluetooth/web_bluetooth_service_impl.h
+++ b/content/browser/bluetooth/web_bluetooth_service_impl.h
@@ -137,6 +137,11 @@ class CONTENT_EXPORT WebBluetoothServiceImpl
const std::string& characteristic_instance_id,
const RemoteDescriptorReadValueCallback& callback) override;
ortuno 2017/01/28 00:22:51 nit: no new line.
dougt 2017/01/31 00:31:25 Done.
+ void RemoteDescriptorWriteValue(
+ const std::string& descriptor_instance_id,
+ const std::vector<uint8_t>& value,
+ const RemoteDescriptorWriteValueCallback& callback) override;
+
void RequestDeviceImpl(
blink::mojom::WebBluetoothRequestDeviceOptionsPtr options,
const RequestDeviceCallback& callback,
@@ -206,6 +211,13 @@ class CONTENT_EXPORT WebBluetoothServiceImpl
const RemoteDescriptorReadValueCallback& callback,
device::BluetoothRemoteGattService::GattErrorCode error_code);
+ // Callbacks for BluetoothRemoteGattDescriptor::WriteRemoteDescriptor.
+ void OnDescriptorWriteValueSuccess(
+ const RemoteDescriptorWriteValueCallback& callback);
+ void OnDescriptorWriteValueFailed(
+ const RemoteDescriptorWriteValueCallback& callback,
+ device::BluetoothRemoteGattService::GattErrorCode error_code);
+
// Functions to query the platform cache for the bluetooth object.
// result.outcome == CacheQueryOutcome::SUCCESS if the object was found in the
// cache. Otherwise result.outcome that can used to record the outcome and

Powered by Google App Engine
This is Rietveld 408576698