#ifndef SERVICES_VIZ_PUBLIC_MOJOM_COMPOSITING_LAYER_CONTEXT_MOJOM_BLINK_H_
#define SERVICES_VIZ_PUBLIC_MOJOM_COMPOSITING_LAYER_CONTEXT_MOJOM_BLINK_H_
#include <stdint.h>
#include <limits>
#include <optional>
#include <type_traits>
#include <utility>
#include "base/types/cxx23_to_underlying.h"
#include "mojo/public/cpp/bindings/clone_traits.h"
#include "mojo/public/cpp/bindings/equals_traits.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/struct_ptr.h"
#include "mojo/public/cpp/bindings/struct_traits.h"
#include "mojo/public/cpp/bindings/union_traits.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"
#include "services/viz/public/mojom/compositing/layer_context.mojom-features.h"
#include "services/viz/public/mojom/compositing/layer_context.mojom-shared.h"
#include "services/viz/public/mojom/compositing/layer_context.mojom-blink-forward.h"
#include "services/viz/public/mojom/compositing/begin_frame_args.mojom-blink.h"
#include "services/viz/public/mojom/compositing/layer.mojom-blink.h"
#include "services/viz/public/mojom/compositing/local_surface_id.mojom-blink.h"
#include "services/viz/public/mojom/compositing/tiling.mojom-blink.h"
#include "skia/public/mojom/skcolor4f.mojom-blink.h"
#include "ui/gfx/geometry/mojom/geometry.mojom-blink.h"
#include "mojo/public/cpp/bindings/lib/wtf_clone_equals_util.h"
#include "mojo/public/cpp/bindings/lib/wtf_hash_util.h"
#include "third_party/blink/renderer/platform/wtf/hash_functions.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#include "mojo/public/cpp/bindings/lib/control_message_handler.h"
#include "mojo/public/cpp/bindings/lib/message_size_estimator.h"
#include "mojo/public/cpp/bindings/raw_ptr_impl_ref_traits.h"
#include "third_party/blink/public/platform/web_common.h"
namespace viz::mojom::blink {
class LayerContextProxy;
template <typename ImplRefTraits>
class LayerContextStub;
class LayerContextRequestValidator;
class BLINK_PLATFORM_EXPORT LayerContext
: public LayerContextInterfaceBase { … };
class LayerContextClientProxy;
template <typename ImplRefTraits>
class LayerContextClientStub;
class LayerContextClientRequestValidator;
class BLINK_PLATFORM_EXPORT LayerContextClient
: public LayerContextClientInterfaceBase { … };
class BLINK_PLATFORM_EXPORT LayerContextProxy
: public LayerContext { … };
class BLINK_PLATFORM_EXPORT LayerContextClientProxy
: public LayerContextClient { … };
class BLINK_PLATFORM_EXPORT LayerContextStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<LayerContext>>
class LayerContextStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
LayerContextStub() = default;
~LayerContextStub() override = default;
void set_sink(ImplPointerType sink) { … }
ImplPointerType& sink() { … }
bool Accept(mojo::Message* message) override { … }
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { … }
private:
ImplPointerType sink_;
};
class BLINK_PLATFORM_EXPORT LayerContextClientStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<LayerContextClient>>
class LayerContextClientStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
LayerContextClientStub() = default;
~LayerContextClientStub() override = default;
void set_sink(ImplPointerType sink) { … }
ImplPointerType& sink() { … }
bool Accept(mojo::Message* message) override { … }
bool AcceptWithResponder(
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) override { … }
private:
ImplPointerType sink_;
};
class BLINK_PLATFORM_EXPORT LayerContextRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT LayerContextClientRequestValidator : public mojo::MessageReceiver { … };
class BLINK_PLATFORM_EXPORT LayerTreeUpdate { … };
template <typename T, LayerTreeUpdate::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, LayerTreeUpdate::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, LayerTreeUpdate::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, LayerTreeUpdate::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_PLATFORM_EXPORT PendingLayerContext { … };
template <typename T, PendingLayerContext::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, PendingLayerContext::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, PendingLayerContext::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, PendingLayerContext::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
LayerTreeUpdatePtr LayerTreeUpdate::Clone() const { … }
template <typename T, LayerTreeUpdate::EnableIfSame<T>*>
bool LayerTreeUpdate::Equals(const T& other_struct) const { … }
template <typename T, LayerTreeUpdate::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PendingLayerContextPtr PendingLayerContext::Clone() const { … }
template <typename T, PendingLayerContext::EnableIfSame<T>*>
bool PendingLayerContext::Equals(const T& other_struct) const { … }
template <typename T, PendingLayerContext::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct BLINK_PLATFORM_EXPORT StructTraits<::viz::mojom::blink::LayerTreeUpdate::DataView,
::viz::mojom::blink::LayerTreeUpdatePtr> { … };
template <>
struct BLINK_PLATFORM_EXPORT StructTraits<::viz::mojom::blink::PendingLayerContext::DataView,
::viz::mojom::blink::PendingLayerContextPtr> { … };
}
#endif