Index: Source/modules/device_orientation/DeviceOrientationDispatcher.h |
diff --git a/Source/modules/device_orientation/DeviceOrientationDispatcher.h b/Source/modules/device_orientation/DeviceOrientationDispatcher.h |
index 66bdd53516120d46507a774b1c718cdaa22190c6..4a75df9e11de199760ea889a135fdd4f5e70aaf1 100644 |
--- a/Source/modules/device_orientation/DeviceOrientationDispatcher.h |
+++ b/Source/modules/device_orientation/DeviceOrientationDispatcher.h |
@@ -43,26 +43,29 @@ class DeviceOrientationData; |
class WebDeviceOrientationData; |
// This class listens to device orientation data and notifies all registered controllers. |
-class DeviceOrientationDispatcher : public PlatformEventDispatcher, public WebDeviceOrientationListener { |
+class DeviceOrientationDispatcher final : public GarbageCollectedFinalized<DeviceOrientationDispatcher>, public PlatformEventDispatcher, public WebDeviceOrientationListener { |
+ USING_GARBAGE_COLLECTED_MIXIN(DeviceOrientationDispatcher); |
public: |
static DeviceOrientationDispatcher& instance(); |
+ virtual ~DeviceOrientationDispatcher(); |
// Note that the returned object is owned by this class. |
// FIXME: make the return value const, see crbug.com/233174. |
DeviceOrientationData* latestDeviceOrientationData(); |
// Inherited from WebDeviceOrientationListener. |
- virtual void didChangeDeviceOrientation(const WebDeviceOrientationData&) OVERRIDE; |
+ virtual void didChangeDeviceOrientation(const WebDeviceOrientationData&) override; |
+ |
+ virtual void trace(Visitor*) override; |
private: |
DeviceOrientationDispatcher(); |
- ~DeviceOrientationDispatcher(); |
// Inherited from PlatformEventDispatcher. |
- virtual void startListening() OVERRIDE; |
- virtual void stopListening() OVERRIDE; |
+ virtual void startListening() override; |
+ virtual void stopListening() override; |
- Persistent<DeviceOrientationData> m_lastDeviceOrientationData; |
+ Member<DeviceOrientationData> m_lastDeviceOrientationData; |
}; |
} // namespace blink |