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

Unified Diff: third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.cpp

Issue 1455943002: [Oilpan] Prepare full definition of classes before using Member (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CORE_EXPORT Created 5 years, 1 month 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/device_orientation/DeviceOrientationEvent.cpp
diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.cpp b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.cpp
index d34d9ce2fd1f7818c6a739fb8ef03d3a817d0f10..bc494115265084b625bb062d9582155ad00834c3 100644
--- a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.cpp
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.cpp
@@ -54,6 +54,11 @@ void DeviceOrientationEvent::initDeviceOrientationEvent(const AtomicString& type
m_orientation = DeviceOrientationData::create(alpha, beta, gamma, absolute);
}
+DeviceOrientationData* DeviceOrientationEvent::orientation() const
+{
+ return m_orientation.get();
+}
+
double DeviceOrientationEvent::alpha(bool& isNull) const
{
if (m_orientation->canProvideAlpha())

Powered by Google App Engine
This is Rietveld 408576698