[go: nahoru, domu]

blob: 988d114760ef5b24e2a1999923438b82fbb08f4a [file] [log] [blame]
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_LINUX_BASE_H_
#define SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_LINUX_BASE_H_
#include "services/device/generic_sensor/platform_sensor_provider.h"
namespace device {
class PlatformSensorProviderLinuxBase : public PlatformSensorProvider {
protected:
virtual bool IsFusionSensorType(mojom::SensorType type) const;
void CreateFusionSensor(mojom::SensorType type,
SensorReadingSharedBuffer* reading_buffer,
CreateSensorCallback callback);
virtual bool IsSensorTypeAvailable(mojom::SensorType type) const = 0;
};
} // namespace device
#endif // SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_LINUX_BASE_H_