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

Unified Diff: Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h

Issue 946503003: Add HTMLMediaElement.waitingforkey event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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/encryptedmedia/HTMLMediaElementEncryptedMedia.h
diff --git a/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h b/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h
index 55fcd85339ebb0d8c4342934b3a45ce2f9d2cb20..53f409d3559d96830217d9460056d400c5c687f5 100644
--- a/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h
+++ b/Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.h
@@ -40,11 +40,14 @@ public:
static MediaKeys* mediaKeys(HTMLMediaElement&);
static ScriptPromise setMediaKeys(ScriptState*, HTMLMediaElement&, MediaKeys*);
DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(encrypted);
+ DEFINE_STATIC_ATTRIBUTE_EVENT_LISTENER(waitingforkey);
ddorwin 2015/02/20 04:45:28 There isn't an attribute for this event.
jrummell 2015/02/20 17:45:06 Done.
static void keyAdded(HTMLMediaElement&, const String& keySystem, const String& sessionId);
static void keyError(HTMLMediaElement&, const String& keySystem, const String& sessionId, WebMediaPlayerClient::MediaKeyErrorCode, unsigned short systemCode);
static void keyMessage(HTMLMediaElement&, const String& keySystem, const String& sessionId, const unsigned char* message, unsigned messageLength, const WebURL& defaultURL);
static void encrypted(HTMLMediaElement&, const String& initDataType, const unsigned char* initData, unsigned initDataLength);
+ static void waitingForKey(HTMLMediaElement&);
+ static void playbackResumedAfterKey(HTMLMediaElement&);
ddorwin 2015/02/20 04:45:28 "AfterKey" sounds weird. noLongerWaitingForKey?
jrummell 2015/02/20 17:45:06 Done.
static void playerDestroyed(HTMLMediaElement&);
static WebContentDecryptionModule* contentDecryptionModule(HTMLMediaElement&);
@@ -79,6 +82,8 @@ private:
EmeMode m_emeMode;
+ bool m_waitingForKey;
ddorwin 2015/02/20 04:45:28 m_isW...
jrummell 2015/02/20 17:45:05 Done.
+
PersistentWillBeMember<MediaKeys> m_mediaKeys;
};
« no previous file with comments | « Source/core/events/EventTypeNames.in ('k') | Source/modules/encryptedmedia/HTMLMediaElementEncryptedMedia.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698