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

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, 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
« no previous file with comments | « Source/modules/webaudio/OfflineAudioCompletionEvent.cpp ('k') | Source/modules/webmidi/MIDIMessageEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webmidi/MIDIConnectionEvent.h
diff --git a/Source/modules/webmidi/MIDIConnectionEvent.h b/Source/modules/webmidi/MIDIConnectionEvent.h
index de2c53beb95a36fbac3f4acbdd2088e80783f0df..703620751f120ef6e37d1e630be3dcc68cdcf71b 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 adoptRefWillBeRefCountedGarbageCollected(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 adoptRefWillBeRefCountedGarbageCollected(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 adoptRefWillBeRefCountedGarbageCollected(new MIDIConnectionEvent(type, initializer));
}
RefPtr<MIDIPort> port() { return m_port; }
« no previous file with comments | « Source/modules/webaudio/OfflineAudioCompletionEvent.cpp ('k') | Source/modules/webmidi/MIDIMessageEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698