Index: Source/modules/battery/BatteryDispatcher.h |
diff --git a/Source/modules/battery/BatteryDispatcher.h b/Source/modules/battery/BatteryDispatcher.h |
index f1a477b99961c3f5486d3ed614ea2b2d639371fa..4944e22477faf65f816664dd9f28780393a5674d 100644 |
--- a/Source/modules/battery/BatteryDispatcher.h |
+++ b/Source/modules/battery/BatteryDispatcher.h |
@@ -14,7 +14,8 @@ namespace blink { |
class WebBatteryStatus; |
-class BatteryDispatcher FINAL : public PlatformEventDispatcher, public WebBatteryStatusListener { |
+class BatteryDispatcher final : public GarbageCollectedFinalized<BatteryDispatcher>, public PlatformEventDispatcher, public WebBatteryStatusListener { |
+ USING_GARBAGE_COLLECTED_MIXIN(BatteryDispatcher); |
public: |
static BatteryDispatcher& instance(); |
virtual ~BatteryDispatcher(); |
@@ -22,16 +23,18 @@ public: |
BatteryStatus* latestData(); |
// Inherited from WebBatteryStatusListener. |
- virtual void updateBatteryStatus(const WebBatteryStatus&) OVERRIDE; |
+ virtual void updateBatteryStatus(const WebBatteryStatus&) override; |
+ |
+ virtual void trace(Visitor*) override; |
private: |
BatteryDispatcher(); |
// Inherited from PlatformEventDispatcher. |
- virtual void startListening() OVERRIDE; |
- virtual void stopListening() OVERRIDE; |
+ virtual void startListening() override; |
+ virtual void stopListening() override; |
- Persistent<BatteryStatus> m_batteryStatus; |
+ Member<BatteryStatus> m_batteryStatus; |
}; |
} // namespace blink |