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

Unified Diff: third_party/WebKit/Source/modules/mediasource/MediaSource.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/MediaSource.h
diff --git a/third_party/WebKit/Source/modules/mediasource/MediaSource.h b/third_party/WebKit/Source/modules/mediasource/MediaSource.h
index ac4da9d15c1bbd3491a3c11544a34a0924afc5e7..3bbd1203220b1179a85349918ecbc054d1129b69 100644
--- a/third_party/WebKit/Source/modules/mediasource/MediaSource.h
+++ b/third_party/WebKit/Source/modules/mediasource/MediaSource.h
@@ -33,10 +33,10 @@
#include "bindings/core/v8/ActiveScriptWrappable.h"
#include "core/dom/ActiveDOMObject.h"
-#include "core/events/EventTarget.h"
#include "core/html/HTMLMediaSource.h"
#include "core/html/TimeRanges.h"
#include "core/html/URLRegistry.h"
+#include "modules/EventTargetModules.h"
#include "modules/mediasource/SourceBuffer.h"
#include "modules/mediasource/SourceBufferList.h"
#include "public/platform/WebMediaSource.h"
@@ -72,6 +72,11 @@ public:
SourceBuffer* addSourceBuffer(const String& type, ExceptionState&);
void removeSourceBuffer(SourceBuffer*, ExceptionState&);
void setDuration(double, ExceptionState&);
+
+ DEFINE_ATTRIBUTE_EVENT_LISTENER(sourceopen);
+ DEFINE_ATTRIBUTE_EVENT_LISTENER(sourceended);
+ DEFINE_ATTRIBUTE_EVENT_LISTENER(sourceclose);
+
const AtomicString& readyState() const { return m_readyState; }
void endOfStream(const AtomicString& error, ExceptionState&);
void endOfStream(ExceptionState&);

Powered by Google App Engine
This is Rietveld 408576698