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

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

Issue 1964183004: Revert of Move DOMArrayBuffer, DOMArrayBufferViews and DataView to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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: third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h
diff --git a/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h b/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h
index b8f036b8e4a843a8ff8c9a5a10becb70a2860cb5..d2c871dd9b076ce9d64a0e665b0a15bfd4c5ae6a 100644
--- a/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h
+++ b/third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.h
@@ -46,7 +46,7 @@
return new MIDIMessageEvent();
}
- static MIDIMessageEvent* create(double receivedTime, DOMUint8Array* data)
+ static MIDIMessageEvent* create(double receivedTime, PassRefPtr<DOMUint8Array> data)
{
return new MIDIMessageEvent(receivedTime, data);
}
@@ -57,21 +57,17 @@
}
double receivedTime() { return m_receivedTime; }
- DOMUint8Array* data() { return m_data; }
+ PassRefPtr<DOMUint8Array> data() { return m_data; }
const AtomicString& interfaceName() const override { return EventNames::MIDIMessageEvent; }
- DEFINE_INLINE_VIRTUAL_TRACE()
- {
- visitor->trace(m_data);
- Event::trace(visitor);
- }
+ DEFINE_INLINE_VIRTUAL_TRACE() { Event::trace(visitor); }
private:
MIDIMessageEvent()
: m_receivedTime(0) { }
- MIDIMessageEvent(double receivedTime, DOMUint8Array* data)
+ MIDIMessageEvent(double receivedTime, PassRefPtr<DOMUint8Array> data)
: Event(EventTypeNames::midimessage, true, false)
, m_receivedTime(receivedTime)
, m_data(data) { }
@@ -79,7 +75,7 @@
MIDIMessageEvent(const AtomicString& type, const MIDIMessageEventInit& initializer);
double m_receivedTime;
- Member<DOMUint8Array> m_data;
+ RefPtr<DOMUint8Array> m_data;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/webmidi/MIDIInput.cpp ('k') | third_party/WebKit/Source/modules/webmidi/MIDIOutput.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698