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 9ae63337d513be898f64c813a254f2cc46c21c54..f5edc72757459bd3ae6760c18e54359020e61228 100644 |
--- a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.cpp |
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.cpp |
@@ -26,6 +26,7 @@ |
#include "modules/device_orientation/DeviceOrientationEvent.h" |
#include "modules/device_orientation/DeviceOrientationData.h" |
+#include "modules/device_orientation/DeviceOrientationEventInit.h" |
namespace blink { |
@@ -36,6 +37,12 @@ DeviceOrientationEvent::DeviceOrientationEvent() |
DeviceOrientationEvent::DeviceOrientationEvent( |
const AtomicString& eventType, |
+ const DeviceOrientationEventInit& initializer) |
+ : Event(eventType, initializer), |
+ m_orientation(DeviceOrientationData::create(initializer)) {} |
+ |
+DeviceOrientationEvent::DeviceOrientationEvent( |
+ const AtomicString& eventType, |
DeviceOrientationData* orientation) |
: Event(eventType, false, false), // Can't bubble, not cancelable |
m_orientation(orientation) {} |