Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: device/generic_sensor/ambient_light_reader_iio.h

Issue 2370343002: [sensors] Ambient light sensor implementation for ChromeOS and Linux. (Closed)
Patch Set: changed implementation Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698