#include "chrome/browser/devtools/protocol/emulation.h"
#include "chrome/browser/devtools/protocol/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 protocol {
namespace Emulation {
DeserializerState;
ProtocolTypeTraits;
const char Metainfo::domainName[] = …;
const char Metainfo::commandPrefix[] = …;
const char Metainfo::version[] = …;
namespace SetEmitTouchEventsForMouse {
namespace ConfigurationEnum {
const char* Mobile = …;
const char* Desktop = …;
}
}
namespace SetEmulatedVisionDeficiency {
namespace TypeEnum {
const char* None = …;
const char* BlurredVision = …;
const char* ReducedContrast = …;
const char* Achromatopsia = …;
const char* Deuteranopia = …;
const char* Protanopia = …;
const char* Tritanopia = …;
}
}
void Frontend::VirtualTimeBudgetExpired()
{ … }
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 {
struct setAutomationOverrideParams : public crdtp::DeserializableProtocolObject<setAutomationOverrideParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setAutomationOverride(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)
{ … }
}
}