Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1950)

Unified Diff: Source/modules/device_orientation/DeviceMotionDispatcher.h

Issue 620683006: Move PlatformEventDispatcher implementations to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@sof-fix-platform
Patch Set: Set baseurl Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « Source/modules/device_light/DeviceLightDispatcher.cpp ('k') | Source/modules/device_orientation/DeviceMotionDispatcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698