| 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..de4cc90177c579739189dd2c30999a9aae06f1c5 100644
|
| --- a/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationDispatcher.h
|
| +++ b/third_party/WebKit/Source/modules/device_orientation/DeviceOrientationDispatcher.h
|
| @@ -45,7 +45,7 @@ class WebDeviceOrientationData;
|
| class DeviceOrientationDispatcher final : public GarbageCollectedFinalized<DeviceOrientationDispatcher>, public PlatformEventDispatcher, public WebDeviceOrientationListener {
|
| USING_GARBAGE_COLLECTED_MIXIN(DeviceOrientationDispatcher);
|
| public:
|
| - static DeviceOrientationDispatcher& instance();
|
| + template<bool absolute = false> static DeviceOrientationDispatcher& instance();
|
| ~DeviceOrientationDispatcher() override;
|
|
|
| // Note that the returned object is owned by this class.
|
| @@ -58,12 +58,13 @@ public:
|
| DECLARE_VIRTUAL_TRACE();
|
|
|
| private:
|
| - DeviceOrientationDispatcher();
|
| + explicit DeviceOrientationDispatcher(bool absolute);
|
|
|
| // Inherited from PlatformEventDispatcher.
|
| void startListening() override;
|
| void stopListening() override;
|
|
|
| + const bool m_absolute;
|
| Member<DeviceOrientationData> m_lastDeviceOrientationData;
|
| };
|
|
|
|
|