#ifndef THIRD_PARTY_BLINK_PUBLIC_MOJOM_HID_HID_MOJOM_BLINK_H_
#define THIRD_PARTY_BLINK_PUBLIC_MOJOM_HID_HID_MOJOM_BLINK_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 "third_party/blink/public/mojom/hid/hid.mojom-features.h"
#include "third_party/blink/public/mojom/hid/hid.mojom-shared.h"
#include "third_party/blink/public/mojom/hid/hid.mojom-blink-forward.h"
#include "services/device/public/mojom/hid.mojom-blink.h"
#include "mojo/public/cpp/bindings/lib/wtf_clone_equals_util.h"
#include "mojo/public/cpp/bindings/lib/wtf_hash_util.h"
#include "third_party/blink/renderer/platform/wtf/hash_functions.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#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"
#include "third_party/blink/renderer/platform/platform_export.h"
namespace blink::mojom::blink {
class HidServiceProxy;
template <typename ImplRefTraits>
class HidServiceStub;
class HidServiceRequestValidator;
class HidServiceResponseValidator;
class PLATFORM_EXPORT HidService
: public HidServiceInterfaceBase { … };
class PLATFORM_EXPORT HidServiceProxy
: public HidService { … };
class PLATFORM_EXPORT HidServiceStubDispatch { … };
template <typename ImplRefTraits =
mojo::RawPtrImplRefTraits<HidService>>
class HidServiceStub
: public mojo::MessageReceiverWithResponderStatus {
public:
using ImplPointerType = typename ImplRefTraits::PointerType;
HidServiceStub() = default;
~HidServiceStub() 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 PLATFORM_EXPORT HidServiceRequestValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT HidServiceResponseValidator : public mojo::MessageReceiver { … };
class PLATFORM_EXPORT VendorAndProduct { … };
template <typename T, VendorAndProduct::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, VendorAndProduct::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, VendorAndProduct::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, VendorAndProduct::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
class PLATFORM_EXPORT DeviceIdFilter { … };
class PLATFORM_EXPORT UsageFilter { … };
class PLATFORM_EXPORT HidDeviceFilter { … };
template <typename T, HidDeviceFilter::EnableIfSame<T>* = nullptr>
bool operator<(const T& lhs, const T& rhs);
template <typename T, HidDeviceFilter::EnableIfSame<T>* = nullptr>
bool operator<=(const T& lhs, const T& rhs) { … }
template <typename T, HidDeviceFilter::EnableIfSame<T>* = nullptr>
bool operator>(const T& lhs, const T& rhs) { … }
template <typename T, HidDeviceFilter::EnableIfSame<T>* = nullptr>
bool operator>=(const T& lhs, const T& rhs) { … }
template <typename UnionPtrType>
DeviceIdFilterPtr DeviceIdFilter::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, DeviceIdFilter>::value>::type*>
bool DeviceIdFilter::Equals(const T& other) const { … }
template <typename UnionPtrType>
UsageFilterPtr UsageFilter::Clone() const { … }
template <typename T,
typename std::enable_if<std::is_same<
T, UsageFilter>::value>::type*>
bool UsageFilter::Equals(const T& other) const { … }
template <typename StructPtrType>
VendorAndProductPtr VendorAndProduct::Clone() const { … }
template <typename T, VendorAndProduct::EnableIfSame<T>*>
bool VendorAndProduct::Equals(const T& other_struct) const { … }
template <typename T, VendorAndProduct::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
template <typename StructPtrType>
HidDeviceFilterPtr HidDeviceFilter::Clone() const { … }
template <typename T, HidDeviceFilter::EnableIfSame<T>*>
bool HidDeviceFilter::Equals(const T& other_struct) const { … }
template <typename T, HidDeviceFilter::EnableIfSame<T>*>
bool operator<(const T& lhs, const T& rhs) { … }
}
namespace mojo {
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::VendorAndProduct::DataView,
::blink::mojom::blink::VendorAndProductPtr> { … };
template <>
struct PLATFORM_EXPORT StructTraits<::blink::mojom::blink::HidDeviceFilter::DataView,
::blink::mojom::blink::HidDeviceFilterPtr> { … };
template <>
struct PLATFORM_EXPORT UnionTraits<::blink::mojom::blink::DeviceIdFilter::DataView,
::blink::mojom::blink::DeviceIdFilterPtr> { … };
template <>
struct PLATFORM_EXPORT UnionTraits<::blink::mojom::blink::UsageFilter::DataView,
::blink::mojom::blink::UsageFilterPtr> { … };
}
#endif