#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_PRINTING_WEB_PRINTING_MOJOM_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_PRINTING_WEB_PRINTING_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/printing/web_printing.mojom-features.h"
#include "third_party/blink/public/mojom/printing/web_printing.mojom-shared.h"
#include "third_party/blink/public/mojom/printing/web_printing.mojom-forward.h"
#include "third_party/blink/public/mojom/blob/blob.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 WebPrintJobStateObserverProxy;
template <typename ImplRefTraits>
class WebPrintJobStateObserverStub;
class WebPrintJobStateObserverRequestValidator;
class BLINK_COMMON_EXPORT WebPrintJobStateObserver
: public WebPrintJobStateObserverInterfaceBase { … };
class WebPrintJobControllerProxy;
template <typename ImplRefTraits>
class WebPrintJobControllerStub;
class WebPrintJobControllerRequestValidator;
class BLINK_COMMON_EXPORT WebPrintJobController
: public WebPrintJobControllerInterfaceBase { … };
class WebPrinterProxy;
template <typename ImplRefTraits>
class WebPrinterStub;
class WebPrinterRequestValidator;
class WebPrinterResponseValidator;
class BLINK_COMMON_EXPORT WebPrinter
: public WebPrinterInterfaceBase { … };
class WebPrintingServiceProxy;
template <typename ImplRefTraits>
class WebPrintingServiceStub;
class WebPrintingServiceRequestValidator;
class WebPrintingServiceResponseValidator;
class BLINK_COMMON_EXPORT WebPrintingService
: public WebPrintingServiceInterfaceBase { … };
class BLINK_COMMON_EXPORT WebPrintJobStateObserverProxy
: public WebPrintJobStateObserver { … };
class BLINK_COMMON_EXPORT WebPrintJobControllerProxy
: public WebPrintJobController { … };
class BLINK_COMMON_EXPORT WebPrinterProxy
: public WebPrinter { … };
class BLINK_COMMON_EXPORT WebPrintingServiceProxy
: public WebPrintingService { … };
class BLINK_COMMON_EXPORT WebPrintJobStateObserverStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<WebPrintJobStateObserver>>
class WebPrintJobStateObserverStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
WebPrintJobStateObserverStub() = default;
~WebPrintJobStateObserverStub() 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 WebPrintJobControllerStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<WebPrintJobController>>
class WebPrintJobControllerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
WebPrintJobControllerStub() = default;
~WebPrintJobControllerStub() 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 WebPrinterStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<WebPrinter>>
class WebPrinterStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
WebPrinterStub() = default;
~WebPrinterStub() 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 WebPrintingServiceStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<WebPrintingService>>
class WebPrintingServiceStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
WebPrintingServiceStub() = default;
~WebPrintingServiceStub() 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 WebPrintJobStateObserverRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT WebPrintJobControllerRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT WebPrinterRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT WebPrintingServiceRequestValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT WebPrinterResponseValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT WebPrintingServiceResponseValidator : public mojo::MessageReceiver { … };
class BLINK_COMMON_EXPORT WebPrintingRange { … };
template <typename T, WebPrintingRange::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, WebPrintingRange::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, WebPrintingRange::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, WebPrintingRange::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_COMMON_EXPORT WebPrintJobUpdate { … };
template <typename T, WebPrintJobUpdate::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, WebPrintJobUpdate::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, WebPrintJobUpdate::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, WebPrintJobUpdate::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_COMMON_EXPORT WebPrintingMediaSizeDimension { … };
class BLINK_COMMON_EXPORT GetPrintersResult { … };
class BLINK_COMMON_EXPORT WebPrinterFetchResult { … };
class BLINK_COMMON_EXPORT WebPrintResult { … };
class BLINK_COMMON_EXPORT WebPrinterInfo { … };
template <typename T, WebPrinterInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, WebPrinterInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, WebPrinterInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, WebPrinterInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_COMMON_EXPORT WebPrintingMediaSize { … };
template <typename T, WebPrintingMediaSize::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, WebPrintingMediaSize::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, WebPrintingMediaSize::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, WebPrintingMediaSize::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_COMMON_EXPORT WebPrintingMediaCollection { … };
template <typename T, WebPrintingMediaCollection::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, WebPrintingMediaCollection::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, WebPrintingMediaCollection::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, WebPrintingMediaCollection::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_COMMON_EXPORT WebPrinterAttributes { … };
template <typename T, WebPrinterAttributes::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, WebPrinterAttributes::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, WebPrinterAttributes::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, WebPrinterAttributes::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_COMMON_EXPORT WebPrintingMediaCollectionRequested { … };
template <typename T, WebPrintingMediaCollectionRequested::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, WebPrintingMediaCollectionRequested::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, WebPrintingMediaCollectionRequested::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, WebPrintingMediaCollectionRequested::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_COMMON_EXPORT WebPrintJobTemplateAttributes { … };
template <typename T, WebPrintJobTemplateAttributes::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, WebPrintJobTemplateAttributes::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, WebPrintJobTemplateAttributes::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, WebPrintJobTemplateAttributes::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BLINK_COMMON_EXPORT WebPrintJobInfo { … };
template <typename T, WebPrintJobInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, WebPrintJobInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, WebPrintJobInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, WebPrintJobInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename UnionPtrType>
WebPrintingMediaSizeDimensionPtr WebPrintingMediaSizeDimension::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, WebPrintingMediaSizeDimension>::value>::type*>
bool WebPrintingMediaSizeDimension::Equals(const T& other) const { … }
template <typename UnionPtrType>
GetPrintersResultPtr GetPrintersResult::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, GetPrintersResult>::value>::type*>
bool GetPrintersResult::Equals(const T& other) const { … }
template <typename UnionPtrType>
WebPrinterFetchResultPtr WebPrinterFetchResult::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, WebPrinterFetchResult>::value>::type*>
bool WebPrinterFetchResult::Equals(const T& other) const { … }
template <typename UnionPtrType>
WebPrintResultPtr WebPrintResult::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, WebPrintResult>::value>::type*>
bool WebPrintResult::Equals(const T& other) const { … }
template <typename StructPtrType>
WebPrinterInfoPtr WebPrinterInfo::Clone() const { … }
template <typename T, WebPrinterInfo::EnableIfSame<T>*>
bool WebPrinterInfo::Equals(const T& other_struct) const { … }
template <typename T, WebPrinterInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
WebPrintingRangePtr WebPrintingRange::Clone() const { … }
template <typename T, WebPrintingRange::EnableIfSame<T>*>
bool WebPrintingRange::Equals(const T& other_struct) const { … }
template <typename T, WebPrintingRange::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
WebPrintingMediaSizePtr WebPrintingMediaSize::Clone() const { … }
template <typename T, WebPrintingMediaSize::EnableIfSame<T>*>
bool WebPrintingMediaSize::Equals(const T& other_struct) const { … }
template <typename T, WebPrintingMediaSize::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
WebPrintingMediaCollectionPtr WebPrintingMediaCollection::Clone() const { … }
template <typename T, WebPrintingMediaCollection::EnableIfSame<T>*>
bool WebPrintingMediaCollection::Equals(const T& other_struct) const { … }
template <typename T, WebPrintingMediaCollection::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
WebPrinterAttributesPtr WebPrinterAttributes::Clone() const { … }
template <typename T, WebPrinterAttributes::EnableIfSame<T>*>
bool WebPrinterAttributes::Equals(const T& other_struct) const { … }
template <typename T, WebPrinterAttributes::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
WebPrintingMediaCollectionRequestedPtr WebPrintingMediaCollectionRequested::Clone() const { … }
template <typename T, WebPrintingMediaCollectionRequested::EnableIfSame<T>*>
bool WebPrintingMediaCollectionRequested::Equals(const T& other_struct) const { … }
template <typename T, WebPrintingMediaCollectionRequested::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
WebPrintJobTemplateAttributesPtr WebPrintJobTemplateAttributes::Clone() const { … }
template <typename T, WebPrintJobTemplateAttributes::EnableIfSame<T>*>
bool WebPrintJobTemplateAttributes::Equals(const T& other_struct) const { … }
template <typename T, WebPrintJobTemplateAttributes::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
WebPrintJobUpdatePtr WebPrintJobUpdate::Clone() const { … }
template <typename T, WebPrintJobUpdate::EnableIfSame<T>*>
bool WebPrintJobUpdate::Equals(const T& other_struct) const { … }
template <typename T, WebPrintJobUpdate::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
WebPrintJobInfoPtr WebPrintJobInfo::Clone() const { … }
template <typename T, WebPrintJobInfo::EnableIfSame<T>*>
bool WebPrintJobInfo::Equals(const T& other_struct) const { … }
template <typename T, WebPrintJobInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::WebPrinterInfo::DataView,
::blink::mojom::WebPrinterInfoPtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::WebPrintingRange::DataView,
::blink::mojom::WebPrintingRangePtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::WebPrintingMediaSize::DataView,
::blink::mojom::WebPrintingMediaSizePtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::WebPrintingMediaCollection::DataView,
::blink::mojom::WebPrintingMediaCollectionPtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::WebPrinterAttributes::DataView,
::blink::mojom::WebPrinterAttributesPtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::WebPrintingMediaCollectionRequested::DataView,
::blink::mojom::WebPrintingMediaCollectionRequestedPtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::WebPrintJobTemplateAttributes::DataView,
::blink::mojom::WebPrintJobTemplateAttributesPtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::WebPrintJobUpdate::DataView,
::blink::mojom::WebPrintJobUpdatePtr> { … };
template <>
struct BLINK_COMMON_EXPORT StructTraits<::blink::mojom::WebPrintJobInfo::DataView,
::blink::mojom::WebPrintJobInfoPtr> { … };
template <>
struct BLINK_COMMON_EXPORT UnionTraits<::blink::mojom::WebPrintingMediaSizeDimension::DataView,
::blink::mojom::WebPrintingMediaSizeDimensionPtr> { … };
template <>
struct BLINK_COMMON_EXPORT UnionTraits<::blink::mojom::GetPrintersResult::DataView,
::blink::mojom::GetPrintersResultPtr> { … };
template <>
struct BLINK_COMMON_EXPORT UnionTraits<::blink::mojom::WebPrinterFetchResult::DataView,
::blink::mojom::WebPrinterFetchResultPtr> { … };
template <>
struct BLINK_COMMON_EXPORT UnionTraits<::blink::mojom::WebPrintResult::DataView,
::blink::mojom::WebPrintResultPtr> { … };
}
#endif