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

Unified Diff: Source/modules/webmidi/MIDIConnectionEvent.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/MIDIConnectionEvent.h
diff --git a/Source/modules/webmidi/MIDIConnectionEvent.h b/Source/modules/webmidi/MIDIConnectionEvent.h
index 703620751f120ef6e37d1e630be3dcc68cdcf71b..de2c53beb95a36fbac3f4acbdd2088e80783f0df 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 PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create()
+ static PassRefPtr<MIDIConnectionEvent> create()
{
- return adoptRefWillBeRefCountedGarbageCollected(new MIDIConnectionEvent());
+ return adoptRef(new MIDIConnectionEvent());
}
- static PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create(const AtomicString& type, PassRefPtr<MIDIPort> port)
+ static PassRefPtr<MIDIConnectionEvent> create(const AtomicString& type, PassRefPtr<MIDIPort> port)
{
- return adoptRefWillBeRefCountedGarbageCollected(new MIDIConnectionEvent(type, port));
+ return adoptRef(new MIDIConnectionEvent(type, port));
}
- static PassRefPtrWillBeRawPtr<MIDIConnectionEvent> create(const AtomicString& type, const MIDIConnectionEventInit& initializer)
+ static PassRefPtr<MIDIConnectionEvent> create(const AtomicString& type, const MIDIConnectionEventInit& initializer)
{
- return adoptRefWillBeRefCountedGarbageCollected(new MIDIConnectionEvent(type, initializer));
+ return adoptRef(new MIDIConnectionEvent(type, initializer));
}
RefPtr<MIDIPort> port() { return m_port; }

Powered by Google App Engine
This is Rietveld 408576698