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

Unified Diff: device/sensors/public/cpp/device_util_mac.h

Issue 2332903002: [sensors] [mac] Implement ambient light sensor for macOS (Closed)
Patch Set: Update commit message 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/sensors/public/cpp/device_sensors_consts.h ('k') | device/sensors/public/cpp/device_util_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/sensors/public/cpp/device_util_mac.h
diff --git a/device/sensors/public/cpp/device_util_mac.h b/device/sensors/public/cpp/device_util_mac.h
new file mode 100644
index 0000000000000000000000000000000000000000..82c728af5d4e967b3cea3ba8f8f0807ef49d1495
--- /dev/null
+++ b/device/sensors/public/cpp/device_util_mac.h
@@ -0,0 +1,18 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef DEVICE_SENSORS_PUBLIC_CPP_DEVICE_UTIL_MAC_H_
+#define DEVICE_SENSORS_PUBLIC_CPP_DEVICE_UTIL_MAC_H_
+
+#include <stdint.h>
+
+namespace device {
+
+// Convert the value returned by the ambient light LMU sensor on Mac
+// hardware to a lux value.
+double LMUvalueToLux(uint64_t raw_value);
+
+} // namespace device
+
+#endif // DEVICE_SENSORS_PUBLIC_CPP_DEVICE_UTIL_MAC_H_
« no previous file with comments | « device/sensors/public/cpp/device_sensors_consts.h ('k') | device/sensors/public/cpp/device_util_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698