chromium/out/Default/gen/chrome/browser/ui/webui/app_home/app_home.mojom.cc

// chrome/browser/ui/webui/app_home/app_home.mojom.cc is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif

#include "chrome/browser/ui/webui/app_home/app_home.mojom.h"

#include <math.h>
#include <stdint.h>
#include <utility>

#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"

#include "chrome/browser/ui/webui/app_home/app_home.mojom-params-data.h"
#include "chrome/browser/ui/webui/app_home/app_home.mojom-shared-message-ids.h"

#include "chrome/browser/ui/webui/app_home/app_home.mojom-import-headers.h"
#include "chrome/browser/ui/webui/app_home/app_home.mojom-test-utils.h"


namespace app_home::mojom {
AppInfo::AppInfo()
    :{}

AppInfo::AppInfo(
    const std::string& id_in,
    const ::GURL& start_url_in,
    const std::string& name_in,
    const ::GURL& icon_url_in,
    bool may_show_run_on_os_login_mode_in,
    bool may_toggle_run_on_os_login_mode_in,
    ::web_app::RunOnOsLoginMode run_on_os_login_mode_in,
    bool is_locally_installed_in,
    bool open_in_window_in,
    bool may_uninstall_in,
    bool is_deprecated_app_in,
    const std::optional<::GURL>& store_page_url_in)
    :{}

AppInfo::~AppInfo() = default;

void AppInfo::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool AppInfo::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
ClickEvent::ClickEvent()
    :{}

ClickEvent::ClickEvent(
    double button_in,
    bool alt_key_in,
    bool ctrl_key_in,
    bool meta_key_in,
    bool shift_key_in)
    :{}

ClickEvent::~ClickEvent() = default;
size_t ClickEvent::Hash(size_t seed) const {}

void ClickEvent::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool ClickEvent::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
const char PageHandlerFactory::Name_[] =;

PageHandlerFactory::IPCStableHashFunction PageHandlerFactory::MessageToMethodInfo_(mojo::Message& message) {}


const char* PageHandlerFactory::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t PageHandlerFactory::CreatePageHandler_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

PageHandlerFactoryProxy::PageHandlerFactoryProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void PageHandlerFactoryProxy::CreatePageHandler(
    ::mojo::PendingRemote<Page> in_page, ::mojo::PendingReceiver<PageHandler> in_handler) {}

// static
bool PageHandlerFactoryStubDispatch::Accept(
    PageHandlerFactory* impl,
    mojo::Message* message) {}

// static
bool PageHandlerFactoryStubDispatch::AcceptWithResponder(
    PageHandlerFactory* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kPageHandlerFactoryValidationInfo[] =;

bool PageHandlerFactoryRequestValidator::Accept(mojo::Message* message) {}

const char PageHandler::Name_[] =;

PageHandler::IPCStableHashFunction PageHandler::MessageToMethodInfo_(mojo::Message& message) {}


const char* PageHandler::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t PageHandler::GetApps_Sym::IPCStableHash() {}
uint32_t PageHandler::GetDeprecationLinkString_Sym::IPCStableHash() {}
uint32_t PageHandler::UninstallApp_Sym::IPCStableHash() {}
uint32_t PageHandler::ShowAppSettings_Sym::IPCStableHash() {}
uint32_t PageHandler::CreateAppShortcut_Sym::IPCStableHash() {}
uint32_t PageHandler::LaunchApp_Sym::IPCStableHash() {}
uint32_t PageHandler::SetRunOnOsLoginMode_Sym::IPCStableHash() {}
uint32_t PageHandler::LaunchDeprecatedAppDialog_Sym::IPCStableHash() {}
uint32_t PageHandler::InstallAppLocally_Sym::IPCStableHash() {}
uint32_t PageHandler::SetUserDisplayMode_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class PageHandler_GetApps_ForwardToCallback
    : public mojo::MessageReceiver {};

class PageHandler_GetDeprecationLinkString_ForwardToCallback
    : public mojo::MessageReceiver {};

class PageHandler_CreateAppShortcut_ForwardToCallback
    : public mojo::MessageReceiver {};

PageHandlerProxy::PageHandlerProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void PageHandlerProxy::GetApps(
    GetAppsCallback callback) {}

void PageHandlerProxy::GetDeprecationLinkString(
    GetDeprecationLinkStringCallback callback) {}

void PageHandlerProxy::UninstallApp(
    const std::string& in_app_id) {}

void PageHandlerProxy::ShowAppSettings(
    const std::string& in_app_id) {}

void PageHandlerProxy::CreateAppShortcut(
    const std::string& in_app_id, CreateAppShortcutCallback callback) {}

void PageHandlerProxy::LaunchApp(
    const std::string& in_app_id, ClickEventPtr in_click_event) {}

void PageHandlerProxy::SetRunOnOsLoginMode(
    const std::string& in_app_id, ::web_app::RunOnOsLoginMode in_run_on_os_login_mode) {}

void PageHandlerProxy::LaunchDeprecatedAppDialog(
    ) {}

void PageHandlerProxy::InstallAppLocally(
    const std::string& in_app_id) {}

void PageHandlerProxy::SetUserDisplayMode(
    const std::string& in_app_id, ::web_app::mojom::UserDisplayMode in_display_mode) {}
class PageHandler_GetApps_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool PageHandler_GetApps_ForwardToCallback::Accept(
    mojo::Message* message) {}

void PageHandler_GetApps_ProxyToResponder::Run(
    std::vector<AppInfoPtr> in_app_list) {}
class PageHandler_GetDeprecationLinkString_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool PageHandler_GetDeprecationLinkString_ForwardToCallback::Accept(
    mojo::Message* message) {}

void PageHandler_GetDeprecationLinkString_ProxyToResponder::Run(
    const std::string& in_link_string) {}
class PageHandler_CreateAppShortcut_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool PageHandler_CreateAppShortcut_ForwardToCallback::Accept(
    mojo::Message* message) {}

void PageHandler_CreateAppShortcut_ProxyToResponder::Run(
    ) {}

// static
bool PageHandlerStubDispatch::Accept(
    PageHandler* impl,
    mojo::Message* message) {}

// static
bool PageHandlerStubDispatch::AcceptWithResponder(
    PageHandler* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kPageHandlerValidationInfo[] =;

bool PageHandlerRequestValidator::Accept(mojo::Message* message) {}

bool PageHandlerResponseValidator::Accept(mojo::Message* message) {}
const char Page::Name_[] =;

Page::IPCStableHashFunction Page::MessageToMethodInfo_(mojo::Message& message) {}


const char* Page::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t Page::AddApp_Sym::IPCStableHash() {}
uint32_t Page::RemoveApp_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

PageProxy::PageProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void PageProxy::AddApp(
    AppInfoPtr in_app_info) {}

void PageProxy::RemoveApp(
    AppInfoPtr in_app_info) {}

// static
bool PageStubDispatch::Accept(
    Page* impl,
    mojo::Message* message) {}

// static
bool PageStubDispatch::AcceptWithResponder(
    Page* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kPageValidationInfo[] =;

bool PageRequestValidator::Accept(mojo::Message* message) {}



}  // app_home::mojom


namespace mojo {


// static
bool StructTraits<::app_home::mojom::AppInfo::DataView, ::app_home::mojom::AppInfoPtr>::Read(
    ::app_home::mojom::AppInfo::DataView input,
    ::app_home::mojom::AppInfoPtr* output) {}


// static
bool StructTraits<::app_home::mojom::ClickEvent::DataView, ::app_home::mojom::ClickEventPtr>::Read(
    ::app_home::mojom::ClickEvent::DataView input,
    ::app_home::mojom::ClickEventPtr* output) {}

}  // namespace mojo


// Symbols declared in the -test-utils.h header are defined here instead of a
// separate .cc file to save compile time.


namespace app_home::mojom {


void PageHandlerFactoryInterceptorForTesting::CreatePageHandler(::mojo::PendingRemote<Page> page, ::mojo::PendingReceiver<PageHandler> handler) {}
PageHandlerFactoryAsyncWaiter::PageHandlerFactoryAsyncWaiter(
    PageHandlerFactory* proxy) :{}

PageHandlerFactoryAsyncWaiter::~PageHandlerFactoryAsyncWaiter() = default;




void PageHandlerInterceptorForTesting::GetApps(GetAppsCallback callback) {}
void PageHandlerInterceptorForTesting::GetDeprecationLinkString(GetDeprecationLinkStringCallback callback) {}
void PageHandlerInterceptorForTesting::UninstallApp(const std::string& app_id) {}
void PageHandlerInterceptorForTesting::ShowAppSettings(const std::string& app_id) {}
void PageHandlerInterceptorForTesting::CreateAppShortcut(const std::string& app_id, CreateAppShortcutCallback callback) {}
void PageHandlerInterceptorForTesting::LaunchApp(const std::string& app_id, ClickEventPtr click_event) {}
void PageHandlerInterceptorForTesting::SetRunOnOsLoginMode(const std::string& app_id, ::web_app::RunOnOsLoginMode run_on_os_login_mode) {}
void PageHandlerInterceptorForTesting::LaunchDeprecatedAppDialog() {}
void PageHandlerInterceptorForTesting::InstallAppLocally(const std::string& app_id) {}
void PageHandlerInterceptorForTesting::SetUserDisplayMode(const std::string& app_id, ::web_app::mojom::UserDisplayMode display_mode) {}
PageHandlerAsyncWaiter::PageHandlerAsyncWaiter(
    PageHandler* proxy) :{}

PageHandlerAsyncWaiter::~PageHandlerAsyncWaiter() = default;

void PageHandlerAsyncWaiter::GetApps(
    std::vector<AppInfoPtr>* out_app_list) {}

std::vector<AppInfoPtr> PageHandlerAsyncWaiter::GetApps(
    ) {}

void PageHandlerAsyncWaiter::GetDeprecationLinkString(
    std::string* out_link_string) {}

std::string PageHandlerAsyncWaiter::GetDeprecationLinkString(
    ) {}

void PageHandlerAsyncWaiter::CreateAppShortcut(
    const std::string& app_id) {}






void PageInterceptorForTesting::AddApp(AppInfoPtr app_info) {}
void PageInterceptorForTesting::RemoveApp(AppInfoPtr app_info) {}
PageAsyncWaiter::PageAsyncWaiter(
    Page* proxy) :{}

PageAsyncWaiter::~PageAsyncWaiter() = default;






}  // app_home::mojom


#if defined(__clang__)
#pragma clang diagnostic pop
#endif