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

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

Issue 182763002: Add [WillBeGarbageCollected] to Event.idl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/DeviceMotionEvent.h
diff --git a/Source/modules/device_orientation/DeviceMotionEvent.h b/Source/modules/device_orientation/DeviceMotionEvent.h
index ce19d5fb6403af6c04cac2b439e34a45fff75700..2f50e9f9635e7b6f585cfd8d7663f2af682f97bf 100644
--- a/Source/modules/device_orientation/DeviceMotionEvent.h
+++ b/Source/modules/device_orientation/DeviceMotionEvent.h
@@ -38,13 +38,13 @@ class DeviceRotationRate;
class DeviceMotionEvent FINAL : public Event {
public:
virtual ~DeviceMotionEvent();
- static PassRefPtr<DeviceMotionEvent> create()
+ static PassRefPtrWillBeRawPtr<DeviceMotionEvent> create()
{
- return adoptRef(new DeviceMotionEvent);
+ return adoptRefWillBeRefCountedGarbageCollected(new DeviceMotionEvent);
}
- static PassRefPtr<DeviceMotionEvent> create(const AtomicString& eventType, DeviceMotionData* deviceMotionData)
+ static PassRefPtrWillBeRawPtr<DeviceMotionEvent> create(const AtomicString& eventType, DeviceMotionData* deviceMotionData)
{
- return adoptRef(new DeviceMotionEvent(eventType, deviceMotionData));
+ return adoptRefWillBeRefCountedGarbageCollected(new DeviceMotionEvent(eventType, deviceMotionData));
}
void initDeviceMotionEvent(const AtomicString& type, bool bubbles, bool cancelable, DeviceMotionData*);
« no previous file with comments | « Source/core/xml/XMLHttpRequestProgressEvent.h ('k') | Source/modules/device_orientation/DeviceOrientationEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698