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

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

Issue 2728963004: Remove non-standard DeviceOrientation Event initializers. (Closed)
Patch Set: Rebased. Created 3 years, 9 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/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 f5edc72757459bd3ae6760c18e54359020e61228..763a93922aff9ee2115256264b05d17fa3419905 100644
--- a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.cpp
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.cpp
@@ -47,21 +47,6 @@ DeviceOrientationEvent::DeviceOrientationEvent(
: Event(eventType, false, false), // Can't bubble, not cancelable
m_orientation(orientation) {}
-void DeviceOrientationEvent::initDeviceOrientationEvent(
- const AtomicString& type,
- bool bubbles,
- bool cancelable,
- const Nullable<double>& alpha,
- const Nullable<double>& beta,
- const Nullable<double>& gamma,
- bool absolute) {
- if (isBeingDispatched())
- return;
-
- initEvent(type, bubbles, cancelable);
- m_orientation = DeviceOrientationData::create(alpha, beta, gamma, absolute);
-}
-
double DeviceOrientationEvent::alpha(bool& isNull) const {
if (m_orientation->canProvideAlpha())
return m_orientation->alpha();

Powered by Google App Engine
This is Rietveld 408576698