#include "services/device/public/cpp/hid/hid_item_state_table.h"
#include <limits>
namespace device {
namespace {
bool IsGlobalItem(HidReportDescriptorItem::Tag tag) { … }
uint32_t MaybeCombineUsageAndUsagePage(
uint32_t usage,
const std::vector<HidItemStateTable::HidGlobalItemState>& global_stack) { … }
int32_t Int32FromValueAndSize(uint32_t value, size_t payload_size) { … }
}
HidItemStateTable::HidItemStateTable() = default;
HidItemStateTable::~HidItemStateTable() = default;
void HidItemStateTable::SetItemValue(HidReportDescriptorItem::Tag tag,
uint32_t value,
size_t payload_size) { … }
HidItemStateTable::HidGlobalItemState::HidGlobalItemState() = default;
HidItemStateTable::HidGlobalItemState::HidGlobalItemState(
const HidGlobalItemState&) = default;
HidItemStateTable::HidGlobalItemState::~HidGlobalItemState() = default;
HidItemStateTable::HidLocalItemState::HidLocalItemState() = default;
HidItemStateTable::HidLocalItemState::HidLocalItemState(
const HidLocalItemState&) = default;
HidItemStateTable::HidLocalItemState::~HidLocalItemState() = default;
void HidItemStateTable::HidLocalItemState::Reset() { … }
}