Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: Source/core/html/HTMLMediaElement.h

Issue 177243018: Prevent 'removetrack' events from firing when all inband text tracks are removed. (Closed) Base URL: svn://
Patch Set: Fix expectations 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/core/html/HTMLMediaElement.h
diff --git a/Source/core/html/HTMLMediaElement.h b/Source/core/html/HTMLMediaElement.h
index 3141ec62f3fa359a74c88b1118b9414d2550d465..4a978e0cc60f139b7c8f07e631a20652d6b90542 100644
--- a/Source/core/html/HTMLMediaElement.h
+++ b/Source/core/html/HTMLMediaElement.h
@@ -187,11 +187,13 @@ public:
CueList currentlyActiveCues() const { return m_currentlyActiveCues; }
void addTextTrack(TextTrack*);
- void removeTextTrack(TextTrack*);
- void removeAllInbandTracks();
+ void removeTextTrack(TextTrack*, bool scheduleEvent);
adamk 2014/02/26 00:45:32 Please make this argument an enum so that the call
void closeCaptionTracksChanged();
void notifyMediaPlayerOfTextTrackChanges();
+ // Implements the "forget the media element's media-resource-specific tracks" algorithm in the HTML5 spec.
+ void forgetResourceSpecificTracks();
void didAddTrackElement(HTMLTrackElement*);
void didRemoveTrackElement(HTMLTrackElement*);

Powered by Google App Engine
This is Rietveld 408576698