Index: third_party/WebKit/Source/modules/device_orientation/DeviceOrientationDispatcher.h |
diff --git a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationDispatcher.h b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationDispatcher.h |
index 1a0322a053d075fa8a4489ae09fc1c31f9a91689..a994fba431498e5a8cc3454711504aec987362f3 100644 |
--- a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationDispatcher.h |
+++ b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationDispatcher.h |
@@ -33,6 +33,7 @@ |
#include "core/frame/PlatformEventDispatcher.h" |
#include "platform/heap/Handle.h" |
+#include "public/platform/WebPlatformEventType.h" |
#include "public/platform/modules/device_orientation/WebDeviceOrientationListener.h" |
#include "wtf/RefPtr.h" |
@@ -45,7 +46,7 @@ class WebDeviceOrientationData; |
class DeviceOrientationDispatcher final : public GarbageCollectedFinalized<DeviceOrientationDispatcher>, public PlatformEventDispatcher, public WebDeviceOrientationListener { |
USING_GARBAGE_COLLECTED_MIXIN(DeviceOrientationDispatcher); |
public: |
- static DeviceOrientationDispatcher& instance(); |
+ static DeviceOrientationDispatcher& instance(bool absolute); |
~DeviceOrientationDispatcher() override; |
// Note that the returned object is owned by this class. |
@@ -58,12 +59,15 @@ public: |
DECLARE_VIRTUAL_TRACE(); |
private: |
- DeviceOrientationDispatcher(); |
+ explicit DeviceOrientationDispatcher(bool absolute); |
// Inherited from PlatformEventDispatcher. |
void startListening() override; |
void stopListening() override; |
+ WebPlatformEventType getWebPlatformEventType() const; |
+ |
+ const bool m_absolute; |
Member<DeviceOrientationData> m_lastDeviceOrientationData; |
}; |