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

Unified Diff: Source/core/html/track/TextTrackList.cpp

Issue 1118613002: Hook up Android closed captions 'enabled' setting to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed lgtm comment and rebased Created 5 years, 5 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/html/track/TextTrackList.h ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/TextTrackList.cpp
diff --git a/Source/core/html/track/TextTrackList.cpp b/Source/core/html/track/TextTrackList.cpp
index c71d92f1544a67f8e63983ebd51bafcec61a6852..d20ad2d42fb8e113b47a95fc70484a84ef9f6ea6 100644
--- a/Source/core/html/track/TextTrackList.cpp
+++ b/Source/core/html/track/TextTrackList.cpp
@@ -319,6 +319,15 @@ void TextTrackList::scheduleRemoveTrackEvent(PassRefPtrWillBeRawPtr<TextTrack> t
scheduleTrackEvent(EventTypeNames::removetrack, track);
}
+bool TextTrackList::hasShowingTracks()
+{
+ for (unsigned i = 0; i < length(); ++i) {
+ if (item(i)->mode() == TextTrack::showingKeyword())
+ return true;
+ }
+ return false;
+}
+
HTMLMediaElement* TextTrackList::owner() const
{
return m_owner;
« no previous file with comments | « Source/core/html/track/TextTrackList.h ('k') | Source/core/page/Page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698