Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 | |
| 5 #ifndef DEVICE_GENERIC_SENSOR_AMBIENT_LIGHT_READER_IIO_H_ | |
| 6 #define DEVICE_GENERIC_SENSOR_AMBIENT_LIGHT_READER_IIO_H_ | |
| 7 | |
| 8 #include "base/files/file_path.h" | |
| 9 | |
| 10 namespace device { | |
| 11 | |
| 12 // Provides an interface to retrieve ambient light data from | |
| 13 // an ambient light sensor. | |
| 14 class AmbientLightSensorReaderIio { | |
| 15 public: | |
| 16 AmbientLightSensorReaderIio(); | |
| 17 ~AmbientLightSensorReaderIio(); | |
| 18 | |
| 19 bool ReadSensorLuxValue(double* lux); | |
|
Mikhail
2016/10/11 14:46:46
methods description is missing
maksims (do not use this acc)
2016/10/11 15:00:57
This class is old. I've forgotten to remove this.
maksims (do not use this acc)
2016/10/14 12:31:45
Done.
| |
| 20 bool DetectLightSensor(); | |
| 21 | |
| 22 private: | |
| 23 base::FilePath sensor_path_; | |
| 24 | |
| 25 DISALLOW_COPY_AND_ASSIGN(AmbientLightSensorReaderIio); | |
| 26 }; | |
| 27 | |
| 28 } // namespace content | |
| 29 | |
| 30 #endif // DEVICE_GENERIC_SENSOR_AMBIENT_LIGHT_READER_IIO_H_ | |
| OLD | NEW |