#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_WIDGET_PLATFORM_WIDGET_MOJOM_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_WIDGET_PLATFORM_WIDGET_MOJOM_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-forward.h"
#include "cc/mojom/render_frame_metadata.mojom-forward.h"
#include "mojo/public/mojom/base/string16.mojom.h"
#include "mojo/public/mojom/base/text_direction.mojom.h"
#include "mojo/public/mojom/base/time.mojom-forward.h"
#include "services/viz/public/mojom/compositing/compositor_frame_sink.mojom-forward.h"
#include "ui/base/cursor/mojom/cursor.mojom.h"
#include "ui/gfx/geometry/mojom/geometry.mojom.h"
#include "third_party/blink/public/mojom/input/input_handler.mojom-forward.h"
#include "third_party/blink/public/mojom/widget/visual_properties.mojom.h"
#include "third_party/blink/public/mojom/widget/record_content_to_visible_time_request.mojom-forward.h"
#include "ui/base/ime/mojom/text_input_state.mojom-forward.h"
#include "services/viz/public/mojom/hit_test/input_target_client.mojom-forward.h"
#include "ui/base/mojom/ui_base_types.mojom.h"
#include <string>
#include <vector>
#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/common/common_export.h"
namespace blink::mojom {
class WidgetCompositorProxy;
template <typename ImplRefTraits>
class WidgetCompositorStub;
class WidgetCompositorRequestValidator;
class WidgetCompositorResponseValidator;
class BLINK_COMMON_EXPORT WidgetCompositor
: public WidgetCompositorInterfaceBase { … };
class WidgetHostProxy;
template <typename ImplRefTraits>
class WidgetHostStub;
class WidgetHostRequestValidator;
class BLINK_COMMON_EXPORT WidgetHost
: public WidgetHostInterfaceBase { … };
class WidgetProxy;
template <typename ImplRefTraits>
class WidgetStub;
class WidgetRequestValidator;
class WidgetResponseValidator;
class BLINK_COMMON_EXPORT Widget
: public WidgetInterfaceBase { … };
class RenderInputRouterClientProxy;
template <typename ImplRefTraits>
class RenderInputRouterClientStub;
class RenderInputRouterClientRequestValidator;
class BLINK_COMMON_EXPORT RenderInputRouterClient
: public RenderInputRouterClientInterfaceBase { … };
class BLINK_COMMON_EXPORT WidgetCompositorProxy
: public WidgetCompositor { … };
class BLINK_COMMON_EXPORT WidgetHostProxy
: public WidgetHost { … };
class BLINK_COMMON_EXPORT WidgetProxy
: public Widget { … };
class BLINK_COMMON_EXPORT RenderInputRouterClientProxy
: public RenderInputRouterClient { … };
class BLINK_COMMON_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 BLINK_COMMON_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 BLINK_COMMON_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 BLINK_COMMON_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 BLINK_COMMON_EXPORT WidgetCompositorRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT WidgetHostRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT WidgetRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT RenderInputRouterClientRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT WidgetCompositorResponseValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT WidgetResponseValidator : public mojo::MessageReceiver { … };
}
namespace mojo {
}
#endif