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

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

Issue 2720003003: Implement DeviceOrientationEvent constructor. (Closed)
Patch Set: Reference Candidate Recommendation. Created 3 years, 10 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.h
diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.h b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.h
index fdf0f96f1a5cc35ad4535ff55de1c27ba8d67ceb..14493aff601ab3f723b907af7a7af3b01cc5e4b9 100644
--- a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.h
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEvent.h
@@ -32,6 +32,7 @@
namespace blink {
+class DeviceOrientationEventInit;
class DeviceOrientationData;
class DeviceOrientationEvent final : public Event {
@@ -40,6 +41,11 @@ class DeviceOrientationEvent final : public Event {
public:
~DeviceOrientationEvent() override;
static DeviceOrientationEvent* create() { return new DeviceOrientationEvent; }
+ static DeviceOrientationEvent* create(
+ const AtomicString& eventType,
+ const DeviceOrientationEventInit& initializer) {
+ return new DeviceOrientationEvent(eventType, initializer);
+ }
static DeviceOrientationEvent* create(const AtomicString& eventType,
DeviceOrientationData* orientation) {
return new DeviceOrientationEvent(eventType, orientation);
@@ -66,6 +72,8 @@ class DeviceOrientationEvent final : public Event {
private:
DeviceOrientationEvent();
+ DeviceOrientationEvent(const AtomicString&,
+ const DeviceOrientationEventInit&);
DeviceOrientationEvent(const AtomicString& eventType, DeviceOrientationData*);
Member<DeviceOrientationData> m_orientation;

Powered by Google App Engine
This is Rietveld 408576698