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

Unified Diff: Source/modules/device_orientation/DeviceSensorEventDispatcher.h

Issue 21256002: Fire null Device Motion events only once. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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: Source/modules/device_orientation/DeviceSensorEventDispatcher.h
diff --git a/Source/modules/device_orientation/DeviceSensorEventDispatcher.h b/Source/modules/device_orientation/DeviceSensorEventDispatcher.h
index b51b0102b2956ce94f85eecd5a9344b2e17d526c..26c269515f95d1bf6c5a51c0928273eebb6ff625 100644
--- a/Source/modules/device_orientation/DeviceSensorEventDispatcher.h
+++ b/Source/modules/device_orientation/DeviceSensorEventDispatcher.h
@@ -49,6 +49,8 @@ protected:
virtual void stopListening() = 0;
Vector<DeviceSensorEventController*> m_controllers;
+ bool m_needsPurge;
+ bool m_isDispatching;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698