#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "services/device/public/mojom/input_service.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 "services/device/public/mojom/input_service.mojom-params-data.h"
#include "services/device/public/mojom/input_service.mojom-shared-message-ids.h"
#include "services/device/public/mojom/input_service.mojom-import-headers.h"
#include "services/device/public/mojom/input_service.mojom-test-utils.h"
namespace device::mojom {
InputDeviceInfo::InputDeviceInfo()
: … { … }
InputDeviceInfo::InputDeviceInfo(
const std::string& id_in,
const std::string& name_in,
InputDeviceSubsystem subsystem_in,
InputDeviceType type_in,
bool is_accelerometer_in,
bool is_joystick_in,
bool is_key_in,
bool is_keyboard_in,
bool is_mouse_in,
bool is_tablet_in,
bool is_touchpad_in,
bool is_touchscreen_in)
: … { … }
InputDeviceInfo::~InputDeviceInfo() = default;
size_t InputDeviceInfo::Hash(size_t seed) const { … }
void InputDeviceInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool InputDeviceInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char InputDeviceManagerClient::Name_[] = …;
InputDeviceManagerClient::IPCStableHashFunction InputDeviceManagerClient::MessageToMethodInfo_(mojo::Message& message) { … }
const char* InputDeviceManagerClient::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t InputDeviceManagerClient::InputDeviceAdded_Sym::IPCStableHash() { … }
uint32_t InputDeviceManagerClient::InputDeviceRemoved_Sym::IPCStableHash() { … }
# endif
InputDeviceManagerClientProxy::InputDeviceManagerClientProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void InputDeviceManagerClientProxy::InputDeviceAdded(
InputDeviceInfoPtr in_device_info) { … }
void InputDeviceManagerClientProxy::InputDeviceRemoved(
const std::string& in_id) { … }
bool InputDeviceManagerClientStubDispatch::Accept(
InputDeviceManagerClient* impl,
mojo::Message* message) { … }
bool InputDeviceManagerClientStubDispatch::AcceptWithResponder(
InputDeviceManagerClient* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kInputDeviceManagerClientValidationInfo[] = …;
bool InputDeviceManagerClientRequestValidator::Accept(mojo::Message* message) { … }
const char InputDeviceManager::Name_[] = …;
InputDeviceManager::IPCStableHashFunction InputDeviceManager::MessageToMethodInfo_(mojo::Message& message) { … }
const char* InputDeviceManager::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t InputDeviceManager::GetDevicesAndSetClient_Sym::IPCStableHash() { … }
uint32_t InputDeviceManager::GetDevices_Sym::IPCStableHash() { … }
# endif
class InputDeviceManager_GetDevicesAndSetClient_ForwardToCallback
: public mojo::MessageReceiver { … };
class InputDeviceManager_GetDevices_ForwardToCallback
: public mojo::MessageReceiver { … };
InputDeviceManagerProxy::InputDeviceManagerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void InputDeviceManagerProxy::GetDevicesAndSetClient(
::mojo::PendingAssociatedRemote<InputDeviceManagerClient> in_client, GetDevicesAndSetClientCallback callback) { … }
void InputDeviceManagerProxy::GetDevices(
GetDevicesCallback callback) { … }
class InputDeviceManager_GetDevicesAndSetClient_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool InputDeviceManager_GetDevicesAndSetClient_ForwardToCallback::Accept(
mojo::Message* message) { … }
void InputDeviceManager_GetDevicesAndSetClient_ProxyToResponder::Run(
std::vector<InputDeviceInfoPtr> in_devices) { … }
class InputDeviceManager_GetDevices_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool InputDeviceManager_GetDevices_ForwardToCallback::Accept(
mojo::Message* message) { … }
void InputDeviceManager_GetDevices_ProxyToResponder::Run(
std::vector<InputDeviceInfoPtr> in_devices) { … }
bool InputDeviceManagerStubDispatch::Accept(
InputDeviceManager* impl,
mojo::Message* message) { … }
bool InputDeviceManagerStubDispatch::AcceptWithResponder(
InputDeviceManager* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kInputDeviceManagerValidationInfo[] = …;
bool InputDeviceManagerRequestValidator::Accept(mojo::Message* message) { … }
bool InputDeviceManagerResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::device::mojom::InputDeviceInfo::DataView, ::device::mojom::InputDeviceInfoPtr>::Read(
::device::mojom::InputDeviceInfo::DataView input,
::device::mojom::InputDeviceInfoPtr* output) { … }
}
namespace device::mojom {
void InputDeviceManagerClientInterceptorForTesting::InputDeviceAdded(InputDeviceInfoPtr device_info) { … }
void InputDeviceManagerClientInterceptorForTesting::InputDeviceRemoved(const std::string& id) { … }
InputDeviceManagerClientAsyncWaiter::InputDeviceManagerClientAsyncWaiter(
InputDeviceManagerClient* proxy) : … { … }
InputDeviceManagerClientAsyncWaiter::~InputDeviceManagerClientAsyncWaiter() = default;
void InputDeviceManagerInterceptorForTesting::GetDevicesAndSetClient(::mojo::PendingAssociatedRemote<InputDeviceManagerClient> client, GetDevicesAndSetClientCallback callback) { … }
void InputDeviceManagerInterceptorForTesting::GetDevices(GetDevicesCallback callback) { … }
InputDeviceManagerAsyncWaiter::InputDeviceManagerAsyncWaiter(
InputDeviceManager* proxy) : … { … }
InputDeviceManagerAsyncWaiter::~InputDeviceManagerAsyncWaiter() = default;
void InputDeviceManagerAsyncWaiter::GetDevicesAndSetClient(
::mojo::PendingAssociatedRemote<InputDeviceManagerClient> client, std::vector<InputDeviceInfoPtr>* out_devices) { … }
std::vector<InputDeviceInfoPtr> InputDeviceManagerAsyncWaiter::GetDevicesAndSetClient(
::mojo::PendingAssociatedRemote<InputDeviceManagerClient> client) { … }
void InputDeviceManagerAsyncWaiter::GetDevices(
std::vector<InputDeviceInfoPtr>* out_devices) { … }
std::vector<InputDeviceInfoPtr> InputDeviceManagerAsyncWaiter::GetDevices(
) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif