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

Unified Diff: content/browser/device_sensors/data_fetcher_shared_memory.h

Issue 2332903002: [sensors] [mac] Implement ambient light sensor for macOS (Closed)
Patch Set: More style fixes and build fixes Created 4 years, 3 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
Index: content/browser/device_sensors/data_fetcher_shared_memory.h
diff --git a/content/browser/device_sensors/data_fetcher_shared_memory.h b/content/browser/device_sensors/data_fetcher_shared_memory.h
index 85afac4b30d48ea8d40e630abfd0086cc3a3042b..fb11e523b844037d138c054b2bf2daa7fbf07131 100644
--- a/content/browser/device_sensors/data_fetcher_shared_memory.h
+++ b/content/browser/device_sensors/data_fetcher_shared_memory.h
@@ -17,6 +17,9 @@
#if defined(OS_MACOSX)
class SuddenMotionSensor;
+namespace device {
+class AmbientLightSensor;
+}
#elif defined(OS_WIN)
#include <SensorsApi.h>
#include "base/win/scoped_comptr.h"
@@ -26,8 +29,6 @@ namespace content {
#if defined(OS_CHROMEOS)
class SensorManagerChromeOS;
-#elif defined(OS_MACOSX)
-class AmbientLightSensor;
#endif
class CONTENT_EXPORT DataFetcherSharedMemory
@@ -60,7 +61,7 @@ class CONTENT_EXPORT DataFetcherSharedMemory
void Fetch(unsigned consumer_bitmask) override;
FetcherType GetType() const override;
- std::unique_ptr<AmbientLightSensor> ambient_light_sensor_;
+ std::unique_ptr<device::AmbientLightSensor> ambient_light_sensor_;
std::unique_ptr<SuddenMotionSensor> sudden_motion_sensor_;
#elif defined(OS_WIN)
class SensorEventSink;

Powered by Google App Engine
This is Rietveld 408576698