chromium/out/Default/gen/third_party/blink/public/mojom/hid/hid.mojom.cc

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

#include "third_party/blink/public/mojom/hid/hid.mojom-import-headers.h"
#include "third_party/blink/public/mojom/hid/hid.mojom-test-utils.h"


namespace blink::mojom {
VendorAndProduct::VendorAndProduct()
    :{}

VendorAndProduct::VendorAndProduct(
    uint16_t vendor_in,
    uint16_t product_in)
    :{}

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

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

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

HidDeviceFilter::HidDeviceFilter(
    DeviceIdFilterPtr device_ids_in,
    UsageFilterPtr usage_in)
    :{}

HidDeviceFilter::~HidDeviceFilter() = default;

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

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

DeviceIdFilter::~DeviceIdFilter() {}


void DeviceIdFilter::set_vendor(
    uint16_t vendor) {}
void DeviceIdFilter::set_vendor_and_product(
    VendorAndProductPtr vendor_and_product) {}

void DeviceIdFilter::DestroyActive() {}
size_t DeviceIdFilter::Hash(size_t seed) const {}

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

UsageFilter::~UsageFilter() {}


void UsageFilter::set_page(
    uint16_t page) {}
void UsageFilter::set_usage_and_page(
    ::device::mojom::HidUsageAndPagePtr usage_and_page) {}

void UsageFilter::DestroyActive() {}
size_t UsageFilter::Hash(size_t seed) const {}

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

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


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

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t HidService::RegisterClient_Sym::IPCStableHash() {}
uint32_t HidService::GetDevices_Sym::IPCStableHash() {}
uint32_t HidService::RequestDevice_Sym::IPCStableHash() {}
uint32_t HidService::Connect_Sym::IPCStableHash() {}
uint32_t HidService::Forget_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class HidService_GetDevices_ForwardToCallback
    : public mojo::MessageReceiver {};

class HidService_RequestDevice_ForwardToCallback
    : public mojo::MessageReceiver {};

class HidService_Connect_ForwardToCallback
    : public mojo::MessageReceiver {};

class HidService_Forget_ForwardToCallback
    : public mojo::MessageReceiver {};

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

void HidServiceProxy::RegisterClient(
    ::mojo::PendingAssociatedRemote<::device::mojom::HidManagerClient> in_client) {}

void HidServiceProxy::GetDevices(
    GetDevicesCallback callback) {}

void HidServiceProxy::RequestDevice(
    std::vector<HidDeviceFilterPtr> in_filters, std::vector<HidDeviceFilterPtr> in_exclusion_filters, RequestDeviceCallback callback) {}

void HidServiceProxy::Connect(
    const std::string& in_device_guid, ::mojo::PendingRemote<::device::mojom::HidConnectionClient> in_client, ConnectCallback callback) {}

void HidServiceProxy::Forget(
    ::device::mojom::HidDeviceInfoPtr in_device_info, ForgetCallback callback) {}
class HidService_GetDevices_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void HidService_GetDevices_ProxyToResponder::Run(
    std::vector<::device::mojom::HidDeviceInfoPtr> in_devices) {}
class HidService_RequestDevice_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void HidService_RequestDevice_ProxyToResponder::Run(
    std::vector<::device::mojom::HidDeviceInfoPtr> in_devices) {}
class HidService_Connect_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void HidService_Connect_ProxyToResponder::Run(
    ::mojo::PendingRemote<::device::mojom::HidConnection> in_connection) {}
class HidService_Forget_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

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

void HidService_Forget_ProxyToResponder::Run(
    ) {}

// static
bool HidServiceStubDispatch::Accept(
    HidService* impl,
    mojo::Message* message) {}

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

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

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


}  // blink::mojom


namespace mojo {


// static
bool StructTraits<::blink::mojom::VendorAndProduct::DataView, ::blink::mojom::VendorAndProductPtr>::Read(
    ::blink::mojom::VendorAndProduct::DataView input,
    ::blink::mojom::VendorAndProductPtr* output) {}


// static
bool StructTraits<::blink::mojom::HidDeviceFilter::DataView, ::blink::mojom::HidDeviceFilterPtr>::Read(
    ::blink::mojom::HidDeviceFilter::DataView input,
    ::blink::mojom::HidDeviceFilterPtr* output) {}

// static
bool UnionTraits<::blink::mojom::DeviceIdFilter::DataView, ::blink::mojom::DeviceIdFilterPtr>::Read(
    ::blink::mojom::DeviceIdFilter::DataView input,
    ::blink::mojom::DeviceIdFilterPtr* output) {}

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


void HidServiceInterceptorForTesting::RegisterClient(::mojo::PendingAssociatedRemote<::device::mojom::HidManagerClient> client) {}
void HidServiceInterceptorForTesting::GetDevices(GetDevicesCallback callback) {}
void HidServiceInterceptorForTesting::RequestDevice(std::vector<HidDeviceFilterPtr> filters, std::vector<HidDeviceFilterPtr> exclusion_filters, RequestDeviceCallback callback) {}
void HidServiceInterceptorForTesting::Connect(const std::string& device_guid, ::mojo::PendingRemote<::device::mojom::HidConnectionClient> client, ConnectCallback callback) {}
void HidServiceInterceptorForTesting::Forget(::device::mojom::HidDeviceInfoPtr device_info, ForgetCallback callback) {}
HidServiceAsyncWaiter::HidServiceAsyncWaiter(
    HidService* proxy) :{}

HidServiceAsyncWaiter::~HidServiceAsyncWaiter() = default;

void HidServiceAsyncWaiter::GetDevices(
    std::vector<::device::mojom::HidDeviceInfoPtr>* out_devices) {}

std::vector<::device::mojom::HidDeviceInfoPtr> HidServiceAsyncWaiter::GetDevices(
    ) {}

void HidServiceAsyncWaiter::RequestDevice(
    std::vector<HidDeviceFilterPtr> filters, std::vector<HidDeviceFilterPtr> exclusion_filters, std::vector<::device::mojom::HidDeviceInfoPtr>* out_devices) {}

std::vector<::device::mojom::HidDeviceInfoPtr> HidServiceAsyncWaiter::RequestDevice(
    std::vector<HidDeviceFilterPtr> filters, std::vector<HidDeviceFilterPtr> exclusion_filters) {}

void HidServiceAsyncWaiter::Connect(
    const std::string& device_guid, ::mojo::PendingRemote<::device::mojom::HidConnectionClient> client, ::mojo::PendingRemote<::device::mojom::HidConnection>* out_connection) {}

::mojo::PendingRemote<::device::mojom::HidConnection> HidServiceAsyncWaiter::Connect(
    const std::string& device_guid, ::mojo::PendingRemote<::device::mojom::HidConnectionClient> client) {}

void HidServiceAsyncWaiter::Forget(
    ::device::mojom::HidDeviceInfoPtr device_info) {}








}  // blink::mojom


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