chromium/out/Default/gen/third_party/blink/renderer/core/inspector/protocol/layer_tree.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/layer_tree.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 LayerTree {

DeserializerState;
ProtocolTypeTraits;

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

const char Metainfo::domainName[] =;
const char Metainfo::commandPrefix[] =;
const char Metainfo::version[] =;




const char* ScrollRect::TypeEnum::RepaintsOnScroll =;
const char* ScrollRect::TypeEnum::TouchEventHandler =;
const char* ScrollRect::TypeEnum::WheelEventHandler =;
CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();


CRDTP_BEGIN_DESERIALIZER()

CRDTP_BEGIN_SERIALIZER();



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


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

void Frontend::layerPainted(const String& layerId, std::unique_ptr<protocol::DOM::Rect> clip)
{}

void Frontend::layerTreeDidChange(Maybe<protocol::Array<protocol::LayerTree::Layer>> layers)
{}

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 {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {


}  // namespace

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

namespace {


}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

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

namespace {

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

CRDTP_BEGIN_DESERIALIZER()

}  // namespace

void DomainDispatcherImpl::snapshotCommandLog(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)
{}

} // LayerTree
} // namespace blink
} // namespace protocol