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

Unified Diff: third_party/WebKit/Source/modules/sensor/SensorPollingStrategy.h

Issue 2323683002: [Sensors] Implement sensor data polling (Closed)
Patch Set: No extra PageVisibilityObservers 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: third_party/WebKit/Source/modules/sensor/SensorPollingStrategy.h
diff --git a/third_party/WebKit/Source/modules/sensor/SensorPollingStrategy.h b/third_party/WebKit/Source/modules/sensor/SensorPollingStrategy.h
index 086a132794de74bf69e7f2eaaf79d1d5cd8737bb..c396d21f717744341e5b52363060acce091629b4 100644
--- a/third_party/WebKit/Source/modules/sensor/SensorPollingStrategy.h
+++ b/third_party/WebKit/Source/modules/sensor/SensorPollingStrategy.h
@@ -27,6 +27,11 @@ public:
virtual void stopPolling() = 0;
virtual ~SensorPollingStrategy() {}
+
+protected:
+ SensorPollingStrategy(double frequency, std::unique_ptr<Function<void()>>);
+ double m_frequency;
+ std::unique_ptr<Function<void()>> m_pollFunc;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698