#ifndef COMPONENTS_SPELLCHECK_COMMON_SPELLCHECK_MOJOM_H_
#define COMPONENTS_SPELLCHECK_COMMON_SPELLCHECK_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 "components/spellcheck/common/spellcheck.mojom-features.h"
#include "components/spellcheck/common/spellcheck.mojom-shared.h"
#include "components/spellcheck/common/spellcheck.mojom-forward.h"
#include "mojo/public/mojom/base/read_only_file.mojom.h"
#include "mojo/public/mojom/base/string16.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 "components/spellcheck/common/spellcheck_mojom_traits.h"
namespace spellcheck::mojom {
class SpellCheckerProxy;
template <typename ImplRefTraits>
class SpellCheckerStub;
class SpellCheckerRequestValidator;
class SpellChecker
: public SpellCheckerInterfaceBase { … };
class SpellCheckInitializationHostProxy;
template <typename ImplRefTraits>
class SpellCheckInitializationHostStub;
class SpellCheckInitializationHostRequestValidator;
class SpellCheckInitializationHost
: public SpellCheckInitializationHostInterfaceBase { … };
class SpellCheckHostProxy;
template <typename ImplRefTraits>
class SpellCheckHostStub;
class SpellCheckHostRequestValidator;
class SpellCheckHostResponseValidator;
class SpellCheckHost
: public SpellCheckHostInterfaceBase { … };
class SpellCheckerProxy
: public SpellChecker { … };
class SpellCheckInitializationHostProxy
: public SpellCheckInitializationHost { … };
class SpellCheckHostProxy
: public SpellCheckHost { … };
class SpellCheckerStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<SpellChecker>>
class SpellCheckerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
SpellCheckerStub() = default;
~SpellCheckerStub() 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 SpellCheckInitializationHostStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<SpellCheckInitializationHost>>
class SpellCheckInitializationHostStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
SpellCheckInitializationHostStub() = default;
~SpellCheckInitializationHostStub() 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 SpellCheckHostStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<SpellCheckHost>>
class SpellCheckHostStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
SpellCheckHostStub() = default;
~SpellCheckHostStub() 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 SpellCheckerRequestValidator : public mojo::MessageReceiver { … };
class SpellCheckInitializationHostRequestValidator : public mojo::MessageReceiver { … };
class SpellCheckHostRequestValidator : public mojo::MessageReceiver { … };
class SpellCheckHostResponseValidator : public mojo::MessageReceiver { … };
class SpellCheckBDictLanguage { … };
template <typename T, SpellCheckBDictLanguage::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, SpellCheckBDictLanguage::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, SpellCheckBDictLanguage::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, SpellCheckBDictLanguage::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class SpellCheckResult { … };
template <typename T, SpellCheckResult::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, SpellCheckResult::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, SpellCheckResult::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, SpellCheckResult::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
SpellCheckBDictLanguagePtr SpellCheckBDictLanguage::Clone() const { … }
template <typename T, SpellCheckBDictLanguage::EnableIfSame<T>*>
bool SpellCheckBDictLanguage::Equals(const T& other_struct) const { … }
template <typename T, SpellCheckBDictLanguage::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
SpellCheckResultPtr SpellCheckResult::Clone() const { … }
template <typename T, SpellCheckResult::EnableIfSame<T>*>
bool SpellCheckResult::Equals(const T& other_struct) const { … }
template <typename T, SpellCheckResult::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::spellcheck::mojom::SpellCheckBDictLanguage::DataView,
::spellcheck::mojom::SpellCheckBDictLanguagePtr> { … };
template <>
struct StructTraits<::spellcheck::mojom::SpellCheckResult::DataView,
::spellcheck::mojom::SpellCheckResultPtr> { … };
}
#endif