chromium/out/Default/gen/content/browser/devtools/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 "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;

// ------------- 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();


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


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 PressureSourceEnum


namespace PressureStateEnum {
const char Nominal[] =;
const char Fair[] =;
const char Serious[] =;
const char Critical[] =;
} // namespace PressureStateEnum


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


// ------------- 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::canEmulate(const crdtp::Dispatchable& dispatchable)
{}

namespace {


}  // namespace

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

namespace {


}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {


}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {


}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::setUserAgentOverride(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 content
} // namespace protocol