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 BLINK_MODULES_SENSOR_ALS_READING_H_ |
| 6 #define BLINK_MODULES_SENSOR_ALS_READING_H_ |
| 7 |
| 8 #include "modules/ModulesExport.h" |
| 9 #include "wtf/Assertions.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 // Simple struct to hold the Ambient light sensor readings. |
| 14 struct MODULES_EXPORT AmbientLightSensorReadingProxy { |
| 15 double timeStamp; |
| 16 double illuminance; |
| 17 |
| 18 AmbientLightSensorReadingProxy() |
| 19 : timeStamp(0) |
| 20 , illuminance(std::numeric_limits<double>::infinity()) |
| 21 { |
| 22 } |
| 23 AmbientLightSensorReadingProxy(double t, double i) |
| 24 : timeStamp(t) |
| 25 , illuminance(i) |
| 26 { |
| 27 } |
| 28 }; |
| 29 |
| 30 } // namespace blink |
| 31 |
| 32 #endif // BLINK_MODULES_SENSOR_ALS_READING_H_ |
OLD | NEW |