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

Unified Diff: Source/modules/device_orientation/DeviceOrientationEvent.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/DeviceOrientationEvent.h
diff --git a/Source/modules/device_orientation/DeviceOrientationEvent.h b/Source/modules/device_orientation/DeviceOrientationEvent.h
index 243f5c220039e322c1fb41cfb94bc043028e0b2f..a7899350f971c0d480b17e5603719db533d0b1e0 100644
--- a/Source/modules/device_orientation/DeviceOrientationEvent.h
+++ b/Source/modules/device_orientation/DeviceOrientationEvent.h
@@ -36,13 +36,13 @@ class DeviceOrientationData;
class DeviceOrientationEvent FINAL : public Event {
public:
virtual ~DeviceOrientationEvent();
- static PassRefPtr<DeviceOrientationEvent> create()
+ static PassRefPtrWillBeRawPtr<DeviceOrientationEvent> create()
{
- return adoptRef(new DeviceOrientationEvent);
+ return adoptRefWillBeRefCountedGarbageCollected(new DeviceOrientationEvent);
}
- static PassRefPtr<DeviceOrientationEvent> create(const AtomicString& eventType, DeviceOrientationData* orientation)
+ static PassRefPtrWillBeRawPtr<DeviceOrientationEvent> create(const AtomicString& eventType, DeviceOrientationData* orientation)
{
- return adoptRef(new DeviceOrientationEvent(eventType, orientation));
+ return adoptRefWillBeRefCountedGarbageCollected(new DeviceOrientationEvent(eventType, orientation));
}
void initDeviceOrientationEvent(const AtomicString& type, bool bubbles, bool cancelable, DeviceOrientationData*);
« no previous file with comments | « Source/modules/device_orientation/DeviceMotionEvent.h ('k') | Source/modules/encryptedmedia/MediaKeyMessageEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698