chromium/out/Default/gen/third_party/blink/renderer/core/inspector/protocol/emulation.cc

// This file is generated by TypeBuilder_cpp.template.

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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;

// ------------- Enum values from types.

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[] =;
} // namespace VirtualTimePolicyEnum


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


namespace DisabledImageTypeEnum {
const char Avif[] =;
const char Webp[] =;
} // namespace DisabledImageTypeEnum


// ------------- Enum values from params.


namespace SetEmitTouchEventsForMouse {
namespace ConfigurationEnum {
const char* Mobile =;
const char* Desktop =;
} // namespace ConfigurationEnum
} // namespace SetEmitTouchEventsForMouse

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 =;
} // namespace TypeEnum
} // namespace SetEmulatedVisionDeficiency

// ------------- Frontend notifications.

void Frontend::virtualTimeBudgetExpired()
{}

void Frontend::flush()
{}

void Frontend::sendRawNotification(std::unique_ptr<Serializable> notification)
{}

// --------------------- Dispatcher.

class DomainDispatcherImpl : public protocol::DomainDispatcher {};

namespace {
// This helper method with a static map of command methods (instance methods
// of DomainDispatcherImpl declared just above) by their name is used immediately below,
// in the DomainDispatcherImpl::Dispatch method.
DomainDispatcherImpl::CallHandler CommandByName(crdtp::span<uint8_t> command_name) {}
}  // namespace

std::function<void(const crdtp::Dispatchable&)> DomainDispatcherImpl::Dispatch(crdtp::span<uint8_t> command_name) {}


namespace {


}  // namespace

void DomainDispatcherImpl::clearDeviceMetricsOverride(const crdtp::Dispatchable& dispatchable)
{}

namespace {


}  // namespace

void DomainDispatcherImpl::resetPageScaleFactor(const crdtp::Dispatchable& dispatchable)
{}

namespace {

struct setFocusEmulationEnabledParams : public crdtp::DeserializableProtocolObject<setFocusEmulationEnabledParams> {};

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::setFocusEmulationEnabled(const crdtp::Dispatchable& dispatchable)
{}

namespace {

struct setAutoDarkModeOverrideParams : public crdtp::DeserializableProtocolObject<setAutoDarkModeOverrideParams> {};

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::setAutoDarkModeOverride(const crdtp::Dispatchable& dispatchable)
{}

namespace {

struct setCPUThrottlingRateParams : public crdtp::DeserializableProtocolObject<setCPUThrottlingRateParams> {};

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::setCPUThrottlingRate(const crdtp::Dispatchable& dispatchable)
{}

namespace {

struct setDefaultBackgroundColorOverrideParams : public crdtp::DeserializableProtocolObject<setDefaultBackgroundColorOverrideParams> {};

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::setDefaultBackgroundColorOverride(const crdtp::Dispatchable& dispatchable)
{}

namespace {

struct setDeviceMetricsOverrideParams : public crdtp::DeserializableProtocolObject<setDeviceMetricsOverrideParams> {};

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::setDeviceMetricsOverride(const crdtp::Dispatchable& dispatchable)
{}

namespace {

struct setScrollbarsHiddenParams : public crdtp::DeserializableProtocolObject<setScrollbarsHiddenParams> {};

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::setScrollbarsHidden(const crdtp::Dispatchable& dispatchable)
{}

namespace {

struct setDocumentCookieDisabledParams : public crdtp::DeserializableProtocolObject<setDocumentCookieDisabledParams> {};

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::setDocumentCookieDisabled(const crdtp::Dispatchable& dispatchable)
{}

namespace {

struct setEmulatedMediaParams : public crdtp::DeserializableProtocolObject<setEmulatedMediaParams> {};

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::setEmulatedMedia(const crdtp::Dispatchable& dispatchable)
{}

namespace {

struct setEmulatedVisionDeficiencyParams : public crdtp::DeserializableProtocolObject<setEmulatedVisionDeficiencyParams> {};

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::setEmulatedVisionDeficiency(const crdtp::Dispatchable& dispatchable)
{}

namespace {

struct setNavigatorOverridesParams : public crdtp::DeserializableProtocolObject<setNavigatorOverridesParams> {};

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::setNavigatorOverrides(const crdtp::Dispatchable& dispatchable)
{}

namespace {

struct setPageScaleFactorParams : public crdtp::DeserializableProtocolObject<setPageScaleFactorParams> {};

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::setPageScaleFactor(const crdtp::Dispatchable& dispatchable)
{}

namespace {

struct setScriptExecutionDisabledParams : public crdtp::DeserializableProtocolObject<setScriptExecutionDisabledParams> {};

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::setScriptExecutionDisabled(const crdtp::Dispatchable& dispatchable)
{}

namespace {

struct setTouchEmulationEnabledParams : public crdtp::DeserializableProtocolObject<setTouchEmulationEnabledParams> {};

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::setTouchEmulationEnabled(const crdtp::Dispatchable& dispatchable)
{}

namespace {

struct setVirtualTimePolicyParams : public crdtp::DeserializableProtocolObject<setVirtualTimePolicyParams> {};

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::setVirtualTimePolicy(const crdtp::Dispatchable& dispatchable)
{}

namespace {

struct setLocaleOverrideParams : public crdtp::DeserializableProtocolObject<setLocaleOverrideParams> {};

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::setLocaleOverride(const crdtp::Dispatchable& dispatchable)
{}

namespace {

struct setTimezoneOverrideParams : public crdtp::DeserializableProtocolObject<setTimezoneOverrideParams> {};

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::setTimezoneOverride(const crdtp::Dispatchable& dispatchable)
{}

namespace {

struct setDisabledImageTypesParams : public crdtp::DeserializableProtocolObject<setDisabledImageTypesParams> {};

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::setDisabledImageTypes(const crdtp::Dispatchable& dispatchable)
{}

namespace {

struct setHardwareConcurrencyOverrideParams : public crdtp::DeserializableProtocolObject<setHardwareConcurrencyOverrideParams> {};

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::setHardwareConcurrencyOverride(const crdtp::Dispatchable& dispatchable)
{}

namespace {

struct setUserAgentOverrideParams : public crdtp::DeserializableProtocolObject<setUserAgentOverrideParams> {};

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::setUserAgentOverride(const crdtp::Dispatchable& dispatchable)
{}

namespace {

struct setAutomationOverrideParams : public crdtp::DeserializableProtocolObject<setAutomationOverrideParams> {};

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::setAutomationOverride(const crdtp::Dispatchable& dispatchable)
{}

namespace {
// This helper method (with a static map of redirects) is used from Dispatcher::wire
// immediately below.
const std::vector<std::pair<crdtp::span<uint8_t>, crdtp::span<uint8_t>>>& SortedRedirects() {}
}  // namespace

// static
void Dispatcher::wire(UberDispatcher* uber, Backend* backend)
{}

} // Emulation
} // namespace blink
} // namespace protocol