chromium/services/device/public/cpp/generic_sensor/sensor_mojom_traits.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "services/device/public/cpp/generic_sensor/sensor_mojom_traits.h"

#include "base/ranges/algorithm.h"

namespace mojo {

// Note: the constant below must be maximum defined sensor traits
// (see sensor_traits.h).
constexpr double kMaxAllowedFrequency =;

// static
bool StructTraits<device::mojom::SensorConfigurationDataView,
                  device::PlatformSensorConfiguration>::
    Read(device::mojom::SensorConfigurationDataView data,
         device::PlatformSensorConfiguration* out) {}

// static
bool StructTraits<
    device::mojom::SensorReadingRawDataView,
    device::SensorReading>::Read(device::mojom::SensorReadingRawDataView data,
                                 device::SensorReading* out) {}

}  // namespace mojo