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

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

Issue 21256002: Fire null Device Motion events only once. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixed comments 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/DeviceSensorEventController.h
diff --git a/Source/modules/device_orientation/DeviceSensorEventController.h b/Source/modules/device_orientation/DeviceSensorEventController.h
index 816ac9b86e417c76d4e0b9b4318e0f58df2ec926..9fdce9aec687ab4c1833f1857b37c3fa4b8b895a 100644
--- a/Source/modules/device_orientation/DeviceSensorEventController.h
+++ b/Source/modules/device_orientation/DeviceSensorEventController.h
@@ -49,12 +49,14 @@ protected:
virtual PassRefPtr<Event> getLastEvent() = 0;
virtual void registerWithDispatcher() = 0;
virtual void unregisterWithDispatcher() = 0;
+ virtual bool isNullEvent(Event*) = 0;
private:
void fireDeviceEvent(Timer<DeviceSensorEventController>*);
Document* m_document;
bool m_isActive;
+ bool m_needsCheckingNullEvents;
Timer<DeviceSensorEventController> m_timer;
};

Powered by Google App Engine
This is Rietveld 408576698