#ifndef SERVICES_DEVICE_PUBLIC_CPP_GENERIC_SENSOR_SENSOR_TRAITS_H_
#define SERVICES_DEVICE_PUBLIC_CPP_GENERIC_SENSOR_SENSOR_TRAITS_H_
#include "services/device/public/mojom/sensor.mojom.h"
namespace device {
template <mojom::SensorType>
struct SensorTraits { … };
template <>
struct SensorTraits<mojom::SensorType::AMBIENT_LIGHT> { … };
template <>
struct SensorTraits<mojom::SensorType::MAGNETOMETER> { … };
double GetSensorMaxAllowedFrequency(mojom::SensorType type);
double GetSensorDefaultFrequency(mojom::SensorType type);
}
#endif