#ifndef CHROME_BROWSER_UI_WEBUI_NEW_TAB_PAGE_NEW_TAB_PAGE_MOJOM_H_
#define CHROME_BROWSER_UI_WEBUI_NEW_TAB_PAGE_NEW_TAB_PAGE_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/ui/webui/new_tab_page/new_tab_page.mojom-features.h"
#include "chrome/browser/ui/webui/new_tab_page/new_tab_page.mojom-shared.h"
#include "chrome/browser/ui/webui/new_tab_page/new_tab_page.mojom-forward.h"
#include "skia/public/mojom/skcolor.mojom.h"
#include "ui/webui/resources/cr_components/most_visited/most_visited.mojom.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 new_tab_page::mojom {
class PageHandlerFactoryProxy;
template <typename ImplRefTraits>
class PageHandlerFactoryStub;
class PageHandlerFactoryRequestValidator;
class PageHandlerFactory
: public PageHandlerFactoryInterfaceBase { … };
class PageHandlerProxy;
template <typename ImplRefTraits>
class PageHandlerStub;
class PageHandlerRequestValidator;
class PageHandlerResponseValidator;
class PageHandler
: public PageHandlerInterfaceBase { … };
class PageProxy;
template <typename ImplRefTraits>
class PageStub;
class PageRequestValidator;
class Page
: public PageInterfaceBase { … };
class PageHandlerFactoryProxy
: public PageHandlerFactory { … };
class PageHandlerProxy
: public PageHandler { … };
class PageProxy
: public Page { … };
class PageHandlerFactoryStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PageHandlerFactory>>
class PageHandlerFactoryStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PageHandlerFactoryStub() = default;
~PageHandlerFactoryStub() 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 PageHandlerStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<PageHandler>>
class PageHandlerStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PageHandlerStub() = default;
~PageHandlerStub() 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 PageStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<Page>>
class PageStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
PageStub() = default;
~PageStub() 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 PageHandlerFactoryRequestValidator : public mojo::MessageReceiver { … };
class PageHandlerRequestValidator : public mojo::MessageReceiver { … };
class PageRequestValidator : public mojo::MessageReceiver { … };
class PageHandlerResponseValidator : public mojo::MessageReceiver { … };
class PromoTextPart { … };
template <typename T, PromoTextPart::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, PromoTextPart::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, PromoTextPart::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, PromoTextPart::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class ModuleIdName { … };
template <typename T, ModuleIdName::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, ModuleIdName::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, ModuleIdName::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, ModuleIdName::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PromoPart { … };
class BackgroundCollection { … };
template <typename T, BackgroundCollection::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, BackgroundCollection::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, BackgroundCollection::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, BackgroundCollection::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class CollectionImage { … };
template <typename T, CollectionImage::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, CollectionImage::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, CollectionImage::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, CollectionImage::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class BackgroundImage { … };
template <typename T, BackgroundImage::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, BackgroundImage::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, BackgroundImage::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, BackgroundImage::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
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 ImageDoodle { … };
template <typename T, ImageDoodle::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, ImageDoodle::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, ImageDoodle::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, ImageDoodle::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class AllModeImageDoodle { … };
template <typename T, AllModeImageDoodle::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, AllModeImageDoodle::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, AllModeImageDoodle::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, AllModeImageDoodle::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class InteractiveDoodle { … };
template <typename T, InteractiveDoodle::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, InteractiveDoodle::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, InteractiveDoodle::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, InteractiveDoodle::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class Doodle { … };
template <typename T, Doodle::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, Doodle::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, Doodle::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, Doodle::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PromoImagePart { … };
template <typename T, PromoImagePart::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, PromoImagePart::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, PromoImagePart::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, PromoImagePart::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PromoLinkPart { … };
template <typename T, PromoLinkPart::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, PromoLinkPart::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, PromoLinkPart::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, PromoLinkPart::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class Promo { … };
template <typename T, Promo::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, Promo::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, Promo::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, Promo::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename UnionPtrType>
PromoPartPtr PromoPart::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, PromoPart>::value>::type*>
bool PromoPart::Equals(const T& other) const { … }
template <typename StructPtrType>
BackgroundCollectionPtr BackgroundCollection::Clone() const { … }
template <typename T, BackgroundCollection::EnableIfSame<T>*>
bool BackgroundCollection::Equals(const T& other_struct) const { … }
template <typename T, BackgroundCollection::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
CollectionImagePtr CollectionImage::Clone() const { … }
template <typename T, CollectionImage::EnableIfSame<T>*>
bool CollectionImage::Equals(const T& other_struct) const { … }
template <typename T, CollectionImage::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
BackgroundImagePtr BackgroundImage::Clone() const { … }
template <typename T, BackgroundImage::EnableIfSame<T>*>
bool BackgroundImage::Equals(const T& other_struct) const { … }
template <typename T, BackgroundImage::EnableIfSame<T>*>
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>
ImageDoodlePtr ImageDoodle::Clone() const { … }
template <typename T, ImageDoodle::EnableIfSame<T>*>
bool ImageDoodle::Equals(const T& other_struct) const { … }
template <typename T, ImageDoodle::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
AllModeImageDoodlePtr AllModeImageDoodle::Clone() const { … }
template <typename T, AllModeImageDoodle::EnableIfSame<T>*>
bool AllModeImageDoodle::Equals(const T& other_struct) const { … }
template <typename T, AllModeImageDoodle::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
InteractiveDoodlePtr InteractiveDoodle::Clone() const { … }
template <typename T, InteractiveDoodle::EnableIfSame<T>*>
bool InteractiveDoodle::Equals(const T& other_struct) const { … }
template <typename T, InteractiveDoodle::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
DoodlePtr Doodle::Clone() const { … }
template <typename T, Doodle::EnableIfSame<T>*>
bool Doodle::Equals(const T& other_struct) const { … }
template <typename T, Doodle::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PromoImagePartPtr PromoImagePart::Clone() const { … }
template <typename T, PromoImagePart::EnableIfSame<T>*>
bool PromoImagePart::Equals(const T& other_struct) const { … }
template <typename T, PromoImagePart::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PromoLinkPartPtr PromoLinkPart::Clone() const { … }
template <typename T, PromoLinkPart::EnableIfSame<T>*>
bool PromoLinkPart::Equals(const T& other_struct) const { … }
template <typename T, PromoLinkPart::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PromoTextPartPtr PromoTextPart::Clone() const { … }
template <typename T, PromoTextPart::EnableIfSame<T>*>
bool PromoTextPart::Equals(const T& other_struct) const { … }
template <typename T, PromoTextPart::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
PromoPtr Promo::Clone() const { … }
template <typename T, Promo::EnableIfSame<T>*>
bool Promo::Equals(const T& other_struct) const { … }
template <typename T, Promo::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
ModuleIdNamePtr ModuleIdName::Clone() const { … }
template <typename T, ModuleIdName::EnableIfSame<T>*>
bool ModuleIdName::Equals(const T& other_struct) const { … }
template <typename T, ModuleIdName::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct StructTraits<::new_tab_page::mojom::BackgroundCollection::DataView,
::new_tab_page::mojom::BackgroundCollectionPtr> { … };
template <>
struct StructTraits<::new_tab_page::mojom::CollectionImage::DataView,
::new_tab_page::mojom::CollectionImagePtr> { … };
template <>
struct StructTraits<::new_tab_page::mojom::BackgroundImage::DataView,
::new_tab_page::mojom::BackgroundImagePtr> { … };
template <>
struct StructTraits<::new_tab_page::mojom::Theme::DataView,
::new_tab_page::mojom::ThemePtr> { … };
template <>
struct StructTraits<::new_tab_page::mojom::ImageDoodle::DataView,
::new_tab_page::mojom::ImageDoodlePtr> { … };
template <>
struct StructTraits<::new_tab_page::mojom::AllModeImageDoodle::DataView,
::new_tab_page::mojom::AllModeImageDoodlePtr> { … };
template <>
struct StructTraits<::new_tab_page::mojom::InteractiveDoodle::DataView,
::new_tab_page::mojom::InteractiveDoodlePtr> { … };
template <>
struct StructTraits<::new_tab_page::mojom::Doodle::DataView,
::new_tab_page::mojom::DoodlePtr> { … };
template <>
struct StructTraits<::new_tab_page::mojom::PromoImagePart::DataView,
::new_tab_page::mojom::PromoImagePartPtr> { … };
template <>
struct StructTraits<::new_tab_page::mojom::PromoLinkPart::DataView,
::new_tab_page::mojom::PromoLinkPartPtr> { … };
template <>
struct StructTraits<::new_tab_page::mojom::PromoTextPart::DataView,
::new_tab_page::mojom::PromoTextPartPtr> { … };
template <>
struct StructTraits<::new_tab_page::mojom::Promo::DataView,
::new_tab_page::mojom::PromoPtr> { … };
template <>
struct StructTraits<::new_tab_page::mojom::ModuleIdName::DataView,
::new_tab_page::mojom::ModuleIdNamePtr> { … };
template <>
struct UnionTraits<::new_tab_page::mojom::PromoPart::DataView,
::new_tab_page::mojom::PromoPartPtr> { … };
}
#endif