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

Unified Diff: Source/modules/webmidi/MIDIMessageEvent.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/webmidi/MIDIConnectionEvent.h ('k') | Source/modules/websockets/CloseEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webmidi/MIDIMessageEvent.h
diff --git a/Source/modules/webmidi/MIDIMessageEvent.h b/Source/modules/webmidi/MIDIMessageEvent.h
index cfb29ea205ce8eef94c2ad6e605e57d7414259ed..40c66fd6dc63d3ed76dfc13115eea27765f2cb29 100644
--- a/Source/modules/webmidi/MIDIMessageEvent.h
+++ b/Source/modules/webmidi/MIDIMessageEvent.h
@@ -48,19 +48,19 @@ struct MIDIMessageEventInit : public EventInit {
class MIDIMessageEvent FINAL : public Event {
public:
- static PassRefPtr<MIDIMessageEvent> create()
+ static PassRefPtrWillBeRawPtr<MIDIMessageEvent> create()
{
- return adoptRef(new MIDIMessageEvent());
+ return adoptRefWillBeRefCountedGarbageCollected(new MIDIMessageEvent());
}
- static PassRefPtr<MIDIMessageEvent> create(double receivedTime, PassRefPtr<Uint8Array> data)
+ static PassRefPtrWillBeRawPtr<MIDIMessageEvent> create(double receivedTime, PassRefPtr<Uint8Array> data)
{
- return adoptRef(new MIDIMessageEvent(receivedTime, data));
+ return adoptRefWillBeRefCountedGarbageCollected(new MIDIMessageEvent(receivedTime, data));
}
- static PassRefPtr<MIDIMessageEvent> create(const AtomicString& type, const MIDIMessageEventInit& initializer)
+ static PassRefPtrWillBeRawPtr<MIDIMessageEvent> create(const AtomicString& type, const MIDIMessageEventInit& initializer)
{
- return adoptRef(new MIDIMessageEvent(type, initializer));
+ return adoptRefWillBeRefCountedGarbageCollected(new MIDIMessageEvent(type, initializer));
}
double receivedTime() { return m_receivedTime; }
« no previous file with comments | « Source/modules/webmidi/MIDIConnectionEvent.h ('k') | Source/modules/websockets/CloseEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698