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

Unified Diff: device/generic_sensor/platform_sensor_reader_win.h

Issue 2495073002: [sensors] [win] Fix ambient light not working properly Windows 10. (Closed)
Patch Set: Fix typo Created 4 years, 1 month 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/generic_sensor/platform_sensor_reader_win.h
diff --git a/device/generic_sensor/platform_sensor_reader_win.h b/device/generic_sensor/platform_sensor_reader_win.h
index 86e09751d2b42cb6d56678d29ead63f377f3266f..67018a4adf5fac29d0345d128b3c0fa99108fcbe 100644
--- a/device/generic_sensor/platform_sensor_reader_win.h
+++ b/device/generic_sensor/platform_sensor_reader_win.h
@@ -54,6 +54,7 @@ class PlatformSensorReaderWin {
base::win::ScopedComPtr<ISensorManager> sensor_manager);
bool SetReportingInterval(const PlatformSensorConfiguration& configuration);
+ void ListenSensorEvent();
HRESULT SensorReadingChanged(ISensorDataReport& report,
SensorReading& reading) const;
void SensorError();
@@ -71,6 +72,7 @@ class PlatformSensorReaderWin {
Client* client_;
base::win::ScopedComPtr<ISensor> sensor_;
scoped_refptr<EventListener> event_listener_;
+ base::WeakPtrFactory<PlatformSensorReaderWin> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(PlatformSensorReaderWin);
};

Powered by Google App Engine
This is Rietveld 408576698