#include "content/browser/devtools/protocol/emulation.h"
#include "content/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 content {
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(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
namespace SensorTypeEnum {
const char AbsoluteOrientation[] = …;
const char Accelerometer[] = …;
const char AmbientLight[] = …;
const char Gravity[] = …;
const char Gyroscope[] = …;
const char LinearAcceleration[] = …;
const char Magnetometer[] = …;
const char Proximity[] = …;
const char RelativeOrientation[] = …;
}
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
namespace PressureSourceEnum {
const char Cpu[] = …;
}
namespace PressureStateEnum {
const char Nominal[] = …;
const char Fair[] = …;
const char Serious[] = …;
const char Critical[] = …;
}
CRDTP_BEGIN_DESERIALIZER(…)
CRDTP_BEGIN_SERIALIZER(…);
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::canEmulate(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
}
void DomainDispatcherImpl::clearDeviceMetricsOverride(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
}
void DomainDispatcherImpl::clearGeolocationOverride(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setFocusEmulationEnabledParams : public crdtp::DeserializableProtocolObject<setFocusEmulationEnabledParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setFocusEmulationEnabled(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setDeviceMetricsOverrideParams : public crdtp::DeserializableProtocolObject<setDeviceMetricsOverrideParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setDeviceMetricsOverride(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setDevicePostureOverrideParams : public crdtp::DeserializableProtocolObject<setDevicePostureOverrideParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setDevicePostureOverride(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
}
void DomainDispatcherImpl::clearDevicePostureOverride(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setEmitTouchEventsForMouseParams : public crdtp::DeserializableProtocolObject<setEmitTouchEventsForMouseParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setEmitTouchEventsForMouse(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setEmulatedMediaParams : public crdtp::DeserializableProtocolObject<setEmulatedMediaParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setEmulatedMedia(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setGeolocationOverrideParams : public crdtp::DeserializableProtocolObject<setGeolocationOverrideParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setGeolocationOverride(const crdtp::Dispatchable& dispatchable)
{ … }
class GetOverriddenSensorInformationCallbackImpl : public Backend::GetOverriddenSensorInformationCallback, public DomainDispatcher::Callback { … };
namespace {
struct getOverriddenSensorInformationParams : public crdtp::DeserializableProtocolObject<getOverriddenSensorInformationParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::getOverriddenSensorInformation(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setSensorOverrideEnabledParams : public crdtp::DeserializableProtocolObject<setSensorOverrideEnabledParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setSensorOverrideEnabled(const crdtp::Dispatchable& dispatchable)
{ … }
class SetSensorOverrideReadingsCallbackImpl : public Backend::SetSensorOverrideReadingsCallback, public DomainDispatcher::Callback { … };
namespace {
struct setSensorOverrideReadingsParams : public crdtp::DeserializableProtocolObject<setSensorOverrideReadingsParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setSensorOverrideReadings(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setPressureSourceOverrideEnabledParams : public crdtp::DeserializableProtocolObject<setPressureSourceOverrideEnabledParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setPressureSourceOverrideEnabled(const crdtp::Dispatchable& dispatchable)
{ … }
class SetPressureStateOverrideCallbackImpl : public Backend::SetPressureStateOverrideCallback, public DomainDispatcher::Callback { … };
namespace {
struct setPressureStateOverrideParams : public crdtp::DeserializableProtocolObject<setPressureStateOverrideParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setPressureStateOverride(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setIdleOverrideParams : public crdtp::DeserializableProtocolObject<setIdleOverrideParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setIdleOverride(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
}
void DomainDispatcherImpl::clearIdleOverride(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setVisibleSizeParams : public crdtp::DeserializableProtocolObject<setVisibleSizeParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setVisibleSize(const crdtp::Dispatchable& dispatchable)
{ … }
namespace {
struct setUserAgentOverrideParams : public crdtp::DeserializableProtocolObject<setUserAgentOverrideParams> { … };
CRDTP_BEGIN_DESERIALIZER(…)
}
void DomainDispatcherImpl::setUserAgentOverride(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)
{ … }
}
}
}