#ifndef UI_WEBUI_RESOURCES_CR_COMPONENTS_THEME_COLOR_PICKER_THEME_COLOR_PICKER_MOJOM_H_
#define UI_WEBUI_RESOURCES_CR_COMPONENTS_THEME_COLOR_PICKER_THEME_COLOR_PICKER_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 "ui/webui/resources/cr_components/theme_color_picker/theme_color_picker.mojom-features.h"
#include "ui/webui/resources/cr_components/theme_color_picker/theme_color_picker.mojom-shared.h"
#include "ui/webui/resources/cr_components/theme_color_picker/theme_color_picker.mojom-forward.h"
#include "skia/public/mojom/skcolor.mojom.h"
#include "ui/base/mojom/themes.mojom-forward.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 theme_color_picker::mojom {
class ThemeColorPickerHandlerFactoryProxy;
template <typename ImplRefTraits>
class ThemeColorPickerHandlerFactoryStub;
class ThemeColorPickerHandlerFactoryRequestValidator;
class ThemeColorPickerHandlerFactory
: public ThemeColorPickerHandlerFactoryInterfaceBase { … };
class ThemeColorPickerHandlerProxy;
template <typename ImplRefTraits>
class ThemeColorPickerHandlerStub;
class ThemeColorPickerHandlerRequestValidator;
class ThemeColorPickerHandlerResponseValidator;
class ThemeColorPickerHandler
: public ThemeColorPickerHandlerInterfaceBase { … };
class ThemeColorPickerClientProxy;
template <typename ImplRefTraits>
class ThemeColorPickerClientStub;
class ThemeColorPickerClientRequestValidator;
class ThemeColorPickerClient
: public ThemeColorPickerClientInterfaceBase { … };
class ThemeColorPickerHandlerFactoryProxy
: public ThemeColorPickerHandlerFactory { … };
class ThemeColorPickerHandlerProxy
: public ThemeColorPickerHandler { … };
class ThemeColorPickerClientProxy
: public ThemeColorPickerClient { … };
class ThemeColorPickerHandlerFactoryStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<ThemeColorPickerHandlerFactory>>
class ThemeColorPickerHandlerFactoryStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
ThemeColorPickerHandlerFactoryStub() = default;
~ThemeColorPickerHandlerFactoryStub() 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 ThemeColorPickerHandlerStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<ThemeColorPickerHandler>>
class ThemeColorPickerHandlerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
ThemeColorPickerHandlerStub() = default;
~ThemeColorPickerHandlerStub() 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 ThemeColorPickerClientStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<ThemeColorPickerClient>>
class ThemeColorPickerClientStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
ThemeColorPickerClientStub() = default;
~ThemeColorPickerClientStub() 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 ThemeColorPickerHandlerFactoryRequestValidator : public mojo::MessageReceiver { … };
class ThemeColorPickerHandlerRequestValidator : public mojo::MessageReceiver { … };
class ThemeColorPickerClientRequestValidator : public mojo::MessageReceiver { … };
class ThemeColorPickerHandlerResponseValidator : public mojo::MessageReceiver { … };
class Theme { … };
template <typename T, Theme::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, Theme::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, Theme::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, Theme::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class ChromeColor { … };
template <typename T, ChromeColor::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, ChromeColor::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, ChromeColor::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, ChromeColor::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
ThemePtr Theme::Clone() const { … }
template <typename T, Theme::EnableIfSame<T>*>
bool Theme::Equals(const T& other_struct) const { … }
template <typename T, Theme::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
ChromeColorPtr ChromeColor::Clone() const { … }
template <typename T, ChromeColor::EnableIfSame<T>*>
bool ChromeColor::Equals(const T& other_struct) const { … }
template <typename T, ChromeColor::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::theme_color_picker::mojom::Theme::DataView,
::theme_color_picker::mojom::ThemePtr> { … };
template <>
struct StructTraits<::theme_color_picker::mojom::ChromeColor::DataView,
::theme_color_picker::mojom::ChromeColorPtr> { … };
}
#endif