chromium/out/Default/gen/third_party/blink/public/mojom/printing/web_printing.mojom-blink.h

// third_party/blink/public/mojom/printing/web_printing.mojom-blink.h is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_PRINTING_WEB_PRINTING_MOJOM_BLINK_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_PRINTING_WEB_PRINTING_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/printing/web_printing.mojom-features.h"  // IWYU pragma: export
#include "third_party/blink/public/mojom/printing/web_printing.mojom-shared.h"  // IWYU pragma: export
#include "third_party/blink/public/mojom/printing/web_printing.mojom-blink-forward.h"  // IWYU pragma: export
#include "third_party/blink/public/mojom/blob/blob.mojom-blink-forward.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/renderer/platform/platform_export.h"




namespace blink::mojom::blink {

class WebPrintJobStateObserverProxy;

template <typename ImplRefTraits>
class WebPrintJobStateObserverStub;

class WebPrintJobStateObserverRequestValidator;


class PLATFORM_EXPORT WebPrintJobStateObserver
    : public WebPrintJobStateObserverInterfaceBase {};

class WebPrintJobControllerProxy;

template <typename ImplRefTraits>
class WebPrintJobControllerStub;

class WebPrintJobControllerRequestValidator;


class PLATFORM_EXPORT WebPrintJobController
    : public WebPrintJobControllerInterfaceBase {};

class WebPrinterProxy;

template <typename ImplRefTraits>
class WebPrinterStub;

class WebPrinterRequestValidator;
class WebPrinterResponseValidator;


class PLATFORM_EXPORT WebPrinter
    : public WebPrinterInterfaceBase {};

class WebPrintingServiceProxy;

template <typename ImplRefTraits>
class WebPrintingServiceStub;

class WebPrintingServiceRequestValidator;
class WebPrintingServiceResponseValidator;


class PLATFORM_EXPORT WebPrintingService
    : public WebPrintingServiceInterfaceBase {};



class PLATFORM_EXPORT WebPrintJobStateObserverProxy
    : public WebPrintJobStateObserver {};



class PLATFORM_EXPORT WebPrintJobControllerProxy
    : public WebPrintJobController {};



class PLATFORM_EXPORT WebPrinterProxy
    : public WebPrinter {};



class PLATFORM_EXPORT WebPrintingServiceProxy
    : public WebPrintingService {};
class PLATFORM_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 PLATFORM_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 PLATFORM_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 PLATFORM_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 PLATFORM_EXPORT WebPrintJobStateObserverRequestValidator : public mojo::MessageReceiver {};
class PLATFORM_EXPORT WebPrintJobControllerRequestValidator : public mojo::MessageReceiver {};
class PLATFORM_EXPORT WebPrinterRequestValidator : public mojo::MessageReceiver {};
class PLATFORM_EXPORT WebPrintingServiceRequestValidator : public mojo::MessageReceiver {};
class PLATFORM_EXPORT WebPrinterResponseValidator : public mojo::MessageReceiver {};
class PLATFORM_EXPORT WebPrintingServiceResponseValidator : public mojo::MessageReceiver {};






class PLATFORM_EXPORT WebPrintingRange {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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 PLATFORM_EXPORT WebPrintJobUpdate {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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 PLATFORM_EXPORT WebPrintingMediaSizeDimension {};



class PLATFORM_EXPORT GetPrintersResult {};



class PLATFORM_EXPORT WebPrinterFetchResult {};



class PLATFORM_EXPORT WebPrintResult {};





class PLATFORM_EXPORT WebPrinterInfo {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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 PLATFORM_EXPORT WebPrintingMediaSize {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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 PLATFORM_EXPORT WebPrintingMediaCollection {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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 PLATFORM_EXPORT WebPrinterAttributes {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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 PLATFORM_EXPORT WebPrintingMediaCollectionRequested {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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 PLATFORM_EXPORT WebPrintJobTemplateAttributes {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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 PLATFORM_EXPORT WebPrintJobInfo {};

// The comparison operators are templates, so they are only instantiated if they
// are used. Thus, the bindings generator does not need to know whether
// comparison operators are available for members.
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) {}


}  // blink::mojom::blink

namespace mojo {


template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::WebPrinterInfo::DataView,
                                         ::blink::mojom::blink::WebPrinterInfoPtr> {};


template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::WebPrintingRange::DataView,
                                         ::blink::mojom::blink::WebPrintingRangePtr> {};


template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::WebPrintingMediaSize::DataView,
                                         ::blink::mojom::blink::WebPrintingMediaSizePtr> {};


template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::WebPrintingMediaCollection::DataView,
                                         ::blink::mojom::blink::WebPrintingMediaCollectionPtr> {};


template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::WebPrinterAttributes::DataView,
                                         ::blink::mojom::blink::WebPrinterAttributesPtr> {};


template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::WebPrintingMediaCollectionRequested::DataView,
                                         ::blink::mojom::blink::WebPrintingMediaCollectionRequestedPtr> {};


template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::WebPrintJobTemplateAttributes::DataView,
                                         ::blink::mojom::blink::WebPrintJobTemplateAttributesPtr> {};


template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::WebPrintJobUpdate::DataView,
                                         ::blink::mojom::blink::WebPrintJobUpdatePtr> {};


template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::WebPrintJobInfo::DataView,
                                         ::blink::mojom::blink::WebPrintJobInfoPtr> {};


template <>
struct PLATFORM_EXPORT UnionTraits<::blink::mojom::blink::WebPrintingMediaSizeDimension::DataView,
                                        ::blink::mojom::blink::WebPrintingMediaSizeDimensionPtr> {};


template <>
struct PLATFORM_EXPORT UnionTraits<::blink::mojom::blink::GetPrintersResult::DataView,
                                        ::blink::mojom::blink::GetPrintersResultPtr> {};


template <>
struct PLATFORM_EXPORT UnionTraits<::blink::mojom::blink::WebPrinterFetchResult::DataView,
                                        ::blink::mojom::blink::WebPrinterFetchResultPtr> {};


template <>
struct PLATFORM_EXPORT UnionTraits<::blink::mojom::blink::WebPrintResult::DataView,
                                        ::blink::mojom::blink::WebPrintResultPtr> {};

}  // namespace mojo

#endif  // THIRD_PARTY_BLINK_PUBLIC_MOJOM_PRINTING_WEB_PRINTING_MOJOM_BLINK_H_