platform_sensor_provider_linux_base.h 922 B

12345678910111213141516171819202122232425
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_LINUX_BASE_H_
  5. #define SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_LINUX_BASE_H_
  6. #include "services/device/generic_sensor/platform_sensor_provider.h"
  7. namespace device {
  8. class PlatformSensorProviderLinuxBase : public PlatformSensorProvider {
  9. protected:
  10. virtual bool IsFusionSensorType(mojom::SensorType type) const;
  11. void CreateFusionSensor(mojom::SensorType type,
  12. SensorReadingSharedBuffer* reading_buffer,
  13. CreateSensorCallback callback);
  14. virtual bool IsSensorTypeAvailable(mojom::SensorType type) const = 0;
  15. };
  16. } // namespace device
  17. #endif // SERVICES_DEVICE_GENERIC_SENSOR_PLATFORM_SENSOR_PROVIDER_LINUX_BASE_H_