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

Unified Diff: third_party/WebKit/Source/modules/mediasource/SourceBufferList.h

Issue 1945523003: MSE: Add EventHandler attributes to MSE objects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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/mediasource/SourceBufferList.h
diff --git a/third_party/WebKit/Source/modules/mediasource/SourceBufferList.h b/third_party/WebKit/Source/modules/mediasource/SourceBufferList.h
index be67f452044b4991783946948077fc9d6193afeb..90ac1c1d52a170baf3b3c7b8a136a06784838f34 100644
--- a/third_party/WebKit/Source/modules/mediasource/SourceBufferList.h
+++ b/third_party/WebKit/Source/modules/mediasource/SourceBufferList.h
@@ -49,6 +49,10 @@ public:
~SourceBufferList() override;
unsigned length() const { return m_list.size(); }
+
+ DEFINE_ATTRIBUTE_EVENT_LISTENER(addsourcebuffer);
+ DEFINE_ATTRIBUTE_EVENT_LISTENER(removesourcebuffer);
+
SourceBuffer* item(unsigned index) const { return (index < m_list.size()) ? m_list[index].get() : 0; }
void add(SourceBuffer*);

Powered by Google App Engine
This is Rietveld 408576698