#ifndef CHROME_COMMON_ACCESSIBILITY_READ_ANYTHING_MOJOM_H_
#define CHROME_COMMON_ACCESSIBILITY_READ_ANYTHING_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/common/accessibility/read_anything.mojom-features.h"
#include "chrome/common/accessibility/read_anything.mojom-shared.h"
#include "chrome/common/accessibility/read_anything.mojom-forward.h"
#include "skia/public/mojom/skcolor.mojom-forward.h"
#include "skia/public/mojom/bitmap.mojom.h"
#include "ui/accessibility/mojom/ax_event.mojom.h"
#include "ui/accessibility/mojom/ax_tree_id.mojom.h"
#include "ui/accessibility/mojom/ax_tree_update.mojom.h"
#include "mojo/public/mojom/base/values.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 read_anything::mojom {
class UntrustedPageHandlerFactoryProxy;
template <typename ImplRefTraits>
class UntrustedPageHandlerFactoryStub;
class UntrustedPageHandlerFactoryRequestValidator;
class UntrustedPageHandlerFactory
: public UntrustedPageHandlerFactoryInterfaceBase { … };
class UntrustedPageHandlerProxy;
template <typename ImplRefTraits>
class UntrustedPageHandlerStub;
class UntrustedPageHandlerRequestValidator;
class UntrustedPageHandlerResponseValidator;
class UntrustedPageHandler
: public UntrustedPageHandlerInterfaceBase { … };
class UntrustedPageProxy;
template <typename ImplRefTraits>
class UntrustedPageStub;
class UntrustedPageRequestValidator;
class UntrustedPage
: public UntrustedPageInterfaceBase { … };
class UntrustedPageHandlerFactoryProxy
: public UntrustedPageHandlerFactory { … };
class UntrustedPageHandlerProxy
: public UntrustedPageHandler { … };
class UntrustedPageProxy
: public UntrustedPage { … };
class UntrustedPageHandlerFactoryStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<UntrustedPageHandlerFactory>>
class UntrustedPageHandlerFactoryStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
UntrustedPageHandlerFactoryStub() = default;
~UntrustedPageHandlerFactoryStub() 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 UntrustedPageHandlerStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<UntrustedPageHandler>>
class UntrustedPageHandlerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
UntrustedPageHandlerStub() = default;
~UntrustedPageHandlerStub() 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 UntrustedPageStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<UntrustedPage>>
class UntrustedPageStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
UntrustedPageStub() = default;
~UntrustedPageStub() 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 UntrustedPageHandlerFactoryRequestValidator : public mojo::MessageReceiver { … };
class UntrustedPageHandlerRequestValidator : public mojo::MessageReceiver { … };
class UntrustedPageRequestValidator : public mojo::MessageReceiver { … };
class UntrustedPageHandlerResponseValidator : public mojo::MessageReceiver { … };
class VoicePackInstallationState { … };
class VoicePackInfo { … };
template <typename T, VoicePackInfo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, VoicePackInfo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, VoicePackInfo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, VoicePackInfo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename UnionPtrType>
VoicePackInstallationStatePtr VoicePackInstallationState::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, VoicePackInstallationState>::value>::type*>
bool VoicePackInstallationState::Equals(const T& other) const { … }
template <typename StructPtrType>
VoicePackInfoPtr VoicePackInfo::Clone() const { … }
template <typename T, VoicePackInfo::EnableIfSame<T>*>
bool VoicePackInfo::Equals(const T& other_struct) const { … }
template <typename T, VoicePackInfo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::read_anything::mojom::VoicePackInfo::DataView,
::read_anything::mojom::VoicePackInfoPtr> { … };
template <>
struct UnionTraits<::read_anything::mojom::VoicePackInstallationState::DataView,
::read_anything::mojom::VoicePackInstallationStatePtr> { … };
}
#endif