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

Unified Diff: Source/modules/device_orientation/DeviceOrientationData.cpp

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/DeviceOrientationData.cpp
diff --git a/Source/modules/device_orientation/DeviceOrientationData.cpp b/Source/modules/device_orientation/DeviceOrientationData.cpp
index 7b90659c45ca9ea6933edd94f3f195204d47e06d..c86d60df92fbb72d52a16b950b1aec2b94a9a19a 100644
--- a/Source/modules/device_orientation/DeviceOrientationData.cpp
+++ b/Source/modules/device_orientation/DeviceOrientationData.cpp
@@ -108,4 +108,9 @@ bool DeviceOrientationData::canProvideAbsolute() const
return m_canProvideAbsolute;
}
+bool DeviceOrientationData::canProvideEventData() const
+{
+ return canProvideAlpha() || canProvideBeta() || canProvideGamma();
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698