Index: device/base/device_util_mac.h |
diff --git a/device/base/device_util_mac.h b/device/base/device_util_mac.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..55511bf373d0bdeb3bc98c617b0e96f3d06288a0 |
--- /dev/null |
+++ b/device/base/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_BASE_DEVICE_UTIL_MAC_H_ |
+#define DEVICE_BASE_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); |
Reilly Grant (use Gerrit)
2016/10/04 07:11:27
This seems to be specific to light sensors. Any re
|
+ |
+} // namespace device |
+ |
+#endif // DEVICE_BASE_DEVICE_UTIL_MAC_H_ |