#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_PAGE_WIDGET_MOJOM_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_PAGE_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/page/widget.mojom-features.h"
#include "third_party/blink/public/mojom/page/widget.mojom-shared.h"
#include "third_party/blink/public/mojom/page/widget.mojom-forward.h"
#include "cc/mojom/touch_action.mojom.h"
#include "mojo/public/mojom/base/text_direction.mojom.h"
#include "services/viz/public/mojom/compositing/local_surface_id.mojom-forward.h"
#include "skia/public/mojom/bitmap.mojom-forward.h"
#include "third_party/blink/public/mojom/frame/intrinsic_sizing_info.mojom-forward.h"
#include "third_party/blink/public/mojom/frame/viewport_intersection_state.mojom-forward.h"
#include "third_party/blink/public/mojom/input/ime_host.mojom-forward.h"
#include "third_party/blink/public/mojom/input/touch_event.mojom-forward.h"
#include "third_party/blink/public/mojom/drag/drag.mojom.h"
#include "third_party/blink/public/mojom/widget/platform_widget.mojom-forward.h"
#include "third_party/blink/public/mojom/widget/device_emulation_params.mojom.h"
#include "third_party/blink/public/mojom/widget/visual_properties.mojom.h"
#include "ui/base/dragdrop/mojom/drag_drop_types.mojom-forward.h"
#include "ui/base/mojom/ui_base_types.mojom-forward.h"
#include "ui/gfx/geometry/mojom/geometry.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 FrameWidgetProxy;
template <typename ImplRefTraits>
class FrameWidgetStub;
class FrameWidgetRequestValidator;
class FrameWidgetResponseValidator;
class BLINK_COMMON_EXPORT FrameWidget
: public FrameWidgetInterfaceBase { … };
class FrameWidgetHostProxy;
template <typename ImplRefTraits>
class FrameWidgetHostStub;
class FrameWidgetHostRequestValidator;
class BLINK_COMMON_EXPORT FrameWidgetHost
: public FrameWidgetHostInterfaceBase { … };
class PopupWidgetHostProxy;
template <typename ImplRefTraits>
class PopupWidgetHostStub;
class PopupWidgetHostRequestValidator;
class PopupWidgetHostResponseValidator;
class BLINK_COMMON_EXPORT PopupWidgetHost
: public PopupWidgetHostInterfaceBase { … };
class BLINK_COMMON_EXPORT FrameWidgetProxy
: public FrameWidget { … };
class BLINK_COMMON_EXPORT FrameWidgetHostProxy
: public FrameWidgetHost { … };
class BLINK_COMMON_EXPORT PopupWidgetHostProxy
: public PopupWidgetHost { … };
class BLINK_COMMON_EXPORT FrameWidgetStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<FrameWidget>>
class FrameWidgetStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
FrameWidgetStub() = default;
~FrameWidgetStub() 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 FrameWidgetHostStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<FrameWidgetHost>>
class FrameWidgetHostStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
FrameWidgetHostStub() = default;
~FrameWidgetHostStub() 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 PopupWidgetHostStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PopupWidgetHost>>
class PopupWidgetHostStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PopupWidgetHostStub() = default;
~PopupWidgetHostStub() 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 FrameWidgetRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT FrameWidgetHostRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT PopupWidgetHostRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT FrameWidgetResponseValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT PopupWidgetHostResponseValidator : public mojo::MessageReceiver { … };
}
namespace mojo {
}
#endif