chromium/out/Default/gen/services/device/public/mojom/pressure_manager.mojom-blink.cc

// services/device/public/mojom/pressure_manager.mojom-blink.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 "services/device/public/mojom/pressure_manager.mojom-blink.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 "services/device/public/mojom/pressure_manager.mojom-params-data.h"
#include "services/device/public/mojom/pressure_manager.mojom-shared-message-ids.h"

#include "services/device/public/mojom/pressure_manager.mojom-blink-import-headers.h"
#include "services/device/public/mojom/pressure_manager.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"


namespace device::mojom::blink {
VirtualPressureSourceMetadata::VirtualPressureSourceMetadata()
    :{}

VirtualPressureSourceMetadata::VirtualPressureSourceMetadata(
    bool available_in)
    :{}

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

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

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

PressureManagerAddClientResult::~PressureManagerAddClientResult() {}


void PressureManagerAddClientResult::set_error(
    PressureManagerAddClientError error) {}
void PressureManagerAddClientResult::set_pressure_client(
    ::mojo::PendingReceiver<PressureClient> pressure_client) {}

void PressureManagerAddClientResult::DestroyActive() {}

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

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t PressureManager::AddVirtualPressureSource_Sym::IPCStableHash() {}
uint32_t PressureManager::RemoveVirtualPressureSource_Sym::IPCStableHash() {}
uint32_t PressureManager::UpdateVirtualPressureSourceState_Sym::IPCStableHash() {}
uint32_t PressureManager::AddClient_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class PressureManager_AddVirtualPressureSource_ForwardToCallback
    : public mojo::MessageReceiver {};

class PressureManager_RemoveVirtualPressureSource_ForwardToCallback
    : public mojo::MessageReceiver {};

class PressureManager_UpdateVirtualPressureSourceState_ForwardToCallback
    : public mojo::MessageReceiver {};

class PressureManager_AddClient_ForwardToCallback
    : public mojo::MessageReceiver {};

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

void PressureManagerProxy::AddVirtualPressureSource(
    const ::base::UnguessableToken& in_token, ::device::mojom::blink::PressureSource in_source, VirtualPressureSourceMetadataPtr in_metadata, AddVirtualPressureSourceCallback callback) {}

void PressureManagerProxy::RemoveVirtualPressureSource(
    const ::base::UnguessableToken& in_token, ::device::mojom::blink::PressureSource in_source, RemoveVirtualPressureSourceCallback callback) {}

void PressureManagerProxy::UpdateVirtualPressureSourceState(
    const ::base::UnguessableToken& in_token, ::device::mojom::blink::PressureSource in_source, ::device::mojom::blink::PressureState in_state, UpdateVirtualPressureSourceStateCallback callback) {}

void PressureManagerProxy::AddClient(
    ::device::mojom::blink::PressureSource in_source, const std::optional<::base::UnguessableToken>& in_token, AddClientCallback callback) {}
class PressureManager_AddVirtualPressureSource_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void PressureManager_AddVirtualPressureSource_ProxyToResponder::Run(
    ) {}
class PressureManager_RemoveVirtualPressureSource_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void PressureManager_RemoveVirtualPressureSource_ProxyToResponder::Run(
    ) {}
class PressureManager_UpdateVirtualPressureSourceState_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void PressureManager_UpdateVirtualPressureSourceState_ProxyToResponder::Run(
    ) {}
class PressureManager_AddClient_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void PressureManager_AddClient_ProxyToResponder::Run(
    PressureManagerAddClientResultPtr in_result) {}

// static
bool PressureManagerStubDispatch::Accept(
    PressureManager* impl,
    mojo::Message* message) {}

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

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

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

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t PressureClient::OnPressureUpdated_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

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

void PressureClientProxy::OnPressureUpdated(
    ::device::mojom::blink::PressureUpdatePtr in_update) {}

// static
bool PressureClientStubDispatch::Accept(
    PressureClient* impl,
    mojo::Message* message) {}

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

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



}  // device::mojom::blink


namespace mojo {


// static
bool StructTraits<::device::mojom::blink::VirtualPressureSourceMetadata::DataView, ::device::mojom::blink::VirtualPressureSourceMetadataPtr>::Read(
    ::device::mojom::blink::VirtualPressureSourceMetadata::DataView input,
    ::device::mojom::blink::VirtualPressureSourceMetadataPtr* output) {}

// static
bool UnionTraits<::device::mojom::blink::PressureManagerAddClientResult::DataView, ::device::mojom::blink::PressureManagerAddClientResultPtr>::Read(
    ::device::mojom::blink::PressureManagerAddClientResult::DataView input,
    ::device::mojom::blink::PressureManagerAddClientResultPtr* 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 device::mojom::blink {


void PressureManagerInterceptorForTesting::AddVirtualPressureSource(const ::base::UnguessableToken& token, ::device::mojom::blink::PressureSource source, VirtualPressureSourceMetadataPtr metadata, AddVirtualPressureSourceCallback callback) {}
void PressureManagerInterceptorForTesting::RemoveVirtualPressureSource(const ::base::UnguessableToken& token, ::device::mojom::blink::PressureSource source, RemoveVirtualPressureSourceCallback callback) {}
void PressureManagerInterceptorForTesting::UpdateVirtualPressureSourceState(const ::base::UnguessableToken& token, ::device::mojom::blink::PressureSource source, ::device::mojom::blink::PressureState state, UpdateVirtualPressureSourceStateCallback callback) {}
void PressureManagerInterceptorForTesting::AddClient(::device::mojom::blink::PressureSource source, const std::optional<::base::UnguessableToken>& token, AddClientCallback callback) {}
PressureManagerAsyncWaiter::PressureManagerAsyncWaiter(
    PressureManager* proxy) :{}

PressureManagerAsyncWaiter::~PressureManagerAsyncWaiter() = default;

void PressureManagerAsyncWaiter::AddVirtualPressureSource(
    const ::base::UnguessableToken& token, ::device::mojom::blink::PressureSource source, VirtualPressureSourceMetadataPtr metadata) {}



void PressureManagerAsyncWaiter::RemoveVirtualPressureSource(
    const ::base::UnguessableToken& token, ::device::mojom::blink::PressureSource source) {}



void PressureManagerAsyncWaiter::UpdateVirtualPressureSourceState(
    const ::base::UnguessableToken& token, ::device::mojom::blink::PressureSource source, ::device::mojom::blink::PressureState state) {}



void PressureManagerAsyncWaiter::AddClient(
    ::device::mojom::blink::PressureSource source, const std::optional<::base::UnguessableToken>& token, PressureManagerAddClientResultPtr* out_result) {}

PressureManagerAddClientResultPtr PressureManagerAsyncWaiter::AddClient(
    ::device::mojom::blink::PressureSource source, const std::optional<::base::UnguessableToken>& token) {}




void PressureClientInterceptorForTesting::OnPressureUpdated(::device::mojom::blink::PressureUpdatePtr update) {}
PressureClientAsyncWaiter::PressureClientAsyncWaiter(
    PressureClient* proxy) :{}

PressureClientAsyncWaiter::~PressureClientAsyncWaiter() = default;






}  // device::mojom::blink


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