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

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

Issue 868113005: Move automatic text track selection code to AutomaticTrackSelection helper (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Pass TextTrackList as parameter instead. 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLMediaElement.h
diff --git a/Source/core/html/HTMLMediaElement.h b/Source/core/html/HTMLMediaElement.h
index 56d6cde91c9703f4241e167cf3595c98ef0c161d..92a9c151aa9d8074ce596253546afdb69afd61b1 100644
--- a/Source/core/html/HTMLMediaElement.h
+++ b/Source/core/html/HTMLMediaElement.h
@@ -201,30 +201,7 @@ public:
// FIXME: Remove this when WebMediaPlayerClientImpl::loadInternal does not depend on it.
virtual KURL mediaPlayerPosterURL() override { return KURL(); }
- class TrackGroup {
- STACK_ALLOCATED();
- public:
- enum GroupKind { CaptionsAndSubtitles, Description, Chapter, Metadata, Other };
-
- explicit TrackGroup(GroupKind kind)
- : visibleTrack(nullptr)
- , defaultTrack(nullptr)
- , kind(kind)
- , hasSrcLang(false)
- {
- }
-
- WillBeHeapVector<RefPtrWillBeMember<TextTrack>> tracks;
- RefPtrWillBeMember<TextTrack> visibleTrack;
- RefPtrWillBeMember<TextTrack> defaultTrack;
- GroupKind kind;
- bool hasSrcLang;
- };
-
- void configureTextTrackGroupForLanguage(const TrackGroup&) const;
void honorUserPreferencesForAutomaticTextTrackSelection();
- void performAutomaticTextTrackSelection(const TrackGroup&);
- void enableDefaultMetadataTextTracks(const TrackGroup&);
bool textTracksAreReady() const;
enum VisibilityChangeAssumption {
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698