| Index: Source/modules/device_orientation/DeviceMotionDispatcher.h
|
| diff --git a/Source/modules/device_orientation/DeviceMotionDispatcher.h b/Source/modules/device_orientation/DeviceMotionDispatcher.h
|
| index 9757abe3234e059fe3dc5d8f6b8df6e40e6c0ae5..05d40b1bdfb8b43b16e9938bc4e2ff2ae2a9d2b7 100644
|
| --- a/Source/modules/device_orientation/DeviceMotionDispatcher.h
|
| +++ b/Source/modules/device_orientation/DeviceMotionDispatcher.h
|
| @@ -43,26 +43,29 @@ class DeviceMotionData;
|
| class WebDeviceMotionData;
|
|
|
| // This class listens to device motion data and notifies all registered controllers.
|
| -class DeviceMotionDispatcher FINAL : public PlatformEventDispatcher, public WebDeviceMotionListener {
|
| +class DeviceMotionDispatcher final : public GarbageCollectedFinalized<DeviceMotionDispatcher>, public PlatformEventDispatcher, public WebDeviceMotionListener {
|
| + USING_GARBAGE_COLLECTED_MIXIN(DeviceMotionDispatcher);
|
| public:
|
| static DeviceMotionDispatcher& instance();
|
| + virtual ~DeviceMotionDispatcher();
|
|
|
| // Note that the returned object is owned by this class.
|
| // FIXME: make the return value const, see crbug.com/233174.
|
| DeviceMotionData* latestDeviceMotionData();
|
|
|
| // Inherited from WebDeviceMotionListener.
|
| - virtual void didChangeDeviceMotion(const WebDeviceMotionData&) OVERRIDE;
|
| + virtual void didChangeDeviceMotion(const WebDeviceMotionData&) override;
|
| +
|
| + virtual void trace(Visitor*) override;
|
|
|
| private:
|
| DeviceMotionDispatcher();
|
| - virtual ~DeviceMotionDispatcher();
|
|
|
| // Inherited from PlatformEventDispatcher.
|
| - virtual void startListening() OVERRIDE;
|
| - virtual void stopListening() OVERRIDE;
|
| + virtual void startListening() override;
|
| + virtual void stopListening() override;
|
|
|
| - Persistent<DeviceMotionData> m_lastDeviceMotionData;
|
| + Member<DeviceMotionData> m_lastDeviceMotionData;
|
| };
|
|
|
| } // namespace blink
|
|
|