#include "third_party/blink/renderer/modules/nfc/nfc_proxy.h"
#include <utility>
#include "third_party/blink/public/platform/browser_interface_broker_proxy.h"
#include "third_party/blink/renderer/core/frame/local_dom_window.h"
#include "third_party/blink/renderer/core/page/page.h"
#include "third_party/blink/renderer/modules/nfc/ndef_reader.h"
#include "third_party/blink/renderer/modules/nfc/nfc_type_converters.h"
namespace blink {
const char NFCProxy::kSupplementName[] = …;
NFCProxy* NFCProxy::From(LocalDOMWindow& window) { … }
NFCProxy::NFCProxy(LocalDOMWindow& window)
: … { … }
NFCProxy::~NFCProxy() = default;
void NFCProxy::Trace(Visitor* visitor) const { … }
void NFCProxy::StartReading(NDEFReader* reader,
device::mojom::blink::NFC::WatchCallback callback) { … }
void NFCProxy::StopReading(NDEFReader* reader) { … }
bool NFCProxy::IsReading(const NDEFReader* reader) { … }
void NFCProxy::AddWriter(NDEFReader* writer) { … }
void NFCProxy::Push(device::mojom::blink::NDEFMessagePtr message,
device::mojom::blink::NDEFWriteOptionsPtr options,
device::mojom::blink::NFC::PushCallback cb) { … }
void NFCProxy::CancelPush() { … }
void NFCProxy::MakeReadOnly(
device::mojom::blink::NFC::MakeReadOnlyCallback cb) { … }
void NFCProxy::CancelMakeReadOnly() { … }
void NFCProxy::OnWatch(const Vector<uint32_t>& watch_ids,
const String& serial_number,
device::mojom::blink::NDEFMessagePtr message) { … }
void NFCProxy::OnError(device::mojom::blink::NDEFErrorPtr error) { … }
void NFCProxy::OnReaderRegistered(
NDEFReader* reader,
uint32_t watch_id,
device::mojom::blink::NFC::WatchCallback callback,
device::mojom::blink::NDEFErrorPtr error) { … }
void NFCProxy::EnsureMojoConnection() { … }
void NFCProxy::OnMojoConnectionError() { … }
}