| Index: device/generic_sensor/ambient_light_mac.h
|
| diff --git a/content/browser/device_sensors/ambient_light_mac.h b/device/generic_sensor/ambient_light_mac.h
|
| similarity index 78%
|
| rename from content/browser/device_sensors/ambient_light_mac.h
|
| rename to device/generic_sensor/ambient_light_mac.h
|
| index 6d4af75ce80c20c828a86d0708ec7799cb3a09b2..a40efd1fffd3ec177d1af55cb642dbd90a1333bb 100644
|
| --- a/content/browser/device_sensors/ambient_light_mac.h
|
| +++ b/device/generic_sensor/ambient_light_mac.h
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef CONTENT_BROWSER_DEVICE_SENSORS_AMBIENT_LIGHT_MAC_H_
|
| -#define CONTENT_BROWSER_DEVICE_SENSORS_AMBIENT_LIGHT_MAC_H_
|
| +#ifndef DEVICE_GENERIC_SENSOR_AMBIENT_LIGHT_MAC_H_
|
| +#define DEVICE_GENERIC_SENSOR_AMBIENT_LIGHT_MAC_H_
|
|
|
| #include <IOKit/IOKitLib.h>
|
| #include <stdint.h>
|
| @@ -12,7 +12,7 @@
|
|
|
| #include "base/macros.h"
|
|
|
| -namespace content {
|
| +namespace device {
|
|
|
| // Provides an interface to retrieve ambient light data from MacBooks.
|
| class AmbientLightSensor {
|
| @@ -20,6 +20,8 @@ class AmbientLightSensor {
|
| // Create AmbientLightSensor object, return NULL if no valid is sensor found.
|
| static std::unique_ptr<AmbientLightSensor> Create();
|
|
|
| + static double LMUvalueToLux(uint64_t raw_value);
|
| +
|
| ~AmbientLightSensor();
|
|
|
| // Retrieve lux values from Ambient Light Sensor.
|
| @@ -38,6 +40,6 @@ class AmbientLightSensor {
|
| DISALLOW_COPY_AND_ASSIGN(AmbientLightSensor);
|
| };
|
|
|
| -} // namespace content
|
| +} // namespace device
|
|
|
| -#endif // CONTENT_BROWSER_DEVICE_SENSORS_AMBIENT_LIGHT_MAC_H_
|
| +#endif // DEVICE_GENERIC_SENSOR_AMBIENT_LIGHT_MAC_H_
|
|
|