#ifndef CHROME_BROWSER_LENS_CORE_MOJOM_LENS_MOJOM_H_
#define CHROME_BROWSER_LENS_CORE_MOJOM_LENS_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 "chrome/browser/lens/core/mojom/lens.mojom-features.h"
#include "chrome/browser/lens/core/mojom/lens.mojom-shared.h"
#include "chrome/browser/lens/core/mojom/lens.mojom-forward.h"
#include "chrome/browser/lens/core/mojom/geometry.mojom-forward.h"
#include "chrome/browser/lens/core/mojom/overlay_object.mojom-forward.h"
#include "chrome/browser/lens/core/mojom/text.mojom-forward.h"
#include "mojo/public/mojom/base/big_string.mojom-forward.h"
#include "skia/public/mojom/bitmap.mojom.h"
#include "skia/public/mojom/skcolor.mojom.h"
#include "ui/base/mojom/window_open_disposition.mojom-forward.h"
#include "ui/gfx/geometry/mojom/geometry.mojom-forward.h"
#include "url/mojom/url.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"
namespace lens::mojom {
class LensPageHandlerFactoryProxy;
template <typename ImplRefTraits>
class LensPageHandlerFactoryStub;
class LensPageHandlerFactoryRequestValidator;
class LensPageHandlerFactory
: public LensPageHandlerFactoryInterfaceBase { … };
class LensPageHandlerProxy;
template <typename ImplRefTraits>
class LensPageHandlerStub;
class LensPageHandlerRequestValidator;
class LensPageHandlerResponseValidator;
class LensPageHandler
: public LensPageHandlerInterfaceBase { … };
class LensPageProxy;
template <typename ImplRefTraits>
class LensPageStub;
class LensPageRequestValidator;
class LensPage
: public LensPageInterfaceBase { … };
class LensSidePanelPageHandlerProxy;
template <typename ImplRefTraits>
class LensSidePanelPageHandlerStub;
class LensSidePanelPageHandlerRequestValidator;
class LensSidePanelPageHandler
: public LensSidePanelPageHandlerInterfaceBase { … };
class LensSidePanelPageProxy;
template <typename ImplRefTraits>
class LensSidePanelPageStub;
class LensSidePanelPageRequestValidator;
class LensSidePanelPage
: public LensSidePanelPageInterfaceBase { … };
class LensPageHandlerFactoryProxy
: public LensPageHandlerFactory { … };
class LensPageHandlerProxy
: public LensPageHandler { … };
class LensPageProxy
: public LensPage { … };
class LensSidePanelPageHandlerProxy
: public LensSidePanelPageHandler { … };
class LensSidePanelPageProxy
: public LensSidePanelPage { … };
class LensPageHandlerFactoryStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<LensPageHandlerFactory>>
class LensPageHandlerFactoryStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
LensPageHandlerFactoryStub() = default;
~LensPageHandlerFactoryStub() 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 LensPageHandlerStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<LensPageHandler>>
class LensPageHandlerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
LensPageHandlerStub() = default;
~LensPageHandlerStub() 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 LensPageStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<LensPage>>
class LensPageStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
LensPageStub() = default;
~LensPageStub() 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 LensSidePanelPageHandlerStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<LensSidePanelPageHandler>>
class LensSidePanelPageHandlerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
LensSidePanelPageHandlerStub() = default;
~LensSidePanelPageHandlerStub() 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 LensSidePanelPageStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<LensSidePanelPage>>
class LensSidePanelPageStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
LensSidePanelPageStub() = default;
~LensSidePanelPageStub() 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 LensPageHandlerFactoryRequestValidator : public mojo::MessageReceiver { … };
class LensPageHandlerRequestValidator : public mojo::MessageReceiver { … };
class LensPageRequestValidator : public mojo::MessageReceiver { … };
class LensSidePanelPageHandlerRequestValidator : public mojo::MessageReceiver { … };
class LensSidePanelPageRequestValidator : public mojo::MessageReceiver { … };
class LensPageHandlerResponseValidator : public mojo::MessageReceiver { … };
class OverlayTheme { … };
template <typename T, OverlayTheme::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, OverlayTheme::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, OverlayTheme::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, OverlayTheme::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
OverlayThemePtr OverlayTheme::Clone() const { … }
template <typename T, OverlayTheme::EnableIfSame<T>*>
bool OverlayTheme::Equals(const T& other_struct) const { … }
template <typename T, OverlayTheme::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::lens::mojom::OverlayTheme::DataView,
::lens::mojom::OverlayThemePtr> { … };
}
#endif