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

Unified Diff: Source/modules/webmidi/MIDIMessageEvent.h

Issue 185393006: Revert "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/MIDIMessageEvent.h
diff --git a/Source/modules/webmidi/MIDIMessageEvent.h b/Source/modules/webmidi/MIDIMessageEvent.h
index 40c66fd6dc63d3ed76dfc13115eea27765f2cb29..cfb29ea205ce8eef94c2ad6e605e57d7414259ed 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 PassRefPtrWillBeRawPtr<MIDIMessageEvent> create()
+ static PassRefPtr<MIDIMessageEvent> create()
{
- return adoptRefWillBeRefCountedGarbageCollected(new MIDIMessageEvent());
+ return adoptRef(new MIDIMessageEvent());
}
- static PassRefPtrWillBeRawPtr<MIDIMessageEvent> create(double receivedTime, PassRefPtr<Uint8Array> data)
+ static PassRefPtr<MIDIMessageEvent> create(double receivedTime, PassRefPtr<Uint8Array> data)
{
- return adoptRefWillBeRefCountedGarbageCollected(new MIDIMessageEvent(receivedTime, data));
+ return adoptRef(new MIDIMessageEvent(receivedTime, data));
}
- static PassRefPtrWillBeRawPtr<MIDIMessageEvent> create(const AtomicString& type, const MIDIMessageEventInit& initializer)
+ static PassRefPtr<MIDIMessageEvent> create(const AtomicString& type, const MIDIMessageEventInit& initializer)
{
- return adoptRefWillBeRefCountedGarbageCollected(new MIDIMessageEvent(type, initializer));
+ return adoptRef(new MIDIMessageEvent(type, initializer));
}
double receivedTime() { return m_receivedTime; }

Powered by Google App Engine
This is Rietveld 408576698