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

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

Issue 2644873002: [Sensors] Fix reading updates after page refresh (Closed)
Patch Set: Comments from haraken@. Rebased. Created 3 years, 11 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/SensorReadingUpdater.h
diff --git a/third_party/WebKit/Source/modules/sensor/SensorReadingUpdater.h b/third_party/WebKit/Source/modules/sensor/SensorReadingUpdater.h
index c85c59a290419bb43d0c3b274a8dc0a958870e40..1cea8b4446f0d21d350ae16fd07bde4df5b1be69 100644
--- a/third_party/WebKit/Source/modules/sensor/SensorReadingUpdater.h
+++ b/third_party/WebKit/Source/modules/sensor/SensorReadingUpdater.h
@@ -10,6 +10,7 @@
namespace blink {
+class Document;
class SensorProxy;
// This class encapsulates sensor reading update notification logic.
@@ -28,6 +29,7 @@ class SensorReadingUpdater : public GarbageCollected<SensorReadingUpdater> {
virtual void onAnimationFrameInternal() = 0;
Member<SensorProxy> m_sensorProxy;
+ WeakMember<Document> m_document;
bool m_hasPendingAnimationFrameTask;
private:

Powered by Google App Engine
This is Rietveld 408576698