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

Side by Side Diff: third_party/WebKit/Source/modules/sensor/als_reading.h

Issue 1892083002: Generic Sensor API : Ambient Light Sensor API. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698