#include "components/ui_devtools/dom.h"
#include "components/ui_devtools/protocol.h"
#include "third_party/inspector_protocol/crdtp/cbor.h"
#include "third_party/inspector_protocol/crdtp/find_by_first.h"
#include "third_party/inspector_protocol/crdtp/span.h"
namespace ui_devtools {
namespace protocol {
namespace DOM {
DeserializerState;
ProtocolTypeTraits;
const char Metainfo::domainName[] = …;
const char Metainfo::commandPrefix[] = …;
const char Metainfo::version[] = …;
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
const char* MouseEvent::TypeEnum::MousePressed = …;
const char* MouseEvent::TypeEnum::MouseDragged = …;
const char* MouseEvent::TypeEnum::MouseReleased = …;
const char* MouseEvent::TypeEnum::MouseMoved = …;
const char* MouseEvent::TypeEnum::MouseEntered = …;
const char* MouseEvent::TypeEnum::MouseExited = …;
const char* MouseEvent::TypeEnum::MouseWheel = …;
const char* MouseEvent::ButtonEnum::None = …;
const char* MouseEvent::ButtonEnum::Left = …;
const char* MouseEvent::ButtonEnum::Right = …;
const char* MouseEvent::ButtonEnum::Middle = …;
const char* MouseEvent::ButtonEnum::Back = …;
const char* MouseEvent::ButtonEnum::Forward = …;
const char* MouseEvent::WheelDirectionEnum::None = …;
const char* MouseEvent::WheelDirectionEnum::Up = …;
const char* MouseEvent::WheelDirectionEnum::Down = …;
const char* MouseEvent::WheelDirectionEnum::Left = …;
const char* MouseEvent::WheelDirectionEnum::Right = …;
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
const char* KeyEvent::TypeEnum::KeyPressed = …;
const char* KeyEvent::TypeEnum::KeyReleased = …;
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
void Frontend::childNodeInserted(int parentNodeId, int previousNodeId, std::unique_ptr<protocol::DOM::Node> node)
{ … }
void Frontend::childNodeRemoved(int parentNodeId, int nodeId)
{ … }
void Frontend::flush()
{ … }
void Frontend::sendRawNotification(std::unique_ptr<Serializable> notification)
{ … }
class DomainDispatcherImpl : public protocol::DomainDispatcher { … };
namespace {
DomainDispatcherImpl::CallHandler CommandByName(crdtp::span<uint8_t> command_name) { … }
}
std::function<void(const crdtp::Dispatchable&)> DomainDispatcherImpl::Dispatch(crdtp::span<uint8_t> command_name) { … }
namespace {
}
void DomainDispatcherImpl::disable(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
}
void DomainDispatcherImpl::enable(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
}
void DomainDispatcherImpl::getDocument(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct pushNodesByBackendIdsToFrontendParams : public crdtp::DeserializableProtocolObject<pushNodesByBackendIdsToFrontendParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::pushNodesByBackendIdsToFrontend(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct performSearchParams : public crdtp::DeserializableProtocolObject<performSearchParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::performSearch(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct getSearchResultsParams : public crdtp::DeserializableProtocolObject<getSearchResultsParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::getSearchResults(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct discardSearchResultsParams : public crdtp::DeserializableProtocolObject<discardSearchResultsParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::discardSearchResults(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct dispatchMouseEventParams : public crdtp::DeserializableProtocolObject<dispatchMouseEventParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::dispatchMouseEvent(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct dispatchKeyEventParams : public crdtp::DeserializableProtocolObject<dispatchKeyEventParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::dispatchKeyEvent(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
const std::vector<std::pair<crdtp::span<uint8_t>, crdtp::span<uint8_t>>>& SortedRedirects() { … }
}
void Dispatcher::wire(UberDispatcher* uber, Backend* backend)
{ … }
}
}
}