#include "third_party/blink/renderer/core/inspector/protocol/emulation.h"
#include "third_party/blink/renderer/core/inspector/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 blink {
namespace protocol {
namespace Emulation {
DeserializerState;
ProtocolTypeTraits;
const char Metainfo::domainName[] = …;
const char Metainfo::commandPrefix[] = …;
const char Metainfo::version[] = …;
const char* ScreenOrientation::TypeEnum::PortraitPrimary = …;
const char* ScreenOrientation::TypeEnum::PortraitSecondary = …;
const char* ScreenOrientation::TypeEnum::LandscapePrimary = …;
const char* ScreenOrientation::TypeEnum::LandscapeSecondary = …;
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
const char* DisplayFeature::OrientationEnum::Vertical = …;
const char* DisplayFeature::OrientationEnum::Horizontal = …;
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
const char* DevicePosture::TypeEnum::Continuous = …;
const char* DevicePosture::TypeEnum::Folded = …;
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
namespace VirtualTimePolicyEnum {
const char Advance[] = …;
const char Pause[] = …;
const char PauseIfNetworkFetchesPending[] = …;
}
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
namespace DisabledImageTypeEnum {
const char Avif[] = …;
const char Webp[] = …;
}
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 {
}
void DomainDispatcherImpl::clearDeviceMetricsOverride(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
}
void DomainDispatcherImpl::resetPageScaleFactor(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setFocusEmulationEnabledParams : public crdtp::DeserializableProtocolObject<setFocusEmulationEnabledParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setFocusEmulationEnabled(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setAutoDarkModeOverrideParams : public crdtp::DeserializableProtocolObject<setAutoDarkModeOverrideParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setAutoDarkModeOverride(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setCPUThrottlingRateParams : public crdtp::DeserializableProtocolObject<setCPUThrottlingRateParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setCPUThrottlingRate(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setDefaultBackgroundColorOverrideParams : public crdtp::DeserializableProtocolObject<setDefaultBackgroundColorOverrideParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setDefaultBackgroundColorOverride(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setDeviceMetricsOverrideParams : public crdtp::DeserializableProtocolObject<setDeviceMetricsOverrideParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setDeviceMetricsOverride(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setScrollbarsHiddenParams : public crdtp::DeserializableProtocolObject<setScrollbarsHiddenParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setScrollbarsHidden(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setDocumentCookieDisabledParams : public crdtp::DeserializableProtocolObject<setDocumentCookieDisabledParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setDocumentCookieDisabled(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setEmulatedMediaParams : public crdtp::DeserializableProtocolObject<setEmulatedMediaParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setEmulatedMedia(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setEmulatedVisionDeficiencyParams : public crdtp::DeserializableProtocolObject<setEmulatedVisionDeficiencyParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setEmulatedVisionDeficiency(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setNavigatorOverridesParams : public crdtp::DeserializableProtocolObject<setNavigatorOverridesParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setNavigatorOverrides(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setPageScaleFactorParams : public crdtp::DeserializableProtocolObject<setPageScaleFactorParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setPageScaleFactor(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setScriptExecutionDisabledParams : public crdtp::DeserializableProtocolObject<setScriptExecutionDisabledParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setScriptExecutionDisabled(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setTouchEmulationEnabledParams : public crdtp::DeserializableProtocolObject<setTouchEmulationEnabledParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setTouchEmulationEnabled(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setVirtualTimePolicyParams : public crdtp::DeserializableProtocolObject<setVirtualTimePolicyParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setVirtualTimePolicy(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setLocaleOverrideParams : public crdtp::DeserializableProtocolObject<setLocaleOverrideParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setLocaleOverride(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setTimezoneOverrideParams : public crdtp::DeserializableProtocolObject<setTimezoneOverrideParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setTimezoneOverride(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setDisabledImageTypesParams : public crdtp::DeserializableProtocolObject<setDisabledImageTypesParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setDisabledImageTypes(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setHardwareConcurrencyOverrideParams : public crdtp::DeserializableProtocolObject<setHardwareConcurrencyOverrideParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setHardwareConcurrencyOverride(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setUserAgentOverrideParams : public crdtp::DeserializableProtocolObject<setUserAgentOverrideParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setUserAgentOverride(const crdtp::Dispatchable& dispatchable)
{ … }
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)
{ … }
}
}
}