#include "third_party/blink/renderer/modules/bluetooth/bluetooth_remote_gatt_descriptor.h"
#include <utility>
#include "third_party/blink/renderer/bindings/core/v8/script_promise.h"
#include "third_party/blink/renderer/bindings/core/v8/script_promise_resolver.h"
#include "third_party/blink/renderer/core/dom/dom_exception.h"
#include "third_party/blink/renderer/modules/bluetooth/bluetooth_error.h"
#include "third_party/blink/renderer/modules/bluetooth/bluetooth_remote_gatt_service.h"
#include "third_party/blink/renderer/modules/bluetooth/bluetooth_remote_gatt_utils.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/wtf/functional.h"
namespace blink {
BluetoothRemoteGATTDescriptor::BluetoothRemoteGATTDescriptor(
mojom::blink::WebBluetoothRemoteGATTDescriptorPtr descriptor,
BluetoothRemoteGATTCharacteristic* characteristic)
: … { … }
void BluetoothRemoteGATTDescriptor::ReadValueCallback(
ScriptPromiseResolver<NotShared<DOMDataView>>* resolver,
mojom::blink::WebBluetoothResult result,
const std::optional<Vector<uint8_t>>& value) { … }
ScriptPromise<NotShared<DOMDataView>> BluetoothRemoteGATTDescriptor::readValue(
ScriptState* script_state,
ExceptionState& exception_state) { … }
void BluetoothRemoteGATTDescriptor::WriteValueCallback(
ScriptPromiseResolver<IDLUndefined>* resolver,
const Vector<uint8_t>& value,
mojom::blink::WebBluetoothResult result) { … }
ScriptPromise<IDLUndefined> BluetoothRemoteGATTDescriptor::writeValue(
ScriptState* script_state,
const DOMArrayPiece& value,
ExceptionState& exception_state) { … }
String BluetoothRemoteGATTDescriptor::CreateInvalidDescriptorErrorMessage() { … }
void BluetoothRemoteGATTDescriptor::Trace(Visitor* visitor) const { … }
}