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

Unified Diff: device/sensors/data_fetcher_shared_memory.h

Issue 2845763002: Remove DeviceLightEvent implementation (Closed)
Patch Set: same as previous patch Created 3 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 side-by-side diff with in-line comments
Download patch
Index: device/sensors/data_fetcher_shared_memory.h
diff --git a/device/sensors/data_fetcher_shared_memory.h b/device/sensors/data_fetcher_shared_memory.h
index e1e22e7e9363f44c3eec8a459fc62a9d141ef5b0..c1a92bc5637b09cb677fc34744b3f3be4692f135 100644
--- a/device/sensors/data_fetcher_shared_memory.h
+++ b/device/sensors/data_fetcher_shared_memory.h
@@ -10,7 +10,6 @@
#include "device/sensors/data_fetcher_shared_memory_base.h"
#if !defined(OS_ANDROID)
-#include "device/sensors/public/cpp/device_light_hardware_buffer.h"
#include "device/sensors/public/cpp/device_motion_hardware_buffer.h"
#include "device/sensors/public/cpp/device_orientation_hardware_buffer.h"
#endif
@@ -26,8 +25,6 @@ namespace device {
#if defined(OS_CHROMEOS)
class SensorManagerChromeOS;
-#elif defined(OS_MACOSX)
-class AmbientLightSensor;
#endif
class DEVICE_SENSOR_EXPORT DataFetcherSharedMemory
@@ -48,7 +45,6 @@ class DEVICE_SENSOR_EXPORT DataFetcherSharedMemory
#if !defined(OS_CHROMEOS)
DeviceMotionHardwareBuffer* motion_buffer_ = nullptr;
DeviceOrientationHardwareBuffer* orientation_buffer_ = nullptr;
- DeviceLightHardwareBuffer* light_buffer_ = nullptr;
#endif
DeviceOrientationHardwareBuffer* orientation_absolute_buffer_ = nullptr;
#endif
@@ -59,13 +55,11 @@ class DEVICE_SENSOR_EXPORT DataFetcherSharedMemory
void Fetch(unsigned consumer_bitmask) override;
FetcherType GetType() const override;
- std::unique_ptr<AmbientLightSensor> ambient_light_sensor_;
std::unique_ptr<SuddenMotionSensor> sudden_motion_sensor_;
#elif defined(OS_WIN)
class SensorEventSink;
class SensorEventSinkMotion;
class SensorEventSinkOrientation;
- class SensorEventSinkLight;
FetcherType GetType() const override;
@@ -79,7 +73,6 @@ class DEVICE_SENSOR_EXPORT DataFetcherSharedMemory
base::win::ScopedComPtr<ISensor> sensor_inclinometer_absolute_;
base::win::ScopedComPtr<ISensor> sensor_accelerometer_;
base::win::ScopedComPtr<ISensor> sensor_gyrometer_;
- base::win::ScopedComPtr<ISensor> sensor_light_;
#endif
DISALLOW_COPY_AND_ASSIGN(DataFetcherSharedMemory);

Powered by Google App Engine
This is Rietveld 408576698