#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_WIDGET_PLATFORM_WIDGET_MOJOM_BLINK_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_WIDGET_PLATFORM_WIDGET_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 "third_party/blink/public/mojom/widget/platform_widget.mojom-features.h"
#include "third_party/blink/public/mojom/widget/platform_widget.mojom-shared.h"
#include "third_party/blink/public/mojom/widget/platform_widget.mojom-blink-forward.h"
#include "cc/mojom/render_frame_metadata.mojom-blink-forward.h"
#include "mojo/public/mojom/base/string16.mojom-blink.h"
#include "mojo/public/mojom/base/text_direction.mojom-blink.h"
#include "mojo/public/mojom/base/time.mojom-blink-forward.h"
#include "services/viz/public/mojom/compositing/compositor_frame_sink.mojom-blink-forward.h"
#include "ui/base/cursor/mojom/cursor.mojom-blink.h"
#include "ui/gfx/geometry/mojom/geometry.mojom-blink.h"
#include "third_party/blink/public/mojom/input/input_handler.mojom-blink-forward.h"
#include "third_party/blink/public/mojom/widget/visual_properties.mojom-blink.h"
#include "third_party/blink/public/mojom/widget/record_content_to_visible_time_request.mojom-blink-forward.h"
#include "ui/base/ime/mojom/text_input_state.mojom-blink-forward.h"
#include "services/viz/public/mojom/hit_test/input_target_client.mojom-blink-forward.h"
#include "ui/base/mojom/ui_base_types.mojom-blink-forward.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/renderer/platform/platform_export.h"
namespace blink::mojom::blink {
class WidgetCompositorProxy;
template <typename ImplRefTraits>
class WidgetCompositorStub;
class WidgetCompositorRequestValidator;
class WidgetCompositorResponseValidator;
class PLATFORM_EXPORT WidgetCompositor
: public WidgetCompositorInterfaceBase { … };
class WidgetHostProxy;
template <typename ImplRefTraits>
class WidgetHostStub;
class WidgetHostRequestValidator;
class PLATFORM_EXPORT WidgetHost
: public WidgetHostInterfaceBase { … };
class WidgetProxy;
template <typename ImplRefTraits>
class WidgetStub;
class WidgetRequestValidator;
class WidgetResponseValidator;
class PLATFORM_EXPORT Widget
: public WidgetInterfaceBase { … };
class RenderInputRouterClientProxy;
template <typename ImplRefTraits>
class RenderInputRouterClientStub;
class RenderInputRouterClientRequestValidator;
class PLATFORM_EXPORT RenderInputRouterClient
: public RenderInputRouterClientInterfaceBase { … };
class PLATFORM_EXPORT WidgetCompositorProxy
: public WidgetCompositor { … };
class PLATFORM_EXPORT WidgetHostProxy
: public WidgetHost { … };
class PLATFORM_EXPORT WidgetProxy
: public Widget { … };
class PLATFORM_EXPORT RenderInputRouterClientProxy
: public RenderInputRouterClient { … };
class PLATFORM_EXPORT WidgetCompositorStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<WidgetCompositor>>
class WidgetCompositorStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
WidgetCompositorStub() = default;
~WidgetCompositorStub() 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 PLATFORM_EXPORT WidgetHostStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<WidgetHost>>
class WidgetHostStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
WidgetHostStub() = default;
~WidgetHostStub() 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 PLATFORM_EXPORT WidgetStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<Widget>>
class WidgetStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
WidgetStub() = default;
~WidgetStub() 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 PLATFORM_EXPORT RenderInputRouterClientStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<RenderInputRouterClient>>
class RenderInputRouterClientStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
RenderInputRouterClientStub() = default;
~RenderInputRouterClientStub() 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 PLATFORM_EXPORT WidgetCompositorRequestValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT WidgetHostRequestValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT WidgetRequestValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT RenderInputRouterClientRequestValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT WidgetCompositorResponseValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT WidgetResponseValidator : public mojo::MessageReceiver { … };
}
namespace mojo {
}
#endif