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

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, 10 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..213cc6657d6e4e396eb17baeb923533494377b0d 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 adoptRefCountedWillBeRefCountedGarbageCollected(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 adoptRefCountedWillBeRefCountedGarbageCollected(new DeviceMotionEvent(eventType, deviceMotionData));
}
void initDeviceMotionEvent(const AtomicString& type, bool bubbles, bool cancelable, DeviceMotionData*);

Powered by Google App Engine
This is Rietveld 408576698