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

Unified Diff: Source/modules/webmidi/MIDIConnectionEvent.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/webmidi/MIDIConnectionEvent.h
diff --git a/Source/modules/webmidi/MIDIConnectionEvent.h b/Source/modules/webmidi/MIDIConnectionEvent.h
index de2c53beb95a36fbac3f4acbdd2088e80783f0df..ffa895da533209a9040b4c2e1bb16646959f060b 100644
--- a/Source/modules/webmidi/MIDIConnectionEvent.h
+++ b/Source/modules/webmidi/MIDIConnectionEvent.h
@@ -47,19 +47,19 @@ struct MIDIConnectionEventInit : public EventInit {
class MIDIConnectionEvent FINAL : public Event {
public:
- static PassRefPtr<MIDIConnectionEvent> create()
+ static PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create()
{
- return adoptRef(new MIDIConnectionEvent());
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new MIDIConnectionEvent());
}
- static PassRefPtr<MIDIConnectionEvent> create(const AtomicString& type, PassRefPtr<MIDIPort> port)
+ static PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create(const AtomicString& type, PassRefPtr<MIDIPort> port)
{
- return adoptRef(new MIDIConnectionEvent(type, port));
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new MIDIConnectionEvent(type, port));
}
- static PassRefPtr<MIDIConnectionEvent> create(const AtomicString& type, const MIDIConnectionEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create(const AtomicString& type, const MIDIConnectionEventInit& initializer)
{
- return adoptRef(new MIDIConnectionEvent(type, initializer));
+ return adoptRefCountedWillBeRefCountedGarbageCollected(new MIDIConnectionEvent(type, initializer));
}
RefPtr<MIDIPort> port() { return m_port; }

Powered by Google App Engine
This is Rietveld 408576698